Public Slots |
| virtual void | showAll (void) |
| | Show all papermap levels.
|
| virtual void | applyChanges () |
| virtual void | hideAll (void) |
| | Hide all papermap levels.
|
Public Attributes |
| Ui::DtTerrainPaperMapWidgetUi | myUiImpl |
Constructor & Destructor Documentation
| DtTerrainPaperMapWidget::DtTerrainPaperMapWidget |
( |
QWidget * |
parent = 0, |
|
|
const Qt::WindowFlags & |
flags = 0 |
|
) |
| |
| virtual DtTerrainPaperMapWidget::~DtTerrainPaperMapWidget |
( |
| ) |
|
|
virtual |
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.
| virtual void DtTerrainPaperMapWidget::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protectedvirtual |
| virtual void DtTerrainPaperMapWidget::enableApply |
( |
| ) |
|
|
protectedvirtual |
| virtual bool DtTerrainPaperMapWidget::eventFilter |
( |
QObject * |
o, |
|
|
QEvent * |
e |
|
) |
| |
|
protectedvirtual |
| virtual void DtTerrainPaperMapWidget::setPaperMapImage |
( |
QTreeWidgetItem * |
| ) |
|
|
protectedvirtual |
| void DtTerrainPaperMapWidget::paperMapLayerChanged |
( |
DtPaperMap * |
p | ) |
|
|
signal |
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 |
| ) |
|
|
virtualslot |
Show all papermap levels.
| virtual void DtTerrainPaperMapWidget::applyChanges |
( |
| ) |
|
|
virtualslot |
| virtual void DtTerrainPaperMapWidget::hideAll |
( |
void |
| ) |
|
|
virtualslot |
Hide all papermap levels.
| virtual void DtTerrainPaperMapWidget::paperMapLoaded |
( |
const DtPaperMapDatabase * |
p | ) |
|
|
protectedvirtualslot |
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 |
|
|
) |
| |
|
protectedvirtualslot |
Called whenever the display state for the listview item changes.
| virtual void DtTerrainPaperMapWidget::raiseLayer |
( |
| ) |
|
|
protectedvirtualslot |
Raises the selected layer by one level.
| virtual void DtTerrainPaperMapWidget::lowerLayer |
( |
| ) |
|
|
protectedvirtualslot |
Lowers the selected layer by one level.
| virtual void DtTerrainPaperMapWidget::updateRaiseLowerButtons |
( |
QTreeWidgetItem * |
selectedItem | ) |
|
|
protectedvirtualslot |
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 |
( |
| ) |
|
|
protectedvirtualslot |
Updates the transparency value slider and the raise/lower buttons.
| virtual void DtTerrainPaperMapWidget::applyAndClose |
( |
| ) |
|
|
protectedvirtualslot |
| virtual void DtTerrainPaperMapWidget::transparencyValueChanged |
( |
const QString & |
| ) |
|
|
protectedvirtualslot |
User has changed text of transparency value, so, also update currently selected item.
| virtual void DtTerrainPaperMapWidget::transparencyValueChanged |
( |
int |
| ) |
|
|
protectedvirtualslot |
| virtual void DtTerrainPaperMapWidget::applyChangesImmediatelyChanged |
( |
| ) |
|
|
protectedvirtualslot |
Member Data Documentation
| Ui::DtTerrainPaperMapWidgetUi DtTerrainPaperMapWidget::myUiImpl |
| DtPaperMapDatabase* DtTerrainPaperMapWidget::myPaperMapDatabase |
|
protected |
| QIntValidator DtTerrainPaperMapWidget::myTransparencyValidator |
|
protected |
The documentation for this class was generated from the following file: