]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROGUI/HYDROGUI_RunBrowser.h
Salome HOME
refs #207 - "Help" button doesn't work
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_RunBrowser.h
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 #ifndef HYDROGUI_HYDROGUI_RunBrowser_H
24 #define HYDROGUI_HYDROGUI_RunBrowser_H
25
26 #include <QThread>
27
28 class LightApp_Application;
29
30 /*!
31   \class HYDROGUI_RunBrowser
32   Runs system command in separate thread
33 */
34 class HYDROGUI_RunBrowser : public QThread
35 {
36 public:
37   HYDROGUI_RunBrowser( LightApp_Application* app,
38               const QString&        theApp,
39               const QString&        theParams,
40               const QString&        theHelpFile,
41               const QString&        theContext = QString() );
42   ~HYDROGUI_RunBrowser() {}
43
44   virtual void run();
45
46   static void showPage( LightApp_Application* theApp,
47                         const QString& thePage );
48
49   static QString getPagePath( const QString& theModuleName );
50
51 private:
52   QString               myApp;
53   QString               myParams;
54   QString               myHelpFile;
55   QString               myContext;
56   int                   myStatus;
57   LightApp_Application* myLApp;
58 };
59
60 #endif