+ struct StricklerCoefficient
+ {
+ QString myType;
+ double myCoefficient;
+
+ StricklerCoefficient( const QString& theType,
+ double theCoefficient )
+ : myType( theType ), myCoefficient( theCoefficient ) {}
+ };
+ typedef QList<StricklerCoefficient> StricklerCoefficientList;
+
+ enum { Edit, Import, Export };
+
+public:
+ HYDROGUI_StricklerTableDlg( HYDROGUI_Module* theModule, const QString& theTitle, int theType );
+ virtual ~HYDROGUI_StricklerTableDlg();
+
+ void reset();
+
+ QString getFileName() const;
+ void setFileName( const QString& theName );
+
+ void setTableName( const QString& theName );
+ QString getTableName() const;
+
+ bool isTableNameReadOnly() const;
+ void setTableNameReadOnly( bool );
+
+ StricklerCoefficientList getData() const;
+ void setData(const StricklerCoefficientList& theData);
+
+protected:
+ void updateControls();
+ void removeRows( const QList<int> theRows );
+
+protected Q_SLOTS:
+ void onBrowse();
+
+ void onAddCoefficient();
+ void onRemoveCoefficient();
+ void onClearCoefficients();
+
+ void onSelectionChanged();