Salome HOME
refs #426: grammatic error
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageDlg.h
index 8018366b7ddef7af8c12b4dbb9c57ac957f8eeee..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,10 +117,12 @@ public:
 
 protected slots:
   void                       onBrowse();
+  void                       onGeoBrowse();
   void                       onModeActivated( int );
   void                       onRefImageActivated( const QString& );
   void                       onPointBtnToggled( bool );
   void                       onPointCoordChanged( int );
+  void                       onSetCIsUsed( bool theCIsUsed );
 
   void                       onGeodesicCoordChanged();
   void                       onGeodesicCoordChanged( const int thePointType );
@@ -126,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 );
@@ -138,6 +145,7 @@ signals:
                                                 int theValue );
   void                       modeActivated( int );
   void                       refImageActivated( const QString& );
+  void                       setCIsUsed( bool theIsByTwoPoints );
 
 private:
   QGroupBox*                   myFileNameGroup;    //!< The group for the source image file selection
@@ -151,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