From 2881720bca7168ca181a13bfd4dd69115a46c2f9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Jun 2011 21:00:17 +0300 Subject: Redesign Chat setup page. --- src/gui/setup_chat.h | 60 +++------------------------------------------------- 1 file changed, 3 insertions(+), 57 deletions(-) (limited to 'src/gui/setup_chat.h') diff --git a/src/gui/setup_chat.h b/src/gui/setup_chat.h index 1ee325117..0b69984c8 100644 --- a/src/gui/setup_chat.h +++ b/src/gui/setup_chat.h @@ -2,6 +2,7 @@ * The Mana World * Copyright (C) 2009 The Mana World Development Team * Copyright (C) 2009-2010 Andrei Karas + * Copyright (C) 2011 The ManaPlus Developers * * This file is part of The Mana World. * @@ -25,74 +26,19 @@ #include "guichanfwd.h" -#include "gui/widgets/setuptab.h" +#include "gui/widgets/setuptabscroll.h" #include class IntTextField; class EditDialog; -class Setup_Chat : public SetupTab +class Setup_Chat : public SetupTabScroll { public: Setup_Chat(); void apply(); - void cancel(); - - void action(const gcn::ActionEvent &event); - - private: - gcn::CheckBox *mRemoveColorsCheckBox; - bool mRemoveColors; - - gcn::CheckBox *mMagicInDebugCheckBox; - bool mMagicInDebug; - - gcn::CheckBox *mAllowCommandsInChatTabsCheckBox; - bool mAllowCommandsInChatTabs; - - gcn::CheckBox *mServerMsgInDebugCheckBox; - bool mServerMsgInDebug; - - gcn::CheckBox *mShowChatColorsCheckBox; - bool mShowChatColors; - - gcn::CheckBox *mMaxCharCheckBox; - IntTextField *mMaxCharField; - gcn::Button *mMaxCharButton; - bool mMaxChar; - - gcn::CheckBox *mMaxLinesCheckBox; - IntTextField *mMaxLinesField; - gcn::Button *mMaxLinesButton; - bool mMaxLines; - - gcn::CheckBox *mEnableChatLoggerCheckBox; - bool mEnableChatLogger; - - gcn::CheckBox *mEnableTradeTabCheckBox; - bool mEnableTradeTab; - - gcn::CheckBox *mHideShopMessagesCheckBox; - bool mHideShopMessages; - - gcn::CheckBox *mShowChatHistoryCheckBox; - bool mShowChatHistory; - - gcn::CheckBox *mEnableBattleTabCheckBox; - bool mEnableBattleTab; - - gcn::CheckBox *mShowBattleEventsCheckBox; - bool mShowBattleEvents; - - gcn::CheckBox *mHideChatInputCheckBox; - bool mHideChatInput; - - gcn::CheckBox *mLocalTimeCheckBox; - bool mLocalTime; - - EditDialog *mEditDialog; }; #endif -- cgit v1.2.3-60-g2f50