]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/MainWindow.h
robodim: Hokuyo returned back to original position.
[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 class QLabel;
23
24 class MainWindow : public QMainWindow
25 {
26         Q_OBJECT
27
28 public:
29         MainWindow();
30
31 protected:
32         void closeEvent(QCloseEvent *event);
33
34 private slots:
35         void help();
36         void about();
37         void addRobomonTuningTab();
38         void addRobomonAtlantisTab();
39         int closeCurrentTab();
40         void showCoordinates(QPointF pos);
41
42 private:
43         void createTabs();
44         void createActions();
45         void createMenus();
46         void createStatusBar();
47         void readSettings();
48         void writeSettings();
49         
50         QTabWidget *tabWidget;
51         QToolButton *closeToolButton;
52
53         /* menus and tool bars */
54         QMenu *fileMenu;
55         QMenu *toolsMenu;
56         QMenu *helpMenu;
57
58         /* actions */
59         QAction *exitAct;
60         QAction *robomonTuningAct;
61         QAction *robomonAtlantisAct;
62         QAction *laserNavAct;
63         QAction *helpAct;
64         QAction *aboutAct;
65         QAction *resetTrails;
66         QAction *showTrails;
67         QAction *showMap;
68         QAction *showShapeDetect;
69         QAction *showRobotRef;
70         QAction *showRobotEst;
71         QAction *showRobotEstOdo;
72         QAction *showRobotEstIndepOdo;
73         QAction *useOpenGL;
74
75         QLabel *coordinates;
76 };
77
78 #endif /* MAIN_WINDOW_H */