PropertiesPanel.h

Go to the documentation of this file.
00001 #ifndef PROPERTIES_PANEL_H
00002 #define PROPERTIES_PANEL_H 
00003 
00004 #include <qdialog.h>
00005 #include <qhbox.h>
00006 #include <qheader.h>
00007 #include <qlabel.h>
00008 #include <qlayout.h>
00009 #include <qpe/qpeapplication.h>
00010 #include <qpixmap.h>
00011 #include <qpushbutton.h>
00012 #include <qstring.h>
00013 #include <qvbox.h>
00014 #include <qwidget.h>
00015 #include "ContentListView.h"
00016 #include "DigraphLineEdit.h"
00017 #include "DigraphMultiLineEdit.h"
00018 #include "Folder.h"
00019 #include "Preferences.h"
00020 #include "Vocabulary.h"
00021 
00022 class PropertiesPanel : public QVBox {
00023 
00024     Q_OBJECT
00025     
00026 public:
00027 
00028     PropertiesPanel( const Preferences& prefs, QWidget* parent );
00029     ~PropertiesPanel(); 
00030 
00031     void setVocabulary( Vocabulary* vocab );
00032     void setFolder( Folder* folder );
00033 
00034     void updateFonts();
00035     void setDigraphEnabled( bool isEnabled );
00036     void retranslateUi();
00037 
00038 public slots:
00039 
00040     void updateCounters();
00041 
00042 private slots:
00043     
00044     void updateDescription();
00045     void updateAuthor( const QString& author );
00046 
00047 private:
00048 
00049     void init();
00050     void updateModel();
00051 
00052     void addListeners();
00053     void removeListeners();
00054 
00055     QString getType() const;
00056 
00057     QHBox*                  simplePropsPanel;
00058 
00059     QVBox*                  simplePropsLabelsPanel;
00060     QVBox*                  simplePropsFieldsPanel;
00061 
00062     QLabel*                 descriptionLabel;
00063     DigraphMultiLineEdit*   descriptionMultiLineEdit;
00064 
00065     QLabel*                 contentLabel;
00066     ContentListView*        contentListView;
00067 
00068     QLabel*                 authorLabel;
00069     DigraphLineEdit*        authorLineEdit;
00070 
00071     QLabel*                 creationDateLabel;
00072     QLabel*                 creationDateValueLabel;
00073 
00074     QLabel*                 modificationDateLabel;
00075     QLabel*                 modificationDateValueLabel;
00076 
00077     const Preferences&      prefs;
00078     Vocabulary*             editedVocab;
00079     Folder*                 editedFolder;
00080 
00081 };
00082 
00083 #endif

Generated on Sun Mar 1 17:30:47 2009 for toMOTko by  doxygen 1.5.6