Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
b2a7459c
Commit
b2a7459c
authored
Jul 12, 2016
by
Don Gagne
Committed by
GitHub
Jul 12, 2016
Browse files
Merge pull request #3792 from DonLakeFlyer/SurveyMainline
Survey no longer hidden behind setting
parents
ad39991e
95d2def8
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/MissionEditor/MissionEditor.qml
View file @
b2a7459c
...
...
@@ -542,7 +542,6 @@ QGCView {
RoundButton
{
id
:
addShapeButton
buttonImage
:
"
/qmlimages/MapDrawShape.svg
"
visible
:
QGroundControl
.
experimentalSurvey
lightBorders
:
_lightWidgetBorders
onClicked
:
{
...
...
src/MissionEditor/SurveyItemEditor.qml
View file @
b2a7459c
...
...
@@ -43,8 +43,9 @@ Rectangle {
}
QGCLabel
{
text
:
qsTr
(
"
Fly a grid pattern over a defined area.
"
)
wrapMode
:
Text
.
WordWrap
wrapMode
:
Text
.
WordWrap
font.pointSize
:
ScreenTools
.
smallFontPointSize
text
:
qsTr
(
"
Work in progress, be careful!
"
)
}
Repeater
{
...
...
src/QmlControls/MissionItemEditor.qml
View file @
b2a7459c
...
...
@@ -143,7 +143,7 @@ Rectangle {
verticalAlignment
:
Text
.
AlignVCenter
text
:
missionItem
.
sequenceNumber
==
0
?
qsTr
(
"
Planned Home Position
"
)
:
(
missionItem
.
isSimpleItem
?
missionItem
.
commandName
:
qsTr
(
"
Survey
"
))
(
missionItem
.
isSimpleItem
?
missionItem
.
commandName
:
qsTr
(
"
Survey
(WIP)
"
))
color
:
_outerTextColor
}
...
...
src/QmlControls/QGroundControlQmlGlobal.cc
View file @
b2a7459c
...
...
@@ -207,21 +207,6 @@ void QGroundControlQmlGlobal::setBaseFontPointSize(qreal size)
}
}
bool
QGroundControlQmlGlobal
::
experimentalSurvey
(
void
)
const
{
QSettings
settings
;
return
settings
.
value
(
"ExperimentalSurvey"
,
false
).
toBool
();
}
void
QGroundControlQmlGlobal
::
setExperimentalSurvey
(
bool
experimentalSurvey
)
{
QSettings
settings
;
settings
.
setValue
(
"ExperimentalSurvey"
,
experimentalSurvey
);
emit
experimentalSurveyChanged
(
experimentalSurvey
);
}
Fact
*
QGroundControlQmlGlobal
::
offlineEditingFirmwareType
(
void
)
{
if
(
!
_offlineEditingFirmwareTypeFact
)
{
...
...
src/QmlControls/QGroundControlQmlGlobal.h
View file @
b2a7459c
...
...
@@ -93,9 +93,6 @@ public:
Q_PROPERTY
(
QString
missionFileExtension
READ
missionFileExtension
CONSTANT
)
Q_PROPERTY
(
QString
telemetryFileExtension
READ
telemetryFileExtension
CONSTANT
)
/// @ return: true: experimental survey ip code is turned on
Q_PROPERTY
(
bool
experimentalSurvey
READ
experimentalSurvey
WRITE
setExperimentalSurvey
NOTIFY
experimentalSurveyChanged
)
/// Returns the string for distance units which has configued by user
Q_PROPERTY
(
QString
appSettingsDistanceUnitsString
READ
appSettingsDistanceUnitsString
CONSTANT
)
...
...
@@ -178,9 +175,6 @@ public:
void
setIsVersionCheckEnabled
(
bool
enable
);
void
setMavlinkSystemID
(
int
id
);
bool
experimentalSurvey
(
void
)
const
;
void
setExperimentalSurvey
(
bool
experimentalSurvey
);
QString
parameterFileExtension
(
void
)
const
{
return
QGCApplication
::
parameterFileExtension
;
}
QString
missionFileExtension
(
void
)
const
{
return
QGCApplication
::
missionFileExtension
;
}
QString
telemetryFileExtension
(
void
)
const
{
return
QGCApplication
::
telemetryFileExtension
;
}
...
...
@@ -200,7 +194,6 @@ signals:
void
mavlinkSystemIDChanged
(
int
id
);
void
flightMapPositionChanged
(
QGeoCoordinate
flightMapPosition
);
void
flightMapZoomChanged
(
double
flightMapZoom
);
void
experimentalSurveyChanged
(
bool
experimentalSurvey
);
private:
FlightMapSettings
*
_flightMapSettings
;
...
...
src/ui/preferences/GeneralSettings.qml
View file @
b2a7459c
...
...
@@ -398,14 +398,6 @@ QGCView {
height
:
ScreenTools
.
defaultFontPixelHeight
/
2
width
:
parent
.
width
}
//-----------------------------------------------------------------
//-- Experimental Survey settings
QGCCheckBox
{
text
:
qsTr
(
"
Experimental Survey [WIP - no bugs reports please]
"
)
checked
:
QGroundControl
.
experimentalSurvey
onClicked
:
QGroundControl
.
experimentalSurvey
=
checked
}
}
}
}
// QGCViewPanel
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment