#include <main_area.hh>
Inherits QMdiArea.
|
| MainArea (QWidget *parent=NULL) |
|
void | EnableTabbedMode (bool tabbed_mode=true) |
|
void | AddWidget (const QString &title, QWidget *widget) |
|
void | AddPersistentWidget (const QString &title, const QString &name, QWidget *widget, int width, int height, int x, int y) |
|
void | AddPersistentWidget (const QString &title, const QString &name, QWidget *widget, Qt::WindowStates window_state=Qt::WindowStates()) |
|
void | ShowSubWindow (QWidget *widget) |
|
void | HideSubWindow (QWidget *widget) |
|
main window area It is implemented as a MDI (multi document interface). This allows you to add custom widgets to it.
Definition at line 34 of file main_area.hh.
◆ MainArea()
◆ AddPersistentWidget() [1/2]
void AddPersistentWidget |
( |
const QString & |
title, |
|
|
const QString & |
name, |
|
|
QWidget * |
widget, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
add a widget whose geometry is preserved across application relaunches
For widgets that are volatile, use AddWidget()
If tabbed mode is enabled, the widget geometry is ignored.
- Parameters
-
title | string that is displayed in the gui |
name | is the unique name (within the scope of the main area) for the widget that is used to restore and save the widget geometry. |
widget | is the widget to be added to the main area. |
width | width of the widget inside the mdi |
height | height of the widget inside the mdi |
x | x position of the widget inside the mdi |
y | y position of the widget inside the mdi |
- See also
- AddWidget
◆ AddPersistentWidget() [2/2]
void AddPersistentWidget |
( |
const QString & |
title, |
|
|
const QString & |
name, |
|
|
QWidget * |
widget, |
|
|
Qt::WindowStates |
window_state = Qt::WindowStates() |
|
) |
| |
◆ AddWidget()
void AddWidget |
( |
const QString & |
title, |
|
|
QWidget * |
widget |
|
) |
| |
add volatile widget
- Parameters
-
title | string that is displayed in the gui |
widget | is the widget to be added to the main area. |
◆ EnableTabbedMode()
void EnableTabbedMode |
( |
bool |
tabbed_mode = true | ) |
|
switch between free window and tabbed window mode
◆ HideSubWindow()
void HideSubWindow |
( |
QWidget * |
widget | ) |
|
hides the given widget inside the main area This method can be used to hide a widget that has been added to this mdi area. This method should only be called if you are sure, that the widget has been added to the main area. Otherwise, there might be an unexpected behaviour!
- Parameters
-
widget | which you want to hide |
◆ ShowSubWindow()
void ShowSubWindow |
( |
QWidget * |
widget | ) |
|
display the given widget inside the main area This method can be used to make a widget visible that has been added to the mdi area. This method should only be called if you are sure, that the widget has been added to the main area. Otherwise, there might be an unexpected behaviour!
- Parameters
-
widget | which you want to make visible |
The documentation for this class was generated from the following file: