VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtAutoHidePanel Class Reference

This class implements the panel where auto hide dialogs are placed when they are hidden. More...

Inheritance diagram for makVrf::DtAutoHidePanel:
Inheritance graph
[legend]

List of all members.

Public Types

enum  DtAppearanceOptions { Hidden = 0, Pinned, Docked, Floating }
typedef std::list
< DtAutoHidePanelItem * > 
DtAutoHidePanelItemList
typedef std::list
< DtAutoHidePanelItem * >
::iterator 
DtAutoHidePanelItemListIterator
typedef std::list
< DtAutoHideDock * > 
DtAutoHideDockList
typedef std::list
< DtAutoHideDock * >::iterator 
DtAutoHideDockListIterator
typedef std::map< std::string,
DtAppearanceOptions
DtAppearanceList
typedef std::map< std::string,
DtAppearanceOptions >
::iterator 
DtAppearanceListIterator

Public Member Functions

 DtAutoHidePanel (makVrv::DtDe &de, makVrv::DtQtDeMainWindow *parent)
 ~DtAutoHidePanel ()
virtual void addItem (DtAutoHideDock *dock, bool forceVisible=false)
 Registers the dock to be managed by the panel.
virtual void clear ()
 Removes all the items from the panel.
virtual DtAutoHidePanelItemfindItemForDock (const DtAutoHideDock *dock)
virtual void hideAllDocks ()
 Hides all the dialogs on display for any of the items, as long as the item is not marked as pinned.
virtual int itemCount ()
 Returns the total of items currently in the panel.
virtual void placeItems ()
 Displays all the items of the panel.
virtual void removeItem (DtAutoHidePanelItem *item)
 Removes the given item from the panel.
virtual void showDockForItem (DtAutoHidePanelItem *item, bool animate=true)
 Shows the dock associated with the given item.
virtual void hideDockForItem (DtAutoHidePanelItem *item, bool animate=true)
 Hides the dock associated with the item only if the item is not pinned.
virtual DtEntityCreatePaletteentityCreatePalette ()
 Return the entity create palette.
virtual DtPropCreatePalettepropCreatePalette ()
 Return the prop create palette.

Static Public Member Functions

static DtAutoHidePanelinstance (makVrv::DtDe &)
 Returns this instance.

Protected Slots

virtual void slot_onItemToggled (DtAutoHidePanelItem *)
 This slot is executed when the mouse is pressed over any item of the panel.
virtual void slot_onItemClicked (DtAutoHidePanelItem *)
 This slot is executed when the mouse is pressed over any item of the panel.
virtual void slot_dockClosed (DtAutoHideDock *dockWidget)
virtual void slot_dockEntered (DtAutoHideDock *dockWidget)
virtual void slot_dockLeft (DtAutoHideDock *dockWidget)
virtual void slot_dockResized (DtAutoHideDock *dockWidget)
virtual void slot_dockDestroyed (DtAutoHideDock *dockWidget)
virtual void slot_showDockOfCurrentItem (bool lockIt=false)
virtual void slot_closeTimerTimeout ()
virtual void slot_onItemAvailabilityChanged (DtAutoHidePanelItem *dockWidget)
virtual void slot_observerModeSettingChanged (makVrv::DtObserverObject *, int setting, bool value)
virtual void placeCompass ()
virtual void finalizeSetup ()

Protected Member Functions

virtual void setupGui ()
 Initializes the GUI for the panel.
virtual bool eventFilter (QObject *p, QEvent *e)
virtual void installEventFilters ()
virtual int maxItemWidth ()
virtual int findDock (const DtAutoHideDock *dock)
virtual void removeDock (DtAutoHideDock *dock)
virtual void relocateAnyPinnedDock ()
virtual void refreshItems (int minsize)
virtual void refreshAppearanceOfItem (DtAutoHidePanelItem *autoHideItemWidget, bool forceVisible)

Protected Attributes

makVrv::DtDemyDe
QMainWindowmyMainWindow
QWidgetmyCentralWidget
DtAutoHidePanelItemList myItems
DtAutoHideDockList myDocks
 List with all the items currently on display.
DtAppearanceList myItemsAppearance
 List with all the docks registered with this panel.
DtWidgetAnimatormyWidgetAnimator
 Keeps track of the last appearance of the items (hidden, pinned, docked, floating)
DtAutoHidePanelItemmyCurrentItem
 Animates the display of a dock.
QTimer myTimer
 Current item to be shown.
QTimer myCloseTimer
 Controls the 1 second delay before showing a dock.
