Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EO Time Series Viewer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository 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
Benjamin Jakimow
EO Time Series Viewer
Commits
053c4df4
Commit
053c4df4
authored
5 years ago
by
Benjamin Jakimow
Browse files
Options
Downloads
Patches
Plain Diff
set default map size to 150x150pixel
Signed-off-by:
benjamin.jakimow
<
benjamin.jakimow@geo.hu-berlin.de
>
parent
715f99b5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eotimeseriesviewer/settings.py
+8
-2
8 additions, 2 deletions
eotimeseriesviewer/settings.py
with
8 additions
and
2 deletions
eotimeseriesviewer/settings.py
+
8
−
2
View file @
053c4df4
...
...
@@ -18,6 +18,7 @@ class Keys(enum.Enum):
MapSize
=
'
map_size
'
MapUpdateInterval
=
'
map_update_interval
'
MapBackgroundColor
=
'
map_background_color
'
MapTextColor
=
'
map_text_color
'
ScreenShotDirectory
=
'
screen_shot_directory
'
RasterSourceDirectory
=
'
raster_source_directory
'
VectorSourceDirectory
=
'
vector_source_directory
'
...
...
@@ -45,8 +46,9 @@ def defaultValues() -> dict:
# map visualization
d
[
Keys
.
MapUpdateInterval
]
=
500
# milliseconds
d
[
Keys
.
MapSize
]
=
QSize
(
30
0
,
30
0
)
d
[
Keys
.
MapSize
]
=
QSize
(
15
0
,
15
0
)
d
[
Keys
.
MapBackgroundColor
]
=
QColor
(
'
black
'
)
d
[
Keys
.
MapTextColor
]
=
QColor
(
'
yellow
'
)
# tbd. other settings
return
d
...
...
@@ -192,7 +194,7 @@ class SettingsDialog(QDialog, loadUI('settingsdialog.ui')):
d
[
Keys
.
MapSize
]
=
QSize
(
self
.
sbMapSizeX
.
value
(),
self
.
sbMapSizeY
.
value
())
d
[
Keys
.
MapUpdateInterval
]
=
self
.
sbMapRefreshIntervall
.
value
()
d
[
Keys
.
MapBackgroundColor
]
=
self
.
mCanvasColorButton
.
color
()
d
[
Keys
.
MapTextColor
]
=
self
.
mCanvasTextColorButton
.
color
()
return
d
def
setValues
(
self
,
values
:
dict
):
...
...
@@ -236,5 +238,9 @@ class SettingsDialog(QDialog, loadUI('settingsdialog.ui')):
if
checkKey
(
key
,
Keys
.
MapBackgroundColor
)
and
isinstance
(
value
,
QColor
):
self
.
mCanvasColorButton
.
setColor
(
value
)
if
checkKey
(
key
,
Keys
.
MapTextColor
)
and
isinstance
(
value
,
QColor
):
self
.
mCanvasTextColorButton
.
setColor
(
value
)
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