VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtOverlayBar Class Reference

This class implements an overlay bar which will show overlay layers on a bar strip and scroll arrows if the strip is too long to display. More...

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

Public Member Functions

 DtOverlayBar (makVrv::DtDe &de, const std::string &name, makVrv::DtQtDeMainWindow *parent)
virtual ~DtOverlayBar ()
virtual void setIconSize (const QSize &)
 Sets the size of the icons in the toolbar. Will also change the geometry and font size.
- 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.
void hide ()
 Hide 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 (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 (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.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

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

Protected Slots

virtual void onShowHideLayer ()
virtual void onLockUnlockLayer ()
virtual void onHideAllButThis ()
virtual void onShowAllLayers ()
virtual void onHideAllLayers ()

Protected Member Functions

virtual void finalizeSetup ()
virtual void createRightClickMenu ()
virtual void sessionSettingsChanged (const DtVrfSessionSettingsRecord &)
virtual void changeVisibility (bool)
 Implement the visibility change of the widget.
virtual void changeLocation (makVrv::DtPageConfiguration::PageCollectionLocation)
 No-op. Cannot change location or geometry.
virtual void changeFloatingGeometry (int px, int py, int width, int height)
 Implement changing the floating geometry of the collection.
virtual void changeFloatingGeometry (makVrv::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 (makVrv::DtPageConfiguration::PageCollectionGeometry geometry)
 Implement changing the docked geometry of the collection.
virtual void selectPage (const std::string &pageClassName)
 Implement selecting a page by name.
virtual void addPageToGui (makVrv::DtPage *)
 Implement adding the page to the GUI.
virtual void removePageFromGui (makVrv::DtPage *)
 Implement removing a page from the GUI.
virtual void selectPageInGui (makVrv::DtPage *page)
 Implement selecting a page in the GUI.
virtual void slot_layerAdded (const std::string &)
virtual void slot_layerRemoved (const std::string &)
virtual void slot_layerRenamed (const std::string &, const std::string &)
virtual void slot_layerVisibilityChanged (const std::string &, bool)
virtual void updateStatus (const std::string &tab)
virtual void mousePressEvent (QMouseEvent *event)
virtual void paintEvent (QPaintEvent *)
- Protected Member Functions inherited from makVrv::DtQtPageCollection
virtual void activatePage (DtPage *)
virtual void deactivatePage (DtPage *)
- 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

makVrv::DtSignalConnectionManager myConnections
QSize myIconSize
QPixmap myHidden
QPixmap myVisible
QMenumyRightClickMenu
QActionmyShowHide
QActionmyLockUnlock
QActionmyHideAllButThis
QActionmyShowAll
QActionmyHideAll
int myRightClickMenuIndex
- 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

This class implements an overlay bar which will show overlay layers on a bar strip and scroll arrows if the strip is too long to display.

Constructor & Destructor Documentation

makVrf::DtOverlayBar::DtOverlayBar ( makVrv::DtDe de,
const std::string &  name,
makVrv::DtQtDeMainWindow parent 
)
virtual makVrf::DtOverlayBar::~DtOverlayBar ( )
virtual

Member Function Documentation

static DtOverlayBar* makVrf::DtOverlayBar::instance ( makVrv::DtDe )
static

Returns this instance.

virtual void makVrf::DtOverlayBar::setIconSize ( const QSize &  )
virtual

Sets the size of the icons in the toolbar. Will also change the geometry and font size.

virtual void makVrf::DtOverlayBar::finalizeSetup ( )
protectedvirtual
virtual void makVrf::DtOverlayBar::createRightClickMenu ( )
protectedvirtual
virtual void makVrf::DtOverlayBar::sessionSettingsChanged ( const DtVrfSessionSettingsRecord )
protectedvirtual
virtual void makVrf::DtOverlayBar::changeVisibility ( bool  newVisibility)
protectedvirtual

Implement the visibility change of the widget.

Implements makVrv::DtPageCollection.

virtual void makVrf::DtOverlayBar::changeLocation ( makVrv::DtPageConfiguration::PageCollectionLocation  )
inlineprotectedvirtual

No-op. Cannot change location or geometry.

Implement changing the location of the collection

Implements makVrv::DtPageCollection.

virtual void makVrf::DtOverlayBar::changeFloatingGeometry ( int  px,
int  py,
int  width,
int  height 
)
inlineprotectedvirtual

Implement changing the floating geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrf::DtOverlayBar::changeFloatingGeometry ( makVrv::DtPageConfiguration::PageCollectionGeometry  geometry)
inlineprotectedvirtual

Implement changing the floating geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrf::DtOverlayBar::changeDockedGeometry ( int  px,
int  py,
int  width,
int  height 
)
inlineprotectedvirtual

Implement changing the docked geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrf::DtOverlayBar::changeDockedGeometry ( makVrv::DtPageConfiguration::PageCollectionGeometry  geometry)
inlineprotectedvirtual

Implement changing the docked geometry of the collection.

Implements makVrv::DtPageCollection.

virtual void makVrf::DtOverlayBar::selectPage ( const std::string &  pageClassName)
inlineprotectedvirtual

Implement selecting a page by name.

Reimplemented from makVrv::DtQtPageCollection.

virtual void makVrf::DtOverlayBar::addPageToGui ( makVrv::DtPage )
inlineprotectedvirtual

Implement adding the page to the GUI.

Implements makVrv::DtQtPageCollection.

virtual void makVrf::DtOverlayBar::removePageFromGui ( makVrv::DtPage )
inlineprotectedvirtual

Implement removing a page from the GUI.

Implements makVrv::DtQtPageCollection.

virtual void makVrf::DtOverlayBar::selectPageInGui ( makVrv::DtPage page)
inlineprotectedvirtual

Implement selecting a page in the GUI.

Implements makVrv::DtQtPageCollection.

virtual void makVrf::DtOverlayBar::slot_layerAdded ( const std::string &  )
protectedvirtual
virtual void makVrf::DtOverlayBar::slot_layerRemoved ( const std::string &  )
protectedvirtual
virtual void makVrf::DtOverlayBar::slot_layerRenamed ( const std::string &  ,
const std::string &   
)
protectedvirtual
virtual void makVrf::DtOverlayBar::slot_layerVisibilityChanged ( const std::string &  ,
bool   
)
protectedvirtual
virtual void makVrf::DtOverlayBar::updateStatus ( const std::string &  tab)
protectedvirtual
virtual void makVrf::DtOverlayBar::mousePressEvent ( QMouseEvent *  event)
protectedvirtual
virtual void makVrf::DtOverlayBar::paintEvent ( QPaintEvent *  )
protectedvirtual
virtual void makVrf::DtOverlayBar::onShowHideLayer ( )
protectedvirtualslot
virtual void makVrf::DtOverlayBar::onLockUnlockLayer ( )
protectedvirtualslot
virtual void makVrf::DtOverlayBar::onHideAllButThis ( )
protectedvirtualslot
virtual void makVrf::DtOverlayBar::onShowAllLayers ( )
protectedvirtualslot
virtual void makVrf::DtOverlayBar::onHideAllLayers ( )
protectedvirtualslot

Member Data Documentation

makVrv::DtSignalConnectionManager makVrf::DtOverlayBar::myConnections
protected
QSize makVrf::DtOverlayBar::myIconSize
protected
QPixmap makVrf::DtOverlayBar::myHidden
protected
QPixmap makVrf::DtOverlayBar::myVisible
protected
QMenu* makVrf::DtOverlayBar::myRightClickMenu
protected
QAction* makVrf::DtOverlayBar::myShowHide
protected
QAction* makVrf::DtOverlayBar::myLockUnlock
protected
QAction* makVrf::DtOverlayBar::myHideAllButThis
protected
QAction* makVrf::DtOverlayBar::myShowAll
protected
QAction* makVrf::DtOverlayBar::myHideAll
protected
int makVrf::DtOverlayBar::myRightClickMenuIndex
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)