From 489777645843c7c88d0a84c8f2c7e1a7bdbcf0a9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 26 Mar 2009 10:30:04 +0100 Subject: First batch of include cleanup Since the relative includes are getting ugly and somewhat inconvenient, we'll switch to includes relative to the project root. We've done this for a while already with tmwserv. Another rule which we've always had but was never written down, is that each source file first includes its own header. This is common practice and ensures each header compiles without needing other stuff to be included first. Somebody using Code::Blocks might want to fix the project file by adding the 'src' directory to the list of include paths. --- src/gui/widgets/dropdown.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/gui/widgets/dropdown.h') diff --git a/src/gui/widgets/dropdown.h b/src/gui/widgets/dropdown.h index 1e6dc821..601d55c8 100644 --- a/src/gui/widgets/dropdown.h +++ b/src/gui/widgets/dropdown.h @@ -27,15 +27,15 @@ class Image; class ImageRect; - /** - * A drop down box from which you can select different values. It is one of - * the most complicated Widgets you will find in Guichan. For drawing the - * DroppedDown box it uses one ScrollArea and one ListBox. It also uses an - * internal FocusHandler to handle the focus of the internal ScollArea and - * ListBox. DropDown uses a ListModel to handle the list. To be able to use - * DropDown you must give DropDown an implemented ListModel which represents - * your list. - */ +/** + * A drop down box from which you can select different values. It is one of + * the most complicated Widgets you will find in Guichan. For drawing the + * DroppedDown box it uses one ScrollArea and one ListBox. It also uses an + * internal FocusHandler to handle the focus of the internal ScollArea and + * ListBox. DropDown uses a ListModel to handle the list. To be able to use + * DropDown you must give DropDown an implemented ListModel which represents + * your list. + */ class DropDown : public gcn::DropDown { public: @@ -57,9 +57,9 @@ class DropDown : public gcn::DropDown */ ~DropDown(); - void draw(gcn::Graphics* graphics); + void draw(gcn::Graphics *graphics); - void drawFrame(gcn::Graphics* graphics); + void drawFrame(gcn::Graphics *graphics); /** * Sets the widget to be opaque, that is sets the widget to display its @@ -67,7 +67,7 @@ class DropDown : public gcn::DropDown * * @param opaque True if the widget should be opaque, false otherwise. */ - void setOpaque(bool opaque) {mOpaque = opaque;} + void setOpaque(bool opaque) { mOpaque = opaque; } /** * Checks if the widget is opaque, that is if the widget area displays @@ -75,7 +75,7 @@ class DropDown : public gcn::DropDown * * @return True if the widget is opaque, false otherwise. */ - bool isOpaque() const {return mOpaque;} + bool isOpaque() const { return mOpaque; } protected: -- cgit v1.2.3-70-g09d2