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
29091cf8
Commit
29091cf8
authored
Aug 23, 2015
by
Don Gagne
Browse files
--fake-mobile command line support
parent
65aa662a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/QGCApplication.cc
View file @
29091cf8
...
@@ -160,6 +160,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
...
@@ -160,6 +160,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
,
_runningUnitTests
(
unitTesting
)
,
_runningUnitTests
(
unitTesting
)
,
_styleIsDark
(
true
)
,
_styleIsDark
(
true
)
,
_pMavManager
(
NULL
)
,
_pMavManager
(
NULL
)
,
_fakeMobile
(
false
)
{
{
Q_ASSERT
(
_app
==
NULL
);
Q_ASSERT
(
_app
==
NULL
);
_app
=
this
;
_app
=
this
;
...
@@ -177,6 +178,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
...
@@ -177,6 +178,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
CmdLineOpt_t
rgCmdLineOptions
[]
=
{
CmdLineOpt_t
rgCmdLineOptions
[]
=
{
{
"--clear-settings"
,
&
fClearSettingsOptions
,
QString
()
},
{
"--clear-settings"
,
&
fClearSettingsOptions
,
QString
()
},
{
"--full-logging"
,
&
fullLogging
,
QString
()
},
{
"--full-logging"
,
&
fullLogging
,
QString
()
},
{
"--fake-mobile"
,
&
_fakeMobile
,
QString
()
},
// Add additional command line option flags here
// Add additional command line option flags here
};
};
...
...
src/QGCApplication.h
View file @
29091cf8
...
@@ -109,6 +109,9 @@ public:
...
@@ -109,6 +109,9 @@ public:
/// Show a non-modal message to the user
/// Show a non-modal message to the user
void
showToolBarMessage
(
const
QString
&
message
);
void
showToolBarMessage
(
const
QString
&
message
);
/// @return true: Fake ui into showing mobile interface
bool
fakeMobile
(
void
)
{
return
_fakeMobile
;
}
public
slots
:
public
slots
:
/// You can connect to this slot to show an information message box from a different thread.
/// You can connect to this slot to show an information message box from a different thread.
...
@@ -178,6 +181,8 @@ private:
...
@@ -178,6 +181,8 @@ private:
QStringList
_missingParams
;
///< List of missing facts to be displayed
QStringList
_missingParams
;
///< List of missing facts to be displayed
MavManager
*
_pMavManager
;
MavManager
*
_pMavManager
;
bool
_fakeMobile
;
///< true: Fake ui into displaying mobile interface
/// Unit Test have access to creating and destroying singletons
/// Unit Test have access to creating and destroying singletons
friend
class
UnitTest
;
friend
class
UnitTest
;
};
};
...
...
src/QmlControls/ScreenToolsController.h
View file @
29091cf8
...
@@ -110,7 +110,7 @@ public:
...
@@ -110,7 +110,7 @@ public:
#else
#else
bool
isAndroid
()
{
return
false
;
}
bool
isAndroid
()
{
return
false
;
}
bool
isiOS
()
{
return
false
;
}
bool
isiOS
()
{
return
false
;
}
bool
isMobile
()
{
return
false
;
}
bool
isMobile
()
{
return
qgcApp
()
->
fakeMobile
()
;
}
#endif
#endif
signals:
signals:
...
...
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