Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
dcec8ccb
Commit
dcec8ccb
authored
4 years ago
by
Srikanth Ravipati
Committed by
Peterson, Peter
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Made changes to include memory widget
parent
92dc2db5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/applications/workbench/workbench/app/mainwindow.py
+10
-2
10 additions, 2 deletions
qt/applications/workbench/workbench/app/mainwindow.py
with
10 additions
and
2 deletions
qt/applications/workbench/workbench/app/mainwindow.py
+
10
−
2
View file @
dcec8ccb
...
...
@@ -85,6 +85,7 @@ class MainWindow(QMainWindow):
self
.
setObjectName
(
MAIN_WINDOW_OBJECT_NAME
)
# widgets
self
.
memorywidget
=
None
self
.
messagedisplay
=
None
self
.
ipythonconsole
=
None
self
.
workspacewidget
=
None
...
...
@@ -172,6 +173,12 @@ class MainWindow(QMainWindow):
self
.
workspacewidget
.
workspacewidget
.
enableDeletePrompt
(
bool
(
prompt
))
self
.
widgets
.
append
(
self
.
workspacewidget
)
self
.
set_splash
(
"
Loading memory widget
"
)
from
workbench.plugins.memorywidget
import
MemoryWidget
self
.
memorywidget
=
MemoryWidget
(
self
)
self
.
memorywidget
.
register_plugin
()
self
.
widgets
.
append
(
self
.
memorywidget
)
# set the link between the algorithm and workspace widget
self
.
algorithm_selector
.
algorithm_selector
.
set_get_selected_workspace_fn
(
self
.
workspacewidget
.
workspacewidget
.
getSelectedWorkspaceNames
)
...
...
@@ -462,6 +469,7 @@ class MainWindow(QMainWindow):
def
setup_default_layouts
(
self
):
"""
Set the default layouts of the child widgets
"""
# layout definition
memorywidget
=
self
.
memorywidget
logmessages
=
self
.
messagedisplay
ipython
=
self
.
ipythonconsole
workspacewidget
=
self
.
workspacewidget
...
...
@@ -475,7 +483,7 @@ class MainWindow(QMainWindow):
# column 1
[[
editor
,
ipython
]],
# column 2
[[
logmessages
]]
[
[
memorywidget
],
[
logmessages
]]
],
'
width-fraction
'
:
[
0.25
,
# column 0 width
...
...
@@ -485,7 +493,7 @@ class MainWindow(QMainWindow):
'
height-fraction
'
:
[
[
0.5
,
0.5
],
# column 0 row heights
[
1.0
],
# column 1 row heights
[
1.0
]
[
0.1
,
0.9
]
]
# column 2 row heights
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment