00001 00007 #ifndef HBFORMATPANEL_H_ 00008 #define HBFORMATPANEL_H_ 00009 00010 #include <QtGui/QGroupBox> 00011 #include <QtGui/QVBoxLayout> 00012 #include <QtGui/QHBoxLayout> 00013 #include <QtGui/QPushButton> 00014 #include <QtGui/QLabel> 00015 #include <QtGui/QSpacerItem> 00016 00017 #include "HighlightBlock.h" 00018 00022 class HBFormatPanel : public QGroupBox 00023 { 00024 Q_OBJECT 00025 private: 00026 HighlightBlock * block; 00027 QVBoxLayout * mainLayout; 00028 QHBoxLayout * buttonsLayout; 00029 QLabel * fontSample; 00030 QPushButton * editFontButton; 00031 QPushButton * editFColorButton; 00032 QPushButton * editBColorButton; 00033 00036 void updateSample(); 00037 public: 00045 HBFormatPanel(QWidget * parent,HighlightBlock * _block); 00046 00047 private slots: 00048 00053 void showFontDialog(); 00054 00059 void showFColorDialog(); 00060 00065 void showBColorDialog(); 00066 }; 00067 00068 #endif /* HBFORMATPANEL_H_ */
1.5.8