Salome HOME
Merge branch 'BR_H2018_2' of https://codev-tuleap.cea.fr/plugins/git/salome/hydro...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_SIProgressIndicator.h
diff --git a/src/HYDROGUI/HYDROGUI_SIProgressIndicator.h b/src/HYDROGUI/HYDROGUI_SIProgressIndicator.h
new file mode 100755 (executable)
index 0000000..b077de5
--- /dev/null
@@ -0,0 +1,53 @@
+// 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, 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
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef HYDROGUI_SIPROGRESSINDICATOR_H
+#define HYDROGUI_SIPROGRESSINDICATOR_H
+
+#include <QtxDialog.h>
+
+#include <Message_ProgressIndicator.hxx>
+
+class QProgressBar;
+
+class HYDROGUI_SIProgressIndicator : public QtxDialog, public Message_ProgressIndicator
+{
+  Q_OBJECT
+
+public:
+  HYDROGUI_SIProgressIndicator( QWidget* theParent );
+  virtual ~HYDROGUI_SIProgressIndicator();
+  
+  virtual Standard_Boolean Show (const Standard_Boolean theForce);
+
+  virtual Standard_Boolean UserBreak();
+
+  virtual void Reset();
+
+protected slots:
+  virtual void reject();
+
+private:
+  QProgressBar* myBar;
+  Standard_Boolean myUserBreak;
+
+public:
+  DEFINE_STANDARD_RTTIEXT (HYDROGUI_SIProgressIndicator, Message_ProgressIndicator)
+};
+
+#endif