Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
715d5e2b
Commit
715d5e2b
authored
2 years ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Create layout for GPS dialog
parent
a888a1ea
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
sohstationviewer/view/plotting/gps_dialog.py
+61
-0
61 additions, 0 deletions
sohstationviewer/view/plotting/gps_dialog.py
with
61 additions
and
0 deletions
sohstationviewer/view/plotting/gps_dialog.py
0 → 100644
+
61
−
0
View file @
715d5e2b
import
sys
from
view.plotting.plotting_widget.plotting_widget
import
PlottingWidget
from
PySide2
import
QtWidgets
,
QtCore
class
GPSWidget
(
PlottingWidget
):
def
__init__
(
self
,
parent
,
tracking_box
):
super
().
__init__
(
parent
,
tracking_box
)
class
GPSDialog
(
QtWidgets
.
QWidget
):
def
__init__
(
self
,
parent
,
gps_points
):
super
().
__init__
()
self
.
parent
=
parent
self
.
gps_points
=
gps_points
self
.
info_text_browser
=
QtWidgets
.
QTextBrowser
(
self
)
self
.
setGeometry
(
300
,
300
,
400
,
500
)
self
.
setWindowTitle
(
"
GPS Plot
"
)
main_layout
=
QtWidgets
.
QVBoxLayout
()
self
.
setLayout
(
main_layout
)
main_layout
.
setContentsMargins
(
5
,
5
,
5
,
5
)
main_layout
.
setSpacing
(
0
)
self
.
plotting_widget
=
GPSWidget
(
self
,
self
.
info_text_browser
)
main_layout
.
addWidget
(
self
.
plotting_widget
,
2
)
button_layout
=
QtWidgets
.
QHBoxLayout
()
button_layout
.
setContentsMargins
(
100
,
0
,
100
,
0
)
button_layout
.
setStretch
(
1
,
3
)
button_layout
.
setSpacing
(
10
)
self
.
read_button
=
QtWidgets
.
QPushButton
(
'
Read/Plot
'
,
self
)
button_layout
.
addWidget
(
self
.
read_button
)
self
.
export_button
=
QtWidgets
.
QPushButton
(
'
Export
'
,
self
)
button_layout
.
addWidget
(
self
.
export_button
)
self
.
close_button
=
QtWidgets
.
QPushButton
(
'
Close
'
,
self
)
self
.
close_button
.
setStyleSheet
(
'
QPushButton {color: red;}
'
)
button_layout
.
addWidget
(
self
.
close_button
)
bottom_layout
=
QtWidgets
.
QVBoxLayout
()
bottom_layout
.
addLayout
(
button_layout
)
self
.
info_text_browser
.
setFixedHeight
(
42
)
self
.
info_text_browser
.
setHorizontalScrollBarPolicy
(
QtCore
.
Qt
.
ScrollBarAlwaysOff
)
self
.
info_text_browser
.
setVerticalScrollBarPolicy
(
QtCore
.
Qt
.
ScrollBarAlwaysOff
)
self
.
info_text_browser
.
verticalScrollBar
().
setDisabled
(
True
)
self
.
info_text_browser
.
horizontalScrollBar
().
setDisabled
(
True
)
bottom_layout
.
addWidget
(
self
.
info_text_browser
)
main_layout
.
addLayout
(
bottom_layout
)
if
__name__
==
'
__main__
'
:
app
=
QtWidgets
.
QApplication
(
sys
.
argv
)
wnd
=
GPSDialog
(
None
,
[])
wnd
.
show
()
sys
.
exit
(
app
.
exec_
())
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