Class for panel widgets to contain view and other widgets.
More...
#include <PanelFrame.h>
|
void | panelTypeChanged (const QString &panelTypeName) |
| Signal that is emitted when the type of the panel has changed.
|
|
void | duplicateRequested (PanelFrame *panelFrame) |
| Signal that is emitted when the given panel frame should be duplicated.
|
|
void | extractRequested (PanelFrame *panelFrame) |
| Signal that is emitted when the given panel should be extracted to a new window.
|
|
void | closeRequested (PanelFrame *panelFrame) |
| Signal that is emitted when the given panel should be closed.
|
|
void | viewPanelCreated (ViewPanel *viewPanel) |
| Signal that is emitted when a ViewPanel-derived widget has been created for the panel frame.
|
|
|
virtual void | focusInEvent (QFocusEvent *event) |
| Event handler that is called when the widget receives keyboard focus.
|
|
virtual void | resizeEvent (QResizeEvent *event) |
| Event handler that is called when the widget is resized.
|
|
|
void | setPanelType (Frapper::Panel::Type panelType) |
| Sets the panel type of the panel frame to the given value.
|
|
void | split (Qt::Orientation orientation) |
| Splits the panel frame according to the given orientation.
|
|
void | maximizeWidget (QWidget *widget) |
| Maximizes the given widget inside its parent widget.
|
|
void | minimizeWidget (QWidget *widget) |
| Minimizes the given widget inside its parent widget.
|
|
Class for panel widgets to contain view and other widgets.
When referencing the Panel class in this class the namespaceFrapper:: has to be used in order to differentiate betweenFrapper::Panel and QFrame::Shape::Panel.
Inheritance Diagram
Frapper::PanelFrame::PanelFrame |
( |
Frapper::Panel::Type |
panelType, |
|
|
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
flags = 0 , |
|
|
bool |
showToolBars = true |
|
) |
| |
Constructor of the PanelFrame class.
Constructors and Destructors.
- Parameters
-
panelType | The type of panel to create. |
parent | A widget the created instance will be child of. |
flags | Extra widget options. |
showToolBars | Flag to control whether to display tool bars in the panel frame. |
Constructor of the PanelFrame class.
- Parameters
-
panelType | The type of the panel to create. |
parent | A widget the created instance will be child of. |
flags | Extra widget options. |
showToolBars | Flag to control whether to display tool bars in the panel frame. |
Frapper::PanelFrame::~PanelFrame |
( |
| ) |
|
|
virtual |
Destructor of the PanelFrame class.
Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.
Panel * Frapper::PanelFrame::getPanel |
( |
| ) |
|
Returns the the panel.
Public Functions.
- Returns
- The panel.
Returns the the panel.
- Returns
- The panel.
Returns the type of the panel.
Returns the type of the panel frame.
- Returns
- The type of the panel.
-
The type of the panel frame.
void Frapper::PanelFrame::toggleToolBars |
( |
bool |
visible | ) |
|
Toggles the display of tool bars in the panel frame.
- Parameters
-
visible | Flag to control whether to display tool bars in the panel frame. |
void Frapper::PanelFrame::panelTypeChanged |
( |
const QString & |
panelTypeName | ) |
|
|
signal |
Signal that is emitted when the type of the panel has changed.
- Parameters
-
panelTypeName | The name of the new panel type. |
void Frapper::PanelFrame::duplicateRequested |
( |
PanelFrame * |
panelFrame | ) |
|
|
signal |
Signal that is emitted when the given panel frame should be duplicated.
- Parameters
-
panelFrame | The panel frame to duplicate. |
void Frapper::PanelFrame::extractRequested |
( |
PanelFrame * |
panelFrame | ) |
|
|
signal |
Signal that is emitted when the given panel should be extracted to a new window.
- Parameters
-
panelFrame | The panel frame to extract to a new window. |
void Frapper::PanelFrame::closeRequested |
( |
PanelFrame * |
panelFrame | ) |
|
|
signal |
Signal that is emitted when the given panel should be closed.
- Parameters
-
panelFrame | The panel frame to close. |
void Frapper::PanelFrame::viewPanelCreated |
( |
ViewPanel * |
viewPanel | ) |
|
|
signal |
Signal that is emitted when a ViewPanel-derived widget has been created for the panel frame.
- Parameters
-
viewPanel | The ViewPanel-derived widget that has been created for the panel frame. |
void Frapper::PanelFrame::focusInEvent |
( |
QFocusEvent * |
event | ) |
|
|
protectedvirtual |
Event handler that is called when the widget receives keyboard focus.
Protected Event Handlers.
- Parameters
-
event | The object containing details about the event. |
Event handler that is called when the widget receives keyboard focus.
- Parameters
-
event | The object containing details about the event. |
void Frapper::PanelFrame::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
Event handler that is called when the widget is resized.
- Parameters
-
event | The object containing details about the event. |
Sets the panel type of the panel frame to the given value.
Private Functions.
- Parameters
-
panelType | The new panel type for the panel frame. |
Sets the type of the panel frame to the given value.
- Parameters
-
panelType | The new type for the panel. |
void Frapper::PanelFrame::split |
( |
Qt::Orientation |
orientation | ) |
|
|
private |
Splits the panel frame according to the given orientation.
- Parameters
-
orientation | The orientation in which to split the panel frame. |
void Frapper::PanelFrame::maximizeWidget |
( |
QWidget * |
widget | ) |
|
|
private |
Maximizes the given widget inside its parent widget.
The widget can be a panel frame or a splitter widget.
- Parameters
-
widget | The widget to maximize. |
void Frapper::PanelFrame::minimizeWidget |
( |
QWidget * |
widget | ) |
|
|
private |
Minimizes the given widget inside its parent widget.
The widget can be a panel frame or a splitter widget.
- Parameters
-
widget | The widget to minimize. |
void Frapper::PanelFrame::on_ui_panelTypeComboBox_currentIndexChanged |
( |
int |
index | ) |
|
|
privateslot |
Fills the panel frame with a panel according to the given panel type index.
Private Slots.
- Parameters
-
index | The new panel type index. |
Fills the panel frame with a panel according to the given panel type index.
- Parameters
-
index | The new panel type index. |
void Frapper::PanelFrame::on_ui_splitHorizontallyAction_triggered |
( |
| ) |
|
|
privateslot |
Splits the panel frame horizontally.
Splits the panel horizontally.
Convenience function that calls split(Qt::Horizontal).
Convenience function that calls splitPanel(Qt::Horizontal).
void Frapper::PanelFrame::on_ui_splitVerticallyAction_triggered |
( |
| ) |
|
|
privateslot |
Splits the panel frame vertically.
Splits the panel vertically.
Convenience function that calls split(Qt::Vertical).
Convenience function that calls splitPanel(Qt::Vertical).
void Frapper::PanelFrame::on_ui_maximizeAction_triggered |
( |
| ) |
|
|
privateslot |
Maximizes the panel frame.
Maximizes the panel.
void Frapper::PanelFrame::on_ui_maximizeHorizontallyAction_triggered |
( |
| ) |
|
|
privateslot |
Maximizes the panel frame in its row.
Maximizes the panel in its row.
void Frapper::PanelFrame::on_ui_maximizeVerticallyAction_triggered |
( |
| ) |
|
|
privateslot |
Maximizes the panel frame in its column.
Maximizes the panel in its column.
void Frapper::PanelFrame::on_ui_minimizeAction_triggered |
( |
| ) |
|
|
privateslot |
Minimizes the panel frame.
void Frapper::PanelFrame::on_ui_duplicateAction_triggered |
( |
| ) |
|
|
privateslot |
Duplicates the panel frame by creating a new window.
Does not duplicate the panel itself, but notifies connected objects that the panel should be duplicated.
void Frapper::PanelFrame::on_ui_extractAction_triggered |
( |
| ) |
|
|
privateslot |
Extracts the panel frame to a new window.
Does not extract the panel frame itself, but notifies connected objects that the panel frame should be extracted.
void Frapper::PanelFrame::on_ui_closeAction_triggered |
( |
| ) |
|
|
privateslot |
Closes the panel frame.
Closes the panel.
Does not close the panel frame itself, but notifies connected objects that the panel frame should be closed.
Does not close the panel itself, but notifies connected objects that the panel should be closed.
QToolBar* Frapper::PanelFrame::m_mainToolBar |
|
private |
The panel frame's main tool bar.
QToolBar* Frapper::PanelFrame::m_panelToolBar |
|
private |
The panel frame's panel tool bar.
The panel that will be contained in the panel frame's main layout.
QLabel* Frapper::PanelFrame::m_label |
|
private |
The label that will becontained in the panel frame's main layout.
The documentation for this class was generated from the following files: