VR-Forces 4.0.4 Class Documentation
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
DtTerrainPaperMapWidget Class Reference
Inheritance diagram for DtTerrainPaperMapWidget:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void showAll (void)
 Show all papermap levels.
virtual void applyChanges ()
virtual void hideAll (void)
 Hide all papermap levels.

Signals

void paperMapLayerChanged (DtPaperMap *p)
 Signalled when a papermap layer changes its show/hide state.

Public Member Functions

 DtTerrainPaperMapWidget (QWidget *parent=0, const Qt::WindowFlags &flags=0)
virtual ~DtTerrainPaperMapWidget ()
virtual bool init (const DtPaperMapDatabase *db)
 Must be called after creation.
virtual bool initColumns (void)
 Initializes the columns used in the list box. By default only one.
virtual bool hasValidPaperMap (void)
 Returns true if there is a papermap loaded into our context.
virtual void updatePaperMapLayers (void)
 Cycles through the layers of the papermap and adds them to the list box via the addPapermapLayer call.
virtual void addPaperMapLayer (DtPaperMap *p)
 Adds a new layer to the list box of type QCheckListItem.
virtual bool setAllLayersTo (bool show)
 Sets all the layers to the specified value (show or hide).
virtual void updateTransparencyBar (int)
virtual bool setTransparencyLevel (const QString &layer, int level)
 Sets the transparency level of the specified paper map layer.
virtual bool showPaperMap (const QString &layer, bool show)
 Show/hide individual layer. Returns false if layer does not exist.

Static Public Member Functions

static DtTerrainPaperMapWidgetcreate (QWidget *parent, const Qt::WindowFlags &flags)
 Returns a newly created instance of a DtTerrainPaperMapWidget.

Public Attributes

Ui::DtTerrainPaperMapWidgetUi myUiImpl

Protected Slots

virtual void paperMapLoaded (const DtPaperMapDatabase *p)
 When a new paper map database is loaded, set it to be our local pointer and reconfigure our layout.
virtual void layerChange (QTreeWidgetItem *p, int)
 Called whenever the display state for the listview item changes.
virtual void raiseLayer ()
 Raises the selected layer by one level.
virtual void lowerLayer ()
 Lowers the selected layer by one level.
virtual void updateRaiseLowerButtons (QTreeWidgetItem *selectedItem)
 Updates the enabled/disabled states of the raise and lower buttons based on the currently selected item in the list view.
virtual void selectionChanged ()
 Updates the transparency value slider and the raise/lower buttons.
virtual void applyAndClose ()
virtual void transparencyValueChanged (const QString &)
 User has changed text of transparency value, so, also update currently selected item.
virtual void transparencyValueChanged (int)
virtual void applyChangesImmediatelyChanged ()

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
virtual void enableApply ()
virtual bool eventFilter (QObject *o, QEvent *e)
virtual void setPaperMapImage (QTreeWidgetItem *)

Protected Attributes

DtPaperMapDatabasemyPaperMapDatabase
QIntValidator myTransparencyValidator

Constructor & Destructor Documentation

DtTerrainPaperMapWidget::DtTerrainPaperMapWidget ( QWidget parent = 0,
const Qt::WindowFlags &  flags = 0 
)

Member Function Documentation

virtual bool DtTerrainPaperMapWidget::init ( const DtPaperMapDatabase db) [virtual]

Must be called after creation.

virtual bool DtTerrainPaperMapWidget::initColumns ( void  ) [virtual]

Initializes the columns used in the list box. By default only one.

virtual bool DtTerrainPaperMapWidget::hasValidPaperMap ( void  ) [virtual]

Returns true if there is a papermap loaded into our context.

virtual void DtTerrainPaperMapWidget::updatePaperMapLayers ( void  ) [virtual]

Cycles through the layers of the papermap and adds them to the list box via the addPapermapLayer call.

virtual void DtTerrainPaperMapWidget::addPaperMapLayer ( DtPaperMap p) [virtual]

Adds a new layer to the list box of type QCheckListItem.

virtual bool DtTerrainPaperMapWidget::setAllLayersTo ( bool  show) [virtual]

Sets all the layers to the specified value (show or hide).

If any layers change as a resule, returns true, else returns false. Another side effect is that the listview will change its checkbox state

virtual void DtTerrainPaperMapWidget::updateTransparencyBar ( int  ) [virtual]
virtual bool DtTerrainPaperMapWidget::setTransparencyLevel ( const QString &  layer,
int  level 
) [virtual]

Sets the transparency level of the specified paper map layer.

Returns false if layer does not exist. Transparency level is from 0 (opaque) to 100 (completely transparent)

virtual bool DtTerrainPaperMapWidget::showPaperMap ( const QString &  layer,
bool  show 
) [virtual]

Show/hide individual layer. Returns false if layer does not exist.

static DtTerrainPaperMapWidget* DtTerrainPaperMapWidget::create ( QWidget parent,
const Qt::WindowFlags &  flags 
) [static]

Returns a newly created instance of a DtTerrainPaperMapWidget.

virtual void DtTerrainPaperMapWidget::keyPressEvent ( QKeyEvent *  e) [protected, virtual]
virtual void DtTerrainPaperMapWidget::enableApply ( ) [protected, virtual]
virtual bool DtTerrainPaperMapWidget::eventFilter ( QObject o,
QEvent *  e 
) [protected, virtual]
virtual void DtTerrainPaperMapWidget::setPaperMapImage ( QTreeWidgetItem ) [protected, virtual]

Signalled when a papermap layer changes its show/hide state.

If a NULL papermap is sent through that means all the layers have changed

virtual void DtTerrainPaperMapWidget::showAll ( void  ) [virtual, slot]

Show all papermap levels.

virtual void DtTerrainPaperMapWidget::applyChanges ( ) [virtual, slot]
virtual void DtTerrainPaperMapWidget::hideAll ( void  ) [virtual, slot]

Hide all papermap levels.

virtual void DtTerrainPaperMapWidget::paperMapLoaded ( const DtPaperMapDatabase p) [protected, virtual, slot]

When a new paper map database is loaded, set it to be our local pointer and reconfigure our layout.

virtual void DtTerrainPaperMapWidget::layerChange ( QTreeWidgetItem p,
int   
) [protected, virtual, slot]

Called whenever the display state for the listview item changes.

virtual void DtTerrainPaperMapWidget::raiseLayer ( ) [protected, virtual, slot]

Raises the selected layer by one level.

virtual void DtTerrainPaperMapWidget::lowerLayer ( ) [protected, virtual, slot]

Lowers the selected layer by one level.

virtual void DtTerrainPaperMapWidget::updateRaiseLowerButtons ( QTreeWidgetItem selectedItem) [protected, virtual, slot]

Updates the enabled/disabled states of the raise and lower buttons based on the currently selected item in the list view.

virtual void DtTerrainPaperMapWidget::selectionChanged ( ) [protected, virtual, slot]

Updates the transparency value slider and the raise/lower buttons.

virtual void DtTerrainPaperMapWidget::applyAndClose ( ) [protected, virtual, slot]
virtual void DtTerrainPaperMapWidget::transparencyValueChanged ( const QString &  ) [protected, virtual, slot]

User has changed text of transparency value, so, also update currently selected item.

virtual void DtTerrainPaperMapWidget::transparencyValueChanged ( int  ) [protected, virtual, slot]
virtual void DtTerrainPaperMapWidget::applyChangesImmediatelyChanged ( ) [protected, virtual, slot]

Member Data Documentation

Ui::DtTerrainPaperMapWidgetUi DtTerrainPaperMapWidget::myUiImpl

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)