#include <glacierconfigdlg.h>
A user interface dialog providing a list of the glacier ids that have been created by the user. The items in the list can be selected and edited.
Definition at line 51 of file glacierconfigdlg.h.
Public Slots | |
void | newGlacier () |
Displays the new glacier id form. | |
void | editGlacier () |
Displays the glacier id form to edit the selected GID. | |
void | setCurLines () |
Assign the selected GID to all selected lines. | |
void | setSelectedGID () |
Event handler for GID selection change. | |
void | loadList () |
Fill the list view with available GIDs. | |
void | updateListSelection () |
set Glacier ID list view item selected based on SelectSet contents | |
void | glacierIDChooser () |
Displays the glacier id chooser dialog for setting a line to a glacier id. | |
Signals | |
void | changeSelLines (int) |
Unused signal? | |
void | selGidChanged (int) |
Unused signal? | |
void | repaintViews () |
Signal Views to be refreshed. | |
Public Member Functions | |
GlacierConfigDlg (GLIMSGIDData &giddata, GLIMSLineData &linedata) | |
This initializes the list of available glacier IDs and builds the interface. | |
~GlacierConfigDlg () | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *e) |
Handle known key-press events (not working). | |
void | delSel (QKeyEvent *e) |
Delete selected glacier ID. | |
Protected Attributes | |
QListView * | mListView |
list of GIDs | |
GLIMSLineData & | mLineData |
line tool that opened this | |
GLIMSGIDData & | mGIDData |
GLIMS vector layer. | |
int | mSelectedGID |
current selected GID | |
GlacierIDChooserDlg * | mChooserDlg |
ID chooser dialog. |
GlacierConfigDlg::GlacierConfigDlg | ( | GLIMSGIDData & | giddata, | |
GLIMSLineData & | linedata | |||
) |
This initializes the list of available glacier IDs and builds the interface.
Definition at line 4 of file glacierconfigdlg.cpp.
References editGlacier(), glacierIDChooser(), loadList(), mChooserDlg, mGIDData, mLineData, mListView, mSelectedGID, newGlacier(), repaintViews(), setSelectedGID(), and updateListSelection().
GlacierConfigDlg::~GlacierConfigDlg | ( | ) |
Definition at line 74 of file glacierconfigdlg.cpp.
void GlacierConfigDlg::keyPressEvent | ( | QKeyEvent * | e | ) | [protected] |
Handle known key-press events (not working).
For internal use only.
In order to allow users to delete GIDs using the ListView, probably need to extend ListView so keyboard events can be dealt with... the dialog is not apparently processing keyevents on the ListView...
Definition at line 79 of file glacierconfigdlg.cpp.
References delSel(), editGlacier(), loadList(), mGIDData, and GLIMSGIDData::push().
void GlacierConfigDlg::delSel | ( | QKeyEvent * | e | ) | [protected] |
Delete selected glacier ID.
Tied to "delete" key press (not working).
Definition at line 97 of file glacierconfigdlg.cpp.
References SelectionSet::clear(), SimplePointData::delLine(), SimplePointData::delLineNode(), GLIMSGIDData::delNode(), VectorData::getSelSet(), VectorData::getType(), VectorData::getXYSet(), mGIDData, VectorData::POINT, repaintViews(), Line::size(), SelectionSet::size(), and VectorData::size().
Referenced by keyPressEvent().
void GlacierConfigDlg::newGlacier | ( | ) | [slot] |
Displays the new glacier id form.
Definition at line 154 of file glacierconfigdlg.cpp.
References loadList(), and mGIDData.
Referenced by GlacierConfigDlg().
void GlacierConfigDlg::editGlacier | ( | ) | [slot] |
Displays the glacier id form to edit the selected GID.
Definition at line 164 of file glacierconfigdlg.cpp.
References loadList(), mGIDData, and mSelectedGID.
Referenced by GlacierConfigDlg(), and keyPressEvent().
void GlacierConfigDlg::setCurLines | ( | ) | [slot] |
void GlacierConfigDlg::setSelectedGID | ( | ) | [slot] |
Event handler for GID selection change.
Definition at line 269 of file glacierconfigdlg.cpp.
References SelectionSet::add(), SelectionSet::clear(), VectorData::getSelSet(), VectorData::getXYSet(), GlacierLine::mGID, mGIDData, mLineData, mListView, mSelectedGID, SelectionSet::SelObj::obj, repaintViews(), GLIMSLineData::setDefGID(), and SelectionSet::size().
Referenced by GlacierConfigDlg().
void GlacierConfigDlg::loadList | ( | ) | [slot] |
Fill the list view with available GIDs.
Definition at line 197 of file glacierconfigdlg.cpp.
References GLIMSGIDData::getDefSet(), mGIDData, mListView, GlacierIDDef::mLocalID, GlacierIDDef::mName, GlacierIDDef::mParentID, GlacierIDDef::mWGMSID, and GlacierIDDef::toString().
Referenced by editGlacier(), GlacierConfigDlg(), keyPressEvent(), newGlacier(), and ConfigDlg::resetAll().
void GlacierConfigDlg::updateListSelection | ( | ) | [slot] |
set Glacier ID list view item selected based on SelectSet contents
Definition at line 220 of file glacierconfigdlg.cpp.
References VectorData::getSelSet(), VectorData::getXYSet(), GlacierLine::mGID, mGIDData, mLineData, mListView, and SelectionSet::size().
Referenced by ConfigDlg::emitRepaintViews(), GlacierConfigDlg(), and ConfigDlg::refreshAll().
void GlacierConfigDlg::glacierIDChooser | ( | ) | [inline, slot] |
Displays the glacier id chooser dialog for setting a line to a glacier id.
Definition at line 120 of file glacierconfigdlg.h.
References GlacierIDChooserDlg::loadList(), mChooserDlg, mGIDData, and mLineData.
Referenced by GlacierConfigDlg().
void GlacierConfigDlg::changeSelLines | ( | int | ) | [signal] |
Unused signal?
void GlacierConfigDlg::selGidChanged | ( | int | ) | [signal] |
Unused signal?
void GlacierConfigDlg::repaintViews | ( | ) | [signal] |
QListView* GlacierConfigDlg::mListView [protected] |
list of GIDs
Definition at line 54 of file glacierconfigdlg.h.
Referenced by GlacierConfigDlg(), loadList(), setSelectedGID(), and updateListSelection().
GLIMSLineData& GlacierConfigDlg::mLineData [protected] |
line tool that opened this
Definition at line 55 of file glacierconfigdlg.h.
Referenced by GlacierConfigDlg(), glacierIDChooser(), setSelectedGID(), and updateListSelection().
GLIMSGIDData& GlacierConfigDlg::mGIDData [protected] |
GLIMS vector layer.
Definition at line 56 of file glacierconfigdlg.h.
Referenced by delSel(), editGlacier(), GlacierConfigDlg(), glacierIDChooser(), keyPressEvent(), loadList(), newGlacier(), setSelectedGID(), and updateListSelection().
int GlacierConfigDlg::mSelectedGID [protected] |
current selected GID
Definition at line 58 of file glacierconfigdlg.h.
Referenced by editGlacier(), GlacierConfigDlg(), and setSelectedGID().
GlacierIDChooserDlg* GlacierConfigDlg::mChooserDlg [protected] |
ID chooser dialog.
Definition at line 60 of file glacierconfigdlg.h.
Referenced by GlacierConfigDlg(), and glacierIDChooser().
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |