VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtGdbSurfacesPage Class Reference

A dialog page for controlling the GDB surfaces. More...

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

Public Slots

virtual void onItemChanged (QListWidgetItem *item)
 Qt slot called when an item is changed.
virtual void onTogglePushed ()
 Qt slot called when the toggle button is pushed.

Public Member Functions

 DtGdbSurfacesPage (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget)
 CTOR.
virtual ~DtGdbSurfacesPage ()
 Virtual DTOR.
virtual QIcon icon ()
 Get the icon of the page.
virtual QString title ()
 Get the title of the page.
virtual const std::string & pageClassName () const
 Get the class name of the page.
virtual void setSurfaceState (DtTerrainPatch::GdbSurface surfaceId, bool state)
 Set the surface state checkbox.
virtual void addGdbSurface (DtTerrainPatch::GdbSurface surfaceId, bool state)
 Add a surface state checkbox to the gui.
virtual void onCurrentInstanceChanged (QString def)
 Called the current instance changes.
- Public Member Functions inherited from makVrv::DtTerrainPatchDialogPage
 DtTerrainPatchDialogPage (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget)
 CTOR.
virtual ~DtTerrainPatchDialogPage ()
 DTOR.
virtual void onNewInstanceRequested ()
virtual void onDeleteInstanceRequested ()
- Public Member Functions inherited from makVrv::DtSelectedInstanceDialogPage
 DtSelectedInstanceDialogPage (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget)
 CTOR.
virtual ~DtSelectedInstanceDialogPage ()
 DTOR.
virtual void addInstance (const std::string &)
 Add an instance.
virtual void removeInstance (const std::string &)
 Remove an instance.
virtual QString currentInstance ()
- Public Member Functions inherited from makVrv::DtPage
 DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR for page.
virtual ~DtPage ()
 DTOR for page.
virtual PageAction pageAction ()
 return the current action on the page
virtual void setPageAction (PageAction action)
 set the curret action on the page
virtual void setActionFlag (int flag)
 set the action flag of the page
virtual int actionFlag ()
 return the action flag of the page
virtual void setParentDialog (QWidget *paraentDialog)
 set the parent dialog that owns this page
virtual QWidget * parentDialog ()
 return the parent dialog that own this page
virtual bool shouldAskBeforeAction (PageAction action)
 test the action flag with the action, return true if we should ask before executing the action /param action the current page action
virtual void askBeforeAction ()
 Called when the action flag is set and before the action is beind executed, default do nothing.
virtual void executeAfterAsk (bool revert)
 Called after askBeforeAction(), whether user wants to revert the action or resume the action /param revert if true, the user wants to revert the action, otherwise resume it.
virtual void resumeLastAction ()
 resume the last action of the page
virtual void onCloseEvent ()
 will be called when user hit the close button of this page, default do nothing.
virtual void onSwitchEvent ()
 will be called when user try switch to another page, default do nothing.
- Public Member Functions inherited from makVrv::DtGdbSurfacesInterface
virtual ~DtGdbSurfacesInterface ()
 Destructor.

Static Public Member Functions

static const std::string & thePageClassName ()
 Get the class name of the class.

Protected Types

typedef std::map
< DtTerrainPatch::GdbSurface,
QListWidgetItem * > 
SurfaceItemMap
typedef std::map
< DtTerrainPatch::GdbSurface,
QString > 
SurfaceNameMap

Protected Member Functions

void setupGui ()
 Sets up the widget's fields.
virtual void activate ()
 Activate the contents of the page.
virtual void deactivate ()
 Disable the contents of the page.
void updateWidget ()
- Protected Member Functions inherited from makVrv::DtTerrainPatchDialogPage
virtual void addTerrain (const DtTerrainPatch &terrainPatch)
virtual void removeTerrain (const DtTerrainPatch &terrainPatch)

Protected Attributes

bool addingItem
 Set to true during list item creation to prevent item changed calls from going to the logic.
DtGdbSurfacesLogicmyLogic
SurfaceItemMap myItemMap
SurfaceNameMap mySurfaceNames
DtPersistenceToolbarWidgetmyTitle
QListWidget * myList
QPushButtontoggleButton
QVBoxLayout * myMainLayout
QVBoxLayout * myGroupLayout

Additional Inherited Members

- Public Types inherited from makVrv::DtPage
enum  PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 }
- Public Attributes inherited from makVrv::DtGdbSurfacesInterface
boost::signal< void(DtTerrainPatch::GdbSurface
id, bool isOn)> 
signal_surfaceChanged
 Boost signal emitted when a surface is turned on or off in the gui.
- Protected Slots inherited from makVrv::DtSelectedInstanceDialogPage
virtual void onCurrentInstanceChanged (int)
virtual void onRenameInstanceRequested ()

Detailed Description

A dialog page for controlling the GDB surfaces.

Member Typedef Documentation

typedef std::map<DtTerrainPatch::GdbSurface, QListWidgetItem*> makVrv::DtGdbSurfacesPage::SurfaceItemMap
protected

Constructor & Destructor Documentation

makVrv::DtGdbSurfacesPage::DtGdbSurfacesPage ( DtDe de,
QWidget *  parent,
Qt::WindowFlags  f = Qt::Widget 
)

CTOR.

virtual makVrv::DtGdbSurfacesPage::~DtGdbSurfacesPage ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual QIcon makVrv::DtGdbSurfacesPage::icon ( )
virtual

Get the icon of the page.

Implements makVrv::DtPage.

virtual QString makVrv::DtGdbSurfacesPage::title ( )
virtual

Get the title of the page.

Implements makVrv::DtPage.

virtual const std::string& makVrv::DtGdbSurfacesPage::pageClassName ( ) const
virtual

Get the class name of the page.

Implements makVrv::DtPage.

static const std::string& makVrv::DtGdbSurfacesPage::thePageClassName ( )
static

Get the class name of the class.

virtual void makVrv::DtGdbSurfacesPage::setSurfaceState ( DtTerrainPatch::GdbSurface  surfaceId,
bool  state 
)
virtual

Set the surface state checkbox.

Implements makVrv::DtGdbSurfacesInterface.

virtual void makVrv::DtGdbSurfacesPage::addGdbSurface ( DtTerrainPatch::GdbSurface  surfaceId,
bool  state 
)
virtual

Add a surface state checkbox to the gui.

Implements makVrv::DtGdbSurfacesInterface.

virtual void makVrv::DtGdbSurfacesPage::onCurrentInstanceChanged ( QString  def)
virtual

Called the current instance changes.

Reimplemented from makVrv::DtSelectedInstanceDialogPage.

virtual void makVrv::DtGdbSurfacesPage::onItemChanged ( QListWidgetItem *  item)
virtualslot

Qt slot called when an item is changed.

virtual void makVrv::DtGdbSurfacesPage::onTogglePushed ( )
virtualslot

Qt slot called when the toggle button is pushed.

void makVrv::DtGdbSurfacesPage::setupGui ( )
protectedvirtual

Sets up the widget's fields.

Non-virtual (Called from CTOR).

Reimplemented from makVrv::DtTerrainPatchDialogPage.

virtual void makVrv::DtGdbSurfacesPage::activate ( )
protectedvirtual

Activate the contents of the page.

Reimplemented from makVrv::DtTerrainPatchDialogPage.

virtual void makVrv::DtGdbSurfacesPage::deactivate ( )
protectedvirtual

Disable the contents of the page.

Reimplemented from makVrv::DtTerrainPatchDialogPage.

void makVrv::DtGdbSurfacesPage::updateWidget ( )
protected

Member Data Documentation

bool makVrv::DtGdbSurfacesPage::addingItem
protected

Set to true during list item creation to prevent item changed calls from going to the logic.

DtGdbSurfacesLogic* makVrv::DtGdbSurfacesPage::myLogic
protected
SurfaceItemMap makVrv::DtGdbSurfacesPage::myItemMap
protected
SurfaceNameMap makVrv::DtGdbSurfacesPage::mySurfaceNames
protected
DtPersistenceToolbarWidget* makVrv::DtGdbSurfacesPage::myTitle
protected
QListWidget* makVrv::DtGdbSurfacesPage::myList
protected
QPushButton* makVrv::DtGdbSurfacesPage::toggleButton
protected
QVBoxLayout* makVrv::DtGdbSurfacesPage::myMainLayout
protected
QVBoxLayout* makVrv::DtGdbSurfacesPage::myGroupLayout
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)