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
46a2a7cf
Commit
46a2a7cf
authored
Nov 24, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjustments to QGroundControl to suit small displays
parent
ee7ae9ba
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
146 additions
and
45 deletions
+146
-45
style-mission.css
images/style-mission.css
+36
-3
DebugConsole.ui
src/ui/DebugConsole.ui
+23
-4
MainWindow.cc
src/ui/MainWindow.cc
+4
-4
ParameterInterface.ui
src/ui/ParameterInterface.ui
+2
-2
QGCSensorSettingsWidget.ui
src/ui/QGCSensorSettingsWidget.ui
+9
-9
UASControl.ui
src/ui/UASControl.ui
+61
-15
UASInfo.ui
src/ui/UASInfo.ui
+7
-4
UASView.ui
src/ui/UASView.ui
+3
-3
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+1
-1
No files found.
images/style-mission.css
View file @
46a2a7cf
...
...
@@ -77,10 +77,43 @@ border: 1px solid #777777;
color
:
#DDDDDF
;
}
QMainWindow
::separator
{
background
:
#090909
;
width
:
2px
;
/* when vertical */
height
:
2px
;
/* when horizontal */
}
QMainWindow
::separator:hover
{
background
:
white
;
}
QDockWidget
{
font
:
bold
;
border
:
1px
solid
#32345E
;
}
border
:
1px
solid
#32345E
;
/* titlebar-close-icon: url(close.png);
titlebar-normal-icon: url(undock.png);*/
}
QDockWidget
::title
{
text-align
:
left
;
/* align the text to the left */
background
:
lightgray
;
padding-left
:
5px
;
}
QDockWidget
::close-button
,
QDockWidget
::float-button
{
border
:
1px
solid
transparent
;
background
:
darkgray
;
padding
:
0px
;
}
QDockWidget
::close-button:hover
,
QDockWidget
::float-button:hover
{
background
:
gray
;
}
QDockWidget
::close-button:pressed
,
QDockWidget
::float-button:pressed
{
padding
:
1px
-1px
-1px
1px
;
}
QDockWidget
::close-button
,
QDockWidget
::float-button
{
background-color
:
#181820
;
...
...
src/ui/DebugConsole.ui
View file @
46a2a7cf
...
...
@@ -6,7 +6,7 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
4
35
</width>
<width>
4
02
</width>
<height>
185
</height>
</rect>
</property>
...
...
@@ -77,14 +77,24 @@
<string>
Enable auto hold to lower the CPU consumption
</string>
</property>
<property
name=
"text"
>
<string>
Auto h
old
</string>
<string>
H
old
</string>
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"1"
column=
"0"
colspan=
"2"
>
<widget
class=
"QPlainTextEdit"
name=
"receiveText"
/>
<widget
class=
"QPlainTextEdit"
name=
"receiveText"
>
<property
name=
"minimumSize"
>
<size>
<width>
300
</width>
<height>
50
</height>
</size>
</property>
<property
name=
"tabStopWidth"
>
<number>
60
</number>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLineEdit"
name=
"sentText"
>
...
...
@@ -98,13 +108,22 @@
</item>
<item
row=
"3"
column=
"0"
>
<widget
class=
"QLineEdit"
name=
"sendText"
>
<property
name=
"minimumSize"
>
<size>
<width>
80
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Type the bytes to send here, use 0xAA format for HEX (Check HEX checkbox above)
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"1"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
stretch=
"10,10,10"
>
<property
name=
"spacing"
>
<number>
5
</number>
</property>
<item>
<widget
class=
"QPushButton"
name=
"transmitButton"
>
<property
name=
"toolTip"
>
...
...
src/ui/MainWindow.cc
View file @
46a2a7cf
...
...
@@ -83,7 +83,7 @@ MainWindow::MainWindow(QWidget *parent) :
configureWindowName
();
// Add status bar
setStatusBar
(
createStatusBar
());
//
setStatusBar(createStatusBar());
// Set the application style (not the same as a style sheet)
// Set the style to Plastique
...
...
@@ -131,7 +131,7 @@ void MainWindow::buildWidgets()
// Center widgets
linechartWidget
=
new
Linecharts
(
this
);
hudWidget
=
new
HUD
(
640
,
48
0
,
this
);
hudWidget
=
new
HUD
(
320
,
24
0
,
this
);
mapWidget
=
new
MapWidget
(
this
);
protocolWidget
=
new
XMLCommProtocolWidget
(
this
);
dataplotWidget
=
new
QGCDataPlot2D
(
this
);
...
...
@@ -340,12 +340,12 @@ void MainWindow::reloadStylesheet()
void
MainWindow
::
showStatusMessage
(
const
QString
&
status
,
int
timeout
)
{
statusBar
->
showMessage
(
status
,
timeout
);
//
statusBar->showMessage(status, timeout);
}
void
MainWindow
::
showStatusMessage
(
const
QString
&
status
)
{
statusBar
->
showMessage
(
status
,
5
);
//
statusBar->showMessage(status, 5);
}
/**
...
...
src/ui/ParameterInterface.ui
View file @
46a2a7cf
...
...
@@ -6,8 +6,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
3
50
</width>
<height>
545
</height>
<width>
3
35
</width>
<height>
300
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
...
...
src/ui/QGCSensorSettingsWidget.ui
View file @
46a2a7cf
...
...
@@ -6,7 +6,7 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
319
</width>
<width>
231
</width>
<height>
221
</height>
</rect>
</property>
...
...
@@ -22,7 +22,7 @@
<property
name=
"title"
>
<string>
Calibration Wizards
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
columnstretch=
"
5,5
"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
columnstretch=
"
100,100
"
>
<property
name=
"leftMargin"
>
<number>
6
</number>
</property>
...
...
@@ -44,28 +44,28 @@
<item
row=
"0"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"rcCalButton"
>
<property
name=
"text"
>
<string>
RC Cal
ibration
</string>
<string>
RC Cal
.
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"magCalButton"
>
<property
name=
"text"
>
<string>
Mag. Cal
ibration
</string>
<string>
Mag. Cal
.
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"gyroCalButton"
>
<property
name=
"text"
>
<string>
Gyro Cal
ibration
</string>
<string>
Gyro Cal
.
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pressureCalButton"
>
<property
name=
"text"
>
<string>
Pressure Cal
ibration
</string>
<string>
Pressure Cal
.
</string>
</property>
</widget>
</item>
...
...
@@ -99,7 +99,7 @@
<item
row=
"0"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"sendRawCheckBox"
>
<property
name=
"text"
>
<string>
RAW Sensor
Data
</string>
<string>
RAW Sensor
s
</string>
</property>
</widget>
</item>
...
...
@@ -113,14 +113,14 @@
<item
row=
"4"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"sendPositionCheckBox"
>
<property
name=
"text"
>
<string>
Position
setpoint
</string>
<string>
Position
CTRL
</string>
</property>
</widget>
</item>
<item
row=
"5"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"sendControllerCheckBox"
>
<property
name=
"text"
>
<string>
Raw Controller
</string>
<string>
Attitude CTRL
</string>
</property>
</widget>
</item>
...
...
src/ui/UASControl.ui
View file @
46a2a7cf
...
...
@@ -6,44 +6,53 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
2
87
</width>
<height>
354
</height>
<width>
2
10
</width>
<height>
130
</height>
</rect>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
2
8
0
</width>
<height>
1
7
0
</height>
<width>
2
1
0
</width>
<height>
1
3
0
</height>
</size>
</property>
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowminimumheight=
"10,20,0,10,10,10,300"
>
<property
name=
"leftMargin"
>
<number>
6
</number>
</property>
<property
name=
"topMargin"
>
<number>
12
</number>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowstretch=
"10,10,0,10,10,5,100"
columnstretch=
"0,0,10,10,10,0"
>
<property
name=
"margin"
>
<number>
0
</number>
</property>
<property
name=
"rightMargin"
>
<number>
6
</number>
</property>
<property
name=
"bottomMargin"
>
<property
name=
"spacing"
>
<number>
6
</number>
</property>
<item
row=
"0"
column=
"1"
colspan=
"4"
>
<widget
class=
"QLabel"
name=
"controlStatusLabel"
>
<property
name=
"minimumSize"
>
<size>
<width>
50
</width>
<height>
20
</height>
</size>
</property>
<property
name=
"text"
>
<string>
UNCONNECTED
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
<property
name=
"margin"
>
<number>
0
</number>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
colspan=
"4"
>
<widget
class=
"QPushButton"
name=
"controlButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
12
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Activate Engine
</string>
</property>
...
...
@@ -80,6 +89,12 @@
</item>
<item
row=
"3"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"liftoffButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
80
</width>
<height>
12
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Liftoff
</string>
</property>
...
...
@@ -91,6 +106,12 @@
</item>
<item
row=
"3"
column=
"2"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"landButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
80
</width>
<height>
12
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Land
</string>
</property>
...
...
@@ -102,6 +123,12 @@
</item>
<item
row=
"3"
column=
"4"
>
<widget
class=
"QPushButton"
name=
"shutdownButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
80
</width>
<height>
12
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Halt
</string>
</property>
...
...
@@ -125,10 +152,23 @@
</spacer>
</item>
<item
row=
"4"
column=
"1"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"modeComboBox"
/>
<widget
class=
"QComboBox"
name=
"modeComboBox"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
12
</height>
</size>
</property>
</widget>
</item>
<item
row=
"4"
column=
"3"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"setModeButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
40
</width>
<height>
12
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Set Mode
</string>
</property>
...
...
@@ -140,6 +180,12 @@
</item>
<item
row=
"5"
column=
"1"
colspan=
"4"
>
<widget
class=
"QLabel"
name=
"lastActionLabel"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
12
</height>
</size>
</property>
<property
name=
"text"
>
<string>
No actions executed so far
</string>
</property>
...
...
src/ui/UASInfo.ui
View file @
46a2a7cf
...
...
@@ -6,8 +6,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
455
</width>
<height>
220
</height>
<width>
223
</width>
<height>
138
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
...
...
@@ -16,9 +16,12 @@
<property
name=
"styleSheet"
>
<string
notr=
"true"
/>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowstretch=
"0,0,0,0,0,0,0,100"
columnstretch=
"0,0,0,0,0,0,0"
>
<property
name=
"margin"
>
<number>
6
</number>
<number>
3
</number>
</property>
<property
name=
"spacing"
>
<number>
5
</number>
</property>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label"
>
...
...
src/ui/UASView.ui
View file @
46a2a7cf
...
...
@@ -6,8 +6,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
3
70
</width>
<height>
12
0
</height>
<width>
3
35
</width>
<height>
12
1
</height>
</rect>
</property>
<property
name=
"sizePolicy"
>
...
...
@@ -18,7 +18,7 @@
</property>
<property
name=
"minimumSize"
>
<size>
<width>
3
70
</width>
<width>
3
35
</width>
<height>
0
</height>
</size>
</property>
...
...
src/ui/linechart/LinechartWidget.cc
View file @
46a2a7cf
...
...
@@ -70,7 +70,7 @@ updateTimer(new QTimer())
{
// Add elements defined in Qt Designer
ui
.
setupUi
(
this
);
this
->
setMinimumSize
(
600
,
30
0
);
this
->
setMinimumSize
(
400
,
25
0
);
// Add and customize curve list elements (left side)
curvesWidget
=
new
QWidget
(
ui
.
curveListWidget
);
...
...
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