Changeset 394216e468 in tspsg for src/mainwindow.h


Ignore:
Timestamp:
Mar 22, 2010, 9:45:16 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
1babbd6ba3
Parents:
e2abfd326f
Message:
  • Fixed a bug when a solution couldn't be found for some tasks while the task had at least one solution (mostly, tasks with a lot of restrictions).
  • Fixed a bug when Save As dialog always appeared (even for non-Untitled files) when selecting Save in Unsaved Changes dialog.
  • Improved the solution algorithm.
  • Moved progress dialog from CTSPSolver to MainWindow?. CTSPSolver doesn't contain any GUI related code now.

+ Added routePartFound() signal to CTSPSolver which is emitted once every time a part of the route is found.
+ Added cancel() slot and wasCanceled() public function to CTSPSolver to be able to cancel a solution process and to know whether it was canceled.
+ Progress is now shown when generating a solution output.
+ Check for updates functionality (only in Windows version at this moment).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.h

    re2abfd326f r394216e468  
    5353        void actionFileNewTriggered();
    5454        void actionFileOpenTriggered();
    55         void actionFileSaveTriggered();
     55        bool actionFileSaveTriggered();
    5656        void actionFileSaveAsTaskTriggered();
    5757        void actionFileSaveAsSolutionTriggered();
     
    6363        void actionSettingsLanguageAutodetectTriggered(bool checked);
    6464        void groupSettingsLanguageListTriggered(QAction *action);
     65#ifdef Q_OS_WIN32
     66        void actionHelpCheck4UpdatesTriggered();
     67#endif // Q_OS_WIN32
    6568        void actionHelpAboutTriggered();
    6669// Buttons
     
    8487        QString fileName;
    8588        QActionGroup *groupSettingsLanguageList;
    86         QStringList output;
    8789#ifndef QT_NO_PRINTER
    8890        QPrinter *printer;
     
    9092        QAction *actionFilePrint;
    9193#endif // QT_NO_PRINTER
     94#ifdef Q_OS_WIN32
     95        QAction *actionHelpCheck4Updates;
     96#endif // Q_OS_WIN32
    9297        QSettings *settings;
    9398        CTSPModel *tspmodel;
     
    97102
    98103        void closeEvent(QCloseEvent *ev);
     104        bool hasUpdater() const;
    99105        void initDocStyleSheet();
    100106        void loadLangList();
    101107        bool loadLanguage(const QString &lang = QString());
    102108        bool maybeSave();
    103         void outputMatrix(const TMatrix &matrix, QStringList &output);
    104         void outputMatrix(const SStep &step, QStringList &output);
     109        QString outputMatrix(const TMatrix &matrix) const;
     110        QString outputMatrix(const SStep &step) const;
    105111        void retranslateUi(bool all = true);
    106112        bool saveTask();
Note: See TracChangeset for help on using the changeset viewer.