Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GuiButton Class Reference

#include <guiiconhandler.h>

Inheritance diagram for GuiButton:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GuiButton (PG_Widget *parent, const PG_Rect &r)
void registerFunc (GuiFunction *f, const MapCoordinate &position, ContainerBase *subject, int id)
bool checkForKey (const SDL_KeyboardEvent *key, int modifier)
void unregisterFunc ()
bool exec ()
bool ready ()
void showInfoText ()

Protected Member Functions

void eventMouseEnter ()
 eventhandler for mouse movements.
void eventMouseLeave ()
 eventhandler for mouse movements.

Friends

class SmallGuiButton

Constructor & Destructor Documentation

GuiButton::GuiButton PG_Widget parent,
const PG_Rect r
 

Definition at line 50 of file guiiconhandler.cpp.

References exec(), IconRepository::getIcon(), PG_Button::HIGHLITED, PG_Button::PRESSED, PG_Button::SetBackground(), PG_Button::SetBorderSize(), PG_Button::sigClick, and PG_Button::UNPRESSED.


Member Function Documentation

bool GuiButton::checkForKey const SDL_KeyboardEvent *  key,
int  modifier
 

Definition at line 99 of file guiiconhandler.cpp.

References GuiFunction::available(), GuiFunction::checkForKey(), and GuiFunction::execute().

void GuiButton::eventMouseEnter  )  [protected, virtual]
 

eventhandler for mouse movements.

This overrideable handler is called everytime the mouse cursor is entering the widget area.

Reimplemented from PG_Button.

Definition at line 87 of file guiiconhandler.cpp.

References PG_Button::eventMouseEnter(), and showInfoText().

void GuiButton::eventMouseLeave  )  [protected, virtual]
 

eventhandler for mouse movements.

This overrideable handler is called everytime the mouse cursor is leaving the widget area.

Reimplemented from PG_Button.

Definition at line 93 of file guiiconhandler.cpp.

References PG_Button::eventMouseLeave().

bool GuiButton::exec  ) 
 

Definition at line 59 of file guiiconhandler.cpp.

References GuiFunction::execute().

Referenced by NewGuiHost::eventKeyUp(), GuiButton(), and SmallGuiButton::SmallGuiButton().

bool GuiButton::ready  )  [inline]
 

Definition at line 91 of file guiiconhandler.h.

void GuiButton::registerFunc GuiFunction f,
const MapCoordinate position,
ContainerBase subject,
int  id
 

Definition at line 69 of file guiiconhandler.cpp.

References PG_Button::SetIcon().

Referenced by GuiFunctions::BuildingConstruction::addButton(), GuiFunctions::VehicleBuildingGui::addButton(), GuiFunctions::ObjectBuildingGui::addButton(), GuiIconHandler::eval(), GuiFunctions::BuildingConstruction::eval(), GuiFunctions::VehicleBuildingGui::eval(), GuiFunctions::ObjectBuildingGui::eval(), GuiFunctions::AttackGui::eval(), and GuiFunctions::BuildingConstruction::setup().

void GuiButton::showInfoText  ) 
 

Definition at line 109 of file guiiconhandler.cpp.

References GuiFunction::getName().

Referenced by eventMouseEnter(), and NewGuiHost::setNewButtonPressed().

void GuiButton::unregisterFunc  ) 
 

Definition at line 78 of file guiiconhandler.cpp.

References PG_Button::SetIcon().

Referenced by NewGuiHost::disableButtons().


Friends And Related Function Documentation

friend class SmallGuiButton [friend]
 

Definition at line 81 of file guiiconhandler.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:17:36 2008 for Advanced Strategic Command by  doxygen 1.4.2