ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <dialog.h>

Inheritance diagram for GUI::Dialog:
Collaboration diagram for GUI::Dialog:

List of all members.

Public Member Functions

 Dialog (int x, int y, int w, int h)
 Dialog (const Common::String &name)
virtual int runModal ()
bool isVisible () const
void releaseFocus ()
void setFocusWidget (Widget *widget)
WidgetgetFocusWidget ()
void setTickleWidget (Widget *widget)
void unSetTickleWidget ()
WidgetgetTickleWidget ()
virtual void reflowLayout ()
virtual void lostFocus ()
virtual void receivedFocus (int x=-1, int y=-1)

Protected Member Functions

virtual void open ()
virtual void close ()
void markWidgetsAsDirty ()
 Recursively mark all the widgets in this dialog as dirty so they are redrawn.
virtual void drawDialog (DrawLayer layerToDraw)
 Draw the dialog in its entirety (background and widgets).
void drawWidgets ()
 Draw only the dialog's widgets.
virtual void handleTickle ()
virtual void handleMouseDown (int x, int y, int button, int clickCount)
virtual void handleMouseUp (int x, int y, int button, int clickCount)
virtual void handleMouseWheel (int x, int y, int direction)
virtual void handleKeyDown (Common::KeyState state)
virtual void handleKeyUp (Common::KeyState state)
virtual void handleMouseMoved (int x, int y, int button)
virtual void handleCommand (CommandSender *sender, uint32 cmd, uint32 data)
WidgetfindWidget (int x, int y)
WidgetfindWidget (const char *name)
void removeWidget (Widget *widget)
void setDefaultFocusedWidget ()
void setResult (int result)
int getResult () const

Protected Attributes

Widget_mouseWidget
Widget_focusedWidget
Widget_dragWidget
Widget_tickleWidget
bool _visible
ThemeEngine::DialogBackground _backgroundType

Private Attributes

int _result

Friends

class GuiManager
class EventRecorder
class Tooltip

Detailed Description

Definition at line 51 of file gui/dialog.h.


Constructor & Destructor Documentation

GUI::Dialog::Dialog ( int  x,
int  y,
int  w,
int  h 
)

Definition at line 44 of file gui/dialog.cpp.

GUI::Dialog::Dialog ( const Common::String name  ) 

Definition at line 58 of file gui/dialog.cpp.


Member Function Documentation

void GUI::Dialog::drawDialog ( DrawLayer  layerToDraw  )  [protected, virtual]

Draw the dialog in its entirety (background and widgets).

Reimplemented in GUI::AboutDialog, GUI::ConsoleDialog, GUI::Tooltip, and GUI::PopUpDialog.

Definition at line 164 of file gui/dialog.cpp.

void GUI::Dialog::drawWidgets (  )  [protected]

Draw only the dialog's widgets.

Definition at line 176 of file gui/dialog.cpp.

Widget * GUI::Dialog::findWidget ( int  x,
int  y 
) [protected]

Definition at line 369 of file gui/dialog.cpp.

Widget * GUI::Dialog::findWidget ( const char *  name  )  [protected]

Definition at line 373 of file gui/dialog.cpp.

Widget* GUI::Dialog::getFocusWidget (  )  [inline]

Definition at line 77 of file gui/dialog.h.

int GUI::Dialog::getResult (  )  const [inline, protected]

Reimplemented in GUI::PredictiveDialog.

Definition at line 119 of file gui/dialog.h.

Widget* GUI::Dialog::getTickleWidget (  )  [inline]

Definition at line 81 of file gui/dialog.h.

void GUI::Dialog::handleKeyDown ( Common::KeyState  state  )  [protected, virtual]
void GUI::Dialog::handleKeyUp ( Common::KeyState  state  )  [protected, virtual]
void GUI::Dialog::handleMouseDown ( int  x,
int  y,
int  button,
int  clickCount 
) [protected, virtual]

Reimplemented in GUI::OnScreenDialog, and GUI::Tooltip.

Definition at line 190 of file gui/dialog.cpp.

void GUI::Dialog::handleMouseMoved ( int  x,
int  y,
int  button 
) [protected, virtual]

Reimplemented in GUI::OnScreenDialog, GUI::Tooltip, and GUI::PopUpDialog.

Definition at line 293 of file gui/dialog.cpp.

void GUI::Dialog::handleMouseUp ( int  x,
int  y,
int  button,
int  clickCount 
) [protected, virtual]

Reimplemented in GUI::AboutDialog, GUI::OnScreenDialog, GUI::Tooltip, and GUI::PopUpDialog.

Definition at line 208 of file gui/dialog.cpp.

void GUI::Dialog::handleMouseWheel ( int  x,
int  y,
int  direction 
) [protected, virtual]
bool GUI::Dialog::isVisible (  )  const [inline, virtual]

Implements GUI::GuiObject.

Reimplemented in GUI::OnScreenDialog.

Definition at line 73 of file gui/dialog.h.

void GUI::Dialog::lostFocus (  )  [virtual]

Definition at line 119 of file gui/dialog.cpp.

void GUI::Dialog::markWidgetsAsDirty (  )  [protected]

Recursively mark all the widgets in this dialog as dirty so they are redrawn.

Definition at line 156 of file gui/dialog.cpp.

virtual void GUI::Dialog::receivedFocus ( int  x = -1,
int  y = -1 
) [inline, virtual]

Reimplemented in GUI::Tooltip.

Definition at line 85 of file gui/dialog.h.

void GUI::Dialog::releaseFocus (  )  [virtual]

Implements GUI::GuiObject.

Reimplemented in GUI::OnScreenDialog.

Definition at line 149 of file gui/dialog.cpp.

void GUI::Dialog::removeWidget ( Widget widget  )  [protected, virtual]

Reimplemented from GUI::GuiObject.

Definition at line 377 of file gui/dialog.cpp.

int GUI::Dialog::runModal (  )  [virtual]

Reimplemented in GUI::BrowserDialog.

Definition at line 75 of file gui/dialog.cpp.

void GUI::Dialog::setDefaultFocusedWidget (  )  [protected]

Definition at line 139 of file gui/dialog.cpp.

void GUI::Dialog::setFocusWidget ( Widget widget  ) 

Definition at line 127 of file gui/dialog.cpp.

void GUI::Dialog::setResult ( int  result  )  [inline, protected]

Definition at line 118 of file gui/dialog.h.

void GUI::Dialog::setTickleWidget ( Widget widget  )  [inline]

Definition at line 79 of file gui/dialog.h.

void GUI::Dialog::unSetTickleWidget (  )  [inline]

Definition at line 80 of file gui/dialog.h.


Friends And Related Function Documentation

friend class EventRecorder [friend]

Definition at line 53 of file gui/dialog.h.

friend class GuiManager [friend]

Definition at line 52 of file gui/dialog.h.

friend class Tooltip [friend]

Definition at line 54 of file gui/dialog.h.


Member Data Documentation

Definition at line 58 of file gui/dialog.h.

Definition at line 57 of file gui/dialog.h.

Definition at line 56 of file gui/dialog.h.

int GUI::Dialog::_result [private]

Definition at line 65 of file gui/dialog.h.

Definition at line 59 of file gui/dialog.h.

bool GUI::Dialog::_visible [protected]

Definition at line 60 of file gui/dialog.h.


The documentation for this class was generated from the following files:


Generated on Sat Mar 16 2019 05:06:19 for ResidualVM by doxygen 1.7.1
curved edge   curved edge