-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// Copyright (C) 2014-2015 EDF-R&D
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#define HYDROGUI_IMPORTIMAGEDLG_H
#include "HYDROGUI_InputPanel.h"
+#include <HYDROData_Image.h>
#include <QMap>
class QtxDoubleSpinBox;
class QtxIntSpinBox;
+class QAbstractSpinBox;
+class QToolButton;
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,
void initializePointSelection();
+
+ void ECW_initializePointSelection(HYDROData_Image::ECW_FileInfo* theECW_FileInfo);
+
+
+ void ActivateFile( const QString& theFileName, bool isEnableFilesChoice );
+
public:
static TransformationData ComputeTrsfData( const int theMode,
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 );
+ void createPreview( QImage, HYDROData_Image::ECW_FileInfo* );
void activatePointSelection( int );
void pointCoordChanged( bool theIsRef,
int thePointType,
void modeActivated( int );
void refImageActivated( const QString& );
void setCIsUsed( bool theIsByTwoPoints );
+ void filesSelected( const QStringList& );
private:
QGroupBox* myFileNameGroup; //!< The group for the source image file selection
QLineEdit* myFileName; //!< Source image file name input field
+ QToolButton* myBrowseBtn;
QGroupBox* myImageNameGroup; //!< The group for the image name input field
QLineEdit* myImageName; //!< The image name input field