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


Ignore:
Timestamp:
Oct 24, 2009, 3:37:48 PM (15 years ago)
Author:
laleppa
Message:
  • Finished documentation.
  • Sorted all functions in .cpp files according to order of their declaration in .h files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.h

    r66 r67  
    11/*!
    2  * \class MainWindow
    3  * \brief Class for handling Main Window UI and logic.
     2 * \file mainwindow.h
    43 * \author Copyright &copy; 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
    54 *
    65 *  $Id$
    76 *  $URL$
     7 *
     8 * \brief Defines MainWindow class.
    89 *
    910 *  <b>TSPSG: TSP Solver and Generator</b>
     
    2829#define MAINWINDOW_H
    2930
    30 /*!
    31  * \file mainwindow.h
    32  * \brief Defines MainWindow class.
    33  */
    34 
    3531#include "globals.h"
    3632
     
    4137#include "tspmodel.h"
    4238
     39/*!
     40 * \brief Class for handling Main Window UI and logic.
     41 * \author Copyright &copy; 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
     42 */
    4343class MainWindow: public QMainWindow, Ui::MainWindow
    4444{
     
    5050
    5151private slots:
     52// Actions
    5253        void actionFileNewTriggered();
    5354        void actionFileOpenTriggered();
     
    5556        void actionFileSaveAsTaskTriggered();
    5657        void actionFileSaveAsSolutionTriggered();
     58#ifndef QT_NO_PRINTER
     59        void actionFilePrintPreviewTriggered();
     60        void actionFilePrintTriggered();
     61#endif // QT_NO_PRINTER
    5762        void actionSettingsPreferencesTriggered();
    5863        void actionSettingsLanguageAutodetectTriggered(bool);
    5964        void groupSettingsLanguageListTriggered(QAction *);
    6065        void actionHelpAboutTriggered();
     66// Buttons
     67        void buttonBackToTaskClicked();
     68        void buttonRandomClicked();
     69        void buttonSolveClicked();
     70
    6171        void dataChanged();
    6272        void dataChanged(const QModelIndex &, const QModelIndex &);
     73        void numCitiesChanged(int);
    6374#ifndef QT_NO_PRINTER
    6475        void printPreview(QPrinter *printer);
    65         void actionFilePrintPreviewTriggered();
    66         void actionFilePrintTriggered();
    6776#endif // QT_NO_PRINTER
    68         void buttonSolveClicked();
    69         void buttonRandomClicked();
    70         void buttonBackToTaskClicked();
    7177        void spinCitiesValueChanged(int);
    72         void numCitiesChanged(int);
    7378
    7479private:
    75         QSettings *settings;
     80        QString fileName;
     81        QActionGroup *groupSettingsLanguageList;
     82        QStringList output;
    7683#ifndef QT_NO_PRINTER
    7784        QPrinter *printer;
    7885#endif // QT_NO_PRINTER
     86        QSettings *settings;
    7987        CTSPModel *tspmodel;
    80         QString fileName;
    81         QActionGroup *groupSettingsLanguageList;
    82         QStringList output;
     88
    8389        void enableSolutionActions(bool enable = true);
    8490        void initDocStyleSheet();
     91        void loadLangList();
    8592        bool loadLanguage(QString lang = "");
    86         void loadLangList();
    8793        bool maybeSave();
    8894        void outputMatrix(tMatrix, QStringList &, int nRow = -1, int nCol = -1);
     95        bool saveTask();
    8996        void setFileName(QString fileName = trUtf8("Untitled") + ".tspt");
    90         bool saveTask();
    9197};
    9298
Note: See TracChangeset for help on using the changeset viewer.