diff -r 000000000000 -r b856a9924bbc mainwindow.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mainwindow.h Wed Jun 02 13:22:05 2010 +0300 @@ -0,0 +1,56 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +class QTextStream; +class QCheckBox; +class QTimer; + +namespace Ui { + class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + + QString widgetName(); + QString widgetUid(); + QString widgetUidNoHex(); + QString rendererName(); + QString rendererUid(); + void generateLicense( QTextStream& aStream ); + QCheckBox& rendererCheckBox(); + QString widgetLayout(); + + void replaceData( QString sourceFile, QString destFile, bool noHexUid = 0 ); + +protected: + void changeEvent(QEvent *e); + +private: + void generateMainBuildFile(); + void showFeedsLayout(); + void showTextLayout(); + void showIconsTextLayout(); + void showGraphicTextLayout(); + +private: + Ui::MainWindow *ui; + int iLayoutIndex; + int iLayoutCount; + QTimer *iTimer; + +private slots: + void on_comboBox_currentIndexChanged(int index); + void on_renderingCheckBox_stateChanged(int ); + void on_pushButton_clicked(); + void updateLayout(); +}; + +#endif // MAINWINDOW_H