GLIMSView Source Code Documentation

GlacierIDChooserDlg Class Reference

#include <glacieridchooserdlg.h>

Inheritance diagram for GlacierIDChooserDlg:

Inheritance graph
[legend]

List of all members.


Detailed Description

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:
Deborah Lee Soltesz (original, GlacierIDDlg, by Dan Mingus)
History:
2004-12-05 Deborah Lee Soltesz - Added this 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. This dialog was adapted from GlacierIDDlg by Dan Mingus.
What's New:
2004-12-04 This dialog box was added for assigning glacier IDs to the lines selected in the Views.

Definition at line 36 of file glacieridchooserdlg.h.


Public Slots

void setCurLines ()
 Assign the selected GID to all selected lines.
void loadList ()
 Fill the list view with available GIDs.
void setSelectedGID ()
 Event handler for GID selection change.

Signals

void repaintViews ()
 Signal Views to be refreshed.

Public Member Functions

 GlacierIDChooserDlg (GLIMSGIDData &giddata, GLIMSLineData &linedata)
 This initializes the list of available glacier ids and builds the interface.
 ~GlacierIDChooserDlg ()

Protected Attributes

QListView * mListView
GLIMSLineDatamLineData
GLIMSGIDDatamGIDData
int mSelectedGID

Constructor & Destructor Documentation

GlacierIDChooserDlg::GlacierIDChooserDlg ( GLIMSGIDData giddata,
GLIMSLineData linedata 
)

This initializes the list of available glacier ids and builds the interface.

Definition at line 4 of file glacieridchooserdlg.cpp.

References loadList(), mListView, mSelectedGID, setCurLines(), and setSelectedGID().

GlacierIDChooserDlg::~GlacierIDChooserDlg (  ) 

Definition at line 67 of file glacieridchooserdlg.cpp.


Member Function Documentation

void GlacierIDChooserDlg::setCurLines (  )  [slot]

Assign the selected GID to all selected lines.

Definition at line 71 of file glacieridchooserdlg.cpp.

References VectorData::getSelSet(), mLineData, mSelectedGID, GLIMSLineData::setGID(), and SelectionSet::size().

Referenced by GlacierIDChooserDlg().

void GlacierIDChooserDlg::loadList (  )  [slot]

void GlacierIDChooserDlg::setSelectedGID (  )  [slot]

Event handler for GID selection change.

Definition at line 105 of file glacieridchooserdlg.cpp.

References mLineData, mListView, mSelectedGID, repaintViews(), and GLIMSLineData::setDefGID().

Referenced by GlacierIDChooserDlg().

void GlacierIDChooserDlg::repaintViews (  )  [signal]

Signal Views to be refreshed.

Referenced by setSelectedGID().


Member Data Documentation

QListView* GlacierIDChooserDlg::mListView [protected]

Definition at line 39 of file glacieridchooserdlg.h.

Referenced by GlacierIDChooserDlg(), loadList(), and setSelectedGID().

Definition at line 40 of file glacieridchooserdlg.h.

Referenced by setCurLines(), and setSelectedGID().

Definition at line 41 of file glacieridchooserdlg.h.

Referenced by loadList().

Definition at line 43 of file glacieridchooserdlg.h.

Referenced by GlacierIDChooserDlg(), setCurLines(), and setSelectedGID().


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

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