diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-17 15:08:03 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-17 15:08:03 (GMT) |
| commit | 614a90cfc677313473d5a6163d93e61fa655dfca (patch) | |
| tree | e7d5354f57f6956c9e66e589cff21ac4b99cafe2 /src/search | |
| parent | 6500923aa574bad86339f231382a7fcc11e64f96 (diff) | |
| download | powder-614a90cfc677313473d5a6163d93e61fa655dfca.zip powder-614a90cfc677313473d5a6163d93e61fa655dfca.tar.gz | |
RichText label (used for MOTD), fixes #123
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/SearchView.cpp | 3 | ||||
| -rw-r--r-- | src/search/SearchView.h | 12 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/search/SearchView.cpp b/src/search/SearchView.cpp index 866c492..bad2474 100644 --- a/src/search/SearchView.cpp +++ b/src/search/SearchView.cpp @@ -5,6 +5,7 @@ #include "interface/Keys.h" #include "interface/SaveButton.h" #include "interface/Label.h" +#include "interface/RichLabel.h" #include "interface/Textbox.h" #include "Misc.h" @@ -21,7 +22,7 @@ SearchView::SearchView(): previousButton = new ui::Button(ui::Point(1, YRES+MENUSIZE-18), ui::Point(50, 16), "\x96 Prev"); infoLabel = new ui::Label(ui::Point(51, YRES+MENUSIZE-18), ui::Point(XRES+BARSIZE-102, 16), "Loading..."); tagsLabel = new ui::Label(ui::Point(51, YRES+MENUSIZE-18), ui::Point(XRES+BARSIZE-102, 16), "\boPopular Tags:"); - motdLabel = new ui::Label(ui::Point(51, YRES+MENUSIZE-18), ui::Point(XRES+BARSIZE-102, 16), Client::Ref().GetMessageOfTheDay()); + motdLabel = new ui::RichLabel(ui::Point(51, YRES+MENUSIZE-18), ui::Point(XRES+BARSIZE-102, 16), Client::Ref().GetMessageOfTheDay()); class SearchAction : public ui::TextboxAction { diff --git a/src/search/SearchView.h b/src/search/SearchView.h index 9365ddc..899a993 100644 --- a/src/search/SearchView.h +++ b/src/search/SearchView.h @@ -12,6 +12,16 @@ using namespace std; +namespace ui +{ + class RichLabel; + class SaveButton; + class Button; + class Label; + class Spinner; + class Textbox; +} + class SearchModel; class SearchController; @@ -28,7 +38,7 @@ private: ui::Textbox * searchField; ui::Label * infoLabel; ui::Label * tagsLabel; - ui::Label * motdLabel; + ui::RichLabel * motdLabel; ui::Button * sortButton; ui::Button * ownButton; ui::Spinner * loadingSpinner; |
