VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtQtPagePanel Class Reference

The Qt Page Panel, is a generic docked widget that contains a number of DtPages that it displays individually using a Tabbed Widget.

Inheritance diagram for makVrv::DtQtPagePanel:
Inheritance graph
[legend]

Public Member Functions

 DtQtPagePanel (DtDe &de, const std::string &panelClassName, QWidget *parent=0)
 
virtual ~DtQtPagePanel ()
 
virtual int tabIndex () const
 
virtual
DtPageConfiguration::PageCollectionGeometry 
dockedGeometry ()
 
virtual void removeContainer ()
 
virtual void bringToTop ()
 
- Public Member Functions inherited from makVrv::DtQtPageCollection
 DtQtPageCollection (DtDe &de, const std::string &collectionClassName)
 
virtual ~DtQtPageCollection ()
 
void addPage (DtPage *page)
 
void removePage (DtPage *page, bool deletePage=true)
 
DtPagefindPage (const std::string &pageClassName)
 
const DtPagefindPage (const std::string &pageClassName) const
 
const PageMappages () const
 
- Public Member Functions inherited from makVrv::DtPageCollection
 DtPageCollection (DtDe &de, const std::string &collectionClassName)
 
virtual ~DtPageCollection ()
 
const std::string & collectionClassName () const
 
const PageClassListpageClasses () const
 
void show (const std::string &page=std::string(""))
 
void hide ()
 
bool visible () const
 
virtual bool isTabbed () const
 
DtPageConfiguration::PageCollectionLocation location () const
 
void setLocation (DtPageConfiguration::PageCollectionLocation location)
 
DtPageConfiguration::PageCollectionGeometryfloatingGeometry ()
 
void setFloatingGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)
 
void setFloatingGeometry (int px, int py, int width, int height)
 
void setDockedGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)
 
void setDockedGeometry (int px, int py, int width, int height)
 
- Public Member Functions inherited from makVrv::DtDockable
 DtDockable (DtDe &de, const std::string &className)
 
virtual ~DtDockable ()
 
const std::string & className () const
 
void dock (Qt::DockWidgetArea area)
 
virtual bool isDocked () const
 
virtual void setContainerVisible (bool visible)
 
virtual void setContainerMovable (bool moveable)
 
virtual void setContainerFloatable (bool floatable)
 
virtual void setContainerClosable (bool closeable)
 
virtual bool isContainerHidden () const
 
virtual bool isContainerMovable () const
 
virtual bool isContainerFloatable () const
 
virtual bool isContainerClosable () const
 
virtual void showContainer ()
 
virtual void hideContainer ()
 
virtual void floatContainer ()
 
virtual void unfloatContainer ()
 
virtual bool initiallyVisible () const
 
virtual Qt::DockWidgetArea initialDockWidgetLocation () const
 
virtual bool containerTabbed () const
 
virtual int containerTabIndex () const
 
virtual void getContainerTabbedGeometry (int &x, int &y, int &width, int &height) const
 
virtual QWidget * container ()
 
virtual void setDockWidgetItem (DtDockWidgetItem *item)
 
virtual DtDockWidgetItemdockWidgetItem () const
 
virtual void connectContainerToDockItem ()
 

Protected Slots

virtual void onVisibilityChanged (bool visible)
 
virtual void onCurrentChanged (int index)
 
virtual void onDockLocationChanged (Qt::DockWidgetArea)
 
virtual void onTopLevelChanged (bool)
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *ev)
 
virtual void setContainer (QWidget *cont)
 
virtual void changeVisibility (bool newVisibility)
 
virtual void changeLocation (DtPageConfiguration::PageCollectionLocation location)
 
virtual void changeFloatingGeometry (int px, int py, int width, int height)
 
virtual void changeFloatingGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)
 
virtual void changeDockedGeometry (int px, int py, int width, int height)
 
virtual void changeDockedGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)
 
virtual void addPageToGui (DtPage *page)
 
virtual void removePageFromGui (DtPage *page)
 
virtual void selectPageInGui (DtPage *page)
 
- Protected Member Functions inherited from makVrv::DtQtPageCollection
virtual void activatePage (DtPage *)
 
virtual void deactivatePage (DtPage *)
 
virtual void selectPage (const std::string &pageClassName)
 
- Protected Member Functions inherited from makVrv::DtPageCollection
void addPageClass (const std::string &pageClassName)
 
void removePageClass (const std::string &pageClassName)
 
- Protected Member Functions inherited from makVrv::DtDockable
QTabBartabBar () const
 

Protected Attributes

DtPagemyActivePage
 
QTabBarmyQTabBar
 
- Protected Attributes inherited from makVrv::DtQtPageCollection
PageMap myPages
 
- Protected Attributes inherited from makVrv::DtPageCollection
DtDemyDe
 
std::string myClassName
 
bool myVisibility
 
PageClassList myPageClasses
 
