GLIMSView Source Code Documentation

GlacierIDDlg Class Reference

#include <glacieriddlg.h>

Inheritance diagram for GlacierIDDlg:

Inheritance graph
[legend]

List of all members.


Detailed Description

This is a form allowing the user to enter data associated with glacier IDs.

This is not a modal dialog, but instead lets the user track lat/lon on the image while this is open. F1 can be pressed while this is focused to capture lat/lon and they will be placed into the lat/lon field in this form.

The information specified in this dialog by the user corresponds to the "glaciers" Shapefile Attributes specified in the GLIMS Data Transfer Specification (http://www.glims.org/MapsAndDocs/datatransfer/data_transfer_specification.html). Valid values for these attributes can be found in the "valid values" document (http://www.glims.org/MapsAndDocs/datatransfer/valids.txt)

Definition at line 39 of file glacieriddlg.h.


Public Slots

void addClicked ()
 Event handler for the ADD button.
void cancelClicked ()
 Event handler for the CANCEL button.

Signals

void gidSetChanged ()

Public Member Functions

 GlacierIDDlg (GLIMSGIDData &)
 Initializes the form.
 GlacierIDDlg (GLIMSGIDData &, int)
 Initializes the form.
 ~GlacierIDDlg ()
void keyPressEvent (QKeyEvent *)
 Event handler for the key press event.

Protected Member Functions

void loadValids ()
 This uses the valids available from LineTool for the combo boxes.
void loadGID ()
 Fill the form with glacier information from the selected GID .
void initialize ()
 Initializes the form.

Protected Attributes

int miGID
 Unique GID ID object that stores this glacier's information.
GLIMSGIDDatamGIDData
 Ptr to the linetool.
QLineEdit * mtxtLat
 Latitude.
QLineEdit * mtxtLon
 Longitude.
QLineEdit * mtxtName
 Name.
QLineEdit * mtxtWGMSID
 WGMS ID.
QLineEdit * mtxtLocalID
 Local (RC) ID.
QLineEdit * mtxtParentIMID
 Parent GID.
QComboBox * mcmbPrimCsfn
 Primary classification.
QComboBox * mcmbForm
 Form.
QComboBox * mcmbFrntChar
 Frontal characteristics.
QComboBox * mcmbLonChar
 Longitudinal characteristics.
QComboBox * mcmbDomMassSrc
 Dominant mass source.
QComboBox * mcmbTongueAct
 Tounge activity.
QLineEdit * mtxtWidth
 Width.
QLineEdit * mtxtLength
 Length.
QLineEdit * mtxtArea
 Area.
QLineEdit * mtxtAbzoneArea
 Abzone area.
QLineEdit * mtxtSpeed
 Speed.
QLineEdit * mtxtELA
 ELA.
QLineEdit * mtxtELADesc
 ELA description.
QLineEdit * mtxtSnowLineElev
 Snow line elevation.

Constructor & Destructor Documentation

GlacierIDDlg::GlacierIDDlg ( GLIMSGIDData gds  ) 

Initializes the form.

Definition at line 23 of file glacieriddlg.cpp.

References initialize(), and miGID.

Here is the call graph for this function:

GlacierIDDlg::GlacierIDDlg ( GLIMSGIDData gds,
int  iGID 
)

Initializes the form.

This constructor takes an index of a GID and fills the form with this GID for editing.

Definition at line 50 of file glacieriddlg.cpp.

References initialize(), loadGID(), and miGID.

Here is the call graph for this function:

GlacierIDDlg::~GlacierIDDlg (  ) 

Definition at line 73 of file glacieriddlg.cpp.


Member Function Documentation

void GlacierIDDlg::loadValids (  )  [protected]

void GlacierIDDlg::loadGID (  )  [protected]

void GlacierIDDlg::initialize (  )  [protected]

Initializes the form.

< Main internal widget (QVBox - Qt Vertical Box)

< Reusable label

< Reusable QV(ertical)Box

< Reusable QH(orizontal)Box

< Reusable grid

< Add button

< Close button

Definition at line 93 of file glacieriddlg.cpp.

References addClicked(), cancelClicked(), loadValids(), mcmbDomMassSrc, mcmbForm, mcmbFrntChar, mcmbLonChar, mcmbPrimCsfn, mcmbTongueAct, miGID, mtxtAbzoneArea, mtxtArea, mtxtELA, mtxtELADesc, mtxtLat, mtxtLength, mtxtLocalID, mtxtLon, mtxtName, mtxtParentIMID, mtxtSnowLineElev, mtxtSpeed, mtxtWGMSID, and mtxtWidth.

Referenced by GlacierIDDlg().

Here is the call graph for this function:

void GlacierIDDlg::keyPressEvent ( QKeyEvent *   ) 

Event handler for the key press event.

This routine allows the user to capture lat lon from mouse coords of the views while this window is focused.

Definition at line 451 of file glacieriddlg.cpp.

void GlacierIDDlg::addClicked (  )  [slot]

void GlacierIDDlg::cancelClicked (  )  [slot]

Event handler for the CANCEL button.

Definition at line 427 of file glacieriddlg.cpp.

Referenced by initialize().

void GlacierIDDlg::gidSetChanged (  )  [signal]

Referenced by addClicked().


Member Data Documentation

int GlacierIDDlg::miGID [protected]

Unique GID ID object that stores this glacier's information.

Definition at line 42 of file glacieriddlg.h.

Referenced by addClicked(), GlacierIDDlg(), initialize(), and loadGID().

Ptr to the linetool.

Definition at line 43 of file glacieriddlg.h.

Referenced by addClicked(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtLat [protected]

Latitude.

Widget to enter/display the latitude in decimal degrees; positive=north, negative=south.

Definition at line 44 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtLon [protected]

Longitude.

Widget to enter/display the longitude in decimal degrees; positive=east, negative=west.

Definition at line 46 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtName [protected]

Name.

Widget to enter/display the name of the glacier, if one exists.

Definition at line 48 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtWGMSID [protected]

WGMS ID.

Widget to enter/display the World Glacier Monitoring Service (WGMS) ID. The WGMS ID is a unique ID assigned to the glacier based on a variety of information, specified at http://nsidc.org/data/docs/noaa/g01130_glacier_inventory/.

Definition at line 50 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtLocalID [protected]

Local (RC) ID.

Widget to enter/display the GLIMS Regional Center ID.

Definition at line 52 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtParentIMID [protected]

Parent GID.

Widget to enter/display the local ID.

Definition at line 54 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QComboBox* GlacierIDDlg::mcmbPrimCsfn [protected]

Primary classification.

Widget to enter/display the primary classification (type of glacier) specified at http://nsidc.org/data/docs/noaa/g01130_glacier_inventory/.

Definition at line 64 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), loadGID(), and loadValids().

QComboBox* GlacierIDDlg::mcmbForm [protected]

Form.

Widget to enter/display the Widget to enter/display the form (shape of the glacier) specified at http://nsidc.org/data/docs/noaa/g01130_glacier_inventory/.

Definition at line 66 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), loadGID(), and loadValids().

