source: src/UIElements/Qt4/QtMainWindow.hpp@ c41ce0

Candidate_v1.7.0 stable
Last change on this file since c41ce0 was c41ce0, checked in by Frederik Heber <frederik.heber@…>, 3 months ago

Adds qt_size and qt_position arguments to control Qt window size.

  • override is only temporary and is not stored in QSettings.
  • this allows using these parameters in scripts to take screenshots in a reliable manner but retain the actual window size for other usages.
  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[3027f8]1/*
[4cf323d]2 * QtMainWindow.hpp
[3027f8]3 *
4 * Created on: Jan 14, 2010
5 * Author: crueger
6 */
7
8#ifndef QTMAINWINDOW_HPP_
9#define QTMAINWINDOW_HPP_
10
[56f73b]11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
[3027f8]17#include "UIElements/MainWindow.hpp"
[cef1d7]18#include <QtGui/QMainWindow>
[3027f8]19
[ffb9ad]20#include <map>
[b2531f]21#include <set>
22
[b59da6]23#include "Menu/Qt4/QtMenu.hpp"
24
[15c8a9]25#include "types.hpp"
26
[0e6156]27class QtElementList;
[d20ded]28class QtFragmentList;
[48eab8]29class QtGeometryList;
[e0b5f0]30class QtHomologyList;
31class QtLogBox;
32class QtMoleculeList;
[301bc2]33class QtShapeController;
[2c97ad]34class QtTimeLine;
[fa27ed]35class StringView;
[04f017]36class GLWorldView;
[3c53fa]37class QtInfoBox;
[4cf323d]38class QtStatusBar;
[7641d4]39class QtToolBar;
[5125f6]40class QCloseEvent;
[c41ce0]41class QSize;
42class QPoint;
[fa27ed]43
[2f7988]44class QtObservedInstanceBoard;
[15c8a9]45
[4cf323d]46class QtMainWindow : public QMainWindow, public MainWindow
[3027f8]47{
48 Q_OBJECT
49
50public:
[4cf323d]51 QtMainWindow(QApplication *_theApp);
52 virtual ~QtMainWindow();
[3027f8]53
54 virtual void display();
55
[5125f6]56protected:
57 virtual void closeEvent(QCloseEvent *event);
58
[b2531f]59
[8f67e2]60private:
[fa27ed]61 // All kinds of QTStuff used in this window
[8f67e2]62 QApplication *theApp;
[0eb7bf3]63 QtMoleculeList *moleculeList;
[0e6156]64 QtElementList *elementList;
[48eab8]65 QtGeometryList *geometryList;
[1e1098]66 QtHomologyList *homologyList;
[d20ded]67 QtFragmentList *fragmentList;
[301bc2]68 QtShapeController *shapeController;
[0eb7bf3]69 GLWorldView *glWorldView;
[3c53fa]70 QtInfoBox *infoBox;
[4cf323d]71 QtStatusBar *statusBar;
[b59da6]72 QtMenu<QMenuBar> *MainMenu;
[7641d4]73 QtToolBar *toolbar;
[2c97ad]74 QtTimeLine *timeline;
[e0b5f0]75 QtLogBox *logBox;
[d21933]76 QtLogBox *errorlogBox;
[c41ce0]77 //!> Used to store old settings value for window size on exit when overridden from command line
78 QSize settingsSize;
79 //!> Used to store old settings value for window position on exit when overridden from command line
80 QPoint settingsPosition;
[fa27ed]81
[2f7988]82 QtObservedInstanceBoard *InstanceBoard;
[3027f8]83};
84
85#endif /* QTMAINWINDOW_HPP_ */
Note: See TracBrowser for help on using the repository browser.