6#ifndef SWIFT_GUI_SETTINGS_TEXTMESSAGESETTINGS_H
7#define SWIFT_GUI_SETTINGS_TEXTMESSAGESETTINGS_H
27namespace swift::gui::settings
36 IndexPopupPrivateMessages = swift::misc::CPropertyIndexRef::GlobalIndexCTextMessageSettings,
37 IndexPopupSupervisorMessages,
38 IndexPopupFrequencyMessages,
39 IndexPopupAllMessages,
40 IndexPopupSelcalMessages,
59 bool popupSupervisorMessages()
const;
68 bool popupFrequencyMessages()
const;
86 bool popupSelcalMessages()
const;
92 void disableAllPopups();
123 QString convertToQString(
bool i18n =
false)
const;
132 bool m_popupPrivateMessages =
true;
133 bool m_popupSupervisorMessages =
true;
134 bool m_popupFrequencyMessages =
false;
135 bool m_popupAllMessages =
false;
136 bool m_popupSelcalMessages =
true;
138 bool m_latestFirst =
false;
157 static const char *
key() {
return "textmessages"; }
162 static const QString name(
"Text message");
void setPopupSelcalMessages(bool popup)
SELCAL messages?
bool getPopupSupervisorMessages() const
Supervisor messages?
void setStyleSheet(const QString &styleSheet)
CSS style sheet.
bool getPopupFrequencyMessages() const
Frequency messages tuned in?
bool focusOverlayWindow() const
Focus in the overlay window.
void setLatestFirst(bool latestFirst)
Latest messages 1st?
bool getPopupAllMessages() const
Popup all messages?
void setSupervisorMessages(bool popup)
Supervisor messages?
CTextMessageSettings()=default
Default constructor.
bool isLatestFirst() const
Latest messages 1st?
void setFocusOverlayWindows(bool focus)
Set focus in overlay window.
bool popup(const swift::misc::network::CTextMessage &textMessage) const
Popup the given message? Quick check without frequency checks.
void setPopupAllMessages(bool popup)
All messages?
bool getPopupSelcalMessages() const
Popup SELCAL messages?
void resetStyleSheet()
Reset style sheet.
bool getPopupPrivateMessages() const
Private messages.
const QString & getStyleSheet() const
CSS style sheet.
bool popupPrivateMessages() const
Private messages? All considered.
void setPopupFrequencyMessages(bool popup)
Frequency messages?
ColumnIndex
Properties by index.
void setPopupPrivateMessages(bool popup)
Private messages?
Generic ordered container with value semantics.
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Value object encapsulating information of a text message.
Comprehensive information of an aircraft.
Free functions in swift::misc.
static const QString & humanReadable()
Optional human readable name.
static const char * key()
Key string of the value. Reimplemented in derived class.
Base class for traits to be used as template argument to swift::misc::CSetting.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...