makVrv::DtSignalConnectionManager myConnections
 Controls the 1 second delay before hiding a dock.

Detailed Description

This class implements the panel where auto hide dialogs are placed when they are hidden.

This panel is located on the right side of the app.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
Hidden 
Pinned 
Docked 
Floating 

Constructor & Destructor Documentation


Member Function Documentation

virtual void makVrf::DtAutoHidePanel::addItem ( DtAutoHideDock dock,
bool  forceVisible = false 
) [virtual]

Registers the dock to be managed by the panel.

When added the dock is hidden by default. Use the forceVisible flag to tell the panel to force the panel to be shown after adding it.

virtual void makVrf::DtAutoHidePanel::clear ( ) [virtual]

Removes all the items from the panel.

virtual void makVrf::DtAutoHidePanel::hideAllDocks ( ) [virtual]

Hides all the dialogs on display for any of the items, as long as the item is not marked as pinned.

virtual int makVrf::DtAutoHidePanel::itemCount ( ) [virtual]

Returns the total of items currently in the panel.

virtual void makVrf::DtAutoHidePanel::placeItems ( ) [virtual]

Displays all the items of the panel.

virtual void makVrf::DtAutoHidePanel::removeItem ( DtAutoHidePanelItem item) [virtual]

Removes the given item from the panel.

virtual void makVrf::DtAutoHidePanel::showDockForItem ( DtAutoHidePanelItem item,
bool  animate = true 
) [virtual]

Shows the dock associated with the given item.

virtual void makVrf::DtAutoHidePanel::hideDockForItem ( DtAutoHidePanelItem item,
bool  animate = true 
) [virtual]

Hides the dock associated with the item only if the item is not pinned.

Returns this instance.

Return the entity create palette.

Return the prop create palette.

virtual void makVrf::DtAutoHidePanel::setupGui ( ) [protected, virtual]

Initializes the GUI for the panel.

virtual bool makVrf::DtAutoHidePanel::eventFilter ( QObject p,
QEvent *  e 
) [protected, virtual]
virtual void makVrf::DtAutoHidePanel::installEventFilters ( ) [protected, virtual]
virtual int makVrf::DtAutoHidePanel::maxItemWidth ( ) [protected, virtual]
virtual int makVrf::DtAutoHidePanel::findDock ( const DtAutoHideDock dock) [protected, virtual]
virtual void makVrf::DtAutoHidePanel::removeDock ( DtAutoHideDock dock) [protected, virtual]
virtual void makVrf::DtAutoHidePanel::relocateAnyPinnedDock ( ) [protected, virtual]
virtual void makVrf::DtAutoHidePanel::refreshItems ( int  minsize) [protected, virtual]
virtual void makVrf::DtAutoHidePanel::refreshAppearanceOfItem ( DtAutoHidePanelItem autoHideItemWidget,
bool  forceVisible 
) [protected, virtual]
virtual void makVrf::DtAutoHidePanel::slot_onItemToggled ( DtAutoHidePanelItem ) [protected, virtual, slot]

This slot is executed when the mouse is pressed over any item of the panel.

virtual void makVrf::DtAutoHidePanel::slot_onItemClicked ( DtAutoHidePanelItem ) [protected, virtual, slot]

This slot is executed when the mouse is pressed over any item of the panel.

virtual void makVrf::DtAutoHidePanel::slot_dockClosed ( DtAutoHideDock dockWidget) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::slot_dockEntered ( DtAutoHideDock dockWidget) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::slot_dockLeft ( DtAutoHideDock dockWidget) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::slot_dockResized ( DtAutoHideDock dockWidget) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::slot_dockDestroyed ( DtAutoHideDock dockWidget) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::slot_showDockOfCurrentItem ( bool  lockIt = false) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::slot_closeTimerTimeout ( ) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::slot_onItemAvailabilityChanged ( DtAutoHidePanelItem dockWidget) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::slot_observerModeSettingChanged ( makVrv::DtObserverObject ,
int  setting,
bool  value 
) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::placeCompass ( ) [protected, virtual, slot]
virtual void makVrf::DtAutoHidePanel::finalizeSetup ( ) [protected, virtual, slot]

Member Data Documentation

List with all the items currently on display.

List with all the docks registered with this panel.

Keeps track of the last appearance of the items (hidden, pinned, docked, floating)

Animates the display of a dock.

Current item to be shown.

Controls the 1 second delay before showing a dock.

Controls the 1 second delay before hiding a dock.


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)