mainwindow.h
author jake
Wed, 27 Oct 2010 12:06:29 +0300
changeset 9 6967ff0a31f5
parent 6 ac3b45850c50
permissions -rw-r--r--
renderer updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b856a9924bbc initial contribution
jake
parents:
diff changeset
     1
#ifndef MAINWINDOW_H
b856a9924bbc initial contribution
jake
parents:
diff changeset
     2
#define MAINWINDOW_H
b856a9924bbc initial contribution
jake
parents:
diff changeset
     3
b856a9924bbc initial contribution
jake
parents:
diff changeset
     4
#include <QMainWindow>
b856a9924bbc initial contribution
jake
parents:
diff changeset
     5
b856a9924bbc initial contribution
jake
parents:
diff changeset
     6
class QTextStream;
b856a9924bbc initial contribution
jake
parents:
diff changeset
     7
class QCheckBox;
b856a9924bbc initial contribution
jake
parents:
diff changeset
     8
class QTimer;
b856a9924bbc initial contribution
jake
parents:
diff changeset
     9
b856a9924bbc initial contribution
jake
parents:
diff changeset
    10
namespace Ui {
b856a9924bbc initial contribution
jake
parents:
diff changeset
    11
    class MainWindow;
b856a9924bbc initial contribution
jake
parents:
diff changeset
    12
}
b856a9924bbc initial contribution
jake
parents:
diff changeset
    13
b856a9924bbc initial contribution
jake
parents:
diff changeset
    14
class MainWindow : public QMainWindow
b856a9924bbc initial contribution
jake
parents:
diff changeset
    15
{
b856a9924bbc initial contribution
jake
parents:
diff changeset
    16
    Q_OBJECT
b856a9924bbc initial contribution
jake
parents:
diff changeset
    17
b856a9924bbc initial contribution
jake
parents:
diff changeset
    18
public:
b856a9924bbc initial contribution
jake
parents:
diff changeset
    19
    explicit MainWindow(QWidget *parent = 0);
b856a9924bbc initial contribution
jake
parents:
diff changeset
    20
    ~MainWindow();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    21
b856a9924bbc initial contribution
jake
parents:
diff changeset
    22
    QString widgetName();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    23
    QString widgetUid();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    24
    QString widgetUidNoHex();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    25
    QString rendererName();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    26
    QString rendererUid();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    27
    void generateLicense( QTextStream& aStream );
b856a9924bbc initial contribution
jake
parents:
diff changeset
    28
    QCheckBox& rendererCheckBox();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    29
    QString widgetLayout();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    30
b856a9924bbc initial contribution
jake
parents:
diff changeset
    31
    void replaceData( QString sourceFile, QString destFile, bool noHexUid = 0 );
b856a9924bbc initial contribution
jake
parents:
diff changeset
    32
b856a9924bbc initial contribution
jake
parents:
diff changeset
    33
protected:
b856a9924bbc initial contribution
jake
parents:
diff changeset
    34
    void changeEvent(QEvent *e);
b856a9924bbc initial contribution
jake
parents:
diff changeset
    35
b856a9924bbc initial contribution
jake
parents:
diff changeset
    36
private:
b856a9924bbc initial contribution
jake
parents:
diff changeset
    37
    void generateMainBuildFile();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    38
    void showFeedsLayout();
6
ac3b45850c50 New release 0.1.c
jake
parents: 0
diff changeset
    39
    void showGraphicsGridLayout();
ac3b45850c50 New release 0.1.c
jake
parents: 0
diff changeset
    40
    void showGraphicsGridTextLayout();
ac3b45850c50 New release 0.1.c
jake
parents: 0
diff changeset
    41
    void showWidgeImageLayout();
ac3b45850c50 New release 0.1.c
jake
parents: 0
diff changeset
    42
    void showGraphicsCarouselLayout();
0
b856a9924bbc initial contribution
jake
parents:
diff changeset
    43
    void showTextLayout();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    44
    void showIconsTextLayout();
6
ac3b45850c50 New release 0.1.c
jake
parents: 0
diff changeset
    45
    void showGraphicsTextLayout();
ac3b45850c50 New release 0.1.c
jake
parents: 0
diff changeset
    46
    void showGraphicsIconTextLayout();
0
b856a9924bbc initial contribution
jake
parents:
diff changeset
    47
b856a9924bbc initial contribution
jake
parents:
diff changeset
    48
private:
b856a9924bbc initial contribution
jake
parents:
diff changeset
    49
    Ui::MainWindow *ui;
b856a9924bbc initial contribution
jake
parents:
diff changeset
    50
    int iLayoutIndex;
b856a9924bbc initial contribution
jake
parents:
diff changeset
    51
    int iLayoutCount;
b856a9924bbc initial contribution
jake
parents:
diff changeset
    52
    QTimer *iTimer;
b856a9924bbc initial contribution
jake
parents:
diff changeset
    53
b856a9924bbc initial contribution
jake
parents:
diff changeset
    54
private slots:
b856a9924bbc initial contribution
jake
parents:
diff changeset
    55
    void on_comboBox_currentIndexChanged(int index);
b856a9924bbc initial contribution
jake
parents:
diff changeset
    56
    void on_renderingCheckBox_stateChanged(int );
b856a9924bbc initial contribution
jake
parents:
diff changeset
    57
    void on_pushButton_clicked();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    58
    void updateLayout();
b856a9924bbc initial contribution
jake
parents:
diff changeset
    59
};
b856a9924bbc initial contribution
jake
parents:
diff changeset
    60
b856a9924bbc initial contribution
jake
parents:
diff changeset
    61
#endif // MAINWINDOW_H