1 // Copyright (C) 2003 CEA/DEN, EDF R&D
5 // File : SalomePyQt.hxx
11 #include <SALOME_Selection.h>
14 #include <qworkspace.h>
31 static QWidget* getDesktop();
32 static QWorkspace* getMainFrame();
33 static QMenuBar* getMainMenuBar();
34 static QPopupMenu* getPopupMenu( const MenuName menu );
35 static SALOME_Selection* getSelection();
36 static int getStudyId();
37 static void putInfo( const QString& );
38 static void putInfo( const QString&, int );
40 static const QString& getActiveComponent();
42 static void updateObjBrowser( int studyId, bool updateSelection);
44 static void addStringSetting(QString _name, QString _value, bool _autoValue);
45 static void addIntSetting(QString _name, int _value, bool _autoValue);
46 static void addDoubleSetting(QString _name, double _value, bool _autoValue);
47 static bool removeSettings(QString name);
48 static QString getSetting(QString name);
50 static QString getFileName(QWidget* parent,
51 const QString& initial,
52 const QStringList& filters,
53 const QString& caption,
55 static QStringList getOpenFileNames(QWidget* parent,
56 const QString& initial,
57 const QStringList& filters,
58 const QString& caption);
59 static QString getExistingDirectory(QWidget* parent,
60 const QString& initial,
61 const QString& caption);
62 static void helpContext(const QString& source, const QString& context);
63 static bool dumpView(const QString& filename);