diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-24 21:33:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-24 23:28:10 +0300 |
commit | 64810ef5b4b3d375e7af0f4fc9ee69e235afa568 (patch) | |
tree | 6810d0f27a0e38c99370c3c9e8d08443ffe8d76f /src/gui/widgets | |
parent | 9d2eb460fa3569342044b6f3e61d52d86ca8cbb6 (diff) | |
download | manaverse-64810ef5b4b3d375e7af0f4fc9ee69e235afa568.tar.gz manaverse-64810ef5b4b3d375e7af0f4fc9ee69e235afa568.tar.bz2 manaverse-64810ef5b4b3d375e7af0f4fc9ee69e235afa568.tar.xz manaverse-64810ef5b4b3d375e7af0f4fc9ee69e235afa568.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/setupquickitem.cpp | 8 | ||||
-rw-r--r-- | src/gui/widgets/setupquickitem.h | 8 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_chat.cpp | 39 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_quick.cpp | 18 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_quick.h | 4 |
5 files changed, 28 insertions, 49 deletions
diff --git a/src/gui/widgets/setupquickitem.cpp b/src/gui/widgets/setupquickitem.cpp index eab3729f3..85b164c0a 100644 --- a/src/gui/widgets/setupquickitem.cpp +++ b/src/gui/widgets/setupquickitem.cpp @@ -30,10 +30,10 @@ #include "debug.h" SetupQuickItem::SetupQuickItem(const std::string &restrict description, - SetupTabScroll *restrict const parent, - const std::string &restrict eventName, - ModifierGetFuncPtr getFunc, - ModifierChangeFuncPtr changeFunc) : + SetupTabScroll *restrict const parent, + const std::string &restrict eventName, + ModifierGetFuncPtr getFunc, + ModifierChangeFuncPtr changeFunc) : SetupItem("", description, "", parent, eventName, false), mHorizont(nullptr), mButton(nullptr), diff --git a/src/gui/widgets/setupquickitem.h b/src/gui/widgets/setupquickitem.h index 40fba204b..70db34131 100644 --- a/src/gui/widgets/setupquickitem.h +++ b/src/gui/widgets/setupquickitem.h @@ -38,10 +38,10 @@ class SetupQuickItem final : public SetupItem, { public: SetupQuickItem(const std::string &restrict description, - SetupTabScroll *restrict const parent, - const std::string &restrict eventName, - ModifierGetFuncPtr getFunc, - ModifierChangeFuncPtr changeFunc); + SetupTabScroll *restrict const parent, + const std::string &restrict eventName, + ModifierGetFuncPtr getFunc, + ModifierChangeFuncPtr changeFunc); A_DELETE_COPY(SetupQuickItem) diff --git a/src/gui/widgets/tabs/setup_chat.cpp b/src/gui/widgets/tabs/setup_chat.cpp index 47a3e4ea5..3b7250b1f 100644 --- a/src/gui/widgets/tabs/setup_chat.cpp +++ b/src/gui/widgets/tabs/setup_chat.cpp @@ -48,14 +48,14 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : new SetupItemLabel(_("Window"), "", this); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Auto hide chat window"), + new SetupItemCheckBox(_("Auto hide chat window"), _("Chat window will be automatically hidden when not in use.\n\n" "Hit Enter or hover mouse to show chat again."), "autohideChat", this, "autohideChatEvent"); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Protect chat focus"), - _("Enables aggressive protection of input focus in chat window.\n\n" + new SetupItemCheckBox(_("Protect chat focus"), + _("Enables aggressive protection of input focus in chat window.\n\n" "Note: no other text inputs will be allowed to receive text input " "when you typing in chat window."), "protectChatFocus", this, "protectChatFocusEvent"); @@ -65,7 +65,7 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : new SetupItemLabel(_("Colors"), "", this); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Remove colors from received chat messages"), + new SetupItemCheckBox(_("Remove colors from received chat messages"), _("Enable this setting to strip colors from incoming chat messages. " "All messages will use default chat text color if this enabled."), "removeColors", this, "removeColorsEvent"); @@ -96,13 +96,13 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : new SetupItemIntTextField(_("Limit max chars in chat line"), _("Limits how many characters will be shown in longest lines " "of text displayed in chat.\n\n" - "Note: long lines can make client slower. Lines longer than this " + "Note: long lines can make client slower. Lines longer than this " "limit will be truncated."), "chatMaxCharLimit", this, "chatMaxCharLimitEvent", 0, 500); // TRANSLATORS: settings option new SetupItemIntTextField(_("Limit max lines in chat"), - _("Limits how many lines chat will keep in scrollback buffer. Chat " + _("Limits how many lines chat will keep in scrollback buffer. Chat " "keeps specified number of last lines of text. Oldest lines exceeding " "this limit are discarded from scrollback buffer.\n\n" "Note: keeping too many lines in scroll buffer can slow client down."), @@ -118,14 +118,14 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : "Note: chat logs can take noticeable amount of disk space over time."), "enableChatLog", this, "enableChatLogEvent"); - // TODO: ask 4144 if popup description is correct. + // TODO: ask 4144 if popup description is correct. // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable debug chat Log"), _("If you enable thus, debug chat tab also will be logged to disk."), "enableDebugLog", this, "enableDebugLogEvent"); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Show chat history"), + new SetupItemCheckBox(_("Show chat history"), _("If this setting enabled, client will load old chat tabs content " "from logs on startup instead of starting with empty chat tabs."), "showChatHistory", this, "showChatHistoryEvent"); @@ -149,7 +149,7 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : new SetupItemLabel(_("Messages"), "", this); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Hide shop messages"), + new SetupItemCheckBox(_("Hide shop messages"), _("If this setting enabled, no messages related to built-in ManaPlus" "shop will be displayed in chat. Disable this setting if you want " "to see shop-related messages.\n\nNote: technically, ManaPlus shop " @@ -195,15 +195,15 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : "serverMsgInDebug", this, "serverMsgInDebugEvent"); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Enable trade tab"), + new SetupItemCheckBox(_("Enable trade tab"), _("Enables trade tab. Trade tab is basically some filter. Messages " "containing words typical for trades will go to Trade tab. This " - "will make General tab less noisy. If this setting is disabled, all " + "will make General tab less noisy. If this setting is disabled, all " "trade related players messages will stay in General tab."), "enableTradeTab", this, "enableTradeTabEvent"); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Enable gm tab"), + new SetupItemCheckBox(_("Enable gm tab"), _("If enabled, GM tab will appear in chat. It displays text related " "GM activity.\n\nNote: this setting only makes difference for " "GMs (Game Masters) since this tab only appears for GMs."), @@ -224,7 +224,7 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : "showAllLang", this, "showAllLangEvent", false); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Enable battle tab"), + new SetupItemCheckBox(_("Enable battle tab"), _("If this setting enabled, Battle tab will appear in chat. This " "tab will contain messages related to battles, like damage and " "experience gain, if battle messages are enabled.\n\n" @@ -239,13 +239,14 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : "showBattleEvents", this, "showBattleEventsEvent"); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Resize chat tabs if need"), + new SetupItemCheckBox(_("Resize chat tabs if need"), _("If this feature enabled, text in chat will be automatically" "adjusted to adapt to appearance of chat input field when you" "typing message and when input field of chat disappears. If disabled, " "chat input area will allways occupy its place, which could be " "otherwise usable for text.\n\n" - "Note: its mostly about jumpy attitude vs less usable space for text."), + "Note: its mostly about jumpy attitude vs " + "less usable space for text."), "hideChatInput", this, "hideChatInputEvent"); @@ -253,7 +254,7 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : new SetupItemLabel(_("Time"), "", this); // TRANSLATORS: settings option - new SetupItemCheckBox(_("Use local time"), + new SetupItemCheckBox(_("Use local time"), _("If this feature enabled, timestamps in chat will use locak times." "If disabled, server time will be used (often it is GMT+0)."), "useLocalTime", this, "useLocalTimeEvent"); @@ -262,14 +263,14 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) : new SetupItemLabel(_("Other"), "", this); // TRANSLATORS: settings option - new SetupItemTextField(_("Highlight words (separated by comma)"), - _("Here you can specify some extra words which will also cause " + new SetupItemTextField(_("Highlight words (separated by comma)"), + _("Here you can specify some extra words which will also cause " "highlighting. Use comma to separate words.\n\nNote: frequent" "hilights are annoying - use it with caution."), "highlightWords", this, "highlightWordsEvent"); // TRANSLATORS: settings option - new SetupItemTextField(_("Globals ignore names (separated by comma)"), + new SetupItemTextField(_("Globals ignore names (separated by comma)"), _("This setting allows you to ignore some global messages if " "particular sender (NPC, GM) annoys you too much. Global will be " "moved to Debug instead.\n\nNote: careless use of this feature can " diff --git a/src/gui/widgets/tabs/setup_quick.cpp b/src/gui/widgets/tabs/setup_quick.cpp index 699f20365..a85fdc0ca 100644 --- a/src/gui/widgets/tabs/setup_quick.cpp +++ b/src/gui/widgets/tabs/setup_quick.cpp @@ -31,14 +31,6 @@ #include "gui/widgets/setupquickitem.h" #include "gui/widgets/scrollarea.h" -#include "listeners/uploadlistener.h" - -#include "configuration.h" - -#include "resources/map/mapconsts.h" - -#include "net/net.h" - #include "utils/delete2.h" #include "utils/gettext.h" @@ -120,13 +112,3 @@ Setup_Quick::~Setup_Quick() delete2(mMoveTypeList); delete2(mCrazyMoveTypeList); } - -void Setup_Quick::apply() -{ - SetupTabScroll::apply(); - -} - -void Setup_Quick::externalUpdated() -{ -} diff --git a/src/gui/widgets/tabs/setup_quick.h b/src/gui/widgets/tabs/setup_quick.h index 307e89025..8ae95bb35 100644 --- a/src/gui/widgets/tabs/setup_quick.h +++ b/src/gui/widgets/tabs/setup_quick.h @@ -36,10 +36,6 @@ class Setup_Quick final : public SetupTabScroll ~Setup_Quick(); - void apply() override final; - - void externalUpdated() override final; - protected: NamesModel *mMoveTypeList; |