X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ImportImageDlg.h;h=b4a2c950c54ec84103505ba488fcf97bf90b120d;hb=196861562f7acec08685d250aee9c1bee85896f8;hp=8018366b7ddef7af8c12b4dbb9c57ac957f8eeee;hpb=6ff5a3c7be1372f82bdfe07cbcb67374faaefb81;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ImportImageDlg.h b/src/HYDROGUI/HYDROGUI_ImportImageDlg.h index 8018366b..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,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 myGeodesicLabels; //!< Labels for geodesic coords input fields QMap myPointBtnMap; //!< A,B,C points selection modes activators