Commit af46dc40 authored by Don Gagne's avatar Don Gagne

Add new API

parent eb676850
...@@ -772,3 +772,13 @@ MavManager* QGCApplication::getMavManager() ...@@ -772,3 +772,13 @@ MavManager* QGCApplication::getMavManager()
{ {
return _pMavManager; return _pMavManager;
} }
void QGCApplication::showToolBarMessage(const QString& message)
{
MainWindow* mainWindow = MainWindow::instance();
if (mainWindow) {
mainWindow->getMainToolBar()->showToolBarMessage(message);
} else {
QGCMessageBox::information("", message);
}
}
...@@ -107,6 +107,9 @@ public: ...@@ -107,6 +107,9 @@ public:
/// MavManager accessor /// MavManager accessor
MavManager* getMavManager(); MavManager* getMavManager();
/// Show a non-modal message to the user
void showToolBarMessage(const QString& message);
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.
void informationMessageBoxOnMainThread(const QString& title, const QString& msg); void informationMessageBoxOnMainThread(const QString& title, const QString& msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment