class QtxDoubleSpinBox;
class QtxIntSpinBox;
+class QAbstractSpinBox;
class HYDROGUI_ImportImageDlg : public HYDROGUI_InputPanel
{
QString getRefImageName() const;
QString getFileName() const;
+ void setFileName( const QString& theName );
+ QString getGeoreferencementFileName() const;
void setImageSize( const QSize& theSize,
const bool theIsRefImage = false );
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 );
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 );
int theValue );
void modeActivated( int );
void refImageActivated( const QString& );
+ void setCIsUsed( bool theIsByTwoPoints );
private:
QGroupBox* myFileNameGroup; //!< The group for the source image file selection
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