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=nullptr, uint32 cmd=0)
 ListWidget (Dialog *boss, int x, int y, int w, int h, const char *tooltip=nullptr, uint32 cmd=0)
bool containsWidget (Widget *) const override
WidgetfindWidget (int x, int y) override
void setList (const StringArray &list, const ColorList *colors=nullptr)
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
void enableDictionarySelect (bool enable)
bool isEditable () const
void setEditable (bool editable)
void setEditColor (ThemeEngine::FontColor color)
void startEditMode () override
void endEditMode () override
void setFilter (const String &filter, bool redraw=true)
void handleTickle () override
void handleMouseDown (int x, int y, int button, int clickCount) override
void handleMouseUp (int x, int y, int button, int clickCount) override
void handleMouseWheel (int x, int y, int direction) override
void handleMouseMoved (int x, int y, int button) override
void handleMouseLeft (int button) override
bool handleKeyDown (Common::KeyState state) override
bool handleKeyUp (Common::KeyState state) override
void handleCommand (CommandSender *sender, uint32 cmd, uint32 data) override
void reflowLayout () override
bool wantsFocus () override

Protected Member Functions

void drawWidget () override
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 () override
Common::Rect getEditRect () const override
 The area where text input is being made.
void receivedFocusWidget () override
void lostFocusWidget () override
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
bool _dictionarySelect
uint32 _cmd
ThemeEngine::FontColor _editColor
int _lastRead

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 = nullptr,
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 = nullptr,
uint32  cmd = 0 
)

Definition at line 73 of file list.cpp.


Member Function Documentation

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

Implements GUI::EditableWidget.

Definition at line 689 of file list.cpp.

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

Definition at line 195 of file list.cpp.

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

Definition at line 627 of file list.cpp.

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

Definition at line 110 of file list.cpp.

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

Definition at line 536 of file list.cpp.

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

Definition at line 117 of file list.h.

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

Definition at line 114 of file list.h.

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

Implements GUI::EditableWidget.

Definition at line 679 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 303 of file list.cpp.

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

Definition at line 116 of file list.cpp.

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

Definition at line 112 of file list.h.

Common::Rect GUI::ListWidget::getEditRect (  )  const [override, 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 611 of file list.cpp.

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

Definition at line 98 of file list.h.

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

Definition at line 115 of file list.h.

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

Definition at line 103 of file list.h.

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

Definition at line 105 of file list.h.

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

Definition at line 158 of file list.cpp.

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

Definition at line 518 of file list.cpp.

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

Reimplemented from GUI::EditableWidget.

Definition at line 328 of file list.cpp.

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

Definition at line 495 of file list.cpp.

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

Definition at line 243 of file list.cpp.

void GUI::ListWidget::handleMouseLeft ( int  button  )  [override]

Definition at line 298 of file list.cpp.

void GUI::ListWidget::handleMouseMoved ( int  x,
int  y,
int  button 
) [override]

Definition at line 277 of file list.cpp.

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

Definition at line 264 of file list.cpp.

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

Definition at line 273 of file list.cpp.

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

Reimplemented from GUI::EditableWidget.

Definition at line 237 of file list.cpp.

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

Definition at line 119 of file list.h.

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

Definition at line 508 of file list.cpp.

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

Definition at line 501 of file list.cpp.

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

Reimplemented from GUI::EditableWidget.

Definition at line 698 of file list.cpp.

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

Definition at line 230 of file list.cpp.

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

Definition at line 216 of file list.cpp.

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

Definition at line 634 of file list.cpp.

void GUI::ListWidget::scrollToEnd (  ) 

Definition at line 649 of file list.cpp.

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

Definition at line 120 of file list.h.

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

Definition at line 121 of file list.h.

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

Definition at line 733 of file list.cpp.

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

Definition at line 168 of file list.cpp.

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

Definition at line 108 of file list.h.

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

Definition at line 123 of file list.cpp.

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

Implements GUI::EditableWidget.

Definition at line 661 of file list.cpp.

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

Definition at line 141 of file list.h.


Member Data Documentation

Definition at line 77 of file list.h.

Reimplemented from GUI::EditableWidget.

Definition at line 84 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.

Definition at line 82 of file list.h.

bool GUI::ListWidget::_editable [protected]

Definition at line 60 of file list.h.

Definition at line 86 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.

int GUI::ListWidget::_lastRead [protected]

Definition at line 88 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 Aug 1 2020 05:04:04 for ResidualVM by doxygen 1.7.1
curved edge   curved edge