2 Copyright (C) <2010> <Markus Scharnowski markus.scharnowski@gmail.com>
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <QMainWindow>
22 #include <QPushButton>
25 #include "fullscreenexitbutton.h"
26 #include "timekeeper.h"
29 class MainWindow : public QMainWindow
34 explicit MainWindow(QWidget *parent = 0);
38 void mainButtonRefresh();
39 void mainButtonRefreshTextOnly();
41 void resetProgramAndFullscreen();
43 void mainButtonTimeoutUpdate();
45 void toggleFullDate();
46 void toggleTimeDate();
49 void showFullScreenHandler();
50 void slotFullscreenExit();
51 void changeNumberOfLines(int number = 0);
52 void changeFontSize(int size = 0);
59 int toggleActionPause();
66 QAction *actionResetFs;
67 QAction *actionSimulated_click;
69 QAction *actionShow_full_list;
70 QAction *actionSave_full_list;
72 QAction *actionEnable_full_date;
73 QAction *actionEnable_time_and_date;
74 QAction *action_Fullscreen;
75 QAction *actionChangeNumberOfLines;
76 QAction *actionChangeFontSize;
77 QWidget *centralWidget;
78 QPushButton *mainButton;
80 QMenu *menuPush_It_Menu;
84 FullScreenExitButton *fsExitButton;
86 QString generateHistoryString();
87 QString getHeaderLine();
89 class timeKeeper overallTime;
91 char mainButtonStartText[BUFSIZ];
93 QString completeString;
95 int timerRefreshTimeMs;
97 int maximumNumberOfLines;
100 #endif // MAINWINDOW_H