00001 #ifndef GLACIERIDCHOOSERDLG_H 00002 #define GLACIERIDCHOOSERDLG_H 00003 00004 // QT 00005 #include <qdialog.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 "selectionset.h" 00015 #include "glimsglobals.h" 00016 #include "TraceLog.h" 00017 00036 class GlacierIDChooserDlg : public QDialog { 00037 Q_OBJECT 00038 protected: 00039 QListView *mListView; // LIST OF GIDs 00040 GLIMSLineData &mLineData; // LINE TOOL THAT OPENED THIS 00041 GLIMSGIDData &mGIDData; // GLIMS VECTOR LAYER 00042 00043 int mSelectedGID; // CURRENT SELECTED GID 00044 00045 public: 00050 GlacierIDChooserDlg( GLIMSGIDData &giddata, 00051 GLIMSLineData &linedata ); 00052 ~GlacierIDChooserDlg( ); 00053 00054 public slots: 00058 void setCurLines(); 00059 00063 void loadList(); 00064 00068 void setSelectedGID(); 00069 00070 00071 signals: 00075 void repaintViews( ); 00076 00077 }; 00078 00079 #endif 00080 00081 00082 00083