Salome HOME
version has been updated to 1.0
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageDlg.h
index 12c550f935f8feccecfa71f74379aad8c63f2b7e..b4a2c950c54ec84103505ba488fcf97bf90b120d 100644 (file)
@@ -42,6 +42,7 @@ class QCheckBox;
 
 class QtxDoubleSpinBox;
 class QtxIntSpinBox;
+class QAbstractSpinBox;
 
 class HYDROGUI_ImportImageDlg : public HYDROGUI_InputPanel
 {
@@ -86,6 +87,8 @@ public:
   QString                    getRefImageName() const;
 
   QString                    getFileName() const;
+  void                       setFileName( const QString& theName );
+  QString                    getGeoreferencementFileName() const;
 
   void                       setImageSize( const QSize& theSize,
                                            const bool theIsRefImage = false );
@@ -114,6 +117,7 @@ public:
 
 protected slots:
   void                       onBrowse();
+  void                       onGeoBrowse();
   void                       onModeActivated( int );
   void                       onRefImageActivated( const QString& );
   void                       onPointBtnToggled( bool );
@@ -127,8 +131,10 @@ protected slots:
   void                       onCartesianCoordChanged( const int thePointType );
 
 private:
-  void                       blockSignalsGeodesic( const bool theState );
-  void                       blockSignalsCartesian( const bool theState );
+  void                       clearSpins( QAbstractSpinBox* theSpin );
+  bool                       blockSignalsPoints( const bool theState );
+  bool                       blockSignalsGeodesic( const bool theState );
+  bool                       blockSignalsCartesian( const bool theState );
 
 signals:
   void                       createPreview( QImage );
@@ -153,6 +159,8 @@ private:
   QButtonGroup*                myModeGroup;        //!< The group for the input mode selector
   QComboBox*                   myRefImage;         //!< Reference image selector
 
+  QLineEdit*                   myGeoFileName;      //!< Image georeferencement file name input field
+
   QList<QLabel*>               myGeodesicLabels;   //!< Labels for geodesic coords input fields
 
   QMap<int, QPushButton*>      myPointBtnMap;      //!< A,B,C points selection modes activators