Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PeTrack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pedestrian Dynamics Empiricism
PeTrack
Compare revisions
master to 7-gui-layout-verbessern-2
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
ped-dyn-emp/petrack
Select target project
No results found
7-gui-layout-verbessern-2
Select Git revision
Swap
Target
ped-dyn-emp/petrack
Select target project
ped-dyn-emp/petrack
1 result
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (15)
first try on fixing GUI layout
· b2e19e67
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
b2e19e67
Add spacers to reduce wasted space inside layout
· 1fdd86e1
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
1fdd86e1
Make colorBox SizePolicy minimum instead of expanding
· 22429987
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
22429987
Make control resizable
· 78f2d2a9
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
78f2d2a9
Allow resizing of all tabs
· 01aa6705
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
01aa6705
Some smaller maxSize adjustments
· b954f897
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
b954f897
Some more size changes
· 60d22677
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
60d22677
Disable horiyontal scroll
· e8eb8b20
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
e8eb8b20
Rise maximum size of some cropped labels
· ae8e158d
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
ae8e158d
Deleted some code, doing things that should be done in the .ui-file
· 9d71c71a
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
9d71c71a
Delete manual minSizes
· 2e4874ba
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
2e4874ba
Set minimum size of control to current geometry
· 9278625f
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
9278625f
Another try on setting the minimum size of Control
· 1391303e
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
1391303e
Reviewer comments
· a483e0a6
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
a483e0a6
Explaining comment for playAndView-Widget
· c9327852
d.kilic
authored
4 years ago
and
d.kilic
committed
4 years ago
c9327852
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
include/petrack.h
+1
-0
1 addition, 0 deletions
include/petrack.h
src/colorPlot.cpp
+0
-3
0 additions, 3 deletions
src/colorPlot.cpp
src/control.cpp
+29
-0
29 additions, 0 deletions
src/control.cpp
src/petrack.cpp
+16
-11
16 additions, 11 deletions
src/petrack.cpp
ui/control.ui
+274
-297
274 additions, 297 deletions
ui/control.ui
with
320 additions
and
311 deletions
include/petrack.h
View file @
c9327852
...
@@ -461,6 +461,7 @@ private:
...
@@ -461,6 +461,7 @@ private:
QFrame
*
mCentralWidget
;
QFrame
*
mCentralWidget
;
Control
*
mControlWidget
;
Control
*
mControlWidget
;
QSplitter
*
mSplitter
;
StereoWidget
*
mStereoWidget
;
StereoWidget
*
mStereoWidget
;
ColorRangeWidget
*
mColorRangeWidget
;
ColorRangeWidget
*
mColorRangeWidget
;
ColorMarkerWidget
*
mColorMarkerWidget
;
ColorMarkerWidget
*
mColorMarkerWidget
;
...
...
This diff is collapsed.
Click to expand it.
src/colorPlot.cpp
View file @
c9327852
...
@@ -782,11 +782,8 @@ ColorPlot::ColorPlot(QWidget *parent) // default= NULL
...
@@ -782,11 +782,8 @@ ColorPlot::ColorPlot(QWidget *parent) // default= NULL
//setFrameShape(Box); // damit rahmen gleich wie alle anderen group boxen
//setFrameShape(Box); // damit rahmen gleich wie alle anderen group boxen
//setFrameShadow(Sunken);
//setFrameShadow(Sunken);
QFont
f
(
"Courier"
,
10
,
QFont
::
Normal
);
//Times Helvetica, Normal Bold
QwtText
titleX
(
"x"
);
QwtText
titleX
(
"x"
);
QwtText
titleY
(
"y"
);
QwtText
titleY
(
"y"
);
titleX
.
setFont
(
f
);
titleY
.
setFont
(
f
);
setAxisTitle
(
xBottom
,
titleX
);
//"x"
setAxisTitle
(
xBottom
,
titleX
);
//"x"
setAxisTitle
(
yLeft
,
titleY
);
//"y"
setAxisTitle
(
yLeft
,
titleY
);
//"y"
...
...
This diff is collapsed.
Click to expand it.
src/control.cpp
View file @
c9327852
...
@@ -163,6 +163,35 @@ Control::Control(QWidget *parent)
...
@@ -163,6 +163,35 @@ Control::Control(QWidget *parent)
recoMethod
->
addItem
(
"code marker"
);
// 6
recoMethod
->
addItem
(
"code marker"
);
// 6
recoMethod
->
setCurrentIndex
(
5
);
// default multicolor marker (until 11/2016 hermes marker)
recoMethod
->
setCurrentIndex
(
5
);
// default multicolor marker (until 11/2016 hermes marker)
scrollArea
->
setMinimumWidth
(
scrollAreaWidgetContents
->
sizeHint
().
width
()
+
2
*
scrollArea
->
frameWidth
()
+
scrollArea
->
verticalScrollBar
()
->
sizeHint
().
width
()
+
scrollAreaWidgetContents
->
layout
()
->
margin
()
*
2
+
scrollAreaWidgetContents
->
layout
()
->
spacing
()
*
2
);
scrollArea_2
->
setMinimumWidth
(
scrollAreaWidgetContents_2
->
sizeHint
().
width
()
+
2
*
scrollArea_2
->
frameWidth
()
+
scrollArea_2
->
verticalScrollBar
()
->
sizeHint
().
width
()
+
scrollAreaWidgetContents_2
->
layout
()
->
margin
()
*
2
+
scrollAreaWidgetContents_2
->
layout
()
->
spacing
()
*
2
);
scrollArea_3
->
setMinimumWidth
(
scrollAreaWidgetContents_3
->
sizeHint
().
width
()
+
2
*
scrollArea_3
->
frameWidth
()
+
scrollArea_3
->
verticalScrollBar
()
->
sizeHint
().
width
()
+
scrollAreaWidgetContents_3
->
layout
()
->
margin
()
*
2
+
scrollAreaWidgetContents_3
->
layout
()
->
spacing
()
*
2
);
scrollArea_4
->
setMinimumWidth
(
scrollAreaWidgetContents_4
->
sizeHint
().
width
()
+
2
*
scrollArea_4
->
frameWidth
()
+
scrollArea_4
->
verticalScrollBar
()
->
sizeHint
().
width
()
+
scrollAreaWidgetContents_4
->
layout
()
->
margin
()
*
2
+
scrollAreaWidgetContents_4
->
layout
()
->
spacing
()
*
2
);
}
}
void
Control
::
setScene
(
QGraphicsScene
*
sc
)
void
Control
::
setScene
(
QGraphicsScene
*
sc
)
...
...
This diff is collapsed.
Click to expand it.
src/petrack.cpp
View file @
c9327852
...
@@ -127,10 +127,6 @@ Petrack::Petrack()
...
@@ -127,10 +127,6 @@ Petrack::Petrack()
//mImageBorderSize=0;
//mImageBorderSize=0;
mControlWidget
=
new
Control
(
this
);
mControlWidget
=
new
Control
(
this
);
mControlWidget
->
setFixedWidth
(
mControlWidget
->
geometry
().
width
());
mControlWidget
->
setMinimumHeight
(
mControlWidget
->
geometry
().
height
());
mControlWidget
->
setSizePolicy
(
QSizePolicy
::
Fixed
,
QSizePolicy
::
Expanding
);
//setFixedSize(mControlWidget->geometry().width(),mControlWidget->geometry().height());
cw
=
mControlWidget
;
// muss spaeter geloescht werden
cw
=
mControlWidget
;
// muss spaeter geloescht werden
mStereoWidget
=
new
StereoWidget
(
this
);
mStereoWidget
=
new
StereoWidget
(
this
);
...
@@ -227,10 +223,6 @@ Petrack::Petrack()
...
@@ -227,10 +223,6 @@ Petrack::Petrack()
vLayout
->
addWidget
(
mViewWidget
);
vLayout
->
addWidget
(
mViewWidget
);
vLayout
->
addWidget
(
mPlayerWidget
);
vLayout
->
addWidget
(
mPlayerWidget
);
QVBoxLayout
*
vControlLayout
=
new
QVBoxLayout
;
//vControlLayout->setSpacing(space);
vControlLayout
->
addWidget
(
mControlWidget
);
//---------------------------
//---------------------------
mTracker
=
new
Tracker
(
this
);
mTracker
=
new
Tracker
(
this
);
...
@@ -293,9 +285,20 @@ Petrack::Petrack()
...
@@ -293,9 +285,20 @@ Petrack::Petrack()
mCentralWidget
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
StyledPanel
);
mCentralWidget
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
StyledPanel
);
mCentralWidget
->
setLayout
(
mCentralLayout
);
mCentralWidget
->
setLayout
(
mCentralLayout
);
setCentralWidget
(
mCentralWidget
);
setCentralWidget
(
mCentralWidget
);
mCentralLayout
->
addLayout
(
vLayout
);
mSplitter
=
new
QSplitter
(
this
);
mCentralLayout
->
addLayout
(
vControlLayout
);
// create playAndView-Widget to wrap layout, since QSplitter only accepts widgets
//mCentralLayout->addWidget(mControlWidget); //, 0, Qt::AlignTop
QWidget
*
playAndView
=
new
QWidget
(
this
);
playAndView
->
setLayout
(
vLayout
);
mSplitter
->
addWidget
(
playAndView
);
mSplitter
->
addWidget
(
mControlWidget
);
mSplitter
->
setStretchFactor
(
0
,
1
);
mSplitter
->
setStretchFactor
(
1
,
0
);
mCentralLayout
->
addWidget
(
mSplitter
);
setWindowTitle
(
tr
(
"PeTrack"
));
setWindowTitle
(
tr
(
"PeTrack"
));
//---------------------------
//---------------------------
...
@@ -2379,6 +2382,7 @@ void Petrack::readSettings()
...
@@ -2379,6 +2382,7 @@ void Petrack::readSettings()
move
(
pos
);
move
(
pos
);
antialias
();
antialias
();
opengl
();
opengl
();
mSplitter
->
restoreState
(
settings
.
value
(
"controlSplitterSizes"
).
toByteArray
());
}
}
/**
/**
...
@@ -2396,6 +2400,7 @@ void Petrack::writeSettings()
...
@@ -2396,6 +2400,7 @@ void Petrack::writeSettings()
settings
.
setValue
(
"proFilePath"
,
QFileInfo
(
mProFileName
).
path
());
// nur path, damit bei saveCurrentProject
settings
.
setValue
(
"proFilePath"
,
QFileInfo
(
mProFileName
).
path
());
// nur path, damit bei saveCurrentProject
if
(
!
mAutoCalib
.
isEmptyCalibFiles
())
//!mCalibFiles.isEmpty()
if
(
!
mAutoCalib
.
isEmptyCalibFiles
())
//!mCalibFiles.isEmpty()
settings
.
setValue
(
"calibFile"
,
mAutoCalib
.
getCalibFile
(
0
));
settings
.
setValue
(
"calibFile"
,
mAutoCalib
.
getCalibFile
(
0
));
settings
.
setValue
(
"controlSplitterSizes"
,
mSplitter
->
saveState
());
}
}
bool
Petrack
::
maybeSave
()
bool
Petrack
::
maybeSave
()
...
...
This diff is collapsed.
Click to expand it.
ui/control.ui
View file @
c9327852
This diff is collapsed.
Click to expand it.