BPS C++ API  2.24.4
bpsapplicationwindow.h
Go to the documentation of this file.
1 
4 #ifndef BPSAPPLICATIONWINDOW_H
5 #define BPSAPPLICATIONWINDOW_H
6 
7 #include "bpsgui_global.h"
8 #include <QMainWindow>
9 
71 {
72  Q_OBJECT
74 
75 public:
76 
82  BpsApplicationWindow(QWidget *aParent = nullptr, Qt::WindowFlags aFlags = 0);
83 
84  virtual ~BpsApplicationWindow();
85 
90  virtual void init();
91 
95  bool isResetLayoutEnabled() const;
96 
103  void enableResetLayout(bool aEnable);
104 
109 
116  void enableChangeIconText(bool aEnable);
117 
122 
129  void enableChangeIconSize(bool aEnable);
130 
138  bool restoreDockedState(bool aDockingEnabled, const QByteArray& aState, int aVersion = 0);
139 
141  virtual QMenu* createPopupMenu();
143 
144 signals:
145 
150  void windowModified(bool aModified);
151 
157 
158 public slots:
159 
164  void setWindowModified(bool aModified = true);
165 
166 };
167 
168 #endif // BPSAPPLICATIONWINDOW_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
Main application window for plugins of BPS Workplace.
Definition: bpsapplicationwindow.h:71
virtual void init()
Do initializations immediately before showing of the window.
bool isResetLayoutEnabled() const
void resetLayoutRequested()
This signal is emitted when a layout reset was requested through the popup menu.
bool isChangeIconSizeEnabled() const
void enableResetLayout(bool aEnable)
Enable or disable the reset layout option.
void enableChangeIconSize(bool aEnable)
Enable or disable the change icon size option.
BpsApplicationWindow(QWidget *aParent=nullptr, Qt::WindowFlags aFlags=0)
Constructor.
bool restoreDockedState(bool aDockingEnabled, const QByteArray &aState, int aVersion=0)
Replacement for restoreState(), where docking window features can be enabled.
bool isChangeIconTextEnabled() const
void setWindowModified(bool aModified=true)
Overloaded version of QMainWindow::setWindowModified, which sends out the signal modifiedChanged.
void windowModified(bool aModified)
Signal emitted whenever the window modification status changes.
void enableChangeIconText(bool aEnable)
Enable or disable the change icon text option.
virtual QMenu * createPopupMenu()
typedef WindowFlags