00001 #ifndef __IMAGECALCULATORDIALOG_H 00002 #define __IMAGECALCULATORDIALOG_H 00003 00004 #include <qdialog.h> 00005 #include <qlabel.h> 00006 #include <qpushbutton.h> 00007 #include <qlayout.h> 00008 #include <qlineedit.h> 00009 #include <qtooltip.h> 00010 #include <qlistbox.h> 00011 #include <qpushbutton.h> 00012 #include <qlineedit.h> 00013 #include <qcombobox.h> 00014 #include "glimsproject.h" 00015 #include "ImageCalculator.h" 00016 #include "ValueButton.h" 00017 00018 00038 class ImageCalculatorDialog : public QDialog { 00039 Q_OBJECT 00040 00041 public: 00048 ImageCalculatorDialog(GLIMSProject *proj); 00049 00054 ~ImageCalculatorDialog(); 00055 00056 protected: 00057 GLIMSProject *mProj; 00058 ImageCalculator *calculator; 00059 QPushButton *go; 00060 QPushButton *cancel; 00061 QLineEdit *equation; 00062 QComboBox *functions; 00063 QComboBox *lineStyle; 00064 QListBox *variables; 00065 QVBoxLayout *vbox; 00066 00068 QComboBox *algorithms; 00069 00074 void buildDialog(); 00075 00076 protected slots: 00077 00083 void doCalculation(); 00084 00090 void clearEquation(); 00091 00098 void acceptString(char* ch); 00099 00108 void acceptFunction(char* ch); 00109 00116 void acceptFunction(const QString & ch); 00117 00124 void insertBand(QListBoxItem * item); 00125 00126 void setColor(int index); 00127 00128 signals: 00129 void imgCalcComplete() ; 00130 00131 }; 00132 00133 #endif 00134
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |