Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository 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
schwede
openstructure
Commits
8247e0c0
Commit
8247e0c0
authored
7 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
port trajectory viewer to qt5
parent
b7afd53c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/pymod/trajectory_viewer.py
+13
-14
13 additions, 14 deletions
modules/gui/pymod/trajectory_viewer.py
with
13 additions
and
14 deletions
modules/gui/pymod/trajectory_viewer.py
+
13
−
14
View file @
8247e0c0
...
...
@@ -23,8 +23,7 @@ __all__=('TrajWidget','SetTimeUnit','AddTrajectory','RemoveTrajectory','SetSpeed
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#-------------------------------------------------------------------------------
#from PyQt5.QtCore import *
#from PyQt5.QtGui import *
import
PyQt5
as
_PyQt5
from
PyQt5.QtCore
import
Qt
as
_Qt
from
PyQt5.QtWidgets
import
QWidget
as
_QWidget
...
...
@@ -47,22 +46,22 @@ class TrajWidget(_QWidget):
self
.
modifiers
=
None
for
i
,
go
in
enumerate
(
self
.
golist_
):
self
.
index_dict
[
go
.
name
]
=
i
vb
=
_PyQt5
.
Qt
Gui
.
QVBoxLayout
()
hb
=
_PyQt5
.
Qt
Gui
.
QHBoxLayout
()
hb1
=
_PyQt5
.
Qt
Gui
.
QHBoxLayout
()
hb2
=
_PyQt5
.
Qt
Gui
.
QHBoxLayout
()
hb3
=
_PyQt5
.
Qt
Gui
.
QHBoxLayout
()
hb4
=
_PyQt5
.
Qt
Gui
.
QHBoxLayout
()
vb
=
_PyQt5
.
Qt
Widgets
.
QVBoxLayout
()
hb
=
_PyQt5
.
Qt
Widgets
.
QHBoxLayout
()
hb1
=
_PyQt5
.
Qt
Widgets
.
QHBoxLayout
()
hb2
=
_PyQt5
.
Qt
Widgets
.
QHBoxLayout
()
hb3
=
_PyQt5
.
Qt
Widgets
.
QHBoxLayout
()
hb4
=
_PyQt5
.
Qt
Widgets
.
QHBoxLayout
()
self
.
callback
=
None
self
.
_slider
=
_PyQt5
.
Qt
Gui
.
QSlider
(
self
)
self
.
_slider
=
_PyQt5
.
Qt
Widgets
.
QSlider
(
self
)
self
.
_slider
.
setOrientation
(
_Qt
.
Horizontal
)
self
.
_speed_slider
=
_PyQt5
.
Qt
Gui
.
QSlider
(
self
)
self
.
_speed_slider
=
_PyQt5
.
Qt
Widgets
.
QSlider
(
self
)
self
.
_speed_slider
.
setOrientation
(
_Qt
.
Horizontal
)
self
.
_speedLabel
=
_QLabel
(
self
)
self
.
_speedLabel
.
setText
(
'
Speed:
'
)
self
.
_speedLabel
.
setAlignment
(
_Qt
.
AlignLeft
)
self
.
_play
=
_PyQt5
.
Qt
Gui
.
QToolButton
(
self
)
self
.
_repeat
=
_PyQt5
.
Qt
Gui
.
QCheckBox
(
self
)
self
.
_play
=
_PyQt5
.
Qt
Widgets
.
QToolButton
(
self
)
self
.
_repeat
=
_PyQt5
.
Qt
Widgets
.
QCheckBox
(
self
)
self
.
_frame
=
_QLabel
(
self
)
self
.
_frameNo
=
_QLabel
(
self
)
self
.
_frameEnd
=
_QLabel
(
self
)
...
...
@@ -93,11 +92,11 @@ class TrajWidget(_QWidget):
self
.
_left_arrow
=
_QPushButton
(
"
<
"
)
self
.
_left_arrow2
=
_QPushButton
(
"
<<
"
)
self
.
_left_end
=
_QPushButton
(
"
|<
"
)
self
.
_align_selection
=
_PyQt5
.
Qt
Gui
.
QLineEdit
()
self
.
_align_selection
=
_PyQt5
.
Qt
Widgets
.
QLineEdit
()
self
.
_align
=
_QPushButton
(
"
Align
"
)
self
.
_align_label
=
_QLabel
(
self
)
self
.
_align_label
.
setText
(
'
Selection:
'
)
self
.
_ref_entity_selection
=
_PyQt5
.
Qt
Gui
.
QComboBox
()
self
.
_ref_entity_selection
=
_PyQt5
.
Qt
Widgets
.
QComboBox
()
for
go
in
self
.
golist_
:
self
.
_ref_entity_selection
.
addItem
(
go
.
name
)
self
.
_ref_entity_selection_label
=
_QLabel
(
self
)
self
.
_ref_entity_selection_label
.
setText
(
'
Ref. Entity:
'
)
...
...
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