00001 #ifndef GLACIERCONFIGDLG_H 00002 #define GLACIERCONFIGDLG_H 00003 00004 // QT 00005 #include <qwidget.h> 00006 #include <qlayout.h> 00007 #include <qlistview.h> 00008 #include <qpushbutton.h> 00009 #include <qmessagebox.h> 00010 00011 // LOCAL 00012 #include "glimsgiddata.h" 00013 #include "glimslinedata.h" 00014 #include "glacieriddlg.h" 00015 #include "glacieridchooserdlg.h" 00016 #include "selectionset.h" 00017 #include "glimsglobals.h" 00018 #include "TraceLog.h" 00019 00051 class GlacierConfigDlg : public QWidget { 00052 Q_OBJECT 00053 protected: 00054 QListView *mListView; 00055 GLIMSLineData &mLineData; 00056 GLIMSGIDData &mGIDData; 00057 00058 int mSelectedGID; 00059 00060 GlacierIDChooserDlg * mChooserDlg ; 00061 00069 void keyPressEvent (QKeyEvent * e) ; 00070 00074 void delSel(QKeyEvent * e) ; 00075 00076 public: 00081 GlacierConfigDlg( GLIMSGIDData &giddata, 00082 GLIMSLineData &linedata ); 00083 ~GlacierConfigDlg( ); 00084 00085 00086 public slots: 00090 void newGlacier(); 00091 00095 void editGlacier(); 00096 00100 void setCurLines(); 00101 00105 void setSelectedGID(); 00106 00110 void loadList(); 00111 00115 void updateListSelection() ; 00116 00120 void glacierIDChooser() { 00121 if (!mChooserDlg) { 00122 mChooserDlg = new GlacierIDChooserDlg (mGIDData, mLineData) ; 00123 } 00124 else { 00125 mChooserDlg->loadList() ; 00126 } 00127 mChooserDlg->show() ; 00128 mChooserDlg->setFocus(); 00129 } 00130 00131 signals: 00135 void changeSelLines( int ); 00139 void selGidChanged( int ); 00143 void repaintViews( ); 00144 00145 }; 00146 00147 #endif 00148 00149 00150 00151 00152 00153 00154 00155
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |