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

#include <list.h>

Inheritance diagram for GUI::ListWidget:
Collaboration diagram for GUI::ListWidget:

List of all members.

Public Types

typedef Common::String String
typedef Common::Array
< Common::String
StringArray
typedef Common::Array
< ThemeEngine::FontColor
ColorList

Public Member Functions

 ListWidget (Dialog *boss, const String &name, const char *tooltip=0, uint32 cmd=0)
 ListWidget (Dialog *boss, int x, int y, int w, int h, const char *tooltip=0, uint32 cmd=0)
virtual bool containsWidget (Widget *) const
virtual WidgetfindWidget (int x, int y)
void setList (const StringArray &list, const ColorList *colors=0)
const StringArraygetList () const
void append (const String &s, ThemeEngine::FontColor color=ThemeEngine::kFontColorNormal)
void setSelected (int item)
int getSelected () const
const StringgetSelectedString () const
ThemeEngine::FontColor getSelectionColor () const
void setNumberingMode (NumberingMode numberingMode)
void scrollTo (int item)
void scrollToEnd ()
int getCurrentScrollPos () const
void enableQuickSelect (bool enable)
String getQuickSelectString () const
bool isEditable () const
void setEditable (bool editable)
void setEditColor (ThemeEngine::FontColor color)
void startEditMode ()
void endEditMode ()
void setFilter (const String &filter, bool redraw=true)
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 bool handleKeyDown (Common::KeyState state)
virtual bool handleKeyUp (Common::KeyState state)
virtual void handleCommand (CommandSender *sender, uint32 cmd, uint32 data)
virtual void reflowLayout ()
virtual bool wantsFocus ()

Protected Member Functions

void drawWidget ()
int findItem (int x, int y) const
 Finds the item at position (x,y). Returns -1 if there is no item there.
void scrollBarRecalc ()
void abortEditMode ()
Common::Rect getEditRect () const
 The area where text input is being made.
void receivedFocusWidget ()
void lostFocusWidget ()
void checkBounds ()
void scrollToCurrent ()

Protected Attributes

StringArray _list
StringArray _dataList
ColorList _listColors
Common::Array< int > _listIndex
bool _editable
bool _editMode
NumberingMode _numberingMode
int _currentPos
int _entriesPerPage
int _selectedItem
ScrollBarWidget_scrollBar
int _currentKeyDown
String _quickSelectStr
uint32 _quickSelectTime
int _hlLeftPadding
int _hlRightPadding
int _leftPadding
int _rightPadding
int _topPadding
int _bottomPadding
int _scrollBarWidth
String _filter
bool _quickSelect
uint32 _cmd
ThemeEngine::FontColor _editColor

Detailed Description

Definition at line 50 of file list.h.


Member Typedef Documentation

Reimplemented from GUI::EditableWidget.

Definition at line 52 of file list.h.

Definition at line 53 of file list.h.


Constructor & Destructor Documentation

GUI::ListWidget::ListWidget ( Dialog boss,
const String name,
const char *  tooltip = 0,
uint32  cmd = 0 
)

Definition at line 36 of file list.cpp.

GUI::ListWidget::ListWidget ( Dialog boss,
int  x,
int  y,
int  w,
int  h,
const char *  tooltip = 0,
uint32  cmd = 0 
)

Definition at line 67 of file list.cpp.


Member Function Documentation

void GUI::ListWidget::abortEditMode (  )  [protected, virtual]

Implements GUI::EditableWidget.

Definition at line 623 of file list.cpp.

void GUI::ListWidget::append ( const String s,
ThemeEngine::FontColor  color = ThemeEngine::kFontColorNormal 
)

Definition at line 183 of file list.cpp.

void GUI::ListWidget::checkBounds (  )  [protected]

Definition at line 561 of file list.cpp.

bool GUI::ListWidget::containsWidget ( Widget w  )  const [virtual]

Definition at line 98 of file list.cpp.

void GUI::ListWidget::drawWidget (  )  [protected]

Definition at line 493 of file list.cpp.

void GUI::ListWidget::enableQuickSelect ( bool  enable  )  [inline]

Definition at line 111 of file list.h.

void GUI::ListWidget::endEditMode (  )  [virtual]

Implements GUI::EditableWidget.

Definition at line 613 of file list.cpp.

int GUI::ListWidget::findItem ( int  x,
int  y 
) const [protected]

Finds the item at position (x,y). Returns -1 if there is no item there.

Definition at line 266 of file list.cpp.

Widget * GUI::ListWidget::findWidget ( int  x,
int  y 
) [virtual]

Definition at line 104 of file list.cpp.

int GUI::ListWidget::getCurrentScrollPos (  )  const [inline]

Definition at line 109 of file list.h.

Common::Rect GUI::ListWidget::getEditRect (  )  const [protected, virtual]

The area where text input is being made.

This should exactly match the rect with which the actual edit string is drawn otherwise nasty graphics glitches when redrawing the caret can occur.

