Thumbnail me  3.0
D:/Thumbnail/Thumbnailme/DockStyles.h
Go to the documentation of this file.
00001 /***************************************************************************/
00022 #ifndef HEADER_DOCKSTYLES
00023 #define HEADER_DOCKSTYLES
00024 
00025 #include "MainWindow.h"
00026 #include "FontMapComboBox.h"
00027 #include "qtcolorpicker.h"
00028 
00029 class DockStyles : public QFrame
00030 {
00031     Q_OBJECT
00032 
00033     public:
00034     explicit DockStyles(QWidget *main_window);
00035     virtual ~DockStyles();
00036 
00037     private:
00038     QLineEdit       *titleLineEdit;
00039     QtColorPicker   *backgroundColorpicker;
00040     QtColorPicker   *infoTextColorpicker;
00041     QtColorPicker   *timeStampColorpicker;
00042     QtColorPicker   *shadowColorpicker;
00043     QStackedWidget  *fontInfoTextStackedWidget;
00044     QStackedWidget  *fontTimestampStackedWidget;
00045     FontMapComboBox *fontInfoTextComboBox;
00046     FontMapComboBox *fontTimestampComboBox;
00047     QCheckBox       *infoTextCheckBox;
00048     QCheckBox       *timestampCheckBox;
00049     QSpinBox        *infoTextSizeSpinBox;
00050     QSpinBox        *timestampSizeSpinBox;
00051     QComboBox       *infoTextLocationComboBox;
00052     QComboBox       *timestampLocationComboBox;
00053     QLabel          *titleWidgetLabel;
00054     QLabel          *titleLabel;
00055     QLabel          *backgroundColorLabel;
00056     QLabel          *shadowColorLabel;
00057     QLabel          *loadingFontsLabel1;
00058     QLabel          *loadingFontsLabel2;
00059     QStringList     location;
00060 
00061     private:
00062     void retranslate();
00063 
00064     protected:
00065     void changeEvent(QEvent* event);
00066 
00067     public slots:
00068     void disabledInfoTextSection(int state);
00069     void disabledTimeStampSection(int state);
00070     void stackedWidgetsToComboBox();
00071 
00072     public:
00073     QString         getInfoTextLocation();
00074     QString         getTimeStampLocation();
00075     QString         getTitleEdit();
00076     QColor          getColorBackground();
00077     QColor          getColorInfoText();
00078     QColor          getColorTimeStamp();
00079     QColor          getColorShadow();
00080     QString         getFontInfoText(int type);
00081     QString         getFontTimeStamp(int type);
00082     QString         getSizeInfoText();
00083     QString         getSizeTimeStamp();
00084     FontMapComboBox *getInfoTextComboBox();
00085     FontMapComboBox *getTimestampComboBox();
00086     bool            isInfoTextChecked();
00087     bool            isTimeStampChecked();
00088     bool            isNoFontDefined();
00089 
00090     void setInfoTextLocation(int index);
00091     void setTimeStampLocation(int index);
00092     void setTitleEdit(QString title);
00093     void setCheckedInfoText(bool check);
00094     void setCheckedTimeStamp(bool check);
00095     void setSizeInfoText(int size);
00096     void setSizeTimeStamp(int size);
00097     void setFontInfoText(QString font);
00098     void setFontTimeStamp(QString font);
00099     void setColorBackground(QColor color);
00100     void setColorInfoText(QColor color);
00101     void setColorTimeStamp(QColor color);
00102     void setColorShadow(QColor color);
00103     void setStackedWidgetToLoadingState();
00104 };
00105 #endif
 All Classes Files Functions Enumerations