GLIMSView Source Code Documentation

LineDefDlg Class Reference

#include <linedefdlg.h>

Inheritance diagram for LineDefDlg:

Inheritance graph
[legend]

List of all members.


Detailed Description

Dialog box for defining the attributes of a line.

Todo:
2006-01-23 dls - More line colors

Definition at line 29 of file linedefdlg.h.


Public Slots

void butOkPress ()
 Handles the clicked() event by the OK button.
void butCancelPress ()
 Handles the clicked() event by the CANCEL button.

Public Member Functions

 LineDefDlg (GLIMSLineData &linedata, int ildf=-1)
 Loads the dialog with a form to allow the user to assign attributes to a LDF.

Protected Member Functions

void loadValids ()
 Fills the form's combo boxes with valid values.
void setSelected ()
 Fills the form with attibutes from the selected LDF when editing.

Protected Attributes

GLIMSLineDatamLineData
bool mEditing
QComboBox * cmbGlacType
QComboBox * cmbSegType
QComboBox * cmbSegLabel
QComboBox * cmbLMat
QComboBox * cmbRMat
QComboBox * cmbRFtr
QComboBox * cmbLFtr
QComboBox * cmbColor
QComboBox * cmbStyle
QComboBox * cmbWidth
QLineEdit * txtLXUncert
QLineEdit * txtLYUncert
QLineEdit * txtGXUncert
QLineEdit * txtGYUncert
int miLDF

Constructor & Destructor Documentation

LineDefDlg::LineDefDlg ( GLIMSLineData linedata,
int  ildf = -1 
)

Loads the dialog with a form to allow the user to assign attributes to a LDF.

If 'editing' the form will be filled with the LDF the user has selected in the LineConfigDlg that opened this.

Parameters:
linedata New line data to add to mLinedata
ildf New value for miLDF

Definition at line 3 of file linedefdlg.cpp.

References butCancelPress(), butOkPress(), cmbColor, cmbGlacType, cmbLFtr, cmbLMat, cmbRFtr, cmbRMat, cmbSegLabel, cmbSegType, cmbStyle, cmbWidth, loadValids(), miLDF, setSelected(), txtGXUncert, txtGYUncert, txtLXUncert, and txtLYUncert.

Here is the call graph for this function:


Member Function Documentation

void LineDefDlg::loadValids (  )  [protected]

void LineDefDlg::setSelected (  )  [protected]

Fills the form with attibutes from the selected LDF when editing.

Todo:
Make mProj->getLineDef( mProj->mSelLDF, ldf, attr ) work (note by Dan).

Definition at line 203 of file linedefdlg.cpp.

References cmbColor, cmbGlacType, cmbLFtr, cmbLMat, cmbRFtr, cmbRMat, cmbSegLabel, cmbSegType, cmbStyle, cmbWidth, GLIMSLineData::getLDFSet(), LineDef::mColor, LineDef::mGlacType, LineDef::mGXUncert, LineDef::mGYUncert, miLDF, LineDef::mLabel, LineDef::mLFeature, mLineData, LineDef::mLMat, LineDef::mLXUncert, LineDef::mLYUncert, LineDef::mRFeature, LineDef::mRMat, LineDef::mStyle, LineDef::mType, LineDef::mWidth, txtGXUncert, txtGYUncert, txtLXUncert, and txtLYUncert.

Referenced by LineDefDlg().

Here is the call graph for this function:

void LineDefDlg::butOkPress (  )  [slot]

void LineDefDlg::butCancelPress (  )  [slot]

Handles the clicked() event by the CANCEL button.

The action taken is to close the dialog box.

Definition at line 161 of file linedefdlg.cpp.

Referenced by LineDefDlg().


Member Data Documentation

Definition at line 32 of file linedefdlg.h.

Referenced by butOkPress(), and setSelected().

bool LineDefDlg::mEditing [protected]

Definition at line 33 of file linedefdlg.h.

QComboBox* LineDefDlg::cmbGlacType [protected]

Definition at line 35 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbSegType [protected]

Definition at line 36 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbSegLabel [protected]

Definition at line 37 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbLMat [protected]

Definition at line 38 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbRMat [protected]

Definition at line 39 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbRFtr [protected]

Definition at line 40 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbLFtr [protected]

Definition at line 41 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbColor [protected]

Definition at line 42 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbStyle [protected]

Definition at line 43 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QComboBox* LineDefDlg::cmbWidth [protected]

Definition at line 44 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), loadValids(), and setSelected().

QLineEdit* LineDefDlg::txtLXUncert [protected]

Definition at line 46 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), and setSelected().

QLineEdit* LineDefDlg::txtLYUncert [protected]

Definition at line 47 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), and setSelected().

QLineEdit* LineDefDlg::txtGXUncert [protected]

Definition at line 48 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), and setSelected().

QLineEdit* LineDefDlg::txtGYUncert [protected]

Definition at line 49 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), and setSelected().

int LineDefDlg::miLDF [protected]

Definition at line 51 of file linedefdlg.h.

Referenced by butOkPress(), LineDefDlg(), and setSelected().


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

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