]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/MainWindow.h
robomon controls map and trail visibility from the new View menu
[eurobot/public.git] / src / robomon / MainWindow.h
1 /*
2  * MainWindow.h                         07/10/31
3  *
4  * A top layer window. All tabs will be added to this main window.
5  *
6  * Copyright: (c) 2007 CTU Dragons
7  *            CTU FEE - Department of Control Engineering
8  * Authors: Martin Zidek, Michal Sojka, Tran Duy Khanh
9  * License: GNU GPL v.2
10  */
11
12 #ifndef MAIN_WINDOW_H
13 #define MAIN_WINDOW_H
14
15 #include <QMainWindow>
16 #include <QDialog>
17
18 class QAction;
19 class QMenu;
20 class QTabWidget;
21 class QToolButton;
22
23 class MainWindow : public QMainWindow
24 {
25         Q_OBJECT
26
27 public:
28         MainWindow();
29
30 protected:
31         void closeEvent(QCloseEvent *event);
32
33 private slots:
34         void help();
35         void about();
36         void addRobomonTuningTab();
37         void addRobomonAtlantisTab();
38         int closeCurrentTab();
39
40 private:
41         void createTabs();
42         void createActions();
43         void createMenus();
44         void createToolBars();
45         void createStatusBar();
46         void readSettings();
47         void writeSettings();
48         
49         QTabWidget *tabWidget;
50         QToolButton *closeToolButton;
51
52         /* menus and tool bars */
53         QMenu *fileMenu;
54         QMenu *toolsMenu;
55         QMenu *helpMenu;
56         QToolBar *fileToolBar;
57         QToolBar *toolsToolBar;
58
59         /* actions */
60         QAction *exitAct;
61         QAction *robomonTuningAct;
62         QAction *robomonAtlantisAct;
63         QAction *laserNavAct;
64         QAction *helpAct;
65         QAction *aboutAct;
66         QAction *resetTrails;
67         QAction *showTrails;
68         QAction *showMap;
69 };
70
71 #endif /* MAIN_WINDOW_H */