6 #ifndef SWIFT_GUI_SETTINGS_TEXTMESSAGESETTINGS_H
7 #define SWIFT_GUI_SETTINGS_TEXTMESSAGESETTINGS_H
20 class CSimulatedAircraft;
27 namespace swift::gui::settings
36 IndexPopupPrivateMessages = swift::misc::CPropertyIndexRef::GlobalIndexCTextMessageSettings,
37 IndexPopupSupervisorMessages,
38 IndexPopupFrequencyMessages,
39 IndexPopupAllMessages,
40 IndexPopupSelcalMessages,
50 bool popupPrivateMessages()
const;
59 bool popupSupervisorMessages()
const;
68 bool popupFrequencyMessages()
const;
86 bool popupSelcalMessages()
const;
92 void disableAllPopups();
111 void setStyleSheet(
const QString &styleSheet) { m_styleSheet = styleSheet; }
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;
139 QString m_styleSheet;
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?
bool isLatestFirst() const
Latest messages 1st?
void setFocusOverlayWindows(bool focus)
Set focus in overlay window.
const QString & getStyleSheet() const
CSS style sheet.
void setPopupAllMessages(bool popup)
All messages?
bool getPopupSelcalMessages() const
Popup SELCAL messages?
void resetStyleSheet()
Reset style sheet.
bool getPopupPrivateMessages() const
Private messages.
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 char * key()
Key string of the value. Reimplemented in derived class.
static const QString & humanReadable()
Optional human readable name.
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 ...