CEDRIC  Revision_backup-2009-02
EventMap/gui/MainWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 2008 Boris Iven, Max Hermann
4  *
5  * This file is part of the "CEDRIC Event Display" application.
6  *
7  *****************************************************************************/
8 
9 #ifndef MAINWINDOW_H
10 #define MAINWINDOW_H
11 
12 #include <QMainWindow>
13 
14 class QAction;
15 class QMenu;
16 class QTextEdit;
17 class QString;
18 class QSplitter;
19 class QGraphicsScene;
20 
21 class EventNavigator;
22 
23  // don't include in doxygen doc
25 class MainWindow: public QMainWindow
26 {
27  Q_OBJECT
28 
29 public:
30  MainWindow();
31 
32 public slots:
33  void printInfo( const QString& msg );
34 
35 protected:
36  void closeEvent( QCloseEvent* event );
37  void resizeEvent( QResizeEvent* event );
38  void moveEvent( QMoveEvent* event );
39 
40 private slots:
41  void openData();
42  void about();
43 
44 private:
45  void createActions();
46  void createMenus();
47  void createToolBars();
48  void createStatusBar();
49 
50  void readSettings();
51  void writeSettings();
52 
53  QString m_progName;
54 
55  QTextEdit* m_teInfo;
56 
57  QMenu* m_menuFile;
58  QMenu* m_menuNavi;
59  QMenu* m_menuHelp;
60 
61  QAction* m_actOpenData;
62  QAction* m_actOptions;
63  QAction* m_actCluster;
64  QAction* m_actQuit;
65  QAction* m_actAbout;
66 
67 
68 
69  EventNavigator* m_navi;
70 };
73 #endif // MAINWINDOW_H
void moveEvent(QMoveEvent *event)
Definition: EventDisplay/src/MainWindow.cpp:181
Definition: EventNavigator.h:30
MainWindow(QWidget *parent=0)
Definition: EventDisplay/src/MainWindow.cpp:53
void resizeEvent(QResizeEvent *event)
Definition: EventDisplay/src/MainWindow.cpp:176
MainWindow for QtOsgEventDisplay application.
Definition: EventDisplay/src/MainWindow.h:41