Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xsocs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kmap
xsocs
Commits
334327c7
Commit
334327c7
authored
Jan 10, 2017
by
Damien Naudet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mouse point visibility options.
parent
b8c31974
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
kmap/gui/widgets/XsocsPlot2D.py
kmap/gui/widgets/XsocsPlot2D.py
+10
-2
No files found.
kmap/gui/widgets/XsocsPlot2D.py
View file @
334327c7
...
...
@@ -498,8 +498,6 @@ class XsocsPlot2D(PlotWindow):
pointDockAction
=
pointDock
.
toggleViewAction
()
pointDockAction
.
setIcon
(
getQIcon
(
'crosshair'
))
pointDockAction
.
setIconVisibleInMenu
(
True
)
pointDock
.
setShowMousePoint
(
self
.
__showMousePosition
)
pointDock
.
setShowSelectedPoint
(
self
.
__showSelectedCoordinates
)
pointDockBn
=
Qt
.
QToolButton
()
pointDockBn
.
setDefaultAction
(
pointDockAction
)
...
...
@@ -641,6 +639,10 @@ class XsocsPlot2D(PlotWindow):
optionsLayout
.
addWidget
(
optionsBaseB
)
optionsLayout
.
addWidget
(
optionsBaseA
)
self
.
setShowMousePosition
(
self
.
__showMousePosition
)
self
.
setShowSelectedCoordinates
(
self
.
__showSelectedCoordinates
)
self
.
setPointSelectionEnabled
(
self
.
__pointSelectionEnabled
)
def
__drawSelectedPosition
(
self
,
x
,
y
):
"""Set the selected position.
...
...
@@ -684,6 +686,12 @@ class XsocsPlot2D(PlotWindow):
if
event
[
'event'
]
==
'mouseMoved'
:
self
.
__displayMousePosition
(
event
[
'x'
],
event
[
'y'
])
def
setCollaspibleMenuVisible
(
self
,
visible
):
self
.
__optionsBase
.
setVisible
(
visible
)
def
setPointWidgetVisible
(
self
,
visible
):
self
.
__pointWidget
.
setVisible
(
visible
)
def
selectPoint
(
self
,
x
,
y
):
"""
Called when PointSelectionEnabled is True and the mouse is clicked.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment