viewModeWidget Class Reference

List of all members.

Signals

void changeView (QString _mode, QStringList _toolboxWidgets, QStringList _toolbars)
 Changes the view mode to the currently configured one.
void saveMode (QString _name, bool _custom, QStringList _toolboxWidgets, QStringList _toolbars)
 saves the given mode
void removeMode (QString _name)
 This signal is emitted to remove a mode.

Public Member Functions

 viewModeWidget (const QVector< ViewMode * > &_modes, QWidget *parent=0)
 Constructor.
void show (QString _lastMode)
 overloaded show function

Private Slots

void slotModeChanged (QString _mode)
 Slot for updating removeButton when new mode is selected.
void slotModeClicked (QModelIndex _id)
 Slot for updating removeButton when new mode is selected.
void slotRemoveMode ()
 Button slot to remove the selected view mode.
void slotCopyMode ()
 Button slot to copy the selected view mode.
void slotAddMode ()
 Button slot to add a new empty mode.
void slotModeContextMenu (const QPoint &_pos)
 Context Menu View Modes.
void slotSetIcon ()
 Context menu slot to change the icon for a view mode.
void slotSetToolWidgets ()
 Update list views.
void slotUsedToolbarContextMenu (const QPoint &_pos)
 Context Menu Used Toolbars.
void slotAvailableToolbarContextMenu (const QPoint &_pos)
 Context Menu Available Toolbars.
void slotUsedToolboxContextMenu (const QPoint &_pos)
 Context Menu Used Toolboxes.
void slotAvailableToolboxContextMenu (const QPoint &_pos)
 Context Menu Available Toolboxes.
void slotRightArrowToolbar ()
 remove Toolbars from Mode
void slotLeftArrowToolbar ()
 add Toolbars to Mode
void slotRightArrowToolbox ()
 remove Toolboxes from Mode
void slotLeftArrowToolbox ()
 add Toolboxes to Mode
void slotMoveUp ()
 Move Toolbox up.
void slotMoveDown ()
 Move Toolbox down.
void slotChangeView ()
 Slot for changing the current view to currently configured one.
void slotSaveMode ()
 Save the current view mode configuration.

Private Attributes

const QVector< ViewMode * > & modes_

Detailed Description

Definition at line 55 of file viewModeWidget.hh.


Member Function Documentation

void viewModeWidget::slotAddMode (  )  [private, slot]

Button slot to add a new empty mode.

This slot creates an new empty view mode

Definition at line 186 of file viewModeWidget.cc.

References saveMode(), and show().

Referenced by viewModeWidget().

void viewModeWidget::slotAvailableToolbarContextMenu ( const QPoint &  _pos  )  [private, slot]

Context Menu Available Toolbars.

opens custom context menu in available toolbox-List

This slot shows the available toolbar Context Menu

Definition at line 348 of file viewModeWidget.cc.

References slotLeftArrowToolbar().

Referenced by viewModeWidget().

void viewModeWidget::slotAvailableToolboxContextMenu ( const QPoint &  _pos  )  [private, slot]

Context Menu Available Toolboxes.

opens custom context menu in available toolbox-List

This slot shows the available toolbox Context Menu

Definition at line 386 of file viewModeWidget.cc.

References slotLeftArrowToolbox().

Referenced by viewModeWidget().

void viewModeWidget::slotChangeView (  )  [private, slot]

Slot for changing the current view to currently configured one.

Slot for changing View and closing widget.

Definition at line 504 of file viewModeWidget.cc.

References changeView(), and slotSaveMode().

Referenced by viewModeWidget().

void viewModeWidget::slotCopyMode (  )  [private, slot]

Button slot to copy the selected view mode.

This slot copies the currently selected view mode

Definition at line 138 of file viewModeWidget.cc.

References saveMode(), and show().

Referenced by slotModeContextMenu(), and viewModeWidget().

void viewModeWidget::slotLeftArrowToolbar (  )  [private, slot]