DtPageConfiguration::PageCollectionLocation myLocation
 
DtPageConfiguration::PageCollectionGeometry myFloatingGeometry
 
DtPageConfiguration::PageCollectionGeometry myDockedGeometry
 
- Protected Attributes inherited from makVrv::DtDockable
QWidget * myContainer
 
std::string myClassName
 
DtDemyDe
 
bool myIsFloatable
 
bool myIsClosable
 
bool myIsMovable
 
DtDockWidgetItemmyDockWidgetItem
 

Additional Inherited Members

- Public Types inherited from makVrv::DtQtPageCollection
typedef boost::unordered_map
< std::string, DtPage * > 
PageMap
 
- Public Types inherited from makVrv::DtPageCollection
typedef std::vector< std::string > PageClassList
 
- Public Attributes inherited from makVrv::DtPageCollection
boost::signalslib::signal< void()> signal_shown
 
boost::signalslib::signal< void()> signal_hidden
 
boost::signalslib::signal
< void(const std::string &)> 
signal_pageSelected
 

Constructor & Destructor Documentation

makVrv::DtQtPagePanel::DtQtPagePanel ( DtDe de,
const std::string &  panelClassName,
QWidget *  parent = 0 
)

CTOR.

virtual makVrv::DtQtPagePanel::~DtQtPagePanel ( )
virtual

DTOR.

Member Function Documentation

virtual int makVrv::DtQtPagePanel::tabIndex ( ) const
virtual

If this page collection has been tabified, returns the index inside the tab collection where this collection is. Returns -1 if it is not tabified.

Reimplemented from makVrv::DtPageCollection.

virtual DtPageConfiguration::PageCollectionGeometry makVrv::DtQtPagePanel::dockedGeometry ( )
virtual

Get the current docked geometry of the collection.

Reimplemented from makVrv::DtPageCollection.

virtual void makVrv::DtQtPagePanel::removeContainer ( )
virtual

Removes the panel from the UI.

Reimplemented from makVrv::DtDockable.

virtual void makVrv::DtQtPagePanel::bringToTop ( )
virtual

Brings the panel to the front (when it is tabbed)

Reimplemented from makVrv::DtDockable.

virtual void makVrv::DtQtPagePanel::onVisibilityChanged ( bool  visible)
protectedvirtualslot
virtual void makVrv::DtQtPagePanel::onCurrentChanged ( int  index)
protectedvirtualslot
virtual void makVrv::DtQtPagePanel::onDockLocationChanged ( Qt::DockWidgetArea  )
protectedvirtualslot
virtual void makVrv::DtQtPagePanel::onTopLevelChanged ( bool  )
protectedvirtualslot
virtual bool makVrv::DtQtPagePanel::eventFilter ( QObject obj,
QEvent ev 
)
protectedvirtual

Event filter to check for various actions that happen on the panel (move and resize)

virtual void makVrv::DtQtPagePanel::setContainer ( QWidget *  cont)
protectedvirtual

Override default container set, to allow for hooking up to the visibility signal.

Reimplemented from makVrv::DtDockable.

virtual void makVrv::DtQtPagePanel::changeVisibility ( bool  newVisibility)
protectedvirtual

Implementation of the visibility change of the widget.

Implements makVrv::DtPageCollection.

virtual void makVrv::DtQtPagePanel::changeLocation ( DtPageConfiguration::PageCollectionLocation  location)
protectedvirtual

Implementation of changing the location of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrv::DtQtPagePanel::changeFloatingGeometry ( int  px,
int  py,
int  width,
int  height 
)
protectedvirtual

Implement changing the floating geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrv::DtQtPagePanel::changeFloatingGeometry ( const DtPageConfiguration::PageCollectionGeometry geometry)
protectedvirtual

Implement changing the floating geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrv::DtQtPagePanel::changeDockedGeometry ( int  px,
int  py,
int  width,
int  height 
)
protectedvirtual

Implement changing the docked geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrv::DtQtPagePanel::changeDockedGeometry ( const DtPageConfiguration::PageCollectionGeometry geometry)
protectedvirtual

Implement changing the docked geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrv::DtQtPagePanel::addPageToGui ( DtPage page)
protectedvirtual

Implementation of adding the page to the GUI.

Implements makVrv::DtQtPageCollection.

virtual void makVrv::DtQtPagePanel::removePageFromGui ( DtPage page)
protectedvirtual

Implementation of removing a page from the GUI.

Implements makVrv::DtQtPageCollection.

virtual void makVrv::DtQtPagePanel::selectPageInGui ( DtPage page)
protectedvirtual

Implementation of selecting a page in the GUI.

Implements makVrv::DtQtPageCollection.

Member Data Documentation

DtPage* makVrv::DtQtPagePanel::myActivePage
protected
QTabBar* makVrv::DtQtPagePanel::myQTabBar
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)