QComboBox* GlacierIDDlg::mcmbFrntChar [protected]

Frontal characteristics.

Widget to enter/display the frontal characteristics of the glacier specified at http://nsidc.org/data/docs/noaa/g01130_glacier_inventory/.

Definition at line 68 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), loadGID(), and loadValids().

QComboBox* GlacierIDDlg::mcmbLonChar [protected]

Longitudinal characteristics.

Widget to enter/display the longitudinal profile of the glacier specified at http://nsidc.org/data/docs/noaa/g01130_glacier_inventory/.

Definition at line 70 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), loadGID(), and loadValids().

QComboBox* GlacierIDDlg::mcmbDomMassSrc [protected]

Dominant mass source.

Widget to enter/display the major source of nourishment of the glacier specified at http://nsidc.org/data/docs/noaa/g01130_glacier_inventory/.

Definition at line 72 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), loadGID(), and loadValids().

QComboBox* GlacierIDDlg::mcmbTongueAct [protected]

Tounge activity.

Widget to enter/display the activity of the tongue of the glacier specified at http://nsidc.org/data/docs/noaa/g01130_glacier_inventory/.

Definition at line 74 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), loadGID(), and loadValids().

QLineEdit* GlacierIDDlg::mtxtWidth [protected]

Width.

Widget to enter/display the width of the glacier, in kilometers.

Definition at line 76 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtLength [protected]

Length.

Widget to enter/display the length of the glacier, in kilometers.

Definition at line 78 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtArea [protected]

Area.

Widget to enter/display the area of the glacier, in square kilometers.

Definition at line 80 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtAbzoneArea [protected]

Abzone area.

Widget to enter/display the area of the ablation zone, in square kilometers.

Definition at line 82 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtSpeed [protected]

Speed.

Widget to enter/display the speed (?).

Definition at line 84 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtELA [protected]

ELA.

Widget to enter/display the ELA (?).

Definition at line 86 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtELADesc [protected]

ELA description.

Widget to enter/display the the ELA (?) description.

Definition at line 88 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().

QLineEdit* GlacierIDDlg::mtxtSnowLineElev [protected]

Snow line elevation.

Widget to enter/display the snow line elevation, in meters above sea level.

Definition at line 90 of file glacieriddlg.h.

Referenced by addClicked(), initialize(), and loadGID().


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

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