36 #ifndef GUI_DISABLE_CORBA
40 #ifndef DISABLE_PLOT2DVIEWER
51 #ifndef DISABLE_PLOT2DVIEWER
93 #ifndef GUI_DISABLE_CORBA
132 virtual void store();
149 #ifndef DISABLE_PLOT2DVIEWER
170 #ifndef DISABLE_PLOT2DVIEWER
203 static int infoAddLabel(
const QString&,
const int = -1 );
204 static int infoAddLabel(
const QString&, Qt::Alignment,
const int = -1 );
206 static int infoAddGroup(
const QString&,
const int = -1 );
214 static void putInfo(
const QString&,
const int = 0 );
215 static int showNotification(
const QString&,
const QString&,
const int = -1 );
222 static QString
getFileName (
QWidget*,
const QString&,
const QStringList&,
const QString&,
bool );
227 static QString
createObject(
const QString& parent = QString() );
228 static QString
createObject(
const QString&,
const QString&,
const QString&,
const QString& = QString() );
232 static QStringList
getChildren(
const QString& = QString(),
const bool =
false );
233 static void setName(
const QString&,
const QString& );
234 static void setIcon(
const QString&,
const QString& );
235 static void setToolTip(
const QString&,
const QString& );
236 static QString
getName(
const QString& );
246 static void setColor(
const QString&,
const QColor& );
247 static QColor
getColor(
const QString& );
249 static void setReference(
const QString&,
const QString& );
252 static QIcon
loadIcon(
const QString&,
const QString& );
254 static void helpContext(
const QString&,
const QString& );
256 static bool dumpView(
const QString&,
const int = 0 );
260 static int createTool(
const QString&,
const QString& = QString() );
261 static int createTool(
const int,
const int,
const int = -1 );
262 static int createTool(
const int,
const QString&,
const int = -1 );
264 static int createTool(
QAction*,
const QString&,
const int = -1,
const int = -1 );
267 static int createMenu(
const QString&,
const int = -1,
268 const int = -1,
const int = -1,
const int = -1 );
269 static int createMenu(
const QString&,
const QString& = QString(),
270 const int = -1,
const int = -1,
const int = -1 );
271 static int createMenu(
const int,
const int = -1,
272 const int = -1,
const int = -1 );
273 static int createMenu(
const int,
const QString& = QString(),
274 const int = -1,
const int = -1 );
276 const int = -1,
const int = -1 );
278 const int = -1,
const int = -1 );
283 const QString& = QString(),
const QString& = QString(),
284 const QString& = QString(),
const int = 0,
const bool =
false );
291 static QString
constant (
const QString& );
292 static void setConstant (
const QString&,
const QString& );
293 static void addSetting (
const QString&,
const QString&,
const double );
294 static void addSetting (
const QString&,
const QString&,
const int );
295 static void addSetting (
const QString&,
const QString&,
const bool,
const int );
296 static void addSetting (
const QString&,
const QString&,
const QString& );
297 static void addSetting (
const QString&,
const QString&,
const QColor& );
298 static void addSetting (
const QString&,
const QString&,
const QByteArray& );
299 static void addSetting (
const QString&,
const QString&,
const QFont& );
300 static int integerSetting(
const QString&,
const QString&,
const int = 0 );
301 static double doubleSetting (
const QString&,
const QString&,
const double = 0 );
302 static bool boolSetting (
const QString&,
const QString&,
const bool = 0 );
303 static QString
stringSetting (
const QString&,
const QString&,
const QString& = QString(
""),
const bool =
true );
304 static QColor
colorSetting (
const QString&,
const QString&,
const QColor& = QColor() );
305 static QByteArray
byteArraySetting(
const QString&,
const QString&,
const QByteArray& = QByteArray() );
306 static QFont
fontSetting(
const QString&,
const QString&,
const QFont& = QFont() );
307 static void removeSetting (
const QString&,
const QString& );
308 static bool hasSetting (
const QString&,
const QString& );
309 static QStringList
parameters (
const QString& );
310 static QStringList
parameters (
const QStringList& );
315 const int,
const int =
PT_Auto,
316 const QString& = QString(),
317 const QString& = QString() );
323 static void message(
const QString&,
bool =
true );
331 static bool setViewSize(
const int,
const int,
const int = 0 );
337 static int createView(
const QString&,
bool visible =
true,
const int width = 0,
const int height = 0,
bool detached =
false );
348 static bool moveView(
const int,
const int,
const bool );
351 #ifndef DISABLE_PLOT2DVIEWER
360 static void setPlot2dFitRange(
const int,
const double XMin,
const double XMax,
const double YMin,
const double YMax);
367 static void addStringSetting(
const QString&,
const QString&,
bool =
true );
368 static void addIntSetting (
const QString&,
const int,
bool =
true );
369 static void addBoolSetting (
const QString&,
const bool,
bool =
true );
374 static void removeChild(
const QString& = QString() );
ObjectType
Type of titles in Plot3d View.
Definition: SalomePyQt.h:152
@ YAxis
Definition: SalomePyQt.h:158
@ YTitle
Definition: SalomePyQt.h:155
@ Y2Title
Definition: SalomePyQt.h:156
@ XTitle
Definition: SalomePyQt.h:154
@ Y2Axis
Definition: SalomePyQt.h:159
@ XAxis
Definition: SalomePyQt.h:157
@ MainTitle
Definition: SalomePyQt.h:153
Orientation
Orientation.
Definition: SalomePyQt.h:137
@ Vertical
Vertical orientation.
Definition: SalomePyQt.h:139
@ Horizontal
Horizontal orientation.
Definition: SalomePyQt.h:138
Action
Action of splitting corresponding to QtxWorkstack::SplitType enumeration.
Definition: SalomePyQt.h:143
@ SplitAt
the view area is splitted in such a way, that specified view and all views which follow it,...
Definition: SalomePyQt.h:146
@ MoveWidget
move specified widget to the new area, other views stay in the previous area
Definition: SalomePyQt.h:144
@ LeaveWidget
specified widget stays in the old area, all other views are moved to the new area
Definition: SalomePyQt.h:145
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:164
@ UnpresentableState
Unpresentable object.
Definition: SalomePyQt.h:167
@ ShownState
Object is shown in viewer.
Definition: SalomePyQt.h:165
@ HiddenState
Object is hidden in viewer.
Definition: SalomePyQt.h:166
Axis
Definition: SalomePyQt.h:171
@ xTop
Definition: SalomePyQt.h:175
@ xBottom
Definition: SalomePyQt.h:174
@ yRight
Definition: SalomePyQt.h:173
@ yLeft
Definition: SalomePyQt.h:172
@ 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
@ PT_DirList
Definition: SalomePyQt.h:116
@ PT_Tab
Definition: SalomePyQt.h:113
@ PT_Auto
Definition: SalomePyQt.h:102
@ PT_UserDefined
Definition: SalomePyQt.h:122
@ 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_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:121
@ PT_Bool
Definition: SalomePyQt.h:104
@ PT_IntSpin
Definition: SalomePyQt.h:109
@ PT_BiColor
Definition: SalomePyQt.h:120
@ PT_Integer
Definition: SalomePyQt.h:111
@ PT_GroupBox
Definition: SalomePyQt.h:112
@ PT_ShortcutTree
Definition: SalomePyQt.h:119
Definition: LightApp_Application.h:77
@ WT_InfoPanel
Definition: LightApp_Application.h:82
@ WT_User
Definition: LightApp_Application.h:87
@ WT_PyConsole
Definition: LightApp_Application.h:84
@ WT_ObjectBrowser
Definition: LightApp_Application.h:81
@ WT_LogWindow
Definition: LightApp_Application.h:86
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:282
LightApp_SelectionMgr * mySelMgr
Definition: SalomePyQt.h:74
void currentSelectionChanged()
~SALOME_Selection()
Destructor.
Definition: SalomePyQt.cxx:295
void Clear()
Clear the selection.
Definition: SalomePyQt.cxx:317
void ClearFilters()
Definition: SalomePyQt.cxx:345
static SALOME_Selection * GetSelection(LightApp_Application *)
Get the selection object for the specified application.
Definition: SalomePyQt.cxx:267
void onSelMgrDestroyed()
Called when selection manager is destroyed (usually when the study is closed).
Definition: SalomePyQt.cxx:309
void ClearIObjects()
Clear the selection.
Definition: SalomePyQt.cxx:337
@ 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
@ 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:180
static QString getPlot2dTitle(const int, ObjectType=MainTitle)
Get title of corresponding type.
Definition: SalomePyQt.cxx:4813
static QColor colorSetting(const QString &, const QString &, const QColor &=QColor())
Get color setting from the application preferences.
Definition: SalomePyQt.cxx:1750
static void setObjectPosition(const QString &, int)
Set position of given object in the tree.
Definition: SalomePyQt.cxx:5021
static bool activateView(const int)
Activate view.
Definition: SalomePyQt.cxx:3662
static int getObjectPosition(const QString &)
Get position of given object in the tree.
Definition: SalomePyQt.cxx:5061
static void updateObjBrowser()
Update an Object Browser of the study.
Definition: SalomePyQt.cxx:996
static int addPreference(const QString &)
Add module-related preferences group.
Definition: SalomePyQt.cxx:2698
static void addBoolSetting(const QString &, const bool, bool=true)
Add boolean setting to the application preferences.
Definition: SalomePyQt.cxx:1233
static QString getToolTip(const QString &)
Get data object tooltip.
Definition: SalomePyQt.cxx:4525
static QList< double > getPlot2dFitRangeCurrent(const int)
Get list of current Plot2d view ranges.
Definition: SalomePyQt.cxx:4914
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:4193
static void infoClear(const int=-1)
Clear Help panel's contents.
Definition: SalomePyQt.cxx:3110
static QWidget * getDesktop()
Get the active application's desktop window.
Definition: SalomePyQt.cxx:505
static void removeChild(const QString &=QString())
Definition: SalomePyQt.cxx:4619
static void removeSettings(const QString &)
Remove setting from the application preferences.
Definition: SalomePyQt.cxx:1266
static QFont fontSetting(const QString &, const QString &, const QFont &=QFont())
Get font setting from the application preferences.
Definition: SalomePyQt.cxx:1818
static QString createObject(const QString &parent=QString())
Create empty data object.
Definition: SalomePyQt.cxx:4255
static void addSetting(const QString &, const QString &, const double)
Add double setting to the application preferences.
Definition: SalomePyQt.cxx:1390
static void setViewVisible(const int id, bool visible=true)
Set view visibility.
Definition: SalomePyQt.cxx:3918
static void logAction(QAction *, const QString &=QString())
Log given action.
Definition: SalomePyQt.cxx:5133
static QWidget * getMainFrame()
Get current application's main frame widget [obsolete].
Definition: SalomePyQt.cxx:534
static void disableSelector()
disable PyQt_Selector (on module activation, for instance)
Definition: SalomePyQt.cxx:740
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:4949
static void logUserEvent(const QString &)
Log GUI event.
Definition: SalomePyQt.cxx:5113
static void stopPyLog()
Stop recordind a log of Python commands from embedded console.
Definition: SalomePyQt.cxx:5092
static int infoAddAction(QAction *, const int=-1)
Insert action button into the Help panel.
Definition: SalomePyQt.cxx:3046
static void infoRemove(const int)
Remove item from the Help panel.
Definition: SalomePyQt.cxx:3086
static int getActiveView()
Get integer identifier of the currently active view.
Definition: SalomePyQt.cxx:3325
static QStringList getChildren(const QString &=QString(), const bool=false)
Get entries of all child data objects of specified data object.
Definition: SalomePyQt.cxx:4682
static QString stringSetting(const QString &, const QString &, const QString &=QString(""), const bool=true)
Get string setting from the application preferences.
Definition: SalomePyQt.cxx:1716
static void clearMessages()
Remove all the messages from the Log messages output window.
Definition: SalomePyQt.cxx:3185
static int createView(const QString &, bool visible=true, const int width=0, const int height=0, bool detached=false)
Definition: SalomePyQt.cxx:3782
static void setVisibilityState(const QString &, VisibilityState)
Set visibility state for given object.
Definition: SalomePyQt.cxx:4970
static void setToolTip(const QString &, const QString &)
Set data object tooltip.
Definition: SalomePyQt.cxx:4399
static bool hasSetting(const QString &, const QString &)
Check setting existence in the application preferences.
Definition: SalomePyQt.cxx:1873
static QList< int > findViews(const QString &)
Get list of integer identifiers of all the currently opened views of the specified type.
Definition: SalomePyQt.cxx:3630
static QString getName(const QString &)
Get data object name.
Definition: SalomePyQt.cxx:4494
static bool isViewVisible(const int)
Check whether view is visible ( i.e. it is on the top of the views stack)
Definition: SalomePyQt.cxx:3962
static int addGlobalPreference(const QString &)
Add global (not module-related) preferences group.
Definition: SalomePyQt.cxx:2665
static void setConstant(const QString &, const QString &)
Add constant to the application's resource manager.
Definition: SalomePyQt.cxx:1367
static QAction * action(const int)
Get action by specified identifier.
Definition: SalomePyQt.cxx:2609
static QString getReference(const QString &)
Definition: SalomePyQt.cxx:4556
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:3262
static SALOME_Selection * getSelection()
Get the selection object for the current study.
Definition: SalomePyQt.cxx:672
static void createRoot()
Initialize root data object.
Definition: SalomePyQt.cxx:4206
static QVariant preferenceProperty(const int, const QString &)
Get the preferences property.
Definition: SalomePyQt.cxx:2775
static int createMenu(const QString &, const int=-1, const int=-1, const int=-1, const int=-1)
Create main menu.
Definition: SalomePyQt.cxx:2395
static QTreeView * getObjectBrowser()
Get object browser.
Definition: SalomePyQt.cxx:647
static void setActionLoggingEnabled(bool)
Enable/disable action logging.
Definition: SalomePyQt.cxx:5152
static const QString getActiveComponent()
Get the currently active module name (for the current study).
Definition: SalomePyQt.cxx:915
static bool groupAllViews()
Group all views to the single tab area.
Definition: SalomePyQt.cxx:4050
static bool setViewTitle(const int, const QString &)
Change view caption
Definition: SalomePyQt.cxx:3388
static void enableSelector()
enable PyQt_Selector (on module activation, for instance)
Definition: SalomePyQt.cxx:718
static void infoSetVisible(const int, bool)
Set item's visibility in the Help panel.
Definition: SalomePyQt.cxx:3135
static int cloneView(const int)
Clone view (if this operation is supported for specified view type)
Definition: SalomePyQt.cxx:3906
static int integerSetting(const QString &, const QString &, const int=0)
Get integer setting from the application preferences.
Definition: SalomePyQt.cxx:1611
static void infoSetTitle(const QString &)
Set the title to the Help panel.
Definition: SalomePyQt.cxx:2936
static QAction * createSeparator()
Create separator action which can be used in the menu or toolbar.
Definition: SalomePyQt.cxx:2486
static QString getViewType(const int)
Get type of the specified view, e.g. "OCCViewer".
Definition: SalomePyQt.cxx:3355
static PyObject * getActivePythonModule()
Access to Python module object currently loaded into SALOME_PYQT_ModuleLight container.
Definition: SalomePyQt.cxx:939
static void registerModule(const QString &)
Registers module in the study tree.
Definition: SalomePyQt.cxx:976
static QByteArray byteArraySetting(const QString &, const QString &, const QByteArray &=QByteArray())
Get byte array setting from the application preferences.
Definition: SalomePyQt.cxx:1784
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:1967
static void addDoubleSetting(const QString &, const double, bool=true)
Add double setting to the application preferences.
Definition: SalomePyQt.cxx:1194
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:4153
static void setIcon(const QString &, const QString &)
Set data object icon.
Definition: SalomePyQt.cxx:4367
static QString getSetting(const QString &)
Get application setting value (as string represenation).
Definition: SalomePyQt.cxx:1318
static QStringList getComponents()
Get all modules used in current GUI session.
Definition: SalomePyQt.cxx:889
static void setSelection(const QStringList &)
Send local selection for notification.
Definition: SalomePyQt.cxx:697
static QWidget * getViewWidget(const int)
Definition: SalomePyQt.cxx:3722
static int infoAddLabel(const QString &, const int=-1)
Insert left-aligned text label into the Help panel.
Definition: SalomePyQt.cxx:2982
static void updateCurves(const int)
updateCurves (repaint) curves in view window.
Definition: SalomePyQt.cxx:4772
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:2014
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:2554
static VisibilityState getVisibilityState(const QString &)
Get visibility state for given object.
Definition: SalomePyQt.cxx:5011
static bool isLightApp()
Check if SALOME GUI is running in "light" mode.
Definition: SalomePyQt.cxx:482
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:2055
static QList< double > getPlot2dFitRangeByCurves(const int)
Get list of Plot2d view ranges.
Definition: SalomePyQt.cxx:4880
static bool setViewRotationPoint(const double, const double, const double, const int=0)
Set view rotation point.
Definition: SalomePyQt.cxx:3560
static void hideNotification(const QString &)
Remove notification with given message text from the application's desktop.
Definition: SalomePyQt.cxx:854
static void setReference(const QString &, const QString &)
Set reference to another data object.
Definition: SalomePyQt.cxx:4431
static bool activateViewManagerAndView(const int)
Definition: SalomePyQt.cxx:3696
static bool isModified()
Definition: SalomePyQt.cxx:1052
static double doubleSetting(const QString &, const QString &, const double=0)
Get double setting from the application preferences.
Definition: SalomePyQt.cxx:1645
static void putInfo(const QString &, const int=0)
Put an information message to the current application's desktop status bar.
Definition: SalomePyQt.cxx:772
static bool isViewClosable(const int)
Check whether view is closable (i.e. can be closed by the user)
Definition: SalomePyQt.cxx:4017
static QIcon loadIcon(const QString &, const QString &)
Load an icon from the module resources by the specified file name.
Definition: SalomePyQt.cxx:2084
static int actionId(const QAction *)
Get an action identifier.
Definition: SalomePyQt.cxx:2635
static void clearTool(const QString &)
Clear given toolbar.
Definition: SalomePyQt.cxx:2269
static bool boolSetting(const QString &, const QString &, const bool=0)
Get boolean setting from the application preferences.
Definition: SalomePyQt.cxx:1679
static void addIntSetting(const QString &, const int, bool=true)
Add integer setting to the application preferences.
Definition: SalomePyQt.cxx:1155
static void setPreferenceProperty(const int, const QString &, const QVariant &)
Set the preferences property.
Definition: SalomePyQt.cxx:2786
static bool closeView(const int)
Close view.
Definition: SalomePyQt.cxx:3856
static void removeObject(const QString &)
Remove object by entry.
Definition: SalomePyQt.cxx:4649
static int infoAddGroup(const QString &, const int=-1)
Create a (sub-)group in the Help panel.
Definition: SalomePyQt.cxx:3077
static void infoSetEnabled(const int, bool)
Enable/disable item in the Help panel.
Definition: SalomePyQt.cxx:3161
static void message(const QString &, bool=true)
Put the message to the Log messages output window.
Definition: SalomePyQt.cxx:2911
static void setModified(bool)
Definition: SalomePyQt.cxx:1071
static void addStringSetting(const QString &, const QString &, bool=true)
Add string setting to the application preferences.
Definition: SalomePyQt.cxx:1116
static QMenu * getPopupMenu(const MenuName)
Get main menu's child popup submenu by its identifier.
Definition: SalomePyQt.cxx:601
static QColor getColor(const QString &)
Get data object color.
Definition: SalomePyQt.cxx:4587
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:3975
static void startPyLog(const QString &)
Start recordind a log of Python commands from embedded console.
Definition: SalomePyQt.cxx:5070
static QMenuBar * getMainMenuBar()
Get current application desktop's main menu.
Definition: SalomePyQt.cxx:558
static void setColor(const QString &, const QColor &)
Set data object color.
Definition: SalomePyQt.cxx:4463
static int showNotification(const QString &, const QString &, const int=-1)
Show notification in the application's desktop window.
Definition: SalomePyQt.cxx:814
static bool setViewSize(const int, const int, const int=0)
Set view size.
Definition: SalomePyQt.cxx:3481
static void removeChildren(const QString &=QString())
Remove all child data objects from specified data object.
Definition: SalomePyQt.cxx:4615
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:2583
static void helpContext(const QString &, const QString &)
Open external browser to display context help information.
Definition: SalomePyQt.cxx:2098
static bool activateModule(const QString &)
Activates SALOME module with the given name.
Definition: SalomePyQt.cxx:966
static void setPreferencePropertyWg(const int, const QString &, UserDefinedContent *)
Set specific widget as a custom preferences item.
Definition: SalomePyQt.cxx:2817
static void removeSetting(const QString &, const QString &)
Remove setting from the application preferences.
Definition: SalomePyQt.cxx:1828
static void processEvents()
Process Qt event loop.
Definition: SalomePyQt.cxx:4960
static int defaultMenuGroup()
Get detault menu group identifier which can be used when creating menus (insert custom menu commands)...
Definition: SalomePyQt.cxx:2135
static QList< int > getViews()
Get list of integer identifiers of all the currently opened views.
Definition: SalomePyQt.cxx:3294
static void addPreferenceProperty(const int, const QString &, const int, const QVariant &)
Add the property value to the list of values.
Definition: SalomePyQt.cxx:2854
static void setName(const QString &, const QString &)
Set data object name.
Definition: SalomePyQt.cxx:4334
static void eraseCurve(const int, Plot2d_Curve *)
Erase theCurve in view.
Definition: SalomePyQt.cxx:4732
static QString getAppName()
Get application name.
Definition: SalomePyQt.cxx:470
static void setPlot2dTitle(const int, const QString &, ObjectType=MainTitle, bool=true)
Set title of corresponding type.
Definition: SalomePyQt.cxx:4846
static QString getViewTitle(const int)
Get view caption
Definition: SalomePyQt.cxx:3587
static QString constant(const QString &)
Get constant's value from application's resource manager.
Definition: SalomePyQt.cxx:1346
static void displayCurve(const int, Plot2d_Curve *)
Display theCurve in view.
Definition: SalomePyQt.cxx:4709
static int createTool(const QString &, const QString &=QString())
Create toolbar with specified name.
Definition: SalomePyQt.cxx:2222
static QStringList parameters(const QString &)
Get names of preference items stored within the given section.
Definition: SalomePyQt.cxx:1913
static bool splitView(const int, const Orientation, const Action)
Split tab area to which view with identifier belongs to.
Definition: SalomePyQt.cxx:4112
The class represents base class for user defined widget that can be inserted to the Preferences dialo...
Definition: SalomePyQt.h:126
virtual void store()
Called from Preferences dialog to store settings to the resource file.
Definition: SalomePyQt.cxx:379
UserDefinedContent()
Constructor.
Definition: SalomePyQt.cxx:371
virtual void retrieve()
Called from Preferences dialog to restore settings from the resource file.
Definition: SalomePyQt.cxx:386