33 #include "ui_mainwindow.h"
46 class QtToolbarDialog;
47 class QtToolBarManager;
66 #ifdef Q_OS_BLACKBERRY
73 void actionFileNewTriggered();
74 void actionFileOpenTriggered();
75 bool actionFileSaveTriggered();
76 void actionFileSaveAsTaskTriggered();
77 void actionFileSaveAsSolutionTriggered();
78 #ifndef QT_NO_PRINTDIALOG
79 void actionFilePrintPreviewTriggered();
80 void actionFilePageSetupTriggered();
81 void actionFilePrintTriggered();
82 #endif // QT_NO_PRINTDIALOG
83 void actionSettingsPreferencesTriggered();
84 void actionSettingsLanguageAutodetectTriggered(
bool checked);
85 void groupSettingsLanguageListTriggered(
QAction *action);
86 void actionSettingsStyleSystemTriggered(
bool checked);
87 void groupSettingsStyleListTriggered(
QAction *action);
89 void actionSettingsToolbarsConfigureTriggered();
91 void actionHelpOnlineSupportTriggered();
92 void actionHelpReportBugTriggered();
93 void actionHelpCheck4UpdatesTriggered();
94 void actionHelpAboutTriggered();
96 void buttonBackToTaskClicked();
97 void buttonRandomClicked();
98 void buttonSolveClicked();
104 void desktopResized(
int screen);
105 #endif // Q_OS_WINCE_WM
106 void numCitiesChanged(
int nCities);
107 #ifndef QT_NO_PRINTER
108 void printPreview(
QPrinter *printer);
109 #endif // QT_NO_PRINTER
111 void solverRoutePartFound(
int n);
113 void spinCitiesValueChanged(
int nCities);
120 QAction *actionSettingsToolbarsConfigure;
121 QtToolBarManager *toolBarManager;
123 #ifndef QT_NO_PRINTER
125 #ifndef QT_NO_PRINTDIALOG
126 QAction *actionFilePrintPreview;
129 #endif // QT_NO_PRINTDIALOG
130 #endif // QT_NO_PRINTER
131 QAction *actionHelpCheck4Updates;
138 QRect currentGeometry;
139 #endif // Q_OS_WINCE_WM
158 void check4Updates(
bool silent =
false);
164 void initDocStyleSheet();
167 void loadStyleList();
168 void loadToolbarList();
174 #endif // Q_OS_SYMBIAN
175 void retranslateUi(
bool all =
true);
177 void setFileName(
const QString &fileName =
tr(
"Untitled") +
".tspt");
179 void toggleSolutionActions(
bool enable =
true);
180 void toggleTranclucency(
bool enable);
184 #include <QMessageBox>
192 QSMessageBox(
QWidget *parent = 0);
194 #endif // Q_OS_SYMBIAN
196 #endif // MAINWINDOW_H
QString tr(const char *sourceText, const char *disambiguation, int n)
Contains TSPSG global defines.
Defines TSPSolver namespace and everything needed for solving TSP tasks.
Exposes methods that control the taskbar.
Definition: shobjidl.h:75
This structure represents one step of solving.
Definition: tspsolver.h:63
MainWindow(QWidget *parent=0)
Class constructor.
Definition: mainwindow.cpp:136
Class for handling Main Window UI and logic.
Definition: mainwindow.h:58
This class implements table model for manipulating a task.
Definition: tspmodel.h:41