-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylesheetblockwidget.h
51 lines (39 loc) · 1.03 KB
/
stylesheetblockwidget.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
#ifndef STYLESHEETBLOCKWIDGET_H
#define STYLESHEETBLOCKWIDGET_H
#include <QWidget>
class CssBlock;
class QLineEdit;
namespace Ui {
class StyleSheetBlockWidget;
}
class StyleSheetBlockWidget : public QWidget
{
Q_OBJECT
public:
explicit StyleSheetBlockWidget(QWidget *parent = 0);
void setBlockName(const QString& name);
QString getBlockName() const;
~StyleSheetBlockWidget();
signals:
void styleSheetChanged(QWidget* self, const QString& styleSheet);
public slots:
void onUpdateStyleSheet();
private:
void getDataFromUi();
void notify();
void getFromUiBorderColor();
void getFromUiBorderStyle();
void getFromUiBorderWidth();
void getFromUiBorderRadius();
void getFromUiTextPadding();
void getFromUiTextAlign();
void getFromUiTextColor();
void getFromUiBgColor();
void getFromUiMinSize();
void getFromUiMaxSize();
void initHexLineEditor(QLineEdit *edit);
private:
Ui::StyleSheetBlockWidget *ui;
CssBlock* mCssBlock;
};
#endif // STYLESHEETBLOCKWIDGET_H