Salome HOME
size of image is limited by 7000 pixels
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageDlg.h
index 9072a3e2f5e58ee970b1136c55bcccfeeb07fea7..8e5e5e9c09a4d4f49005a863f3ede2da4a4a4d08 100644 (file)
@@ -20,6 +20,7 @@
 #define HYDROGUI_IMPORTIMAGEDLG_H
 
 #include "HYDROGUI_InputPanel.h"
+#include <HYDROData_Image.h>
 
 #include <QMap>
 
@@ -39,6 +40,7 @@ class QCheckBox;
 class QtxDoubleSpinBox;
 class QtxIntSpinBox;
 class QAbstractSpinBox;
+class QToolButton;
 
 class HYDROGUI_ImportImageDlg : public HYDROGUI_InputPanel
 {
@@ -105,6 +107,12 @@ public:
 
   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,
@@ -133,7 +141,7 @@ private:
   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,
@@ -142,10 +150,12 @@ signals:
   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