Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
0ab6baea
Commit
0ab6baea
authored
Jul 30, 2013
by
tstellanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip new advanced configuration layout
parent
64bb126e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
248 additions
and
157 deletions
+248
-157
QGCPX4VehicleConfig.cc
src/ui/QGCPX4VehicleConfig.cc
+6
-6
QGCPX4VehicleConfig.ui
src/ui/QGCPX4VehicleConfig.ui
+242
-151
No files found.
src/ui/QGCPX4VehicleConfig.cc
View file @
0ab6baea
...
...
@@ -315,7 +315,7 @@ void QGCPX4VehicleConfig::loadQgcConfig(bool primary)
// Load tabs for general configuration
foreach
(
QString
dir
,
generaldir
.
entryList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
))
{
QPushButton
*
button
=
new
QPushButton
(
ui
->
scrollAreaWidgetContents_3
);
QPushButton
*
button
=
new
QPushButton
(
ui
->
leftNavScrollAreaWidgetContents
);
connect
(
button
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
menuButtonClicked
()));
ui
->
navBarLayout
->
insertWidget
(
2
,
button
);
button
->
setMinimumHeight
(
75
);
...
...
@@ -359,7 +359,7 @@ void QGCPX4VehicleConfig::loadQgcConfig(bool primary)
// Load additional tabs for vehicle specific configuration
foreach
(
QString
dir
,
vehicledir
.
entryList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
))
{
QPushButton
*
button
=
new
QPushButton
(
ui
->
scrollAreaWidgetContents_3
);
QPushButton
*
button
=
new
QPushButton
(
ui
->
leftNavScrollAreaWidgetContents
);
connect
(
button
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
menuButtonClicked
()));
ui
->
navBarLayout
->
insertWidget
(
2
,
button
);
...
...
@@ -1362,14 +1362,14 @@ void QGCPX4VehicleConfig::parameterChanged(int uas, int component, QString param
void
QGCPX4VehicleConfig
::
updateStatus
(
const
QString
&
str
)
{
ui
->
s
tatusLabel
->
setText
(
str
);
ui
->
s
tatusLabel
->
setStyleSheet
(
""
);
ui
->
advancedS
tatusLabel
->
setText
(
str
);
ui
->
advancedS
tatusLabel
->
setStyleSheet
(
""
);
}
void
QGCPX4VehicleConfig
::
updateError
(
const
QString
&
str
)
{
ui
->
s
tatusLabel
->
setText
(
str
);
ui
->
s
tatusLabel
->
setStyleSheet
(
QString
(
"QLabel { margin: 0px 2px; font: 14px; color: %1; background-color: %2; }"
).
arg
(
QGC
::
colorDarkWhite
.
name
()).
arg
(
QGC
::
colorMagenta
.
name
()));
ui
->
advancedS
tatusLabel
->
setText
(
str
);
ui
->
advancedS
tatusLabel
->
setStyleSheet
(
QString
(
"QLabel { margin: 0px 2px; font: 14px; color: %1; background-color: %2; }"
).
arg
(
QGC
::
colorDarkWhite
.
name
()).
arg
(
QGC
::
colorMagenta
.
name
()));
}
void
QGCPX4VehicleConfig
::
updateMinMax
()
{
...
...
src/ui/QGCPX4VehicleConfig.ui
View file @
0ab6baea
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment