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)
virtual void handleOtherEvent (Common::Event evt)
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 49 of file dialog.h.


Constructor & Destructor Documentation

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

Definition at line 41 of file dialog.cpp.

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

Definition at line 55 of file 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 161 of file dialog.cpp.

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

Draw only the dialog's widgets.

Definition at line 173 of file dialog.cpp.

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

Definition at line 365 of file dialog.cpp.

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

Definition at line 369 of file dialog.cpp.

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

Definition at line 75 of file dialog.h.

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

Reimplemented in GUI::PredictiveDialog.

Definition at line 115 of file dialog.h.

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

Definition at line 79 of file 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 187 of file 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 290 of file 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 205 of file dialog.cpp.

void GUI::Dialog::handleMouseWheel ( int  x,
int  y,
int  direction 
) [protected, virtual]
void GUI::Dialog::handleOtherEvent ( Common::Event  evt  )  [protected, virtual]

Reimplemented in GUI::LauncherDialog.

Definition at line 359 of file dialog.cpp.

bool GUI::Dialog::isVisible (  )  const [inline, virtual]

Implements GUI::GuiObject.

Reimplemented in GUI::OnScreenDialog.

Definition at line 71 of file dialog.h.

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

Definition at line 116 of file dialog.cpp.

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

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

Definition at line 153 of file dialog.cpp.

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

Reimplemented in GUI::Tooltip.

Definition at line 83 of file dialog.h.

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

Implements GUI::GuiObject.

Reimplemented in GUI::OnScreenDialog.

Definition at line 146 of file dialog.cpp.

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

Reimplemented from GUI::GuiObject.

Definition at line 373 of file dialog.cpp.

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

Reimplemented in GUI::BrowserDialog.

Definition at line 72 of file dialog.cpp.

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

Definition at line 136 of file dialog.cpp.

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

Definition at line 124 of file dialog.cpp.

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

Definition at line 114 of file dialog.h.

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

Definition at line 77 of file dialog.h.

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

Definition at line 78 of file dialog.h.


Friends And Related Function Documentation

friend class EventRecorder [friend]

Definition at line 51 of file dialog.h.

friend class GuiManager [friend]

Definition at line 50 of file dialog.h.

friend class Tooltip [friend]

Definition at line 52 of file dialog.h.


Member Data Documentation

Definition at line 60 of file dialog.h.

Definition at line 56 of file dialog.h.

Definition at line 55 of file dialog.h.

Definition at line 54 of file dialog.h.

int GUI::Dialog::_result [private]

Definition at line 63 of file dialog.h.

Definition at line 57 of file dialog.h.

bool GUI::Dialog::_visible [protected]

Definition at line 58 of file dialog.h.


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


Generated on Sat Nov 16 2019 05:03:16 for ResidualVM by doxygen 1.7.1
curved edge   curved edge