ManaPlus
Public Member Functions
Setup_Chat Class Reference

#include <setup_chat.h>

Inheritance diagram for Setup_Chat:
SetupTabScroll SetupTab Container ActionListener WidgetListener BasicContainer2 BasicContainer Widget WidgetDeathListener Widget2

Public Member Functions

 Setup_Chat (const Widget2 *const widget)
 
void apply ()
 
void externalUpdated ()
 
- Public Member Functions inherited from SetupTabScroll
 SetupTabScroll (const Widget2 *const widget)
 
 ~SetupTabScroll ()
 
void addControl (SetupItem *const widget)
 
void addControl (SetupItem *const widget, const std::string &event)
 
VertContainergetContainer () const
 
void apply ()
 
void cancel ()
 
void externalUpdated ()
 
void externalUnloaded ()
 
void action (const ActionEvent &event)
 
int getPreferredFirstItemSize () const
 
void widgetResized (const Event &event)
 
void reread (const std::string &name)
 
void clear ()
 
const std::set< SetupItem * > & getAllItems () const
 
- Public Member Functions inherited from SetupTab
const std::string & getName () const
 
- Public Member Functions inherited from Container
 Container (const Widget2 *const widget)
 
 ~Container ()
 
bool safeRemove (Widget *const widget)
 
void removeControls ()
 
- Public Member Functions inherited from BasicContainer2
 BasicContainer2 (const Widget2 *const widget)
 
 ~BasicContainer2 ()
 
void setOpaque (Opaque opaque)
 
bool isOpaque () const
 
virtual void add (Widget *const widget)
 
void addXY (Widget *const widget, const int x, const int y)
 
void draw (Graphics *const graphics)
 
void safeDraw (Graphics *const graphics)
 
- Public Member Functions inherited from BasicContainer
 BasicContainer (const Widget2 *const widget)
 
 ~BasicContainer ()
 
void showWidgetPart (Widget *const widget, const Rect &area)
 
void moveToTop (Widget *const widget)
 
void moveToBottom (Widget *const widget)
 
Rect getChildrenArea ()
 
void focusNext ()
 
void focusPrevious ()
 
void logic ()
 
void setFocusHandler (FocusHandler *const focusHandler)
 
void setInternalFocusHandler (FocusHandler *const focusHandler)
 
WidgetgetWidgetAt (int x, int y)
 
void death (const Event &event)
 
WidgetfindFirstWidget (const std::set< Widget * > &list)
 
void add (Widget *const widget)
 
virtual void remove (Widget *const widget)
 
- Public Member Functions inherited from Widget
 Widget (const Widget2 *const widget)
 
 ~Widget ()
 
virtual void drawFrame (Graphics *graphics)
 
virtual void safeDrawFrame (Graphics *graphics)
 
void setFrameSize (const unsigned int frameSize)
 
unsigned int getFrameSize () const
 
WidgetgetParent () const
 
void setWidth (const int width)
 
int getWidth () const
 
void setHeight (const int height)
 
int getHeight () const
 
void setSize (const int width, const int height)
 
void setX (const int x)
 
int getX () const
 
void setY (const int y)
 
int getY () const
 
void setPosition (const int x, const int y)
 
void setDimension (const Rect &dimension)
 
const RectgetDimension () const
 
void setFocusable (const bool focusable)
 
bool isFocusable () const
 
virtual bool isFocused () const
 
void setEnabled (const bool enabled)
 
bool isEnabled () const
 
void setVisible (Visible visible)
 
bool isVisible () const
 
void setBaseColor (const Color &color)
 
const ColorgetBaseColor () const
 
void setForegroundColor (const Color &color)
 
const ColorgetForegroundColor () const
 
void setBackgroundColor (const Color &color)
 
const ColorgetBackgroundColor () const
 
virtual void requestFocus ()
 
virtual void requestMoveToTop ()
 
