Salome HOME
size of image is limited by 7000 pixels
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageDlg.h
index fb4b3e1b6433c27b64721d744a692bd3c63250da..8e5e5e9c09a4d4f49005a863f3ede2da4a4a4d08 100644 (file)
@@ -1,8 +1,4 @@
-// Copyright (C) 2007-2015  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
@@ -24,6 +20,7 @@
 #define HYDROGUI_IMPORTIMAGEDLG_H
 
 #include "HYDROGUI_InputPanel.h"
+#include <HYDROData_Image.h>
 
 #include <QMap>
 
@@ -43,6 +40,7 @@ class QCheckBox;
 class QtxDoubleSpinBox;
 class QtxIntSpinBox;
 class QAbstractSpinBox;
+class QToolButton;
 
 class HYDROGUI_ImportImageDlg : public HYDROGUI_InputPanel
 {
@@ -109,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,
@@ -137,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,
@@ -146,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