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
2d0d6953
Commit
2d0d6953
authored
8 years ago
by
benjamin.jakimow@geo.hu-berlin.de
Browse files
Options
Downloads
Patches
Plain Diff
backend initialization of *.ui widgets
parent
fdfb89af
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
timeseriesviewer/ui/widgets.py
+21
-11
21 additions, 11 deletions
timeseriesviewer/ui/widgets.py
with
21 additions
and
11 deletions
t
sv_
widgets.py
→
t
imeseriesviewer/ui/
widgets.py
+
21
−
11
View file @
2d0d6953
...
@@ -24,21 +24,30 @@ from PyQt4 import uic
...
@@ -24,21 +24,30 @@ from PyQt4 import uic
from
PyQt4.QtCore
import
*
from
PyQt4.QtCore
import
*
from
PyQt4.QtGui
import
*
from
PyQt4.QtGui
import
*
import
sys
,
re
,
os
import
sys
,
re
,
os
,
six
sys
.
path
.
append
(
os
.
path
.
dirname
(
__file__
))
from
timeseriesviewer
import
jp
from
timeseriesviewer.ui
import
loadUIFormClass
,
DIR_UI
def
loadFormClass
(
name_ui
):
PATH_MAIN_UI
=
jp
(
DIR_UI
,
'
timseriesviewer.ui
'
)
FORM_CLASS
,
_
=
uic
.
loadUiType
(
os
.
path
.
join
(
PATH_BANDVIEWSETTINGS_UI
=
jp
(
DIR_UI
,
'
bandviewsettings.ui
'
)
os
.
path
.
dirname
(
__file__
),
name_ui
),
resource_suffix
=
''
)
PATH_IMAGECHIPVIEWSETTINGS_UI
=
jp
(
DIR_UI
,
'
imagechipviewsettings.ui
'
)
return
FORM_CLASS
class
TimeSeriesViewerUI
(
QMainWindow
,
loadUIFormClass
(
PATH_MAIN_UI
)):
FORM_CLASS_BANDVIEWSETTINGS
=
loadFormClass
(
'
bandviewsettings_widget_base.ui
'
)
def
__init__
(
self
,
parent
=
None
):
FORM_CLASS_IMAGECHIPVIEWSETTINGS
=
loadFormClass
(
'
imagechipviewsettings_widget_base.ui
'
)
"""
Constructor.
"""
super
(
TimeSeriesViewerUI
,
self
).
__init__
(
parent
)
# Set up the user interface from Designer.
# After setupUI you can access any designer object by doing
# self.<objectname>, and you can use autoconnect slots - see
# http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
# #widgets-and-dialogs-with-auto-connect
self
.
setupUi
(
self
)
class
ImageChipViewSettings
(
QGroupBox
,
FORM_CLASS_IMAGECHIPVIEWSETTINGS
):
class
ImageChipViewSettings
(
QGroupBox
,
loadUIFormClass
(
PATH_IMAGECHIPVIEWSETTINGS_UI
)):
#define signals
#define signals
...
@@ -177,7 +186,8 @@ class ImageChipViewSettings(QGroupBox, FORM_CLASS_IMAGECHIPVIEWSETTINGS):
...
@@ -177,7 +186,8 @@ class ImageChipViewSettings(QGroupBox, FORM_CLASS_IMAGECHIPVIEWSETTINGS):
class
BandViewSettings
(
QGroupBox
,
FORM_CLASS_BANDVIEWSETTINGS
):
class
BandViewSettings
(
QGroupBox
,
loadUIFormClass
(
PATH_BANDVIEWSETTINGS_UI
)):
#define signals
#define signals
...
...
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