mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
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:
committed by
Klaus Basan
parent
ff37704a59
commit
7f6dd61bb3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user