virtual void requestMoveToBottom ()
 
FocusHandlergetFocusHandler ()
 
void addActionListener (ActionListener *const actionListener)
 
void removeActionListener (ActionListener *const actionListener)
 
void addDeathListener (WidgetDeathListener *const deathListener)
 
void removeDeathListener (WidgetDeathListener *const deathListener)
 
void addMouseListener (MouseListener *const mouseListener)
 
void removeMouseListener (MouseListener *const mouseListener)
 
void addKeyListener (KeyListener *const keyListener)
 
void removeKeyListener (KeyListener *const keyListener)
 
void addFocusListener (FocusListener *const focusListener)
 
void removeFocusListener (FocusListener *const focusListener)
 
void addWidgetListener (WidgetListener *const widgetListener)
 
void removeWidgetListener (WidgetListener *const widgetListener)
 
void setActionEventId (const std::string &actionEventId)
 
const std::string & getActionEventId () const
 
virtual void getAbsolutePosition (int &x, int &y) const
 
virtual void setParent (Widget *parent)
 
FontgetFont () const
 
void setFont (Font *const font)
 
virtual void fontChanged ()
 
bool isTabInEnabled () const
 
void setTabInEnabled (const bool enabled)
 
bool isTabOutEnabled () const
 
void setTabOutEnabled (const bool enabled)
 
void requestModalFocus ()
 
virtual void requestModalMouseInputFocus ()
 
virtual void releaseModalFocus ()
 
virtual void releaseModalMouseInputFocus ()
 
virtual bool isModalFocused () const
 
virtual bool isModalMouseInputFocused () const
 
const std::list< MouseListener * > & getMouseListeners () const A_CONST
 
const std::list< KeyListener * > & getKeyListeners () const A_CONST
 
const std::list< FocusListener * > & getFocusListeners () const A_CONST
 
virtual FocusHandlergetInternalFocusHandler ()
 
void setInternalFocusHandler (FocusHandler *const internalFocusHandler)
 
void setId (const std::string &id)
 
const std::string & getId () const
 
virtual void showPart (const Rect &rectangle)
 
bool isAllowLogic () const
 
void setMouseConsume (const bool b)
 
bool isMouseConsume () const
 
void setRedraw (const bool b)
 
virtual bool isSelectable () const
 
void setSelectable (const bool selectable)
 
void windowResized ()
 
virtual void postInit ()
 
- Public Member Functions inherited from Widget2
virtual ~Widget2 ()
 
const ColorgetThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE
 
const ColorgetThemeCharColor (const signed char c, bool &valid) const A_INLINE
 
virtual void setWidget2 (const Widget2 *const widget)
 
void setPalette (int palette)
 
void checkPalette ()
 
void setForegroundColor2 (const Color &color)
 
WidgetgetWindow () const
 
virtual void setWindow (Widget *const window)
 
- Public Member Functions inherited from WidgetDeathListener
virtual ~WidgetDeathListener ()
 
- Public Member Functions inherited from ActionListener
virtual ~ActionListener ()
 
- Public Member Functions inherited from WidgetListener
virtual ~WidgetListener ()
 
virtual void widgetMoved (const Event &event)
 
virtual void widgetHidden (const Event &event)
 
virtual void widgetShown (const Event &event)
 

Additional Inherited Members

- Static Public Member Functions inherited from Widget
static void setGlobalFont (Font *const font)
 
static FontgetGloablFont ()
 
static void cleanGlobalFont ()
 
static bool widgetExists (const Widget *const widget)
 
static void distributeWindowResizeEvent ()
 
static WidgetcallPostInit (Widget *const widget)
 
- Data Fields inherited from Widget
Visible mVisible
 
- Protected Types inherited from BasicContainer
typedef std::vector< Widget * > WidgetList
 
typedef WidgetList::iterator WidgetListIterator
 
typedef WidgetList::const_iterator WidgetListConstIterator
 
