Frapper  1.0a
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
Frapper::PanelFrame Class Reference

Class for panel widgets to contain view and other widgets. More...

#include <PanelFrame.h>

Inheritance diagram for Frapper::PanelFrame:
Inheritance graph
[legend]
Collaboration diagram for Frapper::PanelFrame:
Collaboration graph
[legend]

Signals

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.
 

Public Member Functions

 PanelFrame (Frapper::Panel::Type panelType, QWidget *parent=0, Qt::WindowFlags flags=0, bool showToolBars=true)
 Constructor of the PanelFrame class.
 
virtual ~PanelFrame ()
 Destructor of the PanelFrame class.
 
Frapper::PanelgetPanel ()
 Returns the the panel.
 
Panel::Type getPanelType ()
 Returns the type of the panel.
 
void toggleToolBars (bool visible)
 Toggles the display of tool bars in the panel frame.
 

Protected Member Functions

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.
 

Private Slots

void on_ui_panelTypeComboBox_currentIndexChanged (int index)
 Fills the panel frame with a panel according to the given panel type index.
 
void on_ui_splitHorizontallyAction_triggered ()
 Splits the panel frame horizontally.
 
void on_ui_splitVerticallyAction_triggered ()
 Splits the panel frame vertically.
 
void on_ui_maximizeAction_triggered ()
 Maximizes the panel frame.
 
void on_ui_maximizeHorizontallyAction_triggered ()
 Maximizes the panel frame in its row.
 
void on_ui_maximizeVerticallyAction_triggered ()
 Maximizes the panel frame in its column.
 
void on_ui_minimizeAction_triggered ()
 Minimizes the panel frame.
 
void on_ui_duplicateAction_triggered ()
 Duplicates the panel frame by creating a new window.
 
void on_ui_extractAction_triggered ()
 Extracts the panel frame to a new window.
 
void on_ui_closeAction_triggered ()
 Closes the panel frame.
 

Private Member Functions

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.
 

Private Attributes

QToolBar * m_mainToolBar
 The panel frame's main tool bar.
 
QToolBar * m_panelToolBar
 The panel frame's panel tool bar.
 
Frapper::Panel::Type m_panelType
 The type of the panel.
 
Frapper::Panelm_panel
 The panel that will be contained in the panel frame's main layout.
 
QLabel * m_label
 The label that will becontained in the panel frame's main layout.
 

Detailed Description

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
dot_inline_dotgraph_17.png
[legend]

Constructor & Destructor Documentation

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
panelTypeThe type of panel to create.
parentA widget the created instance will be child of.
flagsExtra widget options.
showToolBarsFlag to control whether to display tool bars in the panel frame.

Constructor of the PanelFrame class.

Parameters
panelTypeThe type of the panel to create.
parentA widget the created instance will be child of.
flagsExtra widget options.
showToolBarsFlag 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.

Member Function Documentation

Panel * Frapper::PanelFrame::getPanel ( )

Returns the the panel.

Public Functions.

Returns
The panel.

Returns the the panel.

Returns
The panel.
Panel::Type Frapper::PanelFrame::getPanelType ( )

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
visibleFlag 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
panelTypeNameThe 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
panelFrameThe 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
panelFrameThe 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
panelFrameThe 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
viewPanelThe 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
eventThe object containing details about the event.

Event handler that is called when the widget receives keyboard focus.

Parameters
eventThe object containing details about the event.
void Frapper::PanelFrame::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Event handler that is called when the widget is resized.

Parameters
eventThe object containing details about the event.
void Frapper::PanelFrame::setPanelType ( Frapper::Panel::Type  panelType)
private

Sets the panel type of the panel frame to the given value.

Private Functions.

Parameters
panelTypeThe new panel type for the panel frame.

Sets the type of the panel frame to the given value.

Parameters
panelTypeThe new type for the panel.
void Frapper::PanelFrame::split ( Qt::Orientation  orientation)
private

Splits the panel frame according to the given orientation.

Parameters
orientationThe 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
widgetThe 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
widgetThe 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
indexThe new panel type index.

Fills the panel frame with a panel according to the given panel type index.

Parameters
indexThe 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.

Member Data Documentation

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.

Frapper::Panel::Type Frapper::PanelFrame::m_panelType
private

The type of the panel.

Frapper::Panel* Frapper::PanelFrame::m_panel
private

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: