36 #ifndef GUI_DISABLE_CORBA
40 #ifndef DISABLE_PLOT2DVIEWER
51 #ifndef DISABLE_PLOT2DVIEWER
93 #ifndef GUI_DISABLE_CORBA
133 virtual void store();
150 #ifndef DISABLE_PLOT2DVIEWER
171 #ifndef DISABLE_PLOT2DVIEWER
204 static int infoAddLabel(
const QString&,
const int = -1 );
205 static int infoAddLabel(
const QString&, Qt::Alignment,
const int = -1 );
207 static int infoAddGroup(
const QString&,
const int = -1 );
215 static void putInfo(
const QString&,
const int = 0 );
216 static int showNotification(
const QString&,
const QString&,
const int = -1 );
223 static QString
getFileName (
QWidget*,
const QString&,
const QStringList&,
const QString&,
bool );
228 static QString
createObject(
const QString& parent = QString() );
229 static QString
createObject(
const QString&,
const QString&,
const QString&,
const QString& = QString() );
233 static QStringList
getChildren(
const QString& = QString(),
const bool =
false );
234 static void setName(
const QString&,
const QString& );
235 static void setIcon(
const QString&,
const QString& );
236 static void setToolTip(
const QString&,
const QString& );
237 static QString
getName(
const QString& );
247 static void setColor(
const QString&,
const QColor& );
248 static QColor
getColor(
const QString& );
250 static void setReference(
const QString&,
const QString& );
253 static QIcon
loadIcon(
const QString&,
const QString& );
255 static void helpContext(
const QString&,
const QString& );
257 static bool dumpView(
const QString&,
const int = 0 );
261 static int createTool(
const QString&,
const QString& = QString() );
262 static int createTool(
const int,
const int,
const int = -1 );
263 static int createTool(
const int,
const QString&,
const int = -1 );
265 static int createTool(
QAction*,
const QString&,
const int = -1,
const int = -1 );
268 static int createMenu(
const QString&,
const int = -1,
269 const int = -1,
const int = -1,
const int = -1 );
270 static int createMenu(
const QString&,
const QString& = QString(),
271 const int = -1,
const int = -1,
const int = -1 );
272 static int createMenu(
const int,
const int = -1,
273 const int = -1,
const int = -1 );
274 static int createMenu(
const int,
const QString& = QString(),
275 const int = -1,
const int = -1 );
277 const int = -1,
const int = -1 );
279 const int = -1,
const int = -1 );
284 const QString& = QString(),
const QString& = QString(),
285 const QString& = QString(),
const int = 0,
const bool =
false );
292 static QString
constant (
const QString& );
293 static void setConstant (
const QString&,
const QString& );
294 static void addSetting (
const QString&,
const QString&,
const double );
295 static void addSetting (
const QString&,
const QString&,
const int );
296 static void addSetting (
const QString&,
const QString&,
const bool,
const int );
297 static void addSetting (
const QString&,
const QString&,
const QString& );
298 static void addSetting (
const QString&,
const QString&,
const QColor& );
299 static void addSetting (
const QString&,
const QString&,
const QByteArray& );
300 static void addSetting (
const QString&,
const QString&,
const QFont& );
301 static int integerSetting(
const QString&,
const QString&,
const int = 0 );
302 static double doubleSetting (
const QString&,
const QString&,
const double = 0 );
303 static bool boolSetting (
const QString&,
const QString&,
const bool = 0 );
304 static QString
stringSetting (
const QString&,
const QString&,
const QString& = QString(
""),
const bool =
true );
305 static QColor
colorSetting (
const QString&,
const QString&,
const QColor& = QColor() );
306 static QByteArray
byteArraySetting(
const QString&,
const QString&,
const QByteArray& = QByteArray() );
307 static QFont
fontSetting(
const QString&,
const QString&,
const QFont& = QFont() );
308 static void removeSetting (
const QString&,
const QString& );
309 static bool hasSetting (
const QString&,
const QString& );
310 static QStringList
parameters (
const QString& );
311 static QStringList
parameters (
const QStringList& );
316 const int,
const int =
PT_Auto,
317 const QString& = QString(),
318 const QString& = QString() );
324 static void message(
const QString&,
bool =
true );
332 static bool setViewSize(
const int,
const int,
const int = 0 );
338 static int createView(
const QString&,
bool visible =
true,
const int width = 0,
const int height = 0,
bool detached =
false );
349 static bool moveView(
const int,
const int,
const bool );
352 #ifndef DISABLE_PLOT2DVIEWER
361 static void setPlot2dFitRange(
const int,
const double XMin,
const double XMax,
const double YMin,
const double YMax);
368 static void addStringSetting(
const QString&,
const QString&,
bool =
true );
369 static void addIntSetting (
const QString&,
const int,
bool =
true );
370 static void addBoolSetting (
const QString&,
const bool,
bool =
true );
375 static void removeChild(
const QString& = QString() );
ObjectType
Type of titles in Plot3d View.
Definition: SalomePyQt.h:153
@ YAxis
Definition: SalomePyQt.h:159
@ YTitle
Definition: SalomePyQt.h:156
@ Y2Title
Definition: SalomePyQt.h:157
@ XTitle
Definition: SalomePyQt.h:155
@ Y2Axis
Definition: SalomePyQt.h:160
@ XAxis
Definition: SalomePyQt.h:158
@ MainTitle
Definition: SalomePyQt.h:154
Orientation
Orientation.
Definition: SalomePyQt.h:138
@ Vertical
Vertical orientation.
Definition: SalomePyQt.h:140
@ Horizontal
Horizontal orientation.
Definition: SalomePyQt.h:139
Action
Action of splitting corresponding to QtxWorkstack::SplitType enumeration.
Definition: SalomePyQt.h:144
@ SplitAt
the view area is splitted in such a way, that specified view and all views which follow it,...
Definition: SalomePyQt.h:147
@ MoveWidget
move specified widget to the new area, other views stay in the previous area
Definition: SalomePyQt.h:145
@ LeaveWidget
specified widget stays in the old area, all other views are moved to the new area
Definition: SalomePyQt.h:146
MenuName
Definition: SalomePyQt.h:78
@ File
Definition: SalomePyQt.h:79
@ Help
Definition: SalomePyQt.h:85
@ View
Definition: SalomePyQt.h:80
@ Preferences
Definition: SalomePyQt.h:82
@ Tools
Definition: SalomePyQt.h:83
@ Edit
Definition: SalomePyQt.h:81
@ Window
Definition: SalomePyQt.h:84
VisibilityState
Definition: SalomePyQt.h:165
@ UnpresentableState
Unpresentable object
Definition: SalomePyQt.h:168
@ ShownState
Object is shown in viewer.
Definition: SalomePyQt.h:166
@ HiddenState
Object is hidden in viewer.
Definition: SalomePyQt.h:167
Axis
Definition: SalomePyQt.h:172
@ xTop
Definition: SalomePyQt.h:176
@ xBottom
Definition: SalomePyQt.h:175
@ yRight
Definition: SalomePyQt.h:174
@ yLeft
Definition: SalomePyQt.h:173
@ PT_DirList
Definition: SalomePyQt.h:116
@ PT_Tab
Definition: SalomePyQt.h:113
@ PT_Auto
Definition: SalomePyQt.h:102
@ PT_UserDefined
Definition: SalomePyQt.h:123
@ PT_Frame
Definition: SalomePyQt.h:114
@ PT_Color
Definition: SalomePyQt.h:105
@ PT_Space
Definition: SalomePyQt.h:103
@ PT_Double
Definition: SalomePyQt.h:110
@ PT_String
Definition: SalomePyQt.h:106
@ PT_File
Definition: SalomePyQt.h:117
@ PT_Shortcut
Definition: SalomePyQt.h:119
@ PT_DblSpin
Definition: SalomePyQt.h:108
@ PT_Slider
Definition: SalomePyQt.h:118
@ PT_Selector
Definition: SalomePyQt.h:107
@ PT_Font
Definition: SalomePyQt.h:115
@ PT_Background
Definition: SalomePyQt.h:122
@ PT_Bool
Definition: SalomePyQt.h:104
@ PT_IntSpin
Definition: SalomePyQt.h:109
@ PT_BiColor
Definition: SalomePyQt.h:121
@ PT_Integer
Definition: SalomePyQt.h:111
@ PT_GroupBox
Definition: SalomePyQt.h:112
@ PT_ShortcutTree
Definition: SalomePyQt.h:120
@ WT_ObjectBrowser
Definition: SalomePyQt.h:89
@ WT_User
Definition: SalomePyQt.h:95
@ WT_InfoPanel
Definition: SalomePyQt.h:92
@ WT_LogWindow
Definition: SalomePyQt.h:91
@ WT_PyConsole
Definition: SalomePyQt.h:90
@ WT_NoteBook
Definition: SalomePyQt.h:94
Definition: LightApp_Application.h:76
@ WT_InfoPanel
Definition: LightApp_Application.h:81
@ WT_User
Definition: LightApp_Application.h:86
@ WT_PyConsole
Definition: LightApp_Application.h:83
@ WT_ObjectBrowser
Definition: LightApp_Application.h:80
@ WT_LogWindow
Definition: LightApp_Application.h:85
Definition: LightApp_SelectionMgr.h:53
Definition: Plot2d_Curve.h:34
@ Y2Title
Definition: Plot2d_ViewFrame.h:81
@ XTitle
Definition: Plot2d_ViewFrame.h:81
@ MainTitle
Definition: Plot2d_ViewFrame.h:81
@ Y2Axis
Definition: Plot2d_ViewFrame.h:81
@ XAxis
Definition: Plot2d_ViewFrame.h:81
@ YAxis
Definition: Plot2d_ViewFrame.h:81
@ YTitle
Definition: Plot2d_ViewFrame.h:81
For more information see QT documentation.
Definition: SUIT_Application.h:42
The QtxActionGroup class groups actions together.
Definition: QtxActionGroup.h:36
The class represents selection which can be used in Python.
Definition: SalomePyQt.h:56
SALOME_Selection(QObject *)
Constructor.
Definition: SalomePyQt.cxx:281
LightApp_SelectionMgr * mySelMgr
Definition: SalomePyQt.h:74
void currentSelectionChanged()
~SALOME_Selection()
Destructor.
Definition: SalomePyQt.cxx:294
void Clear()
Clear the selection.
Definition: SalomePyQt.cxx:316
void ClearFilters()
Definition: SalomePyQt.cxx:344
static SALOME_Selection * GetSelection(LightApp_Application *)
Get the selection object for the specified application.
Definition: SalomePyQt.cxx:266
void onSelMgrDestroyed()
Called when selection manager is destroyed (usually when the study is closed).
Definition: SalomePyQt.cxx:308
void ClearIObjects()
Clear the selection.
Definition: SalomePyQt.cxx:336
@ ShortcutTree
Definition: SUIT_PreferenceMgr.h:41
@ Double
Definition: SUIT_PreferenceMgr.h:39
@ Space
Definition: SUIT_PreferenceMgr.h:38
@ Frame
Definition: SUIT_PreferenceMgr.h:40
@ Color
Definition: SUIT_PreferenceMgr.h:38
@ Bool
Definition: SUIT_PreferenceMgr.h:38
@ BiColor
Definition: SUIT_PreferenceMgr.h:41
@ Shortcut
Definition: SUIT_PreferenceMgr.h:41
@ Auto
Definition: SUIT_PreferenceMgr.h:38
@ DirList
Definition: SUIT_PreferenceMgr.h:40
@ Selector
Definition: SUIT_PreferenceMgr.h:38
@ String
Definition: SUIT_PreferenceMgr.h:38
@ Integer
Definition: SUIT_PreferenceMgr.h:39
@ Slider
Definition: SUIT_PreferenceMgr.h:41
@ File
Definition: SUIT_PreferenceMgr.h:40
@ Font
Definition: SUIT_PreferenceMgr.h:40
@ IntSpin
Definition: SUIT_PreferenceMgr.h:39
@ Background
Definition: SUIT_PreferenceMgr.h:41
@ DblSpin
Definition: SUIT_PreferenceMgr.h:39
@ UserDefined
Definition: SUIT_PreferenceMgr.h:42
@ GroupBox
Definition: SUIT_PreferenceMgr.h:40
@ Tab
Definition: SUIT_PreferenceMgr.h:40
@ WT_User
Definition: SalomeApp_Application.h:78
@ WT_NoteBook
Definition: SalomeApp_Application.h:77
The class provides utility functions which can be used in the Python to operate with the SALOME GUI.
Definition: SalomePyQt.h:181
static QString getPlot2dTitle(const int, ObjectType=MainTitle)
Get title of corresponding type.
Definition: SalomePyQt.cxx:4812
static QColor colorSetting(const QString &, const QString &, const QColor &=QColor())
Get color setting from the application preferences.
Definition: SalomePyQt.cxx:1749
static void setObjectPosition(const QString &, int)
Set position of given object in the tree.
Definition: SalomePyQt.cxx:5020
static bool activateView(const int)
Activate view.
Definition: SalomePyQt.cxx:3661
static int getObjectPosition(const QString &)
Get position of given object in the tree.
Definition: SalomePyQt.cxx:5060
static void updateObjBrowser()
Update an Object Browser of the study.
Definition: SalomePyQt.cxx:995
static int addPreference(const QString &)
Add module-related preferences group.
Definition: SalomePyQt.cxx:2697
static void addBoolSetting(const QString &, const bool, bool=true)
Add boolean setting to the application preferences.
Definition: SalomePyQt.cxx:1232
static QString getToolTip(const QString &)
Get data object tooltip.
Definition: SalomePyQt.cxx:4524
static QList< double > getPlot2dFitRangeCurrent(const int)
Get list of current Plot2d view ranges.
Definition: SalomePyQt.cxx:4913
static QList< int > neighbourViews(const int)
Get list of views identifiers that belongs to the same area as specified view (excluding it)
Definition: SalomePyQt.cxx:4192
static void infoClear(const int=-1)
Clear Help panel's contents.
Definition: SalomePyQt.cxx:3109
static QWidget * getDesktop()
Get the active application's desktop window.
Definition: SalomePyQt.cxx:504
static void removeChild(const QString &=QString())
Definition: SalomePyQt.cxx:4618
static void removeSettings(const QString &)
Remove setting from the application preferences.
Definition: SalomePyQt.cxx:1265
static QFont fontSetting(const QString &, const QString &, const QFont &=QFont())
Get font setting from the application preferences.
Definition: SalomePyQt.cxx:1817
static QString createObject(const QString &parent=QString())
Create empty data object.
Definition: SalomePyQt.cxx:4254
static void addSetting(const QString &, const QString &, const double)
Add double setting to the application preferences.
Definition: SalomePyQt.cxx:1389
static void setViewVisible(const int id, bool visible=true)
Set view visibility.
Definition: SalomePyQt.cxx:3917
static void logAction(QAction *, const QString &=QString())
Log given action.
Definition: SalomePyQt.cxx:5132
static QWidget * getMainFrame()
Get current application's main frame widget [obsolete].
Definition: SalomePyQt.cxx:533
static void disableSelector()
disable PyQt_Selector (on module activation, for instance)
Definition: SalomePyQt.cxx:739
static void setPlot2dFitRange(const int, const double XMin, const double XMax, const double YMin, const double YMax)
Set range of Plot2d view.
Definition: SalomePyQt.cxx:4948
static void logUserEvent(const QString &)
Log GUI event.
Definition: SalomePyQt.cxx:5112
static void stopPyLog()
Stop recordind a log of Python commands from embedded console.
Definition: SalomePyQt.cxx:5091
static int infoAddAction(QAction *, const int=-1)
Insert action button into the Help panel.
Definition: SalomePyQt.cxx:3045
static void infoRemove(const int)
Remove item from the Help panel.
Definition: SalomePyQt.cxx:3085
static int getActiveView()
Get integer identifier of the currently active view.
Definition: SalomePyQt.cxx:3324
static QStringList getChildren(const QString &=QString(), const bool=false)
Get entries of all child data objects of specified data object.
Definition: SalomePyQt.cxx:4681
static QString stringSetting(const QString &, const QString &, const QString &=QString(""), const bool=true)
Get string setting from the application preferences.
Definition: SalomePyQt.cxx:1715
static void clearMessages()
Remove all the messages from the Log messages output window.
Definition: SalomePyQt.cxx:3184
static int createView(const QString &, bool visible=true, const int width=0, const int height=0, bool detached=false)
Definition: SalomePyQt.cxx:3781
static void setVisibilityState(const QString &, VisibilityState)
Set visibility state for given object.
Definition: SalomePyQt.cxx:4969
static void setToolTip(const QString &, const QString &)
Set data object tooltip.
Definition: SalomePyQt.cxx:4398
static bool hasSetting(const QString &, const QString &)
Check setting existence in the application preferences.
Definition: SalomePyQt.cxx:1872
static QList< int > findViews(const QString &)
Get list of integer identifiers of all the currently opened views of the specified type.
Definition: SalomePyQt.cxx:3629
static QString getName(const QString &)
Get data object name.
Definition: SalomePyQt.cxx:4493
static bool isViewVisible(const int)
Check whether view is visible ( i.e. it is on the top of the views stack)
Definition: SalomePyQt.cxx:3961
static int addGlobalPreference(const QString &)
Add global (not module-related) preferences group.
Definition: SalomePyQt.cxx:2664
static void setConstant(const QString &, const QString &)
Add constant to the application's resource manager.
Definition: SalomePyQt.cxx:1366
static QAction * action(const int)
Get action by specified identifier.
Definition: SalomePyQt.cxx:2608
static QString getReference(const QString &)
Definition: SalomePyQt.cxx:4555
static bool dumpView(const QString &, const int=0)
Dump the contents of the id view window. If id is 0 then current active view is processed....
Definition: SalomePyQt.cxx:3261
static SALOME_Selection * getSelection()
Get the selection object for the current study.
Definition: SalomePyQt.cxx:671
static void createRoot()
Initialize root data object.
Definition: SalomePyQt.cxx:4205
static QVariant preferenceProperty(const int, const QString &)
Get the preferences property.
Definition: SalomePyQt.cxx:2774
static int createMenu(const QString &, const int=-1, const int=-1, const int=-1, const int=-1)
Create main menu.
Definition: SalomePyQt.cxx:2394
static QTreeView * getObjectBrowser()
Get object browser.
Definition: SalomePyQt.cxx:646
static void setActionLoggingEnabled(bool)
Enable/disable action logging.
Definition: SalomePyQt.cxx:5151
static const QString getActiveComponent()
Get the currently active module name (for the current study).
Definition: SalomePyQt.cxx:914
static bool groupAllViews()
Group all views to the single tab area.
Definition: SalomePyQt.cxx:4049
static bool setViewTitle(const int, const QString &)
Change view caption
Definition: SalomePyQt.cxx:3387
static void enableSelector()
enable PyQt_Selector (on module activation, for instance)
Definition: SalomePyQt.cxx:717
static void infoSetVisible(const int, bool)
Set item's visibility in the Help panel.
Definition: SalomePyQt.cxx:3134
static int cloneView(const int)
Clone view (if this operation is supported for specified view type)
Definition: SalomePyQt.cxx:3905
static int integerSetting(const QString &, const QString &, const int=0)
Get integer setting from the application preferences.
Definition: SalomePyQt.cxx:1610
static void infoSetTitle(const QString &)
Set the title to the Help panel.
Definition: SalomePyQt.cxx:2935
static QAction * createSeparator()
Create separator action which can be used in the menu or toolbar.
Definition: SalomePyQt.cxx:2485
static QString getViewType(const int)
Get type of the specified view, e.g. "OCCViewer".
Definition: SalomePyQt.cxx:3354
static PyObject * getActivePythonModule()
Access to Python module object currently loaded into SALOME_PYQT_ModuleLight container.
Definition: SalomePyQt.cxx:938
static void registerModule(const QString &)
Registers module in the study tree.
Definition: SalomePyQt.cxx:975
static QByteArray byteArraySetting(const QString &, const QString &, const QByteArray &=QByteArray())
Get byte array setting from the application preferences.
Definition: SalomePyQt.cxx:1783
static QString getFileName(QWidget *, const QString &, const QStringList &, const QString &, bool)
Show 'Open/Save file' dialog box for file selection and return a user's choice (selected file name).
Definition: SalomePyQt.cxx:1966
static void addDoubleSetting(const QString &, const double, bool=true)
Add double setting to the application preferences.
Definition: SalomePyQt.cxx:1193
static bool moveView(const int, const int, const bool)
Move view with the first identifier to the same area which another view with the second identifier be...
Definition: SalomePyQt.cxx:4152
static void setIcon(const QString &, const QString &)
Set data object icon.
Definition: SalomePyQt.cxx:4366
static QString getSetting(const QString &)
Get application setting value (as string represenation).
Definition: SalomePyQt.cxx:1317
static QStringList getComponents()
Get all modules used in current GUI session.
Definition: SalomePyQt.cxx:888
static void setSelection(const QStringList &)
Send local selection for notification.
Definition: SalomePyQt.cxx:696
static QWidget * getViewWidget(const int)
Definition: SalomePyQt.cxx:3721
static int infoAddLabel(const QString &, const int=-1)
Insert left-aligned text label into the Help panel.
Definition: SalomePyQt.cxx:2981
static void updateCurves(const int)
updateCurves (repaint) curves in view window.
Definition: SalomePyQt.cxx:4771
static QStringList getOpenFileNames(QWidget *, const QString &, const QStringList &, const QString &)
Show 'Open files' dialog box for multiple files selection and return a user's choice (selected file n...
Definition: SalomePyQt.cxx:2013
static QAction * createAction(const int, const QString &, const QString &=QString(), const QString &=QString(), const QString &=QString(), const int=0, const bool=false)
Create an action which can be then used in the menu or toolbar.
Definition: SalomePyQt.cxx:2553
static VisibilityState getVisibilityState(const QString &)
Get visibility state for given object.
Definition: SalomePyQt.cxx:5010
static bool isLightApp()
Check if SALOME GUI is running in "light" mode.
Definition: SalomePyQt.cxx:481
static QString getExistingDirectory(QWidget *, const QString &, const QString &)
Show 'Get Directory' dialog box for the directory selection and return a user's choice (selected dire...
Definition: SalomePyQt.cxx:2054
static QList< double > getPlot2dFitRangeByCurves(const int)
Get list of Plot2d view ranges.
Definition: SalomePyQt.cxx:4879
static bool setViewRotationPoint(const double, const double, const double, const int=0)
Set view rotation point.
Definition: SalomePyQt.cxx:3559
static void hideNotification(const QString &)
Remove notification with given message text from the application's desktop.
Definition: SalomePyQt.cxx:853
static void setReference(const QString &, const QString &)
Set reference to another data object.
Definition: SalomePyQt.cxx:4430
static bool activateViewManagerAndView(const int)
Definition: SalomePyQt.cxx:3695
static bool isModified()
Definition: SalomePyQt.cxx:1051
static double doubleSetting(const QString &, const QString &, const double=0)
Get double setting from the application preferences.
Definition: SalomePyQt.cxx:1644
static void putInfo(const QString &, const int=0)
Put an information message to the current application's desktop status bar.
Definition: SalomePyQt.cxx:771
static bool isViewClosable(const int)
Check whether view is closable (i.e. can be closed by the user)
Definition: SalomePyQt.cxx:4016
static QIcon loadIcon(const QString &, const QString &)
Load an icon from the module resources by the specified file name.
Definition: SalomePyQt.cxx:2083
static int actionId(const QAction *)
Get an action identifier.
Definition: SalomePyQt.cxx:2634
static void clearTool(const QString &)
Clear given toolbar.
Definition: SalomePyQt.cxx:2268
static bool boolSetting(const QString &, const QString &, const bool=0)
Get boolean setting from the application preferences.
Definition: SalomePyQt.cxx:1678
static void addIntSetting(const QString &, const int, bool=true)
Add integer setting to the application preferences.
Definition: SalomePyQt.cxx:1154
static void setPreferenceProperty(const int, const QString &, const QVariant &)
Set the preferences property.
Definition: SalomePyQt.cxx:2785
static bool closeView(const int)
Close view.
Definition: SalomePyQt.cxx:3855
static void removeObject(const QString &)
Remove object by entry.
Definition: SalomePyQt.cxx:4648
static int infoAddGroup(const QString &, const int=-1)
Create a (sub-)group in the Help panel.
Definition: SalomePyQt.cxx:3076
static void infoSetEnabled(const int, bool)
Enable/disable item in the Help panel.
Definition: SalomePyQt.cxx:3160
static void message(const QString &, bool=true)
Put the message to the Log messages output window.
Definition: SalomePyQt.cxx:2910
static void setModified(bool)
Definition: SalomePyQt.cxx:1070
static void addStringSetting(const QString &, const QString &, bool=true)
Add string setting to the application preferences.
Definition: SalomePyQt.cxx:1115
static QMenu * getPopupMenu(const MenuName)
Get main menu's child popup submenu by its identifier.
Definition: SalomePyQt.cxx:600
static QColor getColor(const QString &)
Get data object color.
Definition: SalomePyQt.cxx:4586
static void setViewClosable(const int, const bool)
Set / clear view's "closable" option. By default any view is closable (i.e. can be closed by the user...
Definition: SalomePyQt.cxx:3974
static void startPyLog(const QString &)
Start recordind a log of Python commands from embedded console.
Definition: SalomePyQt.cxx:5069
static QMenuBar * getMainMenuBar()
Get current application desktop's main menu.
Definition: SalomePyQt.cxx:557
static void setColor(const QString &, const QColor &)
Set data object color.
Definition: SalomePyQt.cxx:4462
static int showNotification(const QString &, const QString &, const int=-1)
Show notification in the application's desktop window.
Definition: SalomePyQt.cxx:813
static bool setViewSize(const int, const int, const int=0)
Set view size.
Definition: SalomePyQt.cxx:3480
static void removeChildren(const QString &=QString())
Remove all child data objects from specified data object.
Definition: SalomePyQt.cxx:4614
static QtxActionGroup * createActionGroup(const int, const bool=true)
Create an action group which can be then used in the menu or toolbar.
Definition: SalomePyQt.cxx:2582
static void helpContext(const QString &, const QString &)
Open external browser to display context help information.
Definition: SalomePyQt.cxx:2097
static bool activateModule(const QString &)
Activates SALOME module with the given name.
Definition: SalomePyQt.cxx:965
static void setPreferencePropertyWg(const int, const QString &, UserDefinedContent *)
Set specific widget as a custom preferences item.
Definition: SalomePyQt.cxx:2816
static void removeSetting(const QString &, const QString &)
Remove setting from the application preferences.
Definition: SalomePyQt.cxx:1827
static void processEvents()
Process Qt event loop.
Definition: SalomePyQt.cxx:4959
static int defaultMenuGroup()
Get detault menu group identifier which can be used when creating menus (insert custom menu commands)...
Definition: SalomePyQt.cxx:2134
static QList< int > getViews()
Get list of integer identifiers of all the currently opened views.
Definition: SalomePyQt.cxx:3293
static void addPreferenceProperty(const int, const QString &, const int, const QVariant &)
Add the property value to the list of values.
Definition: SalomePyQt.cxx:2853
static void setName(const QString &, const QString &)
Set data object name.
Definition: SalomePyQt.cxx:4333
static void eraseCurve(const int, Plot2d_Curve *)
Erase theCurve in view.
Definition: SalomePyQt.cxx:4731
static QString getAppName()
Get application name.
Definition: SalomePyQt.cxx:469
static void setPlot2dTitle(const int, const QString &, ObjectType=MainTitle, bool=true)
Set title of corresponding type.
Definition: SalomePyQt.cxx:4845
static QString getViewTitle(const int)
Get view caption
Definition: SalomePyQt.cxx:3586
static QString constant(const QString &)
Get constant's value from application's resource manager.
Definition: SalomePyQt.cxx:1345
static void displayCurve(const int, Plot2d_Curve *)
Display theCurve in view.
Definition: SalomePyQt.cxx:4708
static int createTool(const QString &, const QString &=QString())
Create toolbar with specified name.
Definition: SalomePyQt.cxx:2221
static QStringList parameters(const QString &)
Get names of preference items stored within the given section.
Definition: SalomePyQt.cxx:1912
static bool splitView(const int, const Orientation, const Action)
Split tab area to which view with identifier belongs to.
Definition: SalomePyQt.cxx:4111
The class represents base class for user defined widget that can be inserted to the Preferences dialo...
Definition: SalomePyQt.h:127
virtual void store()
Called from Preferences dialog to store settings to the resource file.
Definition: SalomePyQt.cxx:378
UserDefinedContent()
Constructor.
Definition: SalomePyQt.cxx:370
virtual void retrieve()
Called from Preferences dialog to restore settings from the resource file.
Definition: SalomePyQt.cxx:385