Changeset 149 in tspsg-svn for trunk/src/mainwindow.h


Ignore:
Timestamp:
Dec 20, 2010, 9:53:45 PM (13 years ago)
Author:
laleppa
Message:

Converted file formatting to have spaces instead of tabs. No code changes...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.h

    r142 r149  
    3737
    3838#ifdef Q_WS_WIN32
    39         // Forward declaration. A real one is in shobjidl.h
    40         struct ITaskbarList3;
     39    // Forward declaration. A real one is in shobjidl.h
     40    struct ITaskbarList3;
    4141#endif
    4242
     
    4949class MainWindow: public QMainWindow, Ui::MainWindow
    5050{
    51         Q_OBJECT
     51    Q_OBJECT
    5252
    5353public:
    54         MainWindow(QWidget *parent = 0);
    55         ~MainWindow();
     54    MainWindow(QWidget *parent = 0);
     55    ~MainWindow();
    5656
    5757private slots:
    5858// Actions
    59         void actionFileNewTriggered();
    60         void actionFileOpenTriggered();
    61         bool actionFileSaveTriggered();
    62         void actionFileSaveAsTaskTriggered();
    63         void actionFileSaveAsSolutionTriggered();
     59    void actionFileNewTriggered();
     60    void actionFileOpenTriggered();
     61    bool actionFileSaveTriggered();
     62    void actionFileSaveAsTaskTriggered();
     63    void actionFileSaveAsSolutionTriggered();
    6464#ifndef QT_NO_PRINTER
    65         void actionFilePrintPreviewTriggered();
    66         void actionFilePrintTriggered();
     65    void actionFilePrintPreviewTriggered();
     66    void actionFilePrintTriggered();
    6767#endif // QT_NO_PRINTER
    68         void actionSettingsPreferencesTriggered();
    69         void actionSettingsLanguageAutodetectTriggered(bool checked);
    70         void groupSettingsLanguageListTriggered(QAction *action);
    71         void actionSettingsStyleSystemTriggered(bool checked);
    72         void groupSettingsStyleListTriggered(QAction *action);
     68    void actionSettingsPreferencesTriggered();
     69    void actionSettingsLanguageAutodetectTriggered(bool checked);
     70    void groupSettingsLanguageListTriggered(QAction *action);
     71    void actionSettingsStyleSystemTriggered(bool checked);
     72    void groupSettingsStyleListTriggered(QAction *action);
    7373#ifndef HANDHELD
    74         void actionSettingsToolbarsConfigureTriggered();
     74    void actionSettingsToolbarsConfigureTriggered();
    7575#endif // HANDHELD
    76         void actionHelpOnlineSupportTriggered();
    77         void actionHelpReportBugTriggered();
    78         void actionHelpCheck4UpdatesTriggered();
    79         void actionHelpAboutTriggered();
     76    void actionHelpOnlineSupportTriggered();
     77    void actionHelpReportBugTriggered();
     78    void actionHelpCheck4UpdatesTriggered();
     79    void actionHelpAboutTriggered();
    8080// Buttons
    81         void buttonBackToTaskClicked();
    82         void buttonRandomClicked();
    83         void buttonSolveClicked();
     81    void buttonBackToTaskClicked();
     82    void buttonRandomClicked();
     83    void buttonSolveClicked();
    8484
    85         void dataChanged();
    86         void dataChanged(const QModelIndex &tl, const QModelIndex &br);
     85    void dataChanged();
     86    void dataChanged(const QModelIndex &tl, const QModelIndex &br);
    8787#ifdef Q_WS_WINCE_WM
    88         void changeEvent(QEvent *ev);
    89         void desktopResized(int screen);
     88    void changeEvent(QEvent *ev);
     89    void desktopResized(int screen);
    9090#endif // Q_WS_WINCE_WM
    91         void numCitiesChanged(int nCities);
     91    void numCitiesChanged(int nCities);
    9292#ifndef QT_NO_PRINTER
    93         void printPreview(QPrinter *printer);
     93    void printPreview(QPrinter *printer);
    9494#endif // QT_NO_PRINTER
    9595#ifdef Q_WS_WIN32
    96         void solverRoutePartFound(int n);
     96    void solverRoutePartFound(int n);
    9797#endif // Q_WS_WIN32
    98         void spinCitiesValueChanged(int nCities);
     98    void spinCitiesValueChanged(int nCities);
    9999
    100100private:
    101         QString fileName;
    102         QActionGroup *groupSettingsLanguageList;
    103         QActionGroup *groupSettingsStyleList;
     101    QString fileName;
     102    QActionGroup *groupSettingsLanguageList;
     103    QActionGroup *groupSettingsStyleList;
    104104#ifndef HANDHELD
    105         QAction *actionSettingsToolbarsConfigure;
    106         QtToolBarManager *toolBarManager;
     105    QAction *actionSettingsToolbarsConfigure;
     106    QtToolBarManager *toolBarManager;
    107107#endif // HANDHELD
    108108#ifndef QT_NO_PRINTER
    109         QPrinter *printer;
    110         QAction *actionFilePrintPreview;
    111         QAction *actionFilePrint;
     109    QPrinter *printer;
     110    QAction *actionFilePrintPreview;
     111    QAction *actionFilePrint;
    112112#endif // QT_NO_PRINTER
    113         QAction *actionHelpCheck4Updates;
    114         QSettings *settings;
    115         CTSPModel *tspmodel;
     113    QAction *actionHelpCheck4Updates;
     114    QSettings *settings;
     115    CTSPModel *tspmodel;
    116116#ifdef Q_WS_WINCE_WM
    117         QRect currentGeometry;
     117    QRect currentGeometry;
    118118#endif // Q_WS_WINCE_WM
    119119
    120120#ifdef Q_WS_WIN32
    121         ITaskbarList3 *tl;
     121    ITaskbarList3 *tl;
    122122#endif // Q_WS_WIN32
    123123
    124         // The solution graph SVG
    125         QPicture graph;
     124    // The solution graph SVG
     125    QPicture graph;
    126126
    127         // Formats
    128         QTextTableFormat fmt_table;
    129         QTextBlockFormat fmt_paragraph,
    130                 fmt_cell;
    131         QTextCharFormat fmt_default,
    132                 fmt_selected,
    133                 fmt_alternate,
    134                 fmt_altlist;
     127    // Formats
     128    QTextTableFormat fmt_table;
     129    QTextBlockFormat fmt_paragraph,
     130        fmt_cell;
     131    QTextCharFormat fmt_default,
     132        fmt_selected,
     133        fmt_alternate,
     134        fmt_altlist;
    135135
    136         void check4Updates(bool silent = false);
    137         void closeEvent(QCloseEvent *ev);
    138         void dragEnterEvent(QDragEnterEvent *ev);
    139         void drawNode(QPainter &pic, int nstep, bool left = false, SStep *step = NULL);
    140         void dropEvent(QDropEvent *ev);
    141         void initDocStyleSheet();
    142         void loadLangList();
    143         bool loadLanguage(const QString &lang = QString());
    144         void loadStyleList();
    145         void loadToolbarList();
    146         bool maybeSave();
    147         void outputMatrix(QTextCursor &cur, const TMatrix &matrix);
    148         void outputMatrix(QTextCursor &cur, const SStep &step);
    149         void retranslateUi(bool all = true);
    150         bool saveTask();
    151         void setFileName(const QString &fileName = tr("Untitled") + ".tspt");
    152         void setupUi();
    153         void toggleSolutionActions(bool enable = true);
    154         void toggleTranclucency(bool enable);
     136    void check4Updates(bool silent = false);
     137    void closeEvent(QCloseEvent *ev);
     138    void dragEnterEvent(QDragEnterEvent *ev);
     139    void drawNode(QPainter &pic, int nstep, bool left = false, SStep *step = NULL);
     140    void dropEvent(QDropEvent *ev);
     141    void initDocStyleSheet();
     142    void loadLangList();
     143    bool loadLanguage(const QString &lang = QString());
     144    void loadStyleList();
     145    void loadToolbarList();
     146    bool maybeSave();
     147    void outputMatrix(QTextCursor &cur, const TMatrix &matrix);
     148    void outputMatrix(QTextCursor &cur, const SStep &step);
     149    void retranslateUi(bool all = true);
     150    bool saveTask();
     151    void setFileName(const QString &fileName = tr("Untitled") + ".tspt");
     152    void setupUi();
     153    void toggleSolutionActions(bool enable = true);
     154    void toggleTranclucency(bool enable);
    155155};
    156156
Note: See TracChangeset for help on using the changeset viewer.