add Toolbars to Mode

This slot adds the selected toolbars to the current view Mode

Definition at line 412 of file viewModeWidget.cc.

Referenced by slotAvailableToolbarContextMenu(), and viewModeWidget().

void viewModeWidget::slotLeftArrowToolbox (  )  [private, slot]

add Toolboxes to Mode

This slot adds the selected widgets to the current view Mode

Definition at line 432 of file viewModeWidget.cc.

Referenced by slotAvailableToolboxContextMenu(), and viewModeWidget().

void viewModeWidget::slotModeContextMenu ( const QPoint &  _pos  )  [private, slot]

Context Menu View Modes.

This slot shows the used toolbar Context Menu

Definition at line 223 of file viewModeWidget.cc.

References slotCopyMode(), slotRemoveMode(), and slotSetIcon().

Referenced by viewModeWidget().

void viewModeWidget::slotMoveDown (  )  [private, slot]

Move Toolbox down.

Move widget do in the list.

This slot moves the widget downward in the list of used modes

Definition at line 470 of file viewModeWidget.cc.

Referenced by slotUsedToolboxContextMenu(), and viewModeWidget().

void viewModeWidget::slotMoveUp (  )  [private, slot]

Move Toolbox up.

Move Widget up in the list.

This slot moves the widget upward in the list of used modes

Definition at line 442 of file viewModeWidget.cc.

Referenced by slotUsedToolboxContextMenu(), and viewModeWidget().

void viewModeWidget::slotRemoveMode (  )  [private, slot]

Button slot to remove the selected view mode.

This slot removes the currently selected view mode

Definition at line 132 of file viewModeWidget.cc.

References removeMode().

Referenced by slotModeContextMenu(), and viewModeWidget().

void viewModeWidget::slotRightArrowToolbar (  )  [private, slot]

remove Toolbars from Mode

This slot removes the selected toolbars from the current view Mode

Definition at line 404 of file viewModeWidget.cc.

Referenced by slotUsedToolbarContextMenu(), and viewModeWidget().

void viewModeWidget::slotRightArrowToolbox (  )  [private, slot]

remove Toolboxes from Mode

This slot removes the selected widgets from the current view Mode

Definition at line 424 of file viewModeWidget.cc.

Referenced by slotUsedToolboxContextMenu(), and viewModeWidget().

void viewModeWidget::slotSaveMode (  )  [private, slot]

Save the current view mode configuration.

Slot for saving current List of Widgets as custom mode.

Takes the given configuration and saves the mode

Definition at line 572 of file viewModeWidget.cc.

References saveMode(), and show().

Referenced by slotChangeView(), and viewModeWidget().

void viewModeWidget::slotSetIcon (  )  [private, slot]

Context menu slot to change the icon for a view mode.

This slot asks the user to change the icon of the given view mode

Definition at line 245 of file viewModeWidget.cc.

References show().

Referenced by slotModeContextMenu().

void viewModeWidget::slotSetToolWidgets (  )  [private, slot]

Update list views.

This slot updates all list views depending on the currently selected view mode

Definition at line 279 of file viewModeWidget.cc.

Referenced by viewModeWidget().

void viewModeWidget::slotUsedToolbarContextMenu ( const QPoint &  _pos  )  [private, slot]

Context Menu Used Toolbars.

opens custom context menu in used toolbox-List

This slot shows the used toolbar Context Menu

Definition at line 334 of file viewModeWidget.cc.

References slotRightArrowToolbar().

Referenced by viewModeWidget().

void viewModeWidget::slotUsedToolboxContextMenu ( const QPoint &  _pos  )  [private, slot]

Context Menu Used Toolboxes.

opens custom context menu in used toolbox-List

This slot shows the used toolbox Context Menu

Definition at line 366 of file viewModeWidget.cc.

References slotMoveDown(), slotMoveUp(), and slotRightArrowToolbox().

Referenced by viewModeWidget().


The documentation for this class was generated from the following files:

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .