mainwindow.h
author jake
Mon, 23 Aug 2010 14:05:40 +0300
changeset 4 63928ff6db8d
parent 0 b856a9924bbc
child 6 ac3b45850c50
permissions -rw-r--r--
Added the setting file, which enables the automatic launch of the publisher. Fixed the issues with the .pkg files.

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

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