]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOME_PYQT/SalomePyQt.sip
Salome HOME
Porting to Mandrake 10.1 and new products:
[modules/kernel.git] / src / SALOME_PYQT / SalomePyQt.sip
1 %Module SalomePyQt
2
3 %Import qtmod.sip
4
5
6 class SALOME_Selection : QObject
7 {
8
9 %HeaderCode
10 #include <SALOME_Selection.h>
11 %End
12
13
14 public:
15   SALOME_Selection(const QString &);
16   void Clear();
17   void ClearIObjects();
18
19 signals:
20   void currentSelectionChanged();
21 };
22
23 enum MenuName {
24   File        = 1,
25   View        = 2,
26   Edit        = 3,
27   Preferences = 4,
28   Tools       = 5,
29   Window      = 6,
30   Help        = 7  
31 };
32
33 class SalomePyQt
34 {
35
36 %HeaderCode
37 #include <SalomePyQt.hxx>
38 %End
39
40 public:
41   static QWidget*    getDesktop();
42   static QWorkspace* getMainFrame();
43   static QMenuBar*   getMainMenuBar();
44   static QPopupMenu* getPopupMenu( const MenuName );
45   static SALOME_Selection* getSelection();
46   static int getStudyId();
47   static void putInfo( const QString& );
48   static void putInfo( const QString&, int );
49
50   static const QString& getActiveComponent();
51
52   static void updateObjBrowser( int, bool );
53
54
55   static bool removeSettings(QString);
56   static QString getSetting(QString);
57   static void addStringSetting(QString, QString, bool);
58   static void addIntSetting(QString, int, bool);
59   static void addDoubleSetting(QString, double, bool);
60
61   static QString getFileName(QWidget*, const QString&, const QStringList&, const QString&, bool);
62   static QStringList getOpenFileNames(QWidget*, const QString&, const QStringList&, const QString&);
63   static QString getExistingDirectory(QWidget*, const QString&, const QString&);
64   static void helpContext(const QString&, const QString&);
65   static bool dumpView(const QString&);
66 };