X-Plane menu improvements

* Remove start items with DBus details and replace them with a single start
* Add an item to toggle the message box
This commit is contained in:
Roland Winklmeier
2018-02-17 11:55:28 +01:00
committed by Klaus Basan
parent ff37704a59
commit 7f6dd61bb3
4 changed files with 15 additions and 6 deletions

View File

@@ -97,10 +97,13 @@ namespace XSwiftBus
//! \copydoc XSwiftBus::CMessageBox::maxLineLength
int maxLineLength() const { return m_messageBox.maxLineLength(); }
//! Toggles the visibility of the message box
void toggle() { if (m_visible) { hide(); } else { show(); } }
private:
void show() { m_messageBox.show(); m_visible = true; }
void hide() { m_messageBox.hide(); m_visible = false; }
void toggle() { if (m_visible) { hide(); } else { show(); } }
void scrollUp();
void scrollDown();
void scrollToTop();