Salome HOME
This commit was generated by cvs2git to create tag 'V1_4_0b1'.
[modules/kernel.git] / src / SALOME_PYQT / SalomePyQt.hxx
1 //  Copyright (C) 2003  CEA/DEN, EDF R&D
2 //
3 //
4 //
5 //  File   : SalomePyQt.hxx
6 //  Module : SALOME
7
8 #ifndef _SALOME_PYQT_H
9 #define _SALOME_PYQT_H
10
11 #include <SALOME_Selection.h>
12
13 #include <qwidget.h>
14 #include <qworkspace.h>
15 #include <qstring.h>
16 #include <qmenubar.h>
17
18 class SalomePyQt
19 {
20 public:
21   static QWidget*          getDesktop();
22   static QWorkspace*       getMainFrame();
23   static QMenuBar*         getMainMenuBar();
24   static SALOME_Selection* getSelection();
25   static int               getStudyId();
26   static void              putInfo( const QString& );
27   static void              putInfo( const QString&, int );
28
29   static const QString&    getActiveComponent();
30
31   static void              updateObjBrowser( int studyId, bool updateSelection);
32
33   static void addStringSetting(QString _name, QString _value, bool _autoValue);
34   static void addIntSetting(QString _name, int _value, bool _autoValue);
35   static void addDoubleSetting(QString _name, double _value, bool _autoValue);
36   static bool removeSettings(QString name);
37   static QString getSetting(QString name);
38
39   static QString getFileName(QWidget*           parent, 
40                              const QString&     initial, 
41                              const QStringList& filters, 
42                              const QString&     caption,
43                              bool               open);
44   static QString getExistingDirectory(QWidget*       parent,
45                                       const QString& initial,
46                                       const QString& caption);
47   static void helpContext(const QString& source, const QString& context);
48 };
49
50 #endif