typedef WidgetList::reverse_iterator WidgetListReverseIterator
 
typedef WidgetList::const_reverse_iterator WidgetListCReverseIterator
 
- Protected Types inherited from Widget
typedef std::list< MouseListener * > MouseListenerList
 
typedef MouseListenerList::iterator MouseListenerIterator
 
typedef std::list< KeyListener * > KeyListenerList
 
typedef KeyListenerList::iterator KeyListenerIterator
 
typedef std::list< ActionListener * > ActionListenerList
 
typedef ActionListenerList::iterator ActionListenerIterator
 
typedef std::list< WidgetDeathListener * > WidgetDeathListenerList
 
typedef WidgetDeathListenerList::iterator WidgetDeathListenerIterator
 
typedef std::list< FocusListener * > FocusListenerList
 
typedef FocusListenerList::iterator FocusListenerIterator
 
typedef std::list< WidgetListener * > WidgetListenerList
 
typedef WidgetListenerList::iterator WidgetListenerIterator
 
- Protected Member Functions inherited from SetupTabScroll
void removeItems ()
 
- Protected Member Functions inherited from SetupTab
 SetupTab (const Widget2 *const widget)
 
void setName (const std::string &name)
 
- Protected Member Functions inherited from BasicContainer
virtual void drawChildren (Graphics *const graphics)
 
virtual void safeDrawChildren (Graphics *const graphics)
 
virtual void logicChildren ()
 
- Protected Member Functions inherited from Widget
void distributeActionEvent ()
 
void distributeResizedEvent ()
 
void distributeMovedEvent ()
 
void distributeHiddenEvent ()
 
void distributeShownEvent ()
 
- Protected Member Functions inherited from Widget2
 Widget2 (const Widget2 *const widget)
 
- Protected Member Functions inherited from WidgetDeathListener
 WidgetDeathListener ()
 
- Protected Member Functions inherited from ActionListener
 ActionListener ()
 
- Protected Member Functions inherited from WidgetListener
 WidgetListener ()
 
- Protected Attributes inherited from SetupTabScroll
VertContainermContainer
 
ScrollAreamScroll
 
std::map< std::string, SetupItem * > mItems
 
std::set< SetupItem * > mAllItems
 
int mPreferredFirstItemSize
 
- Protected Attributes inherited from BasicContainer2
Opaque mOpaque
 
- Protected Attributes inherited from BasicContainer
WidgetList mWidgets
 
WidgetList mLogicWidgets
 
- Protected Attributes inherited from Widget
MouseListenerList mMouseListeners
 
KeyListenerList mKeyListeners
 
ActionListenerList mActionListeners
 
WidgetDeathListenerList mDeathListeners
 
FocusListenerList mFocusListeners
 
WidgetListenerList mWidgetListeners
 
Color mForegroundColor
 
Color mBackgroundColor
 
Color mBaseColor
 
Rect mDimension
 
std::string mActionEventId
 
std::string mId
 
FocusHandlermFocusHandler
 
FocusHandlermInternalFocusHandler
 
WidgetmParent
 
FontmCurrentFont
 
unsigned int mFrameSize
 
bool mFocusable
 
bool mTabIn
 
bool mTabOut
 
bool mEnabled
 
bool mAllowLogic
 
bool mMouseConsume
 
bool mRedraw
 
bool mSelectable
 
- Protected Attributes inherited from Widget2
int mPaletteOffset
 
WidgetmWindow
 
Color mForegroundColor2
 
- Static Protected Attributes inherited from Widget
static FontmGlobalFont = 0
 

Detailed Description

Definition at line 28 of file setup_chat.h.

Constructor & Destructor Documentation

◆ Setup_Chat()

Setup_Chat::Setup_Chat ( const Widget2 *const  widget)
explicit

Definition at line 36 of file setup_chat.cpp.

36  :
37  SetupTabScroll(widget)
38 {
39  // TRANSLATORS: settings tab name
40  setName(_("Chat"));
41 
42  // Do the layout
43  LayoutHelper h(this);
44  ContainerPlacer place = h.getPlacer(0, 0);
45  place(0, 0, mScroll, 10, 10);
46 
47  // TRANSLATORS: settings group
48  new SetupItemLabel(_("Window"), "", this,
50 
51  // TRANSLATORS: settings option
52  new SetupItemCheckBox(_("Auto hide chat window"),
53  // TRANSLATORS: settings description
54  _("Chat window will be automatically hidden when not in use.\n\n"
55  "Hit Enter or hover mouse to show chat again."),
56  "autohideChat", this, "autohideChatEvent",
58 
59  // TRANSLATORS: settings option
60  new SetupItemCheckBox(_("Protect chat focus"),
61  // TRANSLATORS: settings description
62  _("Enables aggressive protection of input focus in chat window.\n\n"
63  "Note: no other text inputs will be allowed to receive text input "
64  "when you typing in chat window."),
65  "protectChatFocus", this, "protectChatFocusEvent",
67 
68 
69  // TRANSLATORS: settings group
70  new SetupItemLabel(_("Colors"), "", this,
72 
73  // TRANSLATORS: settings option
74  new SetupItemCheckBox(_("Remove colors from received chat messages"),
75  // TRANSLATORS: settings description
76  _("Enable this setting to strip colors from incoming chat messages. "
77  "All messages will use default chat text color if this enabled."),
78  "removeColors", this, "removeColorsEvent",
80 
81  // TRANSLATORS: settings option
82  new SetupItemCheckBox(_("Show chat colors list"),
83  // TRANSLATORS: settings description
84  _("Enable this setting to show color selection drop-down in chat "
85  "window. Chat window will display color selection drop-down.\n\n"
86  "It allows one to select default color of outgoing chat messages "
87  "easily, but also occupies some space in chat window."),
88  "showChatColorsList", this, "showChatColorsListEvent",
90 
91 
92  // TRANSLATORS: settings option
93  new SetupItemLabel(_("Commands"), "", this,
95 
96  // TRANSLATORS: settings option
97  new SetupItemCheckBox(_("Allow magic and GM commands in all chat tabs"),
98  // TRANSLATORS: settings description
99  _("Enable this setting to be able to type spells and GM commands in "
100  "any tab."),
101  "allowCommandsInChatTabs", this, "allowCommandsInChatTabsEvent",
103 
104 
105  // TRANSLATORS: settings group
106  new SetupItemLabel(_("Limits"), "", this,
108 
109  // TRANSLATORS: settings option
110  new SetupItemIntTextField(_("Limit max chars in chat line"),
111  // TRANSLATORS: settings description
112  _("Limits how many characters will be shown in longest lines "
113  "of text displayed in chat.\n\n"
114  "Note: long lines can make client slower. Lines longer than this "
115  "limit will be truncated."),
116  "chatMaxCharLimit", this, "chatMaxCharLimitEvent", 0, 500,
118 
119  // TRANSLATORS: settings option
120  new SetupItemIntTextField(_("Limit max lines in chat"),
121  // TRANSLATORS: settings description
122  _("Limits how many lines chat will keep in scrollback buffer. Chat "
123  "keeps specified number of last lines of text. Oldest lines exceeding "
124  "this limit are discarded from scrollback buffer.\n\n"
125  "Note: keeping too many lines in scroll buffer can slow client down."),
126  "chatMaxLinesLimit", this, "chatMaxLinesLimitEvent", 0, 500,
128 
129 
130  // TRANSLATORS: settings group
131  new SetupItemLabel(_("Logs"), "", this,
133 
134  // TRANSLATORS: settings option
135  new SetupItemCheckBox(_("Enable chat Log"),
136  // TRANSLATORS: settings description
137  _("If you enable this setting, chat logs will be written to disk.\n\n"
138  "Note: chat logs can take noticeable amount of disk space over time."),
139  "enableChatLog", this, "enableChatLogEvent",
141 
142  // TRANSLATORS: settings option
143  new SetupItemCheckBox(_("Enable debug chat Log"),
144  // TRANSLATORS: settings description
145  _("If you enable this, debug chat tab also will be logged to disk."),
146  "enableDebugLog", this, "enableDebugLogEvent",
148 
149  // TRANSLATORS: settings option
150  new SetupItemCheckBox(_("Show chat history"),
151  // TRANSLATORS: settings description
152  _("If this setting enabled, client will load old chat tabs content "
153  "from logs on startup instead of starting with empty chat tabs."),
154  "showChatHistory", this, "showChatHistoryEvent",
156 
157  // TRANSLATORS: settings option
158  new SetupItemCheckBox(_("Show party online messages"),
159  // TRANSLATORS: settings description
160  _("If this setting is enabled, online status changes of party members"
161  " will be shown in party tab of chat.\n\nThis adds some extra noise "
162  "to chat, but allows one to see when your buddies are coming online."),
163  "showPartyOnline", this, "showPartyOnlineEvent",
165 
166  // TRANSLATORS: settings option
167  new SetupItemCheckBox(_("Show guild online messages"),
168  // TRANSLATORS: settings description
169  _("If this setting is enabled, online status changes of guild members"
170  " will be shown in guild tab of chat.\n\nThis adds some extra noise "
171  "to chat, but allows one to see when your buddies are coming online."),
172  "showGuildOnline", this, "showGuildOnlineEvent",
174 
175 
176  // TRANSLATORS: settings group
177  new SetupItemLabel(_("Messages"), "", this,
179 
180  // TRANSLATORS: settings option
181  new SetupItemCheckBox(_("Hide shop messages"),
182  // TRANSLATORS: settings description
183  _("If this setting enabled, no messages related to built-in ManaPlus "
184  "shop will be displayed in chat. Disable this setting if you want "
185  "to see shop-related messages.\n\nNote: technically, ManaPlus shop "
186  "implemented as usual private messages with special content. If you "
187  "disable this setting, you will be able to see these messages and get "
188  "idea when other players are looking at your shop."),
189  "hideShopMessages", this, "hideShopMessagesEvent",
191 
192  // TRANSLATORS: settings option
193  new SetupItemCheckBox(_("Show MVP messages"),
194  // TRANSLATORS: settings description
195  _("Enable this setting to see MVP messages from server.\n\n"
196  "Note: MVP messages are not used on TMW/Evol/etc servers, so this "
197  "feature usually makes little difference."),
198  "showMVP", this, "showMVPEvent",
200 
201 
202  // TRANSLATORS: settings group
203  new SetupItemLabel(_("Tabs"), "", this,
205 
206  // TRANSLATORS: settings option
207  new SetupItemCheckBox(_("Put all whispers in tabs"),
208  // TRANSLATORS: settings description
209  _("If this setting enabled, all whispers (private messages) will "
210  "be placed in separate tabs, separate tab for each player. If this "
211  "setting disabled, all whispers will appear in General tab.\n\n"
212  "Note: putting all whispers to single General tab is known to be "
213  "confusing. Think twice before disabling this feature."),
214  "whispertab", this, "whispertabEvent",
216 
217  // TRANSLATORS: settings option
218  new SetupItemCheckBox(_("Log magic messages in debug tab"),
219  // TRANSLATORS: settings description
220  _("If this setting is enabled, spell invocation will be shown in "
221  "Debug tab. If disabled, it will be shown in General tab instead.\n\n"
222  "Note: it does not affects server replies related to spells."),
223  "showMagicInDebug", this, "showMagicInDebugEvent",
225 
226  // TRANSLATORS: settings option
227  new SetupItemCheckBox(_("Show server messages in debug tab"),
228  // TRANSLATORS: settings description
229  _("If this setting is enabled, server messages will be shown in "
230  "Debug tab of chat. If disabled, server messages will appear in "
231  "General chat instead.\n\nNote: according to 4144, disabling this "
232  "could also make you to lose some debug messages from client in "
233  "Debug tab since these are fake server messages."),
234  "serverMsgInDebug", this, "serverMsgInDebugEvent",
236 
237  // TRANSLATORS: settings option
238  new SetupItemCheckBox(_("Enable trade tab"),
239  // TRANSLATORS: settings description
240  _("Enables trade tab. Trade tab is basically some filter. Messages "
241  "containing words typical for trades will go to Trade tab. This "
242  "will make General tab less noisy. If this setting is disabled, all "
243  "trade related players messages will stay in General tab."),
244  "enableTradeTab", this, "enableTradeTabEvent",
246 
247  // TRANSLATORS: settings option
248  new SetupItemCheckBox(_("Enable gm tab"),
249  // TRANSLATORS: settings description
250  _("If enabled, GM tab will appear in chat. It displays text related "
251  "GM activity.\n\nNote: this setting only makes difference for "
252  "GMs (Game Masters) since this tab only appears for GMs."),
253  "enableGmTab", this, "enableGmTabEvent",
255 
256  // TRANSLATORS: settings option
257  new SetupItemCheckBox(_("Enable language tab"),
258  // TRANSLATORS: settings description
259  _("If this feature enabled, language tab will appear if server "
260  "supports this feature.\n\nNote: only supported by Evol server yet."),
261  "enableLangTab", this, "enableLangTabEvent",
263 
264  // TRANSLATORS: settings option
265  new SetupItemCheckBox(_("Show all languages messages"),
266  // TRANSLATORS: settings description
267  _("If this setting enabled and server supports different chats "
268  "for different languages, you will see messages for all languages, "
269  "regardless of your language preferences.\n\nNote: it only works "
270  "on servers supporting language tabs feature, like Evol."),
271  "showAllLang", this, "showAllLangEvent",
273 
274  // TRANSLATORS: settings option
275  new SetupItemCheckBox(_("Enable battle tab"),
276  // TRANSLATORS: settings description
277  _("If this setting enabled, Battle tab will appear in chat. This "
278  "tab will contain messages related to battles, like damage and "
279  "experience gain, if battle messages are enabled.\n\n"
280  "Note: client restart required to take effect."),
281  "enableBattleTab", this, "enableBattleTabEvent",
283 
284  // TRANSLATORS: settings option
285  new SetupItemCheckBox(_("Show battle events"),
286  // TRANSLATORS: settings description
287  _("If this setting enabled, messages related to battle like damage "
288  "or experience gain will be displayed in Debug or Battle tab. If "
289  "disabled, no battle messages will be displayed."),
290  "showBattleEvents", this, "showBattleEventsEvent",
292 
293  // TRANSLATORS: settings option
294  new SetupItemCheckBox(_("Resize chat tabs if need"),
295  // TRANSLATORS: settings description
296  _("If this feature enabled, text in chat will be automatically "
297  "adjusted to adapt to appearance of chat input field when you "
298  "typing message and when input field of chat disappears. If disabled, "
299  "chat input area will always occupy its place, which could be "
300  "otherwise usable for text.\n\n"
301  "Note: its mostly about jumpy attitude vs "
302  "less usable space for text."),
303  "hideChatInput", this, "hideChatInputEvent",
305 
306  // TRANSLATORS: settings option
307  new SetupItemCheckBox(_("Enable trade spam filter"),
308  "", "enableTradeFilter", this, "enableTradeFilterEvent",
310 
311 
312  // TRANSLATORS: settings group
313  new SetupItemLabel(_("Time"), "", this,
315 
316  // TRANSLATORS: settings option
317  new SetupItemCheckBox(_("Use local time"),
318  // TRANSLATORS: settings description
319  _("If this feature enabled, timestamps in chat will use local times. "
320  "If disabled, server time will be used (often it is GMT+0)."),
321  "useLocalTime", this, "useLocalTimeEvent",
323 
324  // TRANSLATORS: settings group
325  new SetupItemLabel(_("Other"), "", this,
327 
328  // TRANSLATORS: settings option
329  new SetupItemTextField(_("Highlight words (separated by comma)"),
330  // TRANSLATORS: settings description
331  _("Here you can specify some extra words which will also cause "
332  "highlighting. Use comma to separate words.\n\nNote: frequent "
333  "highlights are annoying - use it with caution."),
334  "highlightWords", this, "highlightWordsEvent",
336 
337  // TRANSLATORS: settings option
338  new SetupItemTextField(_("Globals ignore names (separated by comma)"),
339  // TRANSLATORS: settings description
340  _("This setting allows you to ignore some global messages if "
341  "particular sender (NPC, GM) annoys you too much. Global will be "
342  "moved to Debug instead.\n\nNote: careless use of this feature can "
343  "make you to miss important announces!"),
344  "globalsFilter", this, "globalsFilterEvent",
346 
347  // TRANSLATORS: settings option
348  new SetupItemCheckBox(_("Show emotes button in chat"),
349  // TRANSLATORS: settings description
350  _("If this setting enabled, button will appear near text input "
351  "field. This button allows one to invoke composing window, which "
352  "allows one to insert smiles and text formatting easily.\n\n"
353  "Note: same window can also be invoked by hotkey when typing, usually "
354  "F1 by default."),
355  "showEmotesButton", this, "showEmotesButtonEvent",
357 
358  // TRANSLATORS: settings option
359  new SetupItemCheckBox(_("Show motd server message on start"),
360  // TRANSLATORS: settings description
361  _("If this setting enabled, client will display server MOTD (message"
362  " of the day) once you connect to server. Disable it to hide MOTD."),
363  "showmotd", this, "showmotdEvent",
365 
366  setDimension(Rect(0, 0, 550, 350));
367 }
Definition: rect.h:74
SetupTabScroll(const Widget2 *const widget)
ScrollArea * mScroll
void setName(const std::string &name)
Definition: setuptab.h:68
void setDimension(const Rect &dimension)
Definition: widget.cpp:169
#define _(s)
Definition: gettext.h:35
const bool MainConfig_true
Definition: mainconfig.h:30
const bool MainConfig_false
Definition: mainconfig.h:30
const bool Separator_true
Definition: separator.h:30
const bool UseBase64_false
Definition: usebase64.h:30

References _, LayoutHelper::getPlacer(), MainConfig_false, MainConfig_true, SetupTabScroll::mScroll, Separator_true, Widget::setDimension(), SetupTab::setName(), and UseBase64_false.

Member Function Documentation

◆ apply()

void Setup_Chat::apply ( )
virtual

Called when the Apply button is pressed in the setup window.

Implements SetupTab.

Definition at line 369 of file setup_chat.cpp.

370 {
372 
373  if (chatWindow != nullptr)
374  {
377  }
378 }
ChatWindow * chatWindow
Definition: chatwindow.cpp:94
void parseHighlights()
void adjustTabSize()
Definition: chatwindow.cpp:281

References ChatWindow::adjustTabSize(), SetupTabScroll::apply(), chatWindow, and ChatWindow::parseHighlights().

◆ externalUpdated()

void Setup_Chat::externalUpdated ( )
virtual

Reimplemented from SetupTab.

Definition at line 380 of file setup_chat.cpp.

381 {
382  reread("enableLangTab");
383  reread("showAllLang");
384 }
void reread(const std::string &name)

References SetupTabScroll::reread().


The documentation for this class was generated from the following files: