Salome HOME
Fix for the bug #45: check and warning when the same image is used in 2 arguments.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_GeoreferencementDlg.h
index 25e2130e762061abb384cc8404fd39132c0f4712..1d2a72a05d85844e2494c3050638799017934595 100644 (file)
@@ -30,6 +30,7 @@ class SUIT_ViewWindow;
 class QGroupBox;
 class QButtonGroup;
 class QTableWidget;
+class QPushButton;
 
 class HYDROGUI_GeoreferencementDlg : public HYDROGUI_InputPanel
 {
@@ -47,13 +48,18 @@ public:
     double Xd;
     double Yd;
 
-    bool isValid;
+    bool isIncomplete, isEmpty;
 
     ProfileGeoData() :
-      isValid( false ) {}
+      isEmpty( true ), isIncomplete( false ) {}
 
-    ProfileGeoData( double theXg, double theYg, double theXd, double theYd ) :
-      Xg( theXg ), Yg( theYg ), Xd( theXd ), Yd( theYd ), isValid( true ) {}
+    ProfileGeoData( const QString& theXg, const QString& theYg, 
+                    const QString& theXd, const QString& theYd );
+
+    ProfileGeoData( double theXg, double theYg, 
+                    double theXd, double theYd )
+      : Xg( theXg ), Yg( theYg ), Xd( theXd ), Yd( theYd ),
+      isIncomplete(false), isEmpty(false) {}
   };
   typedef QMap< QString, ProfileGeoData > ProfilesGeoDataMap;
 
@@ -68,21 +74,25 @@ public:
   void                       setData( const ProfilesGeoDataMap& theMap );
   void                       getData( ProfilesGeoDataMap& theMap );
 
+  bool                       isModified() const;
+
 public slots:
   void                       onMousePress( SUIT_ViewWindow*, QMouseEvent* );
 
 protected slots:
   void                       onModeActivated( int );
+  void                       onDataChanged();
 
 signals:
   void                       modeActivated( int );
-
-private:
-  QString                    getString( const double theNumber ) const;
+  void                       updateSelection();
 
 private:
   QButtonGroup* myModeButtons;
+  QPushButton* myUpdateSelBtn;
   QTableWidget* myTable;
+
+  bool myIsModified;
 };
 
 #endif