Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simuDAtor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
simuDAtor
Commits
01741f44
Commit
01741f44
authored
11 months ago
by
Martin Högstedt
Browse files
Options
Downloads
Patches
Plain Diff
fixed bus being able to edit module state and breakpoint
parent
a38ff246
Branches
Branches containing commit
No related tags found
1 merge request
!31
The bus will no longer generate 'edit module state' and 'add breakpoint' actions
Pipeline
#132166
failed
11 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/simudator/processor/mia/gui/bus_graphic.py
+13
-0
13 additions, 0 deletions
src/simudator/processor/mia/gui/bus_graphic.py
with
13 additions
and
0 deletions
src/simudator/processor/mia/gui/bus_graphic.py
+
13
−
0
View file @
01741f44
...
...
@@ -66,6 +66,19 @@ class BusGraphicsItem(ModuleGraphicsItem):
def
update
(
self
):
pass
def
generateActions
(
self
)
->
None
:
"""
Generates action for the bus. The only generated action is
'
show all ports
'
.
The default implementation generates actions such as edit break points
and edit module state. Since the bus has none of those two we override the
implementation and remove those two actions.
"""
self
.
show_ports_action
=
QAction
(
"
Show all ports
"
)
self
.
show_ports_action
.
triggered
.
connect
(
self
.
showPorts
)
self
.
show_ports_action
.
setEnabled
(
not
self
.
isLocked
)
self
.
actions
.
append
(
self
.
show_ports_action
)
def
shouldIgnoreAction
(
self
,
action
:
QAction
)
->
bool
:
"""
Disables left clicking, which would normally allow the user to
...
...
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