VR-Forces 4.6.1 Class Documentation
 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::DtQtPageDialog 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. More...

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

Public Member Functions

 DtQtPageDialog (DtDe &de, const std::string &panelClassName, QWidget *parent=0)
 CTOR.
virtual ~DtQtPageDialog ()
 DTOR.
virtual void setStatus (const QString &status)
virtual void setIconsPerpendicularToTab (bool)
 If layout of tabs is in West or East mode, and, this flag is true, rotate icons to be perpendicular to the tab (90 degrees)
bool iconsPerpendicularToTab () const
virtual void resume ()
 /brief resume to the last page
virtual void hide ()
 /brief hide the dialog
- Public Member Functions inherited from makVrv::DtQtPageCollection
 DtQtPageCollection (DtDe &de, const std::string &collectionClassName)
 CTOR.
virtual ~DtQtPageCollection ()
 DTOR, this will delete all currently added pages.
void addPage (DtPage *page)
 Add a page to the collection, the collection will assume ownership of the pointer.
void removePage (DtPage *page, bool deletePage=true)
 Remove a page that was previously added.
DtPagefindPage (const std::string &pageClassName)
 Find a page. Returns 0 if the page wasn't added.
const DtPagefindPage (const std::string &pageClassName) const
 Find a page. Returns 0 if the page wasn't added.
const PageMappages () const
 Get the currently available pages.
virtual void removeContainer ()
 Removes the collection from the GUI (does not delete it)
virtual void bringToTop ()
 Brings the panel to the front (when it is tabbed)
- Public Member Functions inherited from makVrv::DtPageCollection
 DtPageCollection (DtDe &de, const std::string &collectionClassName)
 CTOR, this automatically registers the interface with the makVrv::DtPageCollectionManager instance.
virtual ~DtPageCollection ()
 DTOR, this automatically unregisters the interface with the makVrv::DtPageCollectionManager instance.
const std::string & collectionClassName () const
 Get the collection class name.
const PageClassListpageClasses () const
 Get a list of all the page classes contained in this collection.
void show (const std::string &page=std::string(""))
 Show the collection of pages.
bool visible () const
 Get whether the collection is currently visible.
virtual int tabIndex () const
 If this page collection has been tabified, returns the index inside the tab collection where this collection is.
virtual bool isTabbed () const
 Returns true if this collection has been tabified.
DtPageConfiguration::PageCollectionLocation location () const
 Get the current location of the collection.
void setLocation (DtPageConfiguration::PageCollectionLocation location)
 Set the current location of the collection.
DtPageConfiguration::PageCollectionGeometryfloatingGeometry ()
 Get the current geometry of the collection.
void setFloatingGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)
 //! Set the current floating geometry for the collection
void setFloatingGeometry (int px, int py, int width, int height)
 Set the current floating geometry for the collection.
virtual
DtPageConfiguration::PageCollectionGeometry 
dockedGeometry ()
 Get the current docked geometry of the collection.
void setDockedGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)
 Set the current docked geometry for the collection.
void setDockedGeometry (int px, int py, int width, int height)
 Set the current docked geometry for the collection.

Protected Slots

virtual void onVisibilityChanged (bool visible)
virtual void onCurrentChanged (int index)

Protected Member Functions

virtual void changeVisibility (bool newVisibility)
 Implementation of the visibility change of the widget.
virtual void changeLocation (DtPageConfiguration::PageCollectionLocation location)
 Implementation of changing the location of the collection.
virtual void changeFloatingGeometry (int px, int py, int width, int height)
 Implement changing the floating geometry of the collection.
virtual void changeFloatingGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)
 Implement changing the floating geometry of the collection.
virtual void changeDockedGeometry (int px, int py, int width, int height)
 Implement changing the docked geometry of the collection.
virtual void changeDockedGeometry (const DtPageConfiguration::PageCollectionGeometry &geometry)
 Implement changing the docked geometry of the collection.
virtual void addPageToGui (DtPage *)
 Implementation of adding the page to the GUI.
virtual void removePageFromGui (DtPage *)
 Implementation of removing a page from the GUI.
virtual void selectPageInGui (DtPage *page)
 Implementation of selecting a page in the GUI.
virtual void closeEvent (QCloseEvent *e)
 Override the close event.
virtual void reject ()
 Override the reject event.
void setupGui ()
 Creates the widgets.
void rotateIcon (int, int deg)
 Gets the icon at the specified position and rotates it by the specified amount and replaces.
