diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-22 01:34:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-22 01:34:49 +0300 |
commit | 3dcf21babe03cee5080a25e787e1d7e72124288e (patch) | |
tree | 7051c6beddd3e7e1de960bb84e46601db8e2e5c4 /src/gui | |
parent | c217b7141df580b686a0eef085bd0eb0a8e6771a (diff) | |
download | ManaVerse-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.gz ManaVerse-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.bz2 ManaVerse-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.xz ManaVerse-3dcf21babe03cee5080a25e787e1d7e72124288e.zip |
Add final keyword to most classes.
Diffstat (limited to 'src/gui')
143 files changed, 271 insertions, 261 deletions
diff --git a/src/gui/beingpopup.h b/src/gui/beingpopup.h index f58921cf2..a1f5c0cbd 100644 --- a/src/gui/beingpopup.h +++ b/src/gui/beingpopup.h @@ -30,7 +30,7 @@ class Label; /** * A popup that displays information about a being. */ -class BeingPopup : public Popup +class BeingPopup final : public Popup { public: /** diff --git a/src/gui/botcheckerwindow.cpp b/src/gui/botcheckerwindow.cpp index 7a4aa99e6..c01925c05 100644 --- a/src/gui/botcheckerwindow.cpp +++ b/src/gui/botcheckerwindow.cpp @@ -58,7 +58,7 @@ const int TIME_COLUMN_WIDTH = 70; #define WIDGET_AT(row, column) (((row) * COLUMNS_NR) + column) -class UsersTableModel : public TableModel +class UsersTableModel final : public TableModel { public: UsersTableModel() : diff --git a/src/gui/botcheckerwindow.h b/src/gui/botcheckerwindow.h index 705ddd73c..5e6641161 100644 --- a/src/gui/botcheckerwindow.h +++ b/src/gui/botcheckerwindow.h @@ -31,7 +31,7 @@ #include <vector> -struct BOTCHK +struct BOTCHK final { short id; /**< Index into "botchecker_db" array */ short lv, sp; @@ -47,8 +47,9 @@ namespace gcn class Button; } -class BotCheckerWindow : public Window, public gcn::ActionListener, - public ConfigListener +class BotCheckerWindow final : public Window, + public gcn::ActionListener, + public ConfigListener { public: friend class UsersTableModel; diff --git a/src/gui/buydialog.h b/src/gui/buydialog.h index 50d8a4d0b..91badb30d 100644 --- a/src/gui/buydialog.h +++ b/src/gui/buydialog.h @@ -46,8 +46,8 @@ namespace gcn * * \ingroup Interface */ -class BuyDialog : public Window, public gcn::ActionListener, - public gcn::SelectionListener +class BuyDialog final : public Window, public gcn::ActionListener, + public gcn::SelectionListener { public: /** diff --git a/src/gui/buyselldialog.h b/src/gui/buyselldialog.h index dfc59415e..d6fc3daa1 100644 --- a/src/gui/buyselldialog.h +++ b/src/gui/buyselldialog.h @@ -37,7 +37,7 @@ namespace gcn * * \ingroup Interface */ -class BuySellDialog : public Window, public gcn::ActionListener +class BuySellDialog final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/changeemaildialog.h b/src/gui/changeemaildialog.h index 6077a3d93..0db1d52df 100644 --- a/src/gui/changeemaildialog.h +++ b/src/gui/changeemaildialog.h @@ -42,7 +42,7 @@ namespace gcn * * \ingroup Interface */ -class ChangeEmailDialog : public Window, public gcn::ActionListener +class ChangeEmailDialog final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/changepassworddialog.h b/src/gui/changepassworddialog.h index e6cb18c7e..348311e48 100644 --- a/src/gui/changepassworddialog.h +++ b/src/gui/changepassworddialog.h @@ -42,7 +42,7 @@ namespace gcn * * \ingroup Interface */ -class ChangePasswordDialog : public Window, public gcn::ActionListener +class ChangePasswordDialog final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/charcreatedialog.h b/src/gui/charcreatedialog.h index 83521e301..6e087d9a7 100644 --- a/src/gui/charcreatedialog.h +++ b/src/gui/charcreatedialog.h @@ -46,9 +46,9 @@ namespace gcn * * \ingroup Interface */ -class CharCreateDialog : public Window, - public gcn::ActionListener, - public gcn::KeyListener +class CharCreateDialog final : public Window, + public gcn::ActionListener, + public gcn::KeyListener { public: /** diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index e2f8f652c..3307f9b76 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -66,7 +66,7 @@ static const int SLOTS_PER_ROW = 5; /** * Listener for confirming character deletion. */ -class CharDeleteConfirm : public ConfirmDialog +class CharDeleteConfirm final : public ConfirmDialog { public: CharDeleteConfirm(CharSelectDialog *const m, const int index) : @@ -91,7 +91,7 @@ class CharDeleteConfirm : public ConfirmDialog int mIndex; }; -class CharacterDisplay : public Container +class CharacterDisplay final : public Container { public: CharacterDisplay(CharSelectDialog *const charSelectDialog); diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h index 398909f8a..a76507f98 100644 --- a/src/gui/charselectdialog.h +++ b/src/gui/charselectdialog.h @@ -55,9 +55,9 @@ namespace Net * * \ingroup Interface */ -class CharSelectDialog : public Window, - public gcn::ActionListener, - public gcn::KeyListener +class CharSelectDialog final : public Window, + public gcn::ActionListener, + public gcn::KeyListener { public: friend class CharDeleteConfirm; diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index fdc6169ed..4897a06bd 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -73,7 +73,7 @@ /** * The chat input hides when it loses focus. It is also invisible by default. */ -class ChatInput : public TextField, public gcn::FocusListener +class ChatInput final : public TextField, public gcn::FocusListener { public: ChatInput(ChatWindow *const window, TabbedArea *const tabs): @@ -131,7 +131,7 @@ const char *COLOR_NAME[14] = }; -class ColorListModel : public gcn::ListModel +class ColorListModel final : public gcn::ListModel { public: virtual ~ColorListModel() diff --git a/src/gui/chatwindow.h b/src/gui/chatwindow.h index 4d4b249e6..db3d496c3 100644 --- a/src/gui/chatwindow.h +++ b/src/gui/chatwindow.h @@ -72,7 +72,7 @@ enum Own }; /** One item in the chat log */ -struct CHATLOG +struct CHATLOG final { std::string nick; std::string text; @@ -84,11 +84,11 @@ struct CHATLOG * * \ingroup Interface */ -class ChatWindow : public Window, - public gcn::ActionListener, - public gcn::KeyListener, - public Listener, - public ConfigListener +class ChatWindow final : public Window, + public gcn::ActionListener, + public gcn::KeyListener, + public Listener, + public ConfigListener { public: /** diff --git a/src/gui/connectiondialog.h b/src/gui/connectiondialog.h index df836feab..56923bb7d 100644 --- a/src/gui/connectiondialog.h +++ b/src/gui/connectiondialog.h @@ -34,7 +34,7 @@ * * \ingroup Interface */ -class ConnectionDialog : public Window, private gcn::ActionListener +class ConnectionDialog final : public Window, private gcn::ActionListener { public: /** diff --git a/src/gui/debugwindow.h b/src/gui/debugwindow.h index 1a35e890b..4eca9ffae 100644 --- a/src/gui/debugwindow.h +++ b/src/gui/debugwindow.h @@ -49,7 +49,7 @@ class DebugTab : public Container private: }; -class MapDebugTab : public DebugTab +class MapDebugTab final : public DebugTab { friend class DebugWindow; @@ -73,7 +73,7 @@ class MapDebugTab : public DebugTab std::string mFPSText; }; -class TargetDebugTab : public DebugTab +class TargetDebugTab final : public DebugTab { friend class DebugWindow; @@ -95,7 +95,7 @@ class TargetDebugTab : public DebugTab Label *mCriticalHitLabel; }; -class NetDebugTab : public DebugTab +class NetDebugTab final : public DebugTab { friend class DebugWindow; @@ -115,7 +115,7 @@ class NetDebugTab : public DebugTab * * \ingroup Interface */ -class DebugWindow : public Window +class DebugWindow final : public Window { public: /** diff --git a/src/gui/didyouknowwindow.h b/src/gui/didyouknowwindow.h index d4452fcd2..737203298 100644 --- a/src/gui/didyouknowwindow.h +++ b/src/gui/didyouknowwindow.h @@ -41,8 +41,9 @@ namespace gcn /** * The help dialog. */ -class DidYouKnowWindow : public Window, public LinkHandler, - public gcn::ActionListener +class DidYouKnowWindow final : public Window, + public LinkHandler, + public gcn::ActionListener { public: /** diff --git a/src/gui/editdialog.h b/src/gui/editdialog.h index 0e7283b3e..94e7aabbf 100644 --- a/src/gui/editdialog.h +++ b/src/gui/editdialog.h @@ -39,7 +39,7 @@ class TextField; * * \ingroup GUI */ -class EditDialog : public Window, public gcn::ActionListener +class EditDialog final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/editserverdialog.h b/src/gui/editserverdialog.h index d66a7b3b7..63631ffef 100644 --- a/src/gui/editserverdialog.h +++ b/src/gui/editserverdialog.h @@ -76,9 +76,9 @@ class TypeListModel : public gcn::ListModel * * \ingroup Interface */ -class EditServerDialog : public Window, - public gcn::ActionListener, - public gcn::KeyListener +class EditServerDialog final : public Window, + public gcn::ActionListener, + public gcn::KeyListener { public: EditServerDialog(ServerDialog *const parent, ServerInfo server, diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h index a2f87ca3c..ba94006c9 100644 --- a/src/gui/equipmentwindow.h +++ b/src/gui/equipmentwindow.h @@ -49,7 +49,7 @@ namespace gcn class Button; } -struct EquipmentBox +struct EquipmentBox final { EquipmentBox(const int x0, const int y0, Image *const img) : x(x0), y(y0), image(img) @@ -65,7 +65,7 @@ struct EquipmentBox * * \ingroup Interface */ -class EquipmentWindow : public Window, public gcn::ActionListener +class EquipmentWindow final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/focushandler.h b/src/gui/focushandler.h index 064f04697..a2c565ff6 100644 --- a/src/gui/focushandler.h +++ b/src/gui/focushandler.h @@ -27,12 +27,14 @@ #include <list> +#include "localconsts.h" + /** * The focus handler. This focus handler does exactly the same as the Guichan * focus handler, but keeps a stack of modal widgets to be able to handle * multiple modal focus requests. */ -class FocusHandler : public gcn::FocusHandler +class FocusHandler final : public gcn::FocusHandler { public: /** diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 237c867bf..c502ce04a 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -55,7 +55,7 @@ SDLInput *guiInput = nullptr; // Bolded font SDLFont *boldFont = nullptr; -class GuiConfigListener : public ConfigListener +class GuiConfigListener final : public ConfigListener { public: GuiConfigListener(Gui *const g): diff --git a/src/gui/gui.h b/src/gui/gui.h index d293e3015..ee1cb9092 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -44,7 +44,7 @@ class SDLInput; * * \ingroup GUI */ -class Gui : public gcn::Gui +class Gui final : public gcn::Gui { public: /** diff --git a/src/gui/helpwindow.h b/src/gui/helpwindow.h index 9d89c03c4..677079964 100644 --- a/src/gui/helpwindow.h +++ b/src/gui/helpwindow.h @@ -46,10 +46,10 @@ typedef HelpNames::const_iterator HelpNamesCIter; typedef std::map<std::string, HelpNames> HelpTagsMap; /** - * The help dialog. + * The help window. */ -class HelpWindow : public Window, public LinkHandler, - public gcn::ActionListener +class HelpWindow final : public Window, public LinkHandler, + public gcn::ActionListener { public: /** diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index e0538224a..6faa4e5d1 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -69,7 +69,7 @@ const char *SORT_NAME[6] = N_("by type") }; -class SortListModel : public gcn::ListModel +class SortListModel final : public gcn::ListModel { public: virtual ~SortListModel() diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 2f8261228..f06ee487e 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -55,12 +55,12 @@ namespace gcn * * \ingroup Interface */ -class InventoryWindow : public Window, - public gcn::ActionListener, - public gcn::KeyListener, - public gcn::SelectionListener, - public InventoryListener, - public Listener +class InventoryWindow final : public Window, + public gcn::ActionListener, + public gcn::KeyListener, + public gcn::SelectionListener, + public InventoryListener, + public Listener { public: /** diff --git a/src/gui/itemamountwindow.cpp b/src/gui/itemamountwindow.cpp index 98fe9582a..02bddbc11 100644 --- a/src/gui/itemamountwindow.cpp +++ b/src/gui/itemamountwindow.cpp @@ -47,7 +47,7 @@ #include "debug.h" -class ItemsModal : public gcn::ListModel +class ItemsModal final : public gcn::ListModel { public: ItemsModal() diff --git a/src/gui/itemamountwindow.h b/src/gui/itemamountwindow.h index c06d9a618..fd3ef3ab0 100644 --- a/src/gui/itemamountwindow.h +++ b/src/gui/itemamountwindow.h @@ -46,9 +46,9 @@ namespace gcn * * \ingroup Interface */ -class ItemAmountWindow : public Window, - public gcn::ActionListener, - public gcn::KeyListener +class ItemAmountWindow final : public Window, + public gcn::ActionListener, + public gcn::KeyListener { public: enum Usage diff --git a/src/gui/itempopup.h b/src/gui/itempopup.h index dd2bae83d..0bdfcfeb5 100644 --- a/src/gui/itempopup.h +++ b/src/gui/itempopup.h @@ -44,7 +44,7 @@ namespace gcn /** * A popup that displays information about an item. */ -class ItemPopup : public Popup +class ItemPopup final : public Popup { public: /** diff --git a/src/gui/killstats.h b/src/gui/killstats.h index 6587ca462..1db3a4943 100644 --- a/src/gui/killstats.h +++ b/src/gui/killstats.h @@ -37,7 +37,9 @@ namespace gcn class Label; } -class KillStats : public Window, private gcn::ActionListener, public Listener +class KillStats final : public Window, + private gcn::ActionListener, + public Listener { public: /** diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index 4f0325a1d..d70e8e4df 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -57,7 +57,7 @@ const char *UPDATE_TYPE_TEXT[3] = N_("Skip"), }; -class UpdateTypeModel : public gcn::ListModel +class UpdateTypeModel final : public gcn::ListModel { public: virtual ~UpdateTypeModel() @@ -77,7 +77,7 @@ public: } }; -class UpdateListModel : public gcn::ListModel +class UpdateListModel final : public gcn::ListModel { public: UpdateListModel(LoginData *const data) : diff --git a/src/gui/logindialog.h b/src/gui/logindialog.h index e2c882ee4..9b6ace887 100644 --- a/src/gui/logindialog.h +++ b/src/gui/logindialog.h @@ -50,8 +50,8 @@ namespace gcn * * \ingroup Interface */ -class LoginDialog : public Window, public gcn::ActionListener, - public gcn::KeyListener +class LoginDialog final : public Window, public gcn::ActionListener, + public gcn::KeyListener { public: /** diff --git a/src/gui/minimap.h b/src/gui/minimap.h index ee5a63f6a..95b29ad89 100644 --- a/src/gui/minimap.h +++ b/src/gui/minimap.h @@ -38,7 +38,7 @@ class TextPopup; * * \ingroup Interface */ -class Minimap : public Window +class Minimap final : public Window { public: Minimap(); diff --git a/src/gui/ministatuswindow.h b/src/gui/ministatuswindow.h index cba3c3c4c..bfb14c2b8 100644 --- a/src/gui/ministatuswindow.h +++ b/src/gui/ministatuswindow.h @@ -41,9 +41,9 @@ class TextPopup; * * \ingroup Interface */ -class MiniStatusWindow : public Popup, - public InventoryListener, - public Listener +class MiniStatusWindow final : public Popup, + public InventoryListener, + public Listener { public: MiniStatusWindow(); diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h index 02479c4b1..6437311b4 100644 --- a/src/gui/npcdialog.h +++ b/src/gui/npcdialog.h @@ -55,8 +55,8 @@ namespace gcn * * \ingroup Interface */ -class NpcDialog : public Window, public gcn::ActionListener, - public ExtendedListModel, public ConfigListener +class NpcDialog final : public Window, public gcn::ActionListener, + public ExtendedListModel, public ConfigListener { public: /** diff --git a/src/gui/npcpostdialog.h b/src/gui/npcpostdialog.h index af5e735a2..96b51fb47 100644 --- a/src/gui/npcpostdialog.h +++ b/src/gui/npcpostdialog.h @@ -30,7 +30,7 @@ class TextBox; class TextField; -class NpcPostDialog : public Window, public gcn::ActionListener +class NpcPostDialog final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/okdialog.h b/src/gui/okdialog.h index 676fe4a80..2d2fefee4 100644 --- a/src/gui/okdialog.h +++ b/src/gui/okdialog.h @@ -43,7 +43,7 @@ enum * * \ingroup GUI */ -class OkDialog : public Window, public gcn::ActionListener +class OkDialog final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/outfitwindow.h b/src/gui/outfitwindow.h index 7ab15c7c1..a72bf332a 100644 --- a/src/gui/outfitwindow.h +++ b/src/gui/outfitwindow.h @@ -42,7 +42,7 @@ class CheckBox; class Item; class Label; -class OutfitWindow : public Window, private gcn::ActionListener +class OutfitWindow final : public Window, private gcn::ActionListener { public: /** diff --git a/src/gui/popupmenu.h b/src/gui/popupmenu.h index 550fa28b0..3ce363a34 100644 --- a/src/gui/popupmenu.h +++ b/src/gui/popupmenu.h @@ -45,7 +45,7 @@ class TextDialog; class ProgressBar; class Window; -class RenameListener : public gcn::ActionListener +class RenameListener final : public gcn::ActionListener { public: RenameListener(); @@ -88,7 +88,7 @@ class PlayerListener : public gcn::ActionListener /** * Window showing popup menu. */ -class PopupMenu : public Popup, public LinkHandler +class PopupMenu final : public Popup, public LinkHandler { public: /** diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp index 092fdc6c3..66a7d50cf 100644 --- a/src/gui/questswindow.cpp +++ b/src/gui/questswindow.cpp @@ -45,7 +45,7 @@ #include "debug.h" -struct QuestItemText +struct QuestItemText final { QuestItemText(std::string text0, const int type0) : text(text0), type(type0) @@ -56,7 +56,7 @@ struct QuestItemText int type; }; -struct QuestItem +struct QuestItem final { QuestItem() : var(0), completeFlag(-1) @@ -72,7 +72,7 @@ struct QuestItem int completeFlag; }; -class QuestsModel : public ExtendedNamesModel +class QuestsModel final : public ExtendedNamesModel { public: QuestsModel() : diff --git a/src/gui/questswindow.h b/src/gui/questswindow.h index 30815d751..017dd43c3 100644 --- a/src/gui/questswindow.h +++ b/src/gui/questswindow.h @@ -41,7 +41,7 @@ class QuestsModel; struct QuestItem; -class QuestsWindow : public Window, public gcn::ActionListener +class QuestsWindow final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/quitdialog.h b/src/gui/quitdialog.h index 5a4134d3a..4c26ee90e 100644 --- a/src/gui/quitdialog.h +++ b/src/gui/quitdialog.h @@ -41,8 +41,8 @@ namespace gcn * * \ingroup Interface */ -class QuitDialog : public Window, public gcn::ActionListener, - public gcn::KeyListener +class QuitDialog final : public Window, public gcn::ActionListener, + public gcn::KeyListener { public: /** diff --git a/src/gui/registerdialog.h b/src/gui/registerdialog.h index 138695177..6117da102 100644 --- a/src/gui/registerdialog.h +++ b/src/gui/registerdialog.h @@ -45,7 +45,7 @@ namespace gcn * to the field which contained wrong data when the Ok button was pressed on * the error notice. */ -class WrongDataNoticeListener : public gcn::ActionListener +class WrongDataNoticeListener final : public gcn::ActionListener { public: WrongDataNoticeListener(); @@ -60,8 +60,8 @@ class WrongDataNoticeListener : public gcn::ActionListener * * \ingroup Interface */ -class RegisterDialog : public Window, public gcn::ActionListener, - public gcn::KeyListener +class RegisterDialog final : public Window, public gcn::ActionListener, + public gcn::KeyListener { public: /** diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index 5422a4c67..33581767d 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -45,7 +45,7 @@ const unsigned int CLEAN_TIME = 5; char *strBuf; -class SDLTextChunk +class SDLTextChunk final { public: SDLTextChunk(const std::string &text0, const gcn::Color &color0) : diff --git a/src/gui/sdlfont.h b/src/gui/sdlfont.h index a736c70e0..5d94d5f82 100644 --- a/src/gui/sdlfont.h +++ b/src/gui/sdlfont.h @@ -35,6 +35,8 @@ #include <list> #include <string> +#include "localconsts.h" + const unsigned int CACHES_NUMBER = 256; class SDLTextChunk; @@ -44,7 +46,7 @@ class SDLTextChunk; * * <b>NOTE:</b> This class initializes SDL_ttf as necessary. */ -class SDLFont : public gcn::Font +class SDLFont final : public gcn::Font { public: /** diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h index 534f0573e..2bedad3e0 100644 --- a/src/gui/sdlinput.h +++ b/src/gui/sdlinput.h @@ -127,7 +127,7 @@ namespace Key /** * SDL implementation of Input. */ -class SDLInput : public gcn::Input +class SDLInput final : public gcn::Input { public: diff --git a/src/gui/selldialog.h b/src/gui/selldialog.h index 5c1e7300d..1fe5e234f 100644 --- a/src/gui/selldialog.h +++ b/src/gui/selldialog.h @@ -47,9 +47,9 @@ namespace gcn * * \ingroup Interface */ -class SellDialog : public Window, - private gcn::ActionListener, - private gcn::SelectionListener +class SellDialog final : public Window, + private gcn::ActionListener, + private gcn::SelectionListener { public: /** diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 472d01223..408c1c3e2 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -154,7 +154,7 @@ void ServersListModel::setVersionString(const int index, } } -class ServersListBox : public ListBox +class ServersListBox final : public ListBox { public: ServersListBox(ServersListModel *const model) : diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h index 741005a07..1c6e850cb 100644 --- a/src/gui/serverdialog.h +++ b/src/gui/serverdialog.h @@ -50,7 +50,7 @@ class DropDown; /** * Server and Port List Model */ -class ServersListModel : public gcn::ListModel +class ServersListModel final : public gcn::ListModel { public: typedef std::pair<int, std::string> VersionString; diff --git a/src/gui/setup.h b/src/gui/setup.h index 71b9594b6..5687e8c7e 100644 --- a/src/gui/setup.h +++ b/src/gui/setup.h @@ -46,7 +46,7 @@ class SetupTab; * * \ingroup GUI */ -class Setup : public Window, public gcn::ActionListener +class Setup final : public Window, public gcn::ActionListener { public: Setup(); diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp index 27fceee92..1faeca28a 100644 --- a/src/gui/setup_audio.cpp +++ b/src/gui/setup_audio.cpp @@ -36,7 +36,7 @@ #include "debug.h" -class SoundsModel : public NamesModel +class SoundsModel final : public NamesModel { public: SoundsModel() : diff --git a/src/gui/setup_audio.h b/src/gui/setup_audio.h index 65bce0c14..8019f2ea2 100644 --- a/src/gui/setup_audio.h +++ b/src/gui/setup_audio.h @@ -29,7 +29,7 @@ #include <guichan/actionlistener.hpp> -class Setup_Audio : public SetupTabScroll +class Setup_Audio final : public SetupTabScroll { public: Setup_Audio(); diff --git a/src/gui/setup_chat.h b/src/gui/setup_chat.h index ad3783fa1..a14b05cd4 100644 --- a/src/gui/setup_chat.h +++ b/src/gui/setup_chat.h @@ -30,7 +30,7 @@ class IntTextField; class EditDialog; -class Setup_Chat : public SetupTabScroll +class Setup_Chat final : public SetupTabScroll { public: Setup_Chat(); diff --git a/src/gui/setup_colors.h b/src/gui/setup_colors.h index 534ba5e86..3f30d8d4c 100644 --- a/src/gui/setup_colors.h +++ b/src/gui/setup_colors.h @@ -41,8 +41,8 @@ namespace gcn class Slider; } -class Setup_Colors : public SetupTab, - public gcn::SelectionListener +class Setup_Colors final : public SetupTab, + public gcn::SelectionListener { public: Setup_Colors(); diff --git a/src/gui/setup_input.cpp b/src/gui/setup_input.cpp index 82480e0e0..68a14f557 100644 --- a/src/gui/setup_input.cpp +++ b/src/gui/setup_input.cpp @@ -50,7 +50,7 @@ const int setupGroups = 9; * * \ingroup Interface */ -class KeyListModel : public gcn::ListModel +class KeyListModel final : public gcn::ListModel { public: KeyListModel() : diff --git a/src/gui/setup_input.h b/src/gui/setup_input.h index f3e2f7113..2346cc67d 100644 --- a/src/gui/setup_input.h +++ b/src/gui/setup_input.h @@ -36,7 +36,7 @@ class TabStrip; struct SetupActionData; -class Setup_Input : public SetupTab +class Setup_Input final : public SetupTab { public: /** diff --git a/src/gui/setup_joystick.h b/src/gui/setup_joystick.h index 35a21080a..63d9e7880 100644 --- a/src/gui/setup_joystick.h +++ b/src/gui/setup_joystick.h @@ -37,7 +37,7 @@ namespace gcn class Label; } -class Setup_Joystick : public SetupTab +class Setup_Joystick final : public SetupTab { public: Setup_Joystick(); diff --git a/src/gui/setup_other.h b/src/gui/setup_other.h index 3b424479b..22281022a 100644 --- a/src/gui/setup_other.h +++ b/src/gui/setup_other.h @@ -30,7 +30,7 @@ class EditDialog; class TextField; -class Setup_Other : public SetupTabScroll +class Setup_Other final : public SetupTabScroll { public: Setup_Other(); diff --git a/src/gui/setup_perfomance.h b/src/gui/setup_perfomance.h index b8e625a1a..0e03a145e 100644 --- a/src/gui/setup_perfomance.h +++ b/src/gui/setup_perfomance.h @@ -30,7 +30,7 @@ class IntTextField; class EditDialog; -class Setup_Perfomance : public SetupTabScroll +class Setup_Perfomance final : public SetupTabScroll { public: Setup_Perfomance(); diff --git a/src/gui/setup_players.h b/src/gui/setup_players.h index c66c0049e..c9779786f 100644 --- a/src/gui/setup_players.h +++ b/src/gui/setup_players.h @@ -30,7 +30,7 @@ class IntTextField; class EditDialog; -class Setup_Players : public SetupTabScroll +class Setup_Players final : public SetupTabScroll { public: Setup_Players(); diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp index 50a41e3e6..48271f6b7 100644 --- a/src/gui/setup_relations.cpp +++ b/src/gui/setup_relations.cpp @@ -72,7 +72,7 @@ static const char *RELATION_NAMES[PlayerRelation::RELATIONS_NR] = N_("Enemy") }; -class PlayerRelationListModel : public gcn::ListModel +class PlayerRelationListModel final : public gcn::ListModel { public: virtual ~PlayerRelationListModel() @@ -91,7 +91,7 @@ public: } }; -class PlayerTableModel : public TableModel +class PlayerTableModel final : public TableModel { public: PlayerTableModel() : @@ -206,7 +206,7 @@ protected: /** * Class for choosing one of the various `what to do when ignoring a player' options */ -class IgnoreChoicesListModel : public gcn::ListModel +class IgnoreChoicesListModel final : public gcn::ListModel { public: virtual ~IgnoreChoicesListModel() diff --git a/src/gui/setup_relations.h b/src/gui/setup_relations.h index 0980371b9..d81a80a60 100644 --- a/src/gui/setup_relations.h +++ b/src/gui/setup_relations.h @@ -43,8 +43,8 @@ namespace gcn class ScrollArea; } -class Setup_Relations : public SetupTab, - public PlayerRelationsListener +class Setup_Relations final : public SetupTab, + public PlayerRelationsListener { public: Setup_Relations(); diff --git a/src/gui/setup_theme.cpp b/src/gui/setup_theme.cpp index ddfd52291..4a8a1f296 100644 --- a/src/gui/setup_theme.cpp +++ b/src/gui/setup_theme.cpp @@ -52,7 +52,7 @@ const char* ACTION_HELP_FONT = "help font"; const char* ACTION_SECURE_FONT = "secure font"; const char* ACTION_JAPAN_FONT = "japan font"; -class ThemesModel : public NamesModel +class ThemesModel final : public NamesModel { public: ThemesModel() : @@ -66,7 +66,7 @@ public: { } }; -class FontsModel : public NamesModel +class FontsModel final : public NamesModel { public: FontsModel() : @@ -94,7 +94,7 @@ const char *SIZE_NAME[maxFontSizes] = N_("Very huge (19)"), }; -class FontSizeChoiceListModel : public gcn::ListModel +class FontSizeChoiceListModel final : public gcn::ListModel { public: virtual ~FontSizeChoiceListModel() @@ -112,10 +112,9 @@ public: } }; -struct Language +struct Language final { std::string name; - std::string value; }; @@ -141,7 +140,7 @@ const Language LANG_NAME[langs_count] = {N_("Spanish (Castilian)"), "es_ES"} }; -class LangListModel : public gcn::ListModel +class LangListModel final : public gcn::ListModel { public: virtual ~LangListModel() diff --git a/src/gui/setup_theme.h b/src/gui/setup_theme.h index cc8b01fbe..53f23d267 100644 --- a/src/gui/setup_theme.h +++ b/src/gui/setup_theme.h @@ -40,7 +40,7 @@ namespace gcn class Label; } -class Setup_Theme : public SetupTab +class Setup_Theme final : public SetupTab { public: Setup_Theme(); diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 3bd6ab139..5157f8e9f 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -68,7 +68,7 @@ extern Graphics *mainGraphics; * * \ingroup Interface */ -class ModeListModel : public gcn::ListModel +class ModeListModel final : public gcn::ListModel { public: /** @@ -199,7 +199,7 @@ const char *OPENGL_NAME[3] = N_("Safe OpenGL"), }; -class OpenGLListModel : public gcn::ListModel +class OpenGLListModel final : public gcn::ListModel { public: virtual ~OpenGLListModel() diff --git a/src/gui/setup_video.h b/src/gui/setup_video.h index 84b1084c7..fc3f61439 100644 --- a/src/gui/setup_video.h +++ b/src/gui/setup_video.h @@ -44,7 +44,7 @@ namespace gcn class Slider; } -class Setup_Video : public SetupTab, public gcn::KeyListener +class Setup_Video final : public SetupTab, public gcn::KeyListener { public: Setup_Video(); diff --git a/src/gui/setup_visual.h b/src/gui/setup_visual.h index 14c11f3b2..1daab2462 100644 --- a/src/gui/setup_visual.h +++ b/src/gui/setup_visual.h @@ -24,7 +24,7 @@ #include "gui/widgets/setupitem.h" -class Setup_Visual : public SetupTabScroll +class Setup_Visual final : public SetupTabScroll { public: Setup_Visual(); diff --git a/src/gui/setupactiondata.h b/src/gui/setupactiondata.h index 1cf6dfeed..3fab79b61 100644 --- a/src/gui/setupactiondata.h +++ b/src/gui/setupactiondata.h @@ -35,7 +35,7 @@ int selectedData = 0; -struct SetupActionData +struct SetupActionData final { std::string name; const int actionId; diff --git a/src/gui/shopwindow.h b/src/gui/shopwindow.h index fe830c52d..5faaeb8ab 100644 --- a/src/gui/shopwindow.h +++ b/src/gui/shopwindow.h @@ -48,11 +48,10 @@ namespace gcn * * \ingroup Interface */ -class ShopWindow : public Window, public gcn::ActionListener, - public gcn::SelectionListener +class ShopWindow final : public Window, public gcn::ActionListener, + public gcn::SelectionListener { public: - enum ShopMode { BUY = 0, diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index 52ac58757..846bbb497 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -38,7 +38,7 @@ static const int SCROLL_PADDING = 0; int ShortcutWindow::mBoxesWidth = 0; -class ShortcutTab : public Tab +class ShortcutTab final : public Tab { public: ShortcutTab(std::string name, ShortcutContainer *const content) : diff --git a/src/gui/shortcutwindow.h b/src/gui/shortcutwindow.h index 9d50665b4..531df51ce 100644 --- a/src/gui/shortcutwindow.h +++ b/src/gui/shortcutwindow.h @@ -34,7 +34,7 @@ class TabbedArea; * * \ingroup Interface */ -class ShortcutWindow : public Window +class ShortcutWindow final : public Window { public: /** diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index d25b44941..0c79d0bd6 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -60,7 +60,7 @@ class SkillModel; class SkillEntry; -class SkillModel : public gcn::ListModel +class SkillModel final : public gcn::ListModel { public: int getNumberOfElements() @@ -87,7 +87,7 @@ class SkillModel : public gcn::ListModel SkillList mVisibleSkills; }; -class SkillListBox : public ListBox +class SkillListBox final : public ListBox { public: SkillListBox(SkillModel *const model): @@ -184,7 +184,7 @@ class SkillListBox : public ListBox gcn::Color mTextColor; }; -class SkillTab : public Tab +class SkillTab final : public Tab { public: SkillTab(const std::string &name, SkillListBox *const listBox) : diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h index 09781d4ac..0fd961e1c 100644 --- a/src/gui/skilldialog.h +++ b/src/gui/skilldialog.h @@ -40,7 +40,7 @@ class SkillModel; class Tab; class TabbedArea; -struct SkillInfo +struct SkillInfo final { unsigned short id; std::string name; @@ -81,7 +81,7 @@ typedef std::vector<SkillInfo*> SkillList; * * \ingroup Interface */ -class SkillDialog : public Window, public gcn::ActionListener +class SkillDialog final : public Window, public gcn::ActionListener { public: SkillDialog(); diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index c8f20edd2..549b2bcc4 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -55,7 +55,7 @@ #include "debug.h" -class SortFriendsFunctor +class SortFriendsFunctor final { public: bool operator() (const Avatar *const m1, const Avatar *const m2) const @@ -129,7 +129,7 @@ protected: AvatarListBox *mList; }; -class SocialGuildTab : public SocialTab, public gcn::ActionListener +class SocialGuildTab final : public SocialTab, public gcn::ActionListener { public: SocialGuildTab(Guild *const guild, const bool showBackground) : @@ -233,7 +233,7 @@ private: Guild *mGuild; }; -class SocialGuildTab2 : public SocialTab, public gcn::ActionListener +class SocialGuildTab2 final : public SocialTab, public gcn::ActionListener { public: SocialGuildTab2(Guild *const guild, const bool showBackground) : @@ -293,7 +293,7 @@ private: Guild *mGuild; }; -class SocialPartyTab : public SocialTab, public gcn::ActionListener +class SocialPartyTab final : public SocialTab, public gcn::ActionListener { public: SocialPartyTab(Party *const party, const bool showBackground) : @@ -396,7 +396,7 @@ private: Party *mParty; }; -class BeingsListModal : public AvatarListModel +class BeingsListModal final : public AvatarListModel { public: BeingsListModal() : @@ -428,7 +428,7 @@ public: std::vector<Avatar*> mMembers; }; -class SocialPlayersTab : public SocialTab +class SocialPlayersTab final : public SocialTab { public: SocialPlayersTab(std::string name, const bool showBackground) : @@ -594,7 +594,7 @@ private: }; -class SocialNavigationTab : public SocialTab +class SocialNavigationTab final : public SocialTab { public: SocialNavigationTab(const bool showBackground) : @@ -930,7 +930,7 @@ protected: std::list<std::string>::const_iterator i;\ std::list<std::string>::const_iterator i_end; -class SocialAttackTab : public SocialTab +class SocialAttackTab final : public SocialTab { public: SocialAttackTab(const bool showBackground) : @@ -986,7 +986,7 @@ private: BeingsListModal *mBeings; }; -class SocialPickupTab : public SocialTab +class SocialPickupTab final : public SocialTab { public: SocialPickupTab(const bool showBackground) : @@ -1042,7 +1042,7 @@ private: }; -class SocialFriendsTab : public SocialTab +class SocialFriendsTab final : public SocialTab { public: SocialFriendsTab(std::string name, const bool showBackground) : @@ -1136,7 +1136,7 @@ private: }; -class CreatePopup : public Popup, public LinkHandler +class CreatePopup final : public Popup, public LinkHandler { public: CreatePopup() : diff --git a/src/gui/socialwindow.h b/src/gui/socialwindow.h index 0806c8d10..0287e9100 100644 --- a/src/gui/socialwindow.h +++ b/src/gui/socialwindow.h @@ -49,7 +49,7 @@ class PlayersTab; * * \ingroup Interface */ -class SocialWindow : public Window, private gcn::ActionListener +class SocialWindow final : public Window, private gcn::ActionListener { public: SocialWindow(); diff --git a/src/gui/specialswindow.cpp b/src/gui/specialswindow.cpp index d96ef7c85..eaeefcf78 100644 --- a/src/gui/specialswindow.cpp +++ b/src/gui/specialswindow.cpp @@ -53,7 +53,7 @@ static const unsigned int SPECIALS_WIDTH = 200; static const unsigned int SPECIALS_HEIGHT = 32; -class SpecialEntry : public Container +class SpecialEntry final : public Container { public: SpecialEntry(SpecialInfo *info); diff --git a/src/gui/specialswindow.h b/src/gui/specialswindow.h index e2841d179..a824c4296 100644 --- a/src/gui/specialswindow.h +++ b/src/gui/specialswindow.h @@ -39,7 +39,7 @@ class TabbedArea; class SpecialEntry; -class SpecialsWindow : public Window, public gcn::ActionListener +class SpecialsWindow final : public Window, public gcn::ActionListener { public: SpecialsWindow(); diff --git a/src/gui/speechbubble.h b/src/gui/speechbubble.h index c6b512c83..2a36eaa59 100644 --- a/src/gui/speechbubble.h +++ b/src/gui/speechbubble.h @@ -35,7 +35,7 @@ namespace gcn class Label; } -class SpeechBubble : public Popup +class SpeechBubble final : public Popup { public: /** diff --git a/src/gui/spellpopup.h b/src/gui/spellpopup.h index 403112e85..97266ca9e 100644 --- a/src/gui/spellpopup.h +++ b/src/gui/spellpopup.h @@ -40,7 +40,7 @@ namespace gcn /** * A popup that displays information about an item. */ -class SpellPopup : public Popup +class SpellPopup final : public Popup { public: /** diff --git a/src/gui/statuspopup.h b/src/gui/statuspopup.h index 181bc9401..99ba46792 100644 --- a/src/gui/statuspopup.h +++ b/src/gui/statuspopup.h @@ -42,7 +42,7 @@ namespace gcn /** * A popup that displays information about an item. */ -class StatusPopup : public Popup +class StatusPopup final : public Popup { public: /** diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp index 295adcd6e..10a30f1b9 100644 --- a/src/gui/statuswindow.cpp +++ b/src/gui/statuswindow.cpp @@ -87,7 +87,7 @@ class AttrDisplay : public Container Label *mValue; }; -class DerDisplay : public AttrDisplay +class DerDisplay final : public AttrDisplay { public: DerDisplay(const int id, const std::string &name); @@ -96,7 +96,7 @@ class DerDisplay : public AttrDisplay { return DERIVED; } }; -class ChangeDisplay : public AttrDisplay, gcn::ActionListener +class ChangeDisplay final : public AttrDisplay, gcn::ActionListener { public: ChangeDisplay(const int id, const std::string &name); diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h index 94ce9b42c..0d3fefb4b 100644 --- a/src/gui/statuswindow.h +++ b/src/gui/statuswindow.h @@ -47,9 +47,9 @@ namespace gcn * * \ingroup Interface */ -class StatusWindow : public Window, - public gcn::ActionListener, - public Listener +class StatusWindow final : public Window, + public gcn::ActionListener, + public Listener { public: /** diff --git a/src/gui/textcommandeditor.cpp b/src/gui/textcommandeditor.cpp index d58a5094e..79fcd17b4 100644 --- a/src/gui/textcommandeditor.cpp +++ b/src/gui/textcommandeditor.cpp @@ -51,7 +51,7 @@ #include "debug.h" -class IconsModal : public gcn::ListModel +class IconsModal final : public gcn::ListModel { public: IconsModal() @@ -120,7 +120,7 @@ const char *MAGIC_SCHOOL_TEXT[6] = N_("Astral Magic") }; -class TargetTypeModel : public gcn::ListModel +class TargetTypeModel final : public gcn::ListModel { public: virtual ~TargetTypeModel() @@ -140,7 +140,7 @@ public: } }; -class MagicSchoolModel : public gcn::ListModel +class MagicSchoolModel final : public gcn::ListModel { public: virtual ~MagicSchoolModel() diff --git a/src/gui/textcommandeditor.h b/src/gui/textcommandeditor.h index 65274098d..616c6d627 100644 --- a/src/gui/textcommandeditor.h +++ b/src/gui/textcommandeditor.h @@ -42,7 +42,7 @@ class TextBox; class TextCommand; class TextField; -class TextCommandEditor : public Window, public gcn::ActionListener +class TextCommandEditor final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/textdialog.h b/src/gui/textdialog.h index a05dc3107..71cc88bcd 100644 --- a/src/gui/textdialog.h +++ b/src/gui/textdialog.h @@ -40,7 +40,7 @@ namespace gcn * * \ingroup GUI */ -class TextDialog : public Window, public gcn::ActionListener +class TextDialog final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/textpopup.h b/src/gui/textpopup.h index 5e425abca..faf61e311 100644 --- a/src/gui/textpopup.h +++ b/src/gui/textpopup.h @@ -38,7 +38,7 @@ namespace gcn /** * A popup that displays information about an item. */ -class TextPopup : public Popup +class TextPopup final : public Popup { public: /** diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index b6509348f..7b85c8764 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -337,7 +337,7 @@ void Theme::optionChanged(const std::string &) updateAlpha(); } -struct SkinParameter +struct SkinParameter final { int index; std::string name; @@ -390,7 +390,7 @@ static const SkinParameter imageParam[] = {3, "stickyImageDown"}, }; -struct SkinHelper +struct SkinHelper final { std::string partType; int xPos; diff --git a/src/gui/theme.h b/src/gui/theme.h index aeed253ed..86be2e743 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -39,7 +39,7 @@ class Image; class ImageSet; class ProgressBar; -class Skin +class Skin final { public: Skin(const ImageRect &skin, const ImageRect &images, @@ -125,7 +125,7 @@ class Skin std::map<std::string, int> *mOptions; }; -class Theme : public Palette, public ConfigListener +class Theme final : public Palette, public ConfigListener { public: static Theme *instance(); diff --git a/src/gui/tradewindow.h b/src/gui/tradewindow.h index 3b840f045..0ba3b9043 100644 --- a/src/gui/tradewindow.h +++ b/src/gui/tradewindow.h @@ -47,9 +47,9 @@ namespace gcn * * \ingroup Interface */ -class TradeWindow : public Window, - private gcn::ActionListener, - private gcn::SelectionListener +class TradeWindow final : public Window, + private gcn::ActionListener, + private gcn::SelectionListener { public: /** diff --git a/src/gui/unregisterdialog.h b/src/gui/unregisterdialog.h index de783a410..e647b2bb9 100644 --- a/src/gui/unregisterdialog.h +++ b/src/gui/unregisterdialog.h @@ -42,7 +42,7 @@ namespace gcn * * \ingroup Interface */ -class UnRegisterDialog : public Window, public gcn::ActionListener +class UnRegisterDialog final : public Window, public gcn::ActionListener { public: /** diff --git a/src/gui/updaterwindow.h b/src/gui/updaterwindow.h index c7534dece..0adadb9ec 100644 --- a/src/gui/updaterwindow.h +++ b/src/gui/updaterwindow.h @@ -47,7 +47,7 @@ namespace gcn class Label; } -struct updateFile +struct updateFile final { public: std::string name; @@ -62,10 +62,10 @@ struct updateFile * * \ingroup GUI */ -class UpdaterWindow : public Window, - public gcn::ActionListener, - public LinkHandler, - public gcn::KeyListener +class UpdaterWindow final : public Window, + public gcn::ActionListener, + public LinkHandler, + public gcn::KeyListener { public: /** diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h index 0ce3a6b85..f14c2c10c 100644 --- a/src/gui/userpalette.h +++ b/src/gui/userpalette.h @@ -31,7 +31,7 @@ /** * Class controlling the game's color palette. */ -class UserPalette : public Palette, public gcn::ListModel +class UserPalette final : public Palette, public gcn::ListModel { public: /** List of all colors that are configurable. */ diff --git a/src/gui/viewport.h b/src/gui/viewport.h index 3f80cea1c..4d4c61896 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -60,9 +60,9 @@ const int walkingMouseDelay = 500; * of it such as NPC messages, which are positioned using map pixel * coordinates. */ -class Viewport : public WindowContainer, - public gcn::MouseListener, - public ConfigListener +class Viewport final : public WindowContainer, + public gcn::MouseListener, + public ConfigListener { public: /** diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 747691ad3..d3fcfa451 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -63,7 +63,7 @@ #endif -class NameFunctuator +class NameFunctuator final { public: bool operator()(const OnlinePlayer *left, diff --git a/src/gui/whoisonline.h b/src/gui/whoisonline.h index 57778e2d4..35565930e 100644 --- a/src/gui/whoisonline.h +++ b/src/gui/whoisonline.h @@ -46,7 +46,7 @@ namespace gcn class Button; } -class OnlinePlayer +class OnlinePlayer final { public: OnlinePlayer(const std::string &nick, const unsigned char status, @@ -106,10 +106,10 @@ class OnlinePlayer * * \ingroup GUI */ -class WhoIsOnline : public Window, - public LinkHandler, - public gcn::ActionListener, - public ConfigListener +class WhoIsOnline final : public Window, + public LinkHandler, + public gcn::ActionListener, + public ConfigListener { public: /** diff --git a/src/gui/widgets/avatarlistbox.h b/src/gui/widgets/avatarlistbox.h index 995ffebe6..9ab56e9b0 100644 --- a/src/gui/widgets/avatarlistbox.h +++ b/src/gui/widgets/avatarlistbox.h @@ -43,7 +43,7 @@ public: { return getAvatarAt(i)->getName(); } }; -class AvatarListBox : public ListBox, public ConfigListener +class AvatarListBox final : public ListBox, public ConfigListener { public: AvatarListBox(AvatarListModel *const model); diff --git a/src/gui/widgets/battletab.h b/src/gui/widgets/battletab.h index 2a034a166..12ba23ebf 100644 --- a/src/gui/widgets/battletab.h +++ b/src/gui/widgets/battletab.h @@ -28,7 +28,7 @@ /** * A tab for a party chat channel. */ -class BattleTab : public ChatTab +class BattleTab final : public ChatTab { public: BattleTab(); diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index ed7208031..e95507c8c 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -36,14 +36,14 @@ class Image; class Resource; class LinkHandler; -struct BROWSER_LINK +struct BROWSER_LINK final { int x1, x2, y1, y2; /**< Where link is placed */ std::string link; std::string caption; }; -class LinePart +class LinePart final { public: LinePart(const int x, const int y, const gcn::Color color, @@ -74,8 +74,8 @@ class LinePart * A simple browser box able to handle links and forward events to the * parent conteiner. */ -class BrowserBox : public gcn::Widget, - public gcn::MouseListener +class BrowserBox final : public gcn::Widget, + public gcn::MouseListener { public: /** diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index f57e9a7cd..fbc040171 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -39,7 +39,7 @@ const std::string BUTTON_PLAY = "buttonplay.png"; * * \ingroup GUI */ -class Button : public gcn::Button, public gcn::WidgetListener +class Button final : public gcn::Button, public gcn::WidgetListener { public: /** diff --git a/src/gui/widgets/channeltab.h b/src/gui/widgets/channeltab.h index d78027b67..92126e929 100644 --- a/src/gui/widgets/channeltab.h +++ b/src/gui/widgets/channeltab.h @@ -30,7 +30,7 @@ class Channel; /** * A tab for a chat channel. */ -class ChannelTab : public ChatTab +class ChannelTab final : public ChatTab { public: diff --git a/src/gui/widgets/checkbox.h b/src/gui/widgets/checkbox.h index ff1c2d56c..bb3cf751a 100644 --- a/src/gui/widgets/checkbox.h +++ b/src/gui/widgets/checkbox.h @@ -34,7 +34,7 @@ class Image; * * \ingroup GUI */ -class CheckBox : public gcn::CheckBox +class CheckBox final : public gcn::CheckBox { public: /** diff --git a/src/gui/widgets/desktop.h b/src/gui/widgets/desktop.h index 1ca411732..3cff9a75a 100644 --- a/src/gui/widgets/desktop.h +++ b/src/gui/widgets/desktop.h @@ -46,7 +46,7 @@ namespace gcn * * \ingroup GUI */ -class Desktop : public Container, private gcn::WidgetListener +class Desktop final : public Container, private gcn::WidgetListener { public: Desktop(); diff --git a/src/gui/widgets/dropdown.h b/src/gui/widgets/dropdown.h index c01466c03..813a19e5f 100644 --- a/src/gui/widgets/dropdown.h +++ b/src/gui/widgets/dropdown.h @@ -37,7 +37,7 @@ class ImageRect; * DropDown you must give DropDown an implemented ListModel which represents * your list. */ -class DropDown : public gcn::DropDown +class DropDown final : public gcn::DropDown { public: /** diff --git a/src/gui/widgets/dropshortcutcontainer.h b/src/gui/widgets/dropshortcutcontainer.h index 99ff8bd2e..0544bf07c 100644 --- a/src/gui/widgets/dropshortcutcontainer.h +++ b/src/gui/widgets/dropshortcutcontainer.h @@ -36,7 +36,7 @@ class ItemPopup; * * \ingroup GUI */ -class DropShortcutContainer : public ShortcutContainer +class DropShortcutContainer final : public ShortcutContainer { public: /** diff --git a/src/gui/widgets/emoteshortcutcontainer.h b/src/gui/widgets/emoteshortcutcontainer.h index 14f41bdd3..56a1629d7 100644 --- a/src/gui/widgets/emoteshortcutcontainer.h +++ b/src/gui/widgets/emoteshortcutcontainer.h @@ -37,7 +37,7 @@ class TextPopup; * * \ingroup GUI */ -class EmoteShortcutContainer : public ShortcutContainer +class EmoteShortcutContainer final : public ShortcutContainer { public: /** diff --git a/src/gui/widgets/extendedlistbox.h b/src/gui/widgets/extendedlistbox.h index 8d323ae68..196189674 100644 --- a/src/gui/widgets/extendedlistbox.h +++ b/src/gui/widgets/extendedlistbox.h @@ -23,7 +23,7 @@ #include "gui/widgets/listbox.h" -class ExtendedListBox : public ListBox +class ExtendedListBox final : public ListBox { public: /** diff --git a/src/gui/widgets/flowcontainer.h b/src/gui/widgets/flowcontainer.h index c58a8f121..f0d1d9638 100644 --- a/src/gui/widgets/flowcontainer.h +++ b/src/gui/widgets/flowcontainer.h @@ -31,8 +31,8 @@ * * \ingroup GUI */ -class FlowContainer : public Container, - public gcn::WidgetListener +class FlowContainer final : public Container, + public gcn::WidgetListener { public: /** diff --git a/src/gui/widgets/guildchattab.h b/src/gui/widgets/guildchattab.h index 358c1f1d4..a8f47db25 100644 --- a/src/gui/widgets/guildchattab.h +++ b/src/gui/widgets/guildchattab.h @@ -28,7 +28,7 @@ /** * A tab for a guild chat channel. */ -class GuildChatTab : public ChatTab +class GuildChatTab final : public ChatTab { public: GuildChatTab(); diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp index 4cd6d03cf..7005386b6 100644 --- a/src/gui/widgets/guitable.cpp +++ b/src/gui/widgets/guitable.cpp @@ -39,7 +39,7 @@ float GuiTable::mAlpha = 1.0; -class GuiTableActionListener : public gcn::ActionListener +class GuiTableActionListener final : public gcn::ActionListener { public: GuiTableActionListener(GuiTable *_table, gcn::Widget *_widget, diff --git a/src/gui/widgets/guitable.h b/src/gui/widgets/guitable.h index 77abfdd4b..af6bedb62 100644 --- a/src/gui/widgets/guitable.h +++ b/src/gui/widgets/guitable.h @@ -44,10 +44,10 @@ class GuiTableActionListener; * * \ingroup GUI */ -class GuiTable : public gcn::Widget, - public gcn::MouseListener, - public gcn::KeyListener, - public TableModelListener +class GuiTable final : public gcn::Widget, + public gcn::MouseListener, + public gcn::KeyListener, + public TableModelListener { // so that the action listener can call distributeActionEvent friend class GuiTableActionListener; diff --git a/src/gui/widgets/horizontcontainer.h b/src/gui/widgets/horizontcontainer.h index b41370ac1..736d8fd98 100644 --- a/src/gui/widgets/horizontcontainer.h +++ b/src/gui/widgets/horizontcontainer.h @@ -31,7 +31,7 @@ * * This container places it's contents veritcally. */ -class HorizontContainer : public Container, public gcn::WidgetListener +class HorizontContainer final : public Container, public gcn::WidgetListener { public: HorizontContainer(const int height, const int spacing); diff --git a/src/gui/widgets/icon.h b/src/gui/widgets/icon.h index 150f34576..62e8ac1b1 100644 --- a/src/gui/widgets/icon.h +++ b/src/gui/widgets/icon.h @@ -32,7 +32,7 @@ class Image; * * \ingroup GUI */ -class Icon : public gcn::Widget +class Icon final : public gcn::Widget { public: /** diff --git a/src/gui/widgets/inttextfield.h b/src/gui/widgets/inttextfield.h index 0f92692f3..a820de8a3 100644 --- a/src/gui/widgets/inttextfield.h +++ b/src/gui/widgets/inttextfield.h @@ -28,7 +28,7 @@ /** * TextBox which only accepts numbers as input. */ -class IntTextField : public TextField +class IntTextField final : public TextField { public: /** diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index aa254c30b..854d055d2 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -55,7 +55,7 @@ static const int BOX_WIDTH = 35; static const int BOX_HEIGHT = 43; -class ItemIdPair +class ItemIdPair final { public: ItemIdPair(const int id, Item *const item) : @@ -67,7 +67,7 @@ class ItemIdPair Item* mItem; }; -class SortItemAlphaFunctor +class SortItemAlphaFunctor final { public: bool operator() (const ItemIdPair *const pair1, @@ -81,7 +81,7 @@ class SortItemAlphaFunctor } } itemAlphaSorter; -class SortItemIdFunctor +class SortItemIdFunctor final { public: bool operator() (const ItemIdPair *const pair1, @@ -94,7 +94,7 @@ class SortItemIdFunctor } } itemIdSorter; -class SortItemWeightFunctor +class SortItemWeightFunctor final { public: bool operator() (const ItemIdPair *const pair1, @@ -114,7 +114,7 @@ class SortItemWeightFunctor } } itemWeightSorter; -class SortItemAmountFunctor +class SortItemAmountFunctor final { public: bool operator() (const ItemIdPair *const pair1, @@ -134,7 +134,7 @@ class SortItemAmountFunctor } } itemAmountSorter; -class SortItemTypeFunctor +class SortItemTypeFunctor final { public: bool operator() (const ItemIdPair *const pair1, diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h index 02309ebc9..40f9a92d7 100644 --- a/src/gui/widgets/itemcontainer.h +++ b/src/gui/widgets/itemcontainer.h @@ -46,10 +46,10 @@ namespace gcn * * \ingroup GUI */ -class ItemContainer : public gcn::Widget, - public gcn::KeyListener, - public gcn::MouseListener, - public gcn::WidgetListener +class ItemContainer final : public gcn::Widget, + public gcn::KeyListener, + public gcn::MouseListener, + public gcn::WidgetListener { public: /** diff --git a/src/gui/widgets/itemlinkhandler.h b/src/gui/widgets/itemlinkhandler.h index 9f66da991..5deb76c73 100644 --- a/src/gui/widgets/itemlinkhandler.h +++ b/src/gui/widgets/itemlinkhandler.h @@ -27,7 +27,7 @@ class ItemPopup; -class ItemLinkHandler : public LinkHandler +class ItemLinkHandler final : public LinkHandler { public: ItemLinkHandler(); diff --git a/src/gui/widgets/itemshortcutcontainer.h b/src/gui/widgets/itemshortcutcontainer.h index f5135fbb3..92866b10d 100644 --- a/src/gui/widgets/itemshortcutcontainer.h +++ b/src/gui/widgets/itemshortcutcontainer.h @@ -37,7 +37,7 @@ class SpellPopup; * * \ingroup GUI */ -class ItemShortcutContainer : public ShortcutContainer +class ItemShortcutContainer final : public ShortcutContainer { public: /** diff --git a/src/gui/widgets/label.h b/src/gui/widgets/label.h index f2048c94a..b9845ef0a 100644 --- a/src/gui/widgets/label.h +++ b/src/gui/widgets/label.h @@ -30,7 +30,7 @@ * * \ingroup GUI */ -class Label : public gcn::Label +class Label final : public gcn::Label { public: /** diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h index 71de85320..beccfcb01 100644 --- a/src/gui/widgets/layout.h +++ b/src/gui/widgets/layout.h @@ -34,7 +34,7 @@ class LayoutCell; /** * This class is a helper for adding widgets to nested tables in a window. */ -class ContainerPlacer +class ContainerPlacer final { public: ContainerPlacer(gcn::Container *c = nullptr, LayoutCell *lc = nullptr): @@ -67,7 +67,7 @@ class ContainerPlacer /** * This class contains a rectangular array of cells. */ -class LayoutArray +class LayoutArray final { friend class LayoutCell; @@ -331,7 +331,7 @@ class LayoutCell * pixels between rows and between columns, and a margin of 6 pixels around the * whole layout. */ -class Layout : public LayoutCell +class Layout final : public LayoutCell { public: Layout(); diff --git a/src/gui/widgets/layouthelper.h b/src/gui/widgets/layouthelper.h index c9c5e2471..518168a80 100644 --- a/src/gui/widgets/layouthelper.h +++ b/src/gui/widgets/layouthelper.h @@ -32,7 +32,7 @@ * will register itself as a widget listener and relayout the widgets in the * container dynamically on resize. */ -class LayoutHelper : public gcn::WidgetListener +class LayoutHelper final : public gcn::WidgetListener { public: /** diff --git a/src/gui/widgets/mouseevent.h b/src/gui/widgets/mouseevent.h index e41ed46b8..9ef9f8658 100644 --- a/src/gui/widgets/mouseevent.h +++ b/src/gui/widgets/mouseevent.h @@ -25,7 +25,7 @@ #include <guichan/mouseevent.hpp> #include <guichan/widget.hpp> -class MouseEvent : public gcn::MouseEvent +class MouseEvent final : public gcn::MouseEvent { public: MouseEvent(gcn::Widget* source, bool shiftPressed, diff --git a/src/gui/widgets/passwordfield.h b/src/gui/widgets/passwordfield.h index eca95e6ad..ceb88876e 100644 --- a/src/gui/widgets/passwordfield.h +++ b/src/gui/widgets/passwordfield.h @@ -30,7 +30,7 @@ * * \ingroup GUI */ -class PasswordField : public TextField +class PasswordField final : public TextField { public: /** diff --git a/src/gui/widgets/playerbox.h b/src/gui/widgets/playerbox.h index 81fe87f52..dbf104de0 100644 --- a/src/gui/widgets/playerbox.h +++ b/src/gui/widgets/playerbox.h @@ -38,7 +38,7 @@ class Skin; * * \ingroup GUI */ -class PlayerBox : public gcn::ScrollArea +class PlayerBox final : public gcn::ScrollArea { public: /** diff --git a/src/gui/widgets/progressbar.h b/src/gui/widgets/progressbar.h index 0b4927cc9..11c8069a3 100644 --- a/src/gui/widgets/progressbar.h +++ b/src/gui/widgets/progressbar.h @@ -38,7 +38,7 @@ class ImageRect; * * \ingroup GUI */ -class ProgressBar : public gcn::Widget, public gcn::WidgetListener +class ProgressBar final : public gcn::Widget, public gcn::WidgetListener { public: /** diff --git a/src/gui/widgets/progressindicator.h b/src/gui/widgets/progressindicator.h index 6d55fd3ce..4046f21d9 100644 --- a/src/gui/widgets/progressindicator.h +++ b/src/gui/widgets/progressindicator.h @@ -30,7 +30,7 @@ class SimpleAnimation; * A widget that indicates progress. Suitable to use instead of a progress bar * in cases where it is unknown how long something is going to take. */ -class ProgressIndicator : public gcn::Widget +class ProgressIndicator final : public gcn::Widget { public: ProgressIndicator(); diff --git a/src/gui/widgets/radiobutton.h b/src/gui/widgets/radiobutton.h index 2db41cd78..ae846bc77 100644 --- a/src/gui/widgets/radiobutton.h +++ b/src/gui/widgets/radiobutton.h @@ -30,7 +30,7 @@ class Image; /** * Guichan based RadioButton with custom look */ -class RadioButton : public gcn::RadioButton +class RadioButton final : public gcn::RadioButton { public: /** diff --git a/src/gui/widgets/radiogroup.h b/src/gui/widgets/radiogroup.h index fb511971d..19e67d09d 100644 --- a/src/gui/widgets/radiogroup.h +++ b/src/gui/widgets/radiogroup.h @@ -25,7 +25,7 @@ #include <guichan/widget.hpp> -class RadioGroup : public WidgetGroup +class RadioGroup final : public WidgetGroup { public: RadioGroup(const std::string &group, const int height, diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h index 870c0eaff..064bfdeb0 100644 --- a/src/gui/widgets/scrollarea.h +++ b/src/gui/widgets/scrollarea.h @@ -39,7 +39,7 @@ class ImageRect; * * \ingroup GUI */ -class ScrollArea : public gcn::ScrollArea, public gcn::WidgetListener +class ScrollArea final : public gcn::ScrollArea, public gcn::WidgetListener { public: /** diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h index f1ec4d23b..d8affadd1 100644 --- a/src/gui/widgets/setupitem.h +++ b/src/gui/widgets/setupitem.h @@ -129,7 +129,7 @@ class SetupItem : public gcn::ActionListener int mValueType; }; -class SetupItemCheckBox : public SetupItem +class SetupItemCheckBox final : public SetupItem { public: SetupItemCheckBox(std::string text, std::string description, @@ -153,7 +153,7 @@ class SetupItemCheckBox : public SetupItem CheckBox *mCheckBox; }; -class SetupItemTextField : public SetupItem +class SetupItemTextField final : public SetupItem { public: SetupItemTextField(std::string text, std::string description, @@ -186,7 +186,7 @@ class SetupItemTextField : public SetupItem EditDialog *mEditDialog; }; -class SetupItemIntTextField : public SetupItem +class SetupItemIntTextField final : public SetupItem { public: SetupItemIntTextField(std::string text, std::string description, @@ -225,7 +225,7 @@ class SetupItemIntTextField : public SetupItem EditDialog *mEditDialog; }; -class SetupItemLabel : public SetupItem +class SetupItemLabel final : public SetupItem { public: SetupItemLabel(std::string text, std::string description, @@ -249,7 +249,7 @@ class SetupItemLabel : public SetupItem bool mIsSeparator; }; -class SetupItemDropDown : public SetupItem +class SetupItemDropDown final : public SetupItem { public: SetupItemDropDown(std::string text, std::string description, @@ -277,7 +277,7 @@ class SetupItemDropDown : public SetupItem DropDown *mDropDown; }; -class SetupItemSlider : public SetupItem +class SetupItemSlider final : public SetupItem { public: SetupItemSlider(std::string text, std::string description, @@ -323,7 +323,7 @@ typedef std::vector<std::string> SetupItemNames; typedef SetupItemNames::iterator SetupItemNamesIter; typedef SetupItemNames::const_iterator SetupItemNamesConstIter; -class SetupItemSlider2 : public SetupItem +class SetupItemSlider2 final : public SetupItem { public: SetupItemSlider2(std::string text, std::string description, @@ -413,7 +413,7 @@ class SetupItemSliderList : public SetupItem bool mOnTheFly; }; -class SetupItemSound : public SetupItemSliderList +class SetupItemSound final : public SetupItemSliderList { public: SetupItemSound(std::string text, std::string description, diff --git a/src/gui/widgets/shopitems.h b/src/gui/widgets/shopitems.h index 038c10093..978926420 100644 --- a/src/gui/widgets/shopitems.h +++ b/src/gui/widgets/shopitems.h @@ -28,6 +28,8 @@ #include <string> #include <vector> +#include "localconsts.h" + class ShopItem; /** @@ -39,7 +41,7 @@ class ShopItem; * * This functionality can be enabled in the constructor. */ -class ShopItems : public gcn::ListModel +class ShopItems final : public gcn::ListModel { public: /** diff --git a/src/gui/widgets/shoplistbox.h b/src/gui/widgets/shoplistbox.h index f34c8d772..ed5bfa003 100644 --- a/src/gui/widgets/shoplistbox.h +++ b/src/gui/widgets/shoplistbox.h @@ -35,7 +35,7 @@ class ItemPopup; * * \ingroup GUI */ -class ShopListBox : public ListBox +class ShopListBox final : public ListBox { public: /** diff --git a/src/gui/widgets/slider.h b/src/gui/widgets/slider.h index 95d23f83e..494039c73 100644 --- a/src/gui/widgets/slider.h +++ b/src/gui/widgets/slider.h @@ -33,7 +33,7 @@ class ImageRect; * * \ingroup GUI */ -class Slider : public gcn::Slider +class Slider final : public gcn::Slider { public: /** diff --git a/src/gui/widgets/sliderlist.h b/src/gui/widgets/sliderlist.h index 992316a1b..76dbc012c 100644 --- a/src/gui/widgets/sliderlist.h +++ b/src/gui/widgets/sliderlist.h @@ -32,9 +32,9 @@ class Button; class Label; -class SliderList : public Container, - public gcn::ActionListener, - public gcn::MouseListener +class SliderList final : public Container, + public gcn::ActionListener, + public gcn::MouseListener { public: SliderList(gcn::ListModel *const listModel = nullptr, diff --git a/src/gui/widgets/spellshortcutcontainer.h b/src/gui/widgets/spellshortcutcontainer.h index 22fe15d95..570b8b263 100644 --- a/src/gui/widgets/spellshortcutcontainer.h +++ b/src/gui/widgets/spellshortcutcontainer.h @@ -36,7 +36,7 @@ class TextCommand; * * \ingroup GUI */ -class SpellShortcutContainer : public ShortcutContainer +class SpellShortcutContainer final : public ShortcutContainer { public: /** diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h index 0513c2858..a616a9935 100644 --- a/src/gui/widgets/tabbedarea.h +++ b/src/gui/widgets/tabbedarea.h @@ -37,7 +37,7 @@ class Tab; /** * A tabbed area, the same as the guichan tabbed area in 0.8, but extended */ -class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener +class TabbedArea final : public gcn::TabbedArea, public gcn::WidgetListener { public: /** diff --git a/src/gui/widgets/tablemodel.h b/src/gui/widgets/tablemodel.h index 86acd0cc9..4e3938038 100644 --- a/src/gui/widgets/tablemodel.h +++ b/src/gui/widgets/tablemodel.h @@ -26,6 +26,8 @@ #include <set> #include <vector> +#include "localconsts.h" + namespace gcn { class Widget; @@ -103,7 +105,7 @@ private: }; -class StaticTableModel : public TableModel +class StaticTableModel final : public TableModel { public: StaticTableModel(const int width, const int height); diff --git a/src/gui/widgets/tabstrip.h b/src/gui/widgets/tabstrip.h index 92d864b79..fac0fc502 100644 --- a/src/gui/widgets/tabstrip.h +++ b/src/gui/widgets/tabstrip.h @@ -26,7 +26,7 @@ #include <guichan/actionevent.hpp> #include <guichan/widget.hpp> -class TabStrip : public WidgetGroup +class TabStrip final : public WidgetGroup { public: TabStrip(const std::string &group, const int height, diff --git a/src/gui/widgets/textbox.h b/src/gui/widgets/textbox.h index dcd289a60..a95fd118a 100644 --- a/src/gui/widgets/textbox.h +++ b/src/gui/widgets/textbox.h @@ -32,7 +32,7 @@ * * \ingroup GUI */ -class TextBox : public gcn::TextBox +class TextBox final : public gcn::TextBox { public: /** diff --git a/src/gui/widgets/textpreview.h b/src/gui/widgets/textpreview.h index 06c588215..e116e939b 100644 --- a/src/gui/widgets/textpreview.h +++ b/src/gui/widgets/textpreview.h @@ -30,7 +30,7 @@ /** * Preview widget for particle colors, etc. */ -class TextPreview : public gcn::Widget +class TextPreview final : public gcn::Widget { public: TextPreview(const std::string &text); diff --git a/src/gui/widgets/tradetab.h b/src/gui/widgets/tradetab.h index 44922c31a..a31376263 100644 --- a/src/gui/widgets/tradetab.h +++ b/src/gui/widgets/tradetab.h @@ -28,7 +28,7 @@ /** * A tab for a party chat channel. */ -class TradeTab : public ChatTab +class TradeTab final : public ChatTab { public: TradeTab(); diff --git a/src/gui/widgets/vertcontainer.h b/src/gui/widgets/vertcontainer.h index e02d43c24..2c9087db2 100644 --- a/src/gui/widgets/vertcontainer.h +++ b/src/gui/widgets/vertcontainer.h @@ -33,7 +33,7 @@ * * This container places it's contents veritcally. */ -class VertContainer : public Container, public gcn::WidgetListener +class VertContainer final : public Container, public gcn::WidgetListener { public: VertContainer(const int verticalItemSize, const bool resizable = true, diff --git a/src/gui/widgets/whispertab.h b/src/gui/widgets/whispertab.h index eec66768c..2a8ca1ab0 100644 --- a/src/gui/widgets/whispertab.h +++ b/src/gui/widgets/whispertab.h @@ -30,7 +30,7 @@ class Channel; /** * A tab for whispers from a single player. */ -class WhisperTab : public ChatTab +class WhisperTab final : public ChatTab { public: const std::string &getNick() const diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h index c0be9a1fe..1a2956df1 100644 --- a/src/gui/windowmenu.h +++ b/src/gui/windowmenu.h @@ -44,11 +44,11 @@ class TextPopup; * * \ingroup Interface */ -class WindowMenu : public Container, - public ConfigListener, - public gcn::ActionListener, - public gcn::SelectionListener, - public gcn::MouseListener +class WindowMenu final : public Container, + public ConfigListener, + public gcn::ActionListener, + public gcn::SelectionListener, + public gcn::MouseListener { public: WindowMenu(); diff --git a/src/gui/worldselectdialog.cpp b/src/gui/worldselectdialog.cpp index d98dd97b4..7e77ffc6d 100644 --- a/src/gui/worldselectdialog.cpp +++ b/src/gui/worldselectdialog.cpp @@ -46,7 +46,7 @@ extern WorldInfo **server_info; /** * The list model for the server list. */ -class WorldListModel : public gcn::ListModel +class WorldListModel final : public gcn::ListModel { public: WorldListModel(Worlds worlds): diff --git a/src/gui/worldselectdialog.h b/src/gui/worldselectdialog.h index dd78391fe..30500d311 100644 --- a/src/gui/worldselectdialog.h +++ b/src/gui/worldselectdialog.h @@ -47,8 +47,8 @@ namespace gcn * * \ingroup Interface */ -class WorldSelectDialog : public Window, public gcn::ActionListener, - public gcn::KeyListener +class WorldSelectDialog final : public Window, public gcn::ActionListener, + public gcn::KeyListener { public: /** |