Implements GUI::EditableWidget.

Definition at line 545 of file list.cpp.

const StringArray& GUI::ListWidget::getList (  )  const [inline]

Definition at line 95 of file list.h.

String GUI::ListWidget::getQuickSelectString (  )  const [inline]

Definition at line 112 of file list.h.

int GUI::ListWidget::getSelected (  )  const [inline]

Definition at line 100 of file list.h.

const String& GUI::ListWidget::getSelectedString (  )  const [inline]

Definition at line 102 of file list.h.

ThemeEngine::FontColor GUI::ListWidget::getSelectionColor (  )  const

Definition at line 146 of file list.cpp.

void GUI::ListWidget::handleCommand ( CommandSender sender,
uint32  cmd,
uint32  data 
) [virtual]

Definition at line 477 of file list.cpp.

bool GUI::ListWidget::handleKeyDown ( Common::KeyState  state  )  [virtual]

Reimplemented from GUI::EditableWidget.

Definition at line 287 of file list.cpp.

bool GUI::ListWidget::handleKeyUp ( Common::KeyState  state  )  [virtual]

Definition at line 454 of file list.cpp.

void GUI::ListWidget::handleMouseDown ( int  x,
int  y,
int  button,
int  clickCount 
) [virtual]

Definition at line 231 of file list.cpp.

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

Definition at line 252 of file list.cpp.

void GUI::ListWidget::handleMouseWheel ( int  x,
int  y,
int  direction 
) [virtual]

Definition at line 261 of file list.cpp.

void GUI::ListWidget::handleTickle (  )  [virtual]

Reimplemented from GUI::EditableWidget.

Definition at line 225 of file list.cpp.

bool GUI::ListWidget::isEditable (  )  const [inline]

Definition at line 114 of file list.h.

void GUI::ListWidget::lostFocusWidget (  )  [protected]

Definition at line 467 of file list.cpp.

void GUI::ListWidget::receivedFocusWidget (  )  [protected]

Definition at line 460 of file list.cpp.

void GUI::ListWidget::reflowLayout (  )  [virtual]

Reimplemented from GUI::EditableWidget.

Definition at line 632 of file list.cpp.

void GUI::ListWidget::scrollBarRecalc (  )  [protected]

Definition at line 218 of file list.cpp.

void GUI::ListWidget::scrollTo ( int  item  ) 

Definition at line 204 of file list.cpp.

void GUI::ListWidget::scrollToCurrent (  )  [protected]

Definition at line 568 of file list.cpp.

void GUI::ListWidget::scrollToEnd (  ) 

Definition at line 583 of file list.cpp.

void GUI::ListWidget::setEditable ( bool  editable  )  [inline]

Definition at line 115 of file list.h.

void GUI::ListWidget::setEditColor ( ThemeEngine::FontColor  color  )  [inline]

Definition at line 116 of file list.h.

void GUI::ListWidget::setFilter ( const String filter,
bool  redraw = true 
)

Definition at line 667 of file list.cpp.

void GUI::ListWidget::setList ( const StringArray list,
const ColorList colors = 0 
)

Definition at line 156 of file list.cpp.

void GUI::ListWidget::setNumberingMode ( NumberingMode  numberingMode  )  [inline]

Definition at line 105 of file list.h.

void GUI::ListWidget::setSelected ( int  item  ) 

Definition at line 111 of file list.cpp.

void GUI::ListWidget::startEditMode (  )  [virtual]

Implements GUI::EditableWidget.

Definition at line 595 of file list.cpp.

virtual bool GUI::ListWidget::wantsFocus (  )  [inline, virtual]

Definition at line 134 of file list.h.


Member Data Documentation

Definition at line 77 of file list.h.

Reimplemented from GUI::EditableWidget.

Definition at line 83 of file list.h.

Definition at line 67 of file list.h.

Definition at line 63 of file list.h.

Definition at line 57 of file list.h.

bool GUI::ListWidget::_editable [protected]

Definition at line 60 of file list.h.

Definition at line 85 of file list.h.

bool GUI::ListWidget::_editMode [protected]

Definition at line 61 of file list.h.

Definition at line 64 of file list.h.

Definition at line 80 of file list.h.

Definition at line 72 of file list.h.

Definition at line 73 of file list.h.

Definition at line 74 of file list.h.

Definition at line 56 of file list.h.

Definition at line 58 of file list.h.

Definition at line 59 of file list.h.

Definition at line 62 of file list.h.

Definition at line 81 of file list.h.

Definition at line 69 of file list.h.

Definition at line 70 of file list.h.

Definition at line 75 of file list.h.

Definition at line 66 of file list.h.

Definition at line 78 of file list.h.

Definition at line 65 of file list.h.

Definition at line 76 of file list.h.


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


Generated on Sat Sep 21 2019 05:03:57 for ResidualVM by doxygen 1.7.1
curved edge   curved edge