virtual void keyPressEvent (QKeyEvent *e)
 Override base implementation to stop Escape & Enter closing the dialog.
- Protected Member Functions inherited from makVrv::DtQtPageCollection
virtual void activatePage (DtPage *)
virtual void deactivatePage (DtPage *)
virtual void selectPage (const std::string &pageClassName)
 Implements selecting a page by name.
- Protected Member Functions inherited from makVrv::DtPageCollection
void addPageClass (const std::string &pageClassName)
 Subclasses must call this when a page is added.
void removePageClass (const std::string &pageClassName)
 Subclasses must call this when a page is removed.

Protected Attributes

QVBoxLayout * myMainLayout
QTabWidgetmyTabs
QFrame * myHorizontalLine
QHBoxLayout * myBottomLayout
QLabelmyStatusLabel
QDialogButtonBox * myCloseButton
DtPagemyActivePage
bool myIconsPerpendicularToTab
int myLastPageIndex
- 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

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtQtPageDialog::~DtQtPageDialog ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtQtPageDialog::setStatus ( const QString &  status)
virtual
virtual void makVrv::DtQtPageDialog::setIconsPerpendicularToTab ( bool  )
virtual

If layout of tabs is in West or East mode, and, this flag is true, rotate icons to be perpendicular to the tab (90 degrees)

bool makVrv::DtQtPageDialog::iconsPerpendicularToTab ( ) const
virtual void makVrv::DtQtPageDialog::resume ( )
virtual

/brief resume to the last page

virtual void makVrv::DtQtPageDialog::hide ( )
virtual

/brief hide the dialog

Reimplemented from makVrv::DtPageCollection.

Reimplemented in makVrf::makVrfGuiObjectInformationQt::DtInformationDialog.

virtual void makVrv::DtQtPageDialog::onVisibilityChanged ( bool  visible)
protectedvirtualslot
virtual void makVrv::DtQtPageDialog::onCurrentChanged ( int  index)
protectedvirtualslot
virtual void makVrv::DtQtPageDialog::changeVisibility ( bool  newVisibility)
protectedvirtual

Implementation of the visibility change of the widget.

Implements makVrv::DtPageCollection.

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

Implementation of changing the location of the collection.

Implements makVrv::DtPageCollection.

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

Implement changing the floating geometry of the collection.

Implements makVrv::DtPageCollection.

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

Implement changing the floating geometry of the collection.

Implements makVrv::DtPageCollection.

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

Implement changing the docked geometry of the collection.

Implements makVrv::DtPageCollection.

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

Implement changing the docked geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrv::DtQtPageDialog::addPageToGui ( DtPage )
protectedvirtual

Implementation of adding the page to the GUI.

Implements makVrv::DtQtPageCollection.

Reimplemented in makVrf::makVrfGuiObjectInformationQt::DtInformationDialog.

virtual void makVrv::DtQtPageDialog::removePageFromGui ( DtPage )
protectedvirtual

Implementation of removing a page from the GUI.

Implements makVrv::DtQtPageCollection.

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

Implementation of selecting a page in the GUI.

Implements makVrv::DtQtPageCollection.

virtual void makVrv::DtQtPageDialog::closeEvent ( QCloseEvent *  e)
protectedvirtual

Override the close event.

Reimplemented in makVrf::makVrfGuiObjectInformationQt::DtInformationDialog.

virtual void makVrv::DtQtPageDialog::reject ( )
protectedvirtual

Override the reject event.

void makVrv::DtQtPageDialog::setupGui ( )
protected

Creates the widgets.

void makVrv::DtQtPageDialog::rotateIcon ( int  ,
int  deg 
)
protected

Gets the icon at the specified position and rotates it by the specified amount and replaces.

virtual void makVrv::DtQtPageDialog::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Override base implementation to stop Escape & Enter closing the dialog.

Member Data Documentation

QVBoxLayout* makVrv::DtQtPageDialog::myMainLayout
protected
QTabWidget* makVrv::DtQtPageDialog::myTabs
protected
QFrame* makVrv::DtQtPageDialog::myHorizontalLine
protected
QHBoxLayout* makVrv::DtQtPageDialog::myBottomLayout
protected
QLabel* makVrv::DtQtPageDialog::myStatusLabel
protected
QDialogButtonBox* makVrv::DtQtPageDialog::myCloseButton
protected
DtPage* makVrv::DtQtPageDialog::myActivePage
protected
bool makVrv::DtQtPageDialog::myIconsPerpendicularToTab
protected
int makVrv::DtQtPageDialog::myLastPageIndex
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)