diff options
author | peter1138 <peter1138@openttd.org> | 2019-03-24 16:23:46 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-03-24 17:38:42 +0000 |
commit | b1fb3f4fb8c389d36ba670558a169578f7d142e2 (patch) | |
tree | 8a3ba2c2479da365750a1aa87490aab27971ceb3 /src/textfile_gui.h | |
parent | e6bb90543e885d20814b4829c94c04909a311b71 (diff) | |
download | openttd-b1fb3f4fb8c389d36ba670558a169578f7d142e2.tar.xz |
Codechange: More use of override keyword.
Diffstat (limited to 'src/textfile_gui.h')
-rw-r--r-- | src/textfile_gui.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/textfile_gui.h b/src/textfile_gui.h index 9495fa3f0..b7bcb2db7 100644 --- a/src/textfile_gui.h +++ b/src/textfile_gui.h @@ -32,17 +32,21 @@ struct TextfileWindow : public Window, MissingGlyphSearcher { static const int BOTTOM_SPACING = WD_FRAMETEXT_BOTTOM; ///< Additional spacing at the bottom of the #WID_TF_BACKGROUND widget. TextfileWindow(TextfileType file_type); - virtual ~TextfileWindow(); - virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize); - virtual void OnClick(Point pt, int widget, int click_count); - virtual void DrawWidget(const Rect &r, int widget) const; - virtual void OnResize(); - virtual void Reset(); - virtual FontSize DefaultSize(); - virtual const char *NextString(); - virtual bool Monospace(); - virtual void SetFontNames(FreeTypeSettings *settings, const char *font_name); + ~TextfileWindow(); + + void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) override; + void OnClick(Point pt, int widget, int click_count) override; + void DrawWidget(const Rect &r, int widget) const override; + void OnResize() override; + + void Reset() override; + FontSize DefaultSize() override; + const char *NextString() override; + bool Monospace() override; + void SetFontNames(FreeTypeSettings *settings, const char *font_name) override; + virtual void LoadTextfile(const char *textfile, Subdirectory dir); + private: uint GetContentHeight(); void SetupScrollbars(); |