From d5eb424dcd214b4646a960e04b9271e70b096856 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Jul 2011 17:23:05 +0300 Subject: Add separator field to setup settings tabs. --- src/gui/setup_chat.cpp | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) (limited to 'src/gui/setup_chat.cpp') diff --git a/src/gui/setup_chat.cpp b/src/gui/setup_chat.cpp index 87425b46c..7db61542a 100644 --- a/src/gui/setup_chat.cpp +++ b/src/gui/setup_chat.cpp @@ -52,38 +52,55 @@ Setup_Chat::Setup_Chat() ContainerPlacer place = h.getPlacer(0, 0); place(0, 0, mScroll, 10, 10); + new SetupItemLabel(_("Colors"), "", this); + new SetupItemCheckBox(_("Remove colors from received chat messages"), "", "removeColors", this, "removeColorsEvent"); - new SetupItemCheckBox(_("Log magic messages in debug tab"), "", - "showMagicInDebug", this, "showMagicInDebugEvent"); + new SetupItemCheckBox(_("Show chat colors list"), "", + "showChatColorsList", this, "showChatColorsListEvent"); + + + new SetupItemLabel(_("Commands"), "", this); new SetupItemCheckBox(_("Allow magic and GM commands in all chat tabs"), "", "allowCommandsInChatTabs", this, "allowCommandsInChatTabsEvent"); - new SetupItemCheckBox(_("Show server messages in debug tab"), "", - "serverMsgInDebug", this, "serverMsgInDebugEvent"); - new SetupItemCheckBox(_("Show chat colors list"), "", - "showChatColorsList", this, "showChatColorsListEvent"); + new SetupItemLabel(_("Limits"), "", this); new SetupItemIntTextField(_("Limit max chars in chat line"), "", "chatMaxCharLimit", this, "chatMaxCharLimitEvent", 0, 500); + new SetupItemIntTextField(_("Limit max lines in chat"), "", + "chatMaxLinesLimit", this, "chatMaxLinesLimitEvent", 0, 500); + + + new SetupItemLabel(_("Logs"), "", this); + new SetupItemCheckBox(_("Enable chat Log"), "", "enableChatLog", this, "enableChatLogEvent"); - new SetupItemIntTextField(_("Limit max lines in chat"), "", - "chatMaxLinesLimit", this, "chatMaxLinesLimitEvent", 0, 500); + new SetupItemCheckBox(_("Show chat history"), "", + "showChatHistory", this, "showChatHistoryEvent"); - new SetupItemCheckBox(_("Enable trade tab"), "", - "enableTradeTab", this, "enableTradeTabEvent"); + + new SetupItemLabel(_("Messages"), "", this); new SetupItemCheckBox(_("Hide shop messages"), "", "hideShopMessages", this, "hideShopMessagesEvent"); - new SetupItemCheckBox(_("Show chat history"), "", - "showChatHistory", this, "showChatHistoryEvent"); + + new SetupItemLabel(_("Tabs"), "", this); + + new SetupItemCheckBox(_("Log magic messages in debug tab"), "", + "showMagicInDebug", this, "showMagicInDebugEvent"); + + new SetupItemCheckBox(_("Show server messages in debug tab"), "", + "serverMsgInDebug", this, "serverMsgInDebugEvent"); + + new SetupItemCheckBox(_("Enable trade tab"), "", + "enableTradeTab", this, "enableTradeTabEvent"); new SetupItemCheckBox(_("Enable battle tab"), "", "enableBattleTab", this, "enableBattleTabEvent"); @@ -94,6 +111,9 @@ Setup_Chat::Setup_Chat() new SetupItemCheckBox(_("Resize chat tabs if need"), "", "hideChatInput", this, "hideChatInputEvent"); + + new SetupItemLabel(_("Time"), "", this); + new SetupItemCheckBox(_("Use local time"), "", "useLocalTime", this, "useLocalTimeEvent"); -- cgit v1.2.3-70-g09d2