BALL  1.5.0
mainframe.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_APPLICATIONS_BALLVIEW_MAINFRAME_H
6 #define BALL_APPLICATIONS_BALLVIEW_MAINFRAME_H
7 
8 #ifndef BALL_VIEW_KERNEL_MAINCONTROL_H
10 #endif
11 
12 #ifndef BALL_VIEW_WIDGETS_SCENE_H
13 # include <BALL/VIEW/WIDGETS/scene.h>
14 #endif
15 
16 #include <QtWidgets/QWidget>
17 
18 namespace BALL
19 {
20  using namespace BALL::VIEW;
21 
22  class Mainframe
24  {
25  Q_OBJECT
26 
27  public:
28 
31 
32 
33  Mainframe(QWidget* parent = 0, const char* name = 0);
34 
36  virtual ~Mainframe();
37 
38  public Q_SLOTS:
39 
41  void show();
42 
44  bool eventFilter(QObject*, QEvent* e);
45 
47  void reset();
48 
49  // Help menu
50  void about();
51 
52  void checkMenus();
53 
54  protected:
55  void changeEvent(QEvent* evt);
56  void setupPluginHandlers_();
57 
60  QAction* qload_action_, *qsave_action_;
61  };
62 
63 } // namespace BALL
64 
65 #endif // BALL_APPLICATIONS_BALLVIEW_MAINFRAME_H
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition: embeddable.h:31
Definition: constants.h:13
QAction * qload_action_
Definition: mainframe.h:60
Scene * scene_
Definition: mainframe.h:58
QAction * save_project_action_
Definition: mainframe.h:59