From: admin Date: Fri, 20 May 2005 14:31:46 +0000 (+0000) Subject: This commit was generated by cvs2git to create tag X-Git-Tag: BR_V220_LifeCycle_20050520 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5217e3f2462d091aa6cb41999ab1a19acc1a3759;p=modules%2Fkernel.git This commit was generated by cvs2git to create tag 'BR_V220_LifeCycle_20050520'. Sprout from BR_V220_LifeCycle 2005-05-20 14:31:45 UTC prascle 'PR: compatibility with Supervision, use new Python thread states for safety' Cherrypick from V2_2_0_maintainance_18mar05 2005-04-04 06:22:47 UTC prascle 'PR: merge from tag V2_2_2': src/SALOME_PYQT/SalomePyQt_v4.sip --- diff --git a/src/SALOME_PYQT/SalomePyQt_v4.sip b/src/SALOME_PYQT/SalomePyQt_v4.sip new file mode 100644 index 000000000..69bbcfd13 --- /dev/null +++ b/src/SALOME_PYQT/SalomePyQt_v4.sip @@ -0,0 +1,62 @@ +%Module SalomePyQt + +%Import qtmod.sip + +class SALOME_Selection : QObject +{ +%TypeHeaderCode +#include +%End + +public: + SALOME_Selection(const QString &); + void Clear(); + void ClearIObjects(); + +signals: + void currentSelectionChanged(); +}; + +enum MenuName { + File = 1, + View = 2, + Edit = 3, + Preferences = 4, + Tools = 5, + Window = 6, + Help = 7 +}; + +class SalomePyQt +{ +%TypeHeaderCode +#include +%End + +public: + static QWidget* getDesktop(); + static QWorkspace* getMainFrame(); + static QMenuBar* getMainMenuBar(); + static QPopupMenu* getPopupMenu( const MenuName ); + static SALOME_Selection* getSelection(); + static int getStudyId(); + static void putInfo( const QString& ); + static void putInfo( const QString&, int ); + + static const QString& getActiveComponent(); + + static void updateObjBrowser( int, bool ); + + + static bool removeSettings(QString); + static QString getSetting(QString); + static void addStringSetting(QString, QString, bool); + static void addIntSetting(QString, int, bool); + static void addDoubleSetting(QString, double, bool); + + static QString getFileName(QWidget*, const QString&, const QStringList&, const QString&, bool); + static QStringList getOpenFileNames(QWidget*, const QString&, const QStringList&, const QString&); + static QString getExistingDirectory(QWidget*, const QString&, const QString&); + static void helpContext(const QString&, const QString&); + static bool dumpView(const QString&); +};