VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Attributes
DtUtilityBar Class Reference
Inheritance diagram for DtUtilityBar:
Inheritance graph
[legend]

Public Member Functions

 DtUtilityBar (QMainWindow *parent)
virtual ~DtUtilityBar ()
virtual void init ()
virtual QDockWidgetcreateToolBar (const QString &tab, const QString &toolBarName)
 Creates a new toolbar on the specified tab and returns it.
virtual QDockWidgetcreateToolBar (int iTab, const QString &toolBarName)
 Creates a tool bar using the tab at the specified index.
virtual QTextStream & write (QTextStream &ts)
 Archive current toolbar information.
virtual QTextStream & read (QTextStream &ts)
virtual DtToolBarArea createToolBarArea (const QString &tab)
virtual QWidgetcreateTabArea (const QString &tab)
virtual bool renameTabArea (const QString &label, const QString &newLabel)
virtual bool removeTabArea (const QString &label)
 Removes tab from utility bar and deletes the page and all tool bars on it.
QTabWidgettabWidget ()
virtual void removeToolBar (QDockWidget **bar, bool removePage=false)
 Removes the toolbar from the utility bar.

Static Public Member Functions

static DtUtilityBarcreate (QMainWindow *parent)

Protected Slots

virtual void toolBarDestroyed ()

Protected Attributes

QTabWidgetmyTabWidget
QMainWindowmyOwner
bool myShownOnce
QList< QDockWidget * > myToolBars
QHash< QString, DtToolBarAreamyToolBarAreas

Constructor & Destructor Documentation

DtUtilityBar::DtUtilityBar ( QMainWindow parent)
virtual DtUtilityBar::~DtUtilityBar ( )
virtual

Member Function Documentation

virtual void DtUtilityBar::init ( )
virtual
virtual QDockWidget* DtUtilityBar::createToolBar ( const QString &  tab,
const QString &  toolBarName 
)
virtual

Creates a new toolbar on the specified tab and returns it.

If tab does not exist, creates a new tab.

virtual QDockWidget* DtUtilityBar::createToolBar ( int  iTab,
const QString &  toolBarName 
)
virtual

Creates a tool bar using the tab at the specified index.

virtual QTextStream& DtUtilityBar::write ( QTextStream &  ts)
virtual

Archive current toolbar information.

virtual QTextStream& DtUtilityBar::read ( QTextStream &  ts)
virtual
virtual DtToolBarArea DtUtilityBar::createToolBarArea ( const QString &  tab)
virtual
virtual QWidget* DtUtilityBar::createTabArea ( const QString &  tab)
virtual
virtual bool DtUtilityBar::renameTabArea ( const QString &  label,
const QString &  newLabel 
)
virtual
virtual bool DtUtilityBar::removeTabArea ( const QString &  label)
virtual

Removes tab from utility bar and deletes the page and all tool bars on it.

Returns true if tab area was found

QTabWidget * DtUtilityBar::tabWidget ( )
inline

References myTabWidget.

virtual void DtUtilityBar::removeToolBar ( QDockWidget **  bar,
bool  removePage = false 
)
virtual

Removes the toolbar from the utility bar.

If removePage is true, removes the page if there are no more toolbars on that page. In either case, the toolbar is destroyed. The supplied address is set to NULL after the removal

static DtUtilityBar* DtUtilityBar::create ( QMainWindow parent)
static
virtual void DtUtilityBar::toolBarDestroyed ( )
protectedvirtualslot

Member Data Documentation

QTabWidget* DtUtilityBar::myTabWidget
protected

Referenced by tabWidget().

QMainWindow* DtUtilityBar::myOwner
protected
bool DtUtilityBar::myShownOnce
protected
QList<QDockWidget*> DtUtilityBar::myToolBars
protected
QHash<QString, DtToolBarArea> DtUtilityBar::myToolBarAreas
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)