0
|
1 |
#ifndef MAINWINDOW_H
|
|
2 |
#define MAINWINDOW_H
|
|
3 |
|
|
4 |
#include <QMainWindow>
|
|
5 |
|
|
6 |
class QTextStream;
|
|
7 |
class QCheckBox;
|
|
8 |
class QTimer;
|
|
9 |
|
|
10 |
namespace Ui {
|
|
11 |
class MainWindow;
|
|
12 |
}
|
|
13 |
|
|
14 |
class MainWindow : public QMainWindow
|
|
15 |
{
|
|
16 |
Q_OBJECT
|
|
17 |
|
|
18 |
public:
|
|
19 |
explicit MainWindow(QWidget *parent = 0);
|
|
20 |
~MainWindow();
|
|
21 |
|
|
22 |
QString widgetName();
|
|
23 |
QString widgetUid();
|
|
24 |
QString widgetUidNoHex();
|
|
25 |
QString rendererName();
|
|
26 |
QString rendererUid();
|
|
27 |
void generateLicense( QTextStream& aStream );
|
|
28 |
QCheckBox& rendererCheckBox();
|
|
29 |
QString widgetLayout();
|
|
30 |
|
|
31 |
void replaceData( QString sourceFile, QString destFile, bool noHexUid = 0 );
|
|
32 |
|
|
33 |
protected:
|
|
34 |
void changeEvent(QEvent *e);
|
|
35 |
|
|
36 |
private:
|
|
37 |
void generateMainBuildFile();
|
|
38 |
void showFeedsLayout();
|
6
|
39 |
void showGraphicsGridLayout();
|
|
40 |
void showGraphicsGridTextLayout();
|
|
41 |
void showWidgeImageLayout();
|
|
42 |
void showGraphicsCarouselLayout();
|
0
|
43 |
void showTextLayout();
|
|
44 |
void showIconsTextLayout();
|
6
|
45 |
void showGraphicsTextLayout();
|
|
46 |
void showGraphicsIconTextLayout();
|
0
|
47 |
|
|
48 |
private:
|
|
49 |
Ui::MainWindow *ui;
|
|
50 |
int iLayoutIndex;
|
|
51 |
int iLayoutCount;
|
|
52 |
QTimer *iTimer;
|
|
53 |
|
|
54 |
private slots:
|
|
55 |
void on_comboBox_currentIndexChanged(int index);
|
|
56 |
void on_renderingCheckBox_stateChanged(int );
|
|
57 |
void on_pushButton_clicked();
|
|
58 |
void updateLayout();
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif // MAINWINDOW_H
|