This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
DockStyles.h
110 lines (99 loc) · 3.64 KB
/
DockStyles.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/***************************************************************************//**
* @brief Thumbnail me 3.0
* Thumbnail me is a user interface for Movie thumbnailer.
* Generate thumbnails from any movie is now easier !
*
* @file DockStyles.h
* @class DockStyles
* Cette classe permet la génération du dock qui met en place les styles à appliquer à la vignette.
* @attention QtColorPicker required - http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qtcolorpicker/
*
* @author Quentin Rousseau\n
* @note Copyright (C) 2011-2012 Quentin Rousseau\n
* License: GNU General Public License version 2 (GPLv2) - http://www.gnu.org/licenses/gpl-2.0.html\n
* Site web: www.thumbnailme.com\n
* Email: [email protected]
*
* @since 2.0
* @version 3.0
* @date 2011-2012
*******************************************************************************/
#ifndef HEADER_DOCKSTYLES
#define HEADER_DOCKSTYLES
#include <QSpinBox>
#include <QCheckBox>
#include <QComboBox>
#include <QLabel>
class QtColorPicker;
class QStackedWidget;
class FontMapComboBox;
class DockStyles : public QFrame
{
Q_OBJECT
public:
explicit DockStyles(QWidget *main_window);
virtual ~DockStyles();
private:
QLineEdit *titleLineEdit;
QtColorPicker *backgroundColorpicker;
QtColorPicker *infoTextColorpicker;
QtColorPicker *timeStampColorpicker;
QtColorPicker *shadowColorpicker;
QStackedWidget *fontInfoTextStackedWidget;
QStackedWidget *fontTimestampStackedWidget;
FontMapComboBox *fontInfoTextComboBox;
FontMapComboBox *fontTimestampComboBox;
QCheckBox *infoTextCheckBox;
QCheckBox *timestampCheckBox;
QSpinBox *infoTextSizeSpinBox;
QSpinBox *timestampSizeSpinBox;
QComboBox *infoTextLocationComboBox;
QComboBox *timestampLocationComboBox;
QLabel *titleWidgetLabel;
QLabel *titleLabel;
QLabel *backgroundColorLabel;
QLabel *shadowColorLabel;
QLabel *loadingFontsLabel1;
QLabel *loadingFontsLabel2;
QStringList location;
private:
void retranslate();
protected:
void changeEvent(QEvent* event);
public slots:
void disabledInfoTextSection(int state);
void disabledTimeStampSection(int state);
void stackedWidgetsToComboBox();
public:
int getInfoTextLocation();
int getTimeStampLocation();
QString getTitleEdit();
QColor getColorBackground();
QColor getColorInfoText();
QColor getColorTimeStamp();
QColor getColorShadow();
QString getFontInfoText(int type);
QString getFontTimeStamp(int type);
double getSizeInfoText();
double getSizeTimeStamp();
FontMapComboBox *getInfoTextComboBox();
FontMapComboBox *getTimestampComboBox();
bool isInfoTextChecked();
bool isTimeStampChecked();
bool isNoFontDefined();
void setInfoTextLocation(int index);
void setTimeStampLocation(int index);
void setTitleEdit(QString title);
void setCheckedInfoText(bool check);
void setCheckedTimeStamp(bool check);
void setSizeInfoText(int size);
void setSizeTimeStamp(int size);
void setFontInfoText(QString font);
void setFontTimeStamp(QString font);
void setColorBackground(QColor color);
void setColorInfoText(QColor color);
void setColorTimeStamp(QColor color);
void setColorShadow(QColor color);
void setStackedWidgetToLoadingState();
};
#endif