X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ImportImageDlg.h;h=b4a2c950c54ec84103505ba488fcf97bf90b120d;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=59de8c6c6c89aebb9f4a79710099a1d41ab96bd1;hpb=844c6abc897469c996e8df5a1569c3aeaa08c446;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ImportImageDlg.h b/src/HYDROGUI/HYDROGUI_ImportImageDlg.h index 59de8c6c..b4a2c950 100644 --- a/src/HYDROGUI/HYDROGUI_ImportImageDlg.h +++ b/src/HYDROGUI/HYDROGUI_ImportImageDlg.h @@ -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,7 +145,7 @@ signals: int theValue ); void modeActivated( int ); void refImageActivated( const QString& ); - void setIsByTwoPoints( bool theIsByTwoPoints ); + void setCIsUsed( bool theIsByTwoPoints ); private: QGroupBox* myFileNameGroup; //!< The group for the source image file selection @@ -152,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 myGeodesicLabels; //!< Labels for geodesic coords input fields QMap myPointBtnMap; //!< A,B,C points selection modes activators