GLIMSView Source Code Documentation

GlacierConfigDlg Class Reference

#include <glacierconfigdlg.h>

Inheritance diagram for GlacierConfigDlg:

Inheritance graph
[legend]

List of all members.


Detailed Description

User interface for allowing users to create edit glacier ids and assign them to lines.

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.

Author:
Dan Mingus
History:
2002-09-25 Dan Mingus created
History:
2004-12-04 Deborah Lee Soltesz - Changed behavior to highlight selected glacier ids between the GlacierConfigDlg and Views. When an ID is selected in the dialog, it's highlighted on the View and vice-versa.
History:
2004-12-05 Deborah Lee Soltesz - Added a new dialog (GlacierIDChooserDlg) for assigning glacier IDs to the lines currently selected in the Views. New highlighting behavior prevented the user from being able to choose a line and select a glacier ID to "Set Line" for under old setup.
History:
2007-06-21 dls Removed RecordStatus
What's New:
2004-12-04 Glacier IDs in the list are highlighted when selected in an image view.
What's New:
2004-12-05 There's a new dialog box for assigning glacier IDs to the lines selected in the Views.
Todo:
2004-12-06 refresh the highlighting of selected glacier IDs after a "Set Line" action.

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
GLIMSLineDatamLineData
 line tool that opened this
GLIMSGIDDatamGIDData
 GLIMS vector layer.
int mSelectedGID
 current selected GID
GlacierIDChooserDlgmChooserDlg
 ID chooser dialog.

Constructor & Destructor Documentation

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.


Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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]

Assign the selected GID to all selected lines.

Definition at line 184 of file glacierconfigdlg.cpp.

void GlacierConfigDlg::setSelectedGID (  )  [slot]

void GlacierConfigDlg::loadList (  )  [slot]

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]

Signal Views to be refreshed.

Referenced by delSel(), GlacierConfigDlg(), and setSelectedGID().


Member Data Documentation

QListView* GlacierConfigDlg::mListView [protected]

list of GIDs

Definition at line 54 of file glacierconfigdlg.h.

Referenced by GlacierConfigDlg(), loadList(), setSelectedGID(), and updateListSelection().

line tool that opened this

Definition at line 55 of file glacierconfigdlg.h.

Referenced by GlacierConfigDlg(), glacierIDChooser(), setSelectedGID(), and updateListSelection().

current selected GID

Definition at line 58 of file glacierconfigdlg.h.

Referenced by editGlacier(), GlacierConfigDlg(), and setSelectedGID().

ID chooser dialog.

Definition at line 60 of file glacierconfigdlg.h.

Referenced by GlacierConfigDlg(), and glacierIDChooser().


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

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov