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

CFuiList Class Reference

#include <Fui.h>

Inheritance diagram for CFuiList:

CFuiComponent CStreamObject CObject List of all members.

Public Member Functions

 CFuiList (int x=0, int y=0, int w=0, int h=0, Tag window=0)
virtual int Read (SStream *stream, Tag tag)
virtual void ReadFinished (void)
void Draw (void)
void SetParentPosition (int xParent, int yParent)
void ScrollToRow (unsigned int row)
void ScrollToColumn (unsigned int column)
unsigned int GetRowCount (void)
unsigned int GetColumnCount (void)
void AddColumn (unsigned int width, char *title)
void DeleteColumn (unsigned int column)
void DeleteAllColumns (void)
void SetColumnWidth (unsigned int column, unsigned int width)
void AddRow (unsigned int height)
void DeleteRow (unsigned int row)
void DeleteAllRows (void)
unsigned int CountSelectedRows (void)
unsigned int GetSelectedRow (unsigned int index)
void SelectRow (unsigned int row)
void ClearSelection (void)
void SetCellText (unsigned int row, unsigned int column, char *text)
void SetCellIcon (unsigned int row, unsigned int column, char *filename)
void ClearCellText (unsigned int row, unsigned int column)
void ClearCellIcon (unsigned int row, unsigned int column)
void GetCellText (unsigned int row, unsigned int column, char *outtext)

Protected Attributes

int utit
 Use title?
int usrr
int multiselect
 Allow multiple selections.
int vscroll
 Use vertical scrollbar.
int hscroll
 Use horizontal scrollbar.
int dwidth
 Width.
int dheight
 Height.
int autowidth
 Autowidth.
bool noBackground
 Don't draw background.
SBitmapbmBack
SBitmapbmTop
SBitmapbmBottom
SBitmapbmLeft
SBitmapbmRight
SBitmapbmTopLeft
SBitmapbmTopRight
SBitmapbmBottomLeft
SBitmapbmBottomRight
SBitmapbmHighlight
unsigned int colText
unsigned int colTextHighlight
unsigned int colHighlight
std::list< CFuiComponent * > decorationList
 List of decoration components.
unsigned int nRows
std::vector< CFuiListColumncols
unsigned int scrollRow
unsigned int scrollCol

Detailed Description

Definition at line 917 of file Fui.h.


Constructor & Destructor Documentation

CFuiList::CFuiList int  x = 0,
int  y = 0,
int  w = 0,
int  h = 0,
Tag  window = 0
 

Definition at line 3058 of file Fui.cpp.

References COMPONENT_LIST, and MakeRGB().


Member Function Documentation

void CFuiList::AddColumn unsigned int  width,
char *  title
 

Definition at line 3329 of file Fui.cpp.

Referenced by CFuiManager::AddListColumn().

void CFuiList::AddRow unsigned int  height  ) 
 

Definition at line 3363 of file Fui.cpp.

References nRows, and CFuiListRow::SetHeight().

Referenced by CFuiManager::AddListRow().

void CFuiList::ClearCellIcon unsigned int  row,
unsigned int  column
 

Definition at line 3442 of file Fui.cpp.

Referenced by CFuiManager::ClearListCellIcon().

void CFuiList::ClearCellText unsigned int  row,
unsigned int  column
 

Definition at line 3437 of file Fui.cpp.

Referenced by CFuiManager::ClearListCellText().

void CFuiList::ClearSelection void   ) 
 

Definition at line 3416 of file Fui.cpp.

Referenced by CFuiManager::ClearListSelection().

unsigned int CFuiList::CountSelectedRows void   ) 
 

Definition at line 3393 of file Fui.cpp.

Referenced by CFuiManager::CountListSelectedRows().

void CFuiList::DeleteAllColumns void   ) 
 

Definition at line 3350 of file Fui.cpp.

Referenced by CFuiManager::DeleteAllListColumns().

void CFuiList::DeleteAllRows void   ) 
 

Definition at line 3384 of file Fui.cpp.

Referenced by CFuiManager::DeleteAllListRows().

void CFuiList::DeleteColumn unsigned int  column  ) 
 

Definition at line 3337 of file Fui.cpp.

References cols.

Referenced by CFuiManager::DeleteListColumn().

void CFuiList::DeleteRow unsigned int  row  ) 
 

Definition at line 3375 of file Fui.cpp.

Referenced by CFuiManager::DeleteListRow().

void CFuiList::Draw void   )  [virtual]
 

Reimplemented from CFuiComponent.

Definition at line 3269 of file Fui.cpp.

References bmBack, DrawBitmap(), and CFuiComponent::surface.

void CFuiList::GetCellText unsigned int  row,
unsigned int  column,
char *  outtext
 

Definition at line 3447 of file Fui.cpp.

References CFuiListColumn::GetRow(), and CFuiListRow::GetText().

Referenced by CFuiManager::GetListCellText().

unsigned int CFuiList::GetColumnCount void   ) 
 

Definition at line 3324 of file Fui.cpp.

Referenced by CFuiManager::GetListColumnCount().

unsigned int CFuiList::GetRowCount void   ) 
 

Definition at line 3319 of file Fui.cpp.

Referenced by CFuiManager::GetListRowCount().

unsigned int CFuiList::GetSelectedRow unsigned int  index  ) 
 

Definition at line 3402 of file Fui.cpp.

Referenced by CFuiManager::GetListSelectedRow().

int CFuiList::Read SStream stream,
Tag  tag
[virtual]
 

Reimplemented from CFuiComponent.

Definition at line 3091 of file Fui.cpp.

References autowidth, dheight, dwidth, hscroll, multiselect, ReadInt(), TAG_READ, usrr, utit, and vscroll.

void CFuiList::ReadFinished void   )  [virtual]
 

Reimplemented from CFuiComponent.

Definition at line 3139 of file Fui.cpp.

References globals, SGlobals::logWarning, TagToString(), CFuiComponent::widgetTag, and CLogFile::Write().

void CFuiList::ScrollToColumn unsigned int  column  ) 
 

Definition at line 3314 of file Fui.cpp.

Referenced by CFuiManager::ScrollListToColumn().

void CFuiList::ScrollToRow unsigned int  row  ) 
 

Definition at line 3309 of file Fui.cpp.

Referenced by CFuiManager::ScrollListToRow().

void CFuiList::SelectRow unsigned int  row  ) 
 

Definition at line 3411 of file Fui.cpp.

Referenced by CFuiManager::SelectListRow().

void CFuiList::SetCellIcon unsigned int  row,
unsigned int  column,
char *  filename
 

Definition at line 3432 of file Fui.cpp.

Referenced by CFuiManager::SetListCellIcon().

void CFuiList::SetCellText unsigned int  row,
unsigned int  column,
char *  text
 

Definition at line 3421 of file Fui.cpp.

References CFuiListColumn::GetRow(), and CFuiListRow::SetText().

Referenced by CFuiManager::SetListCellText().

void CFuiList::SetColumnWidth unsigned int  column,
unsigned int  width
 

Definition at line 3356 of file Fui.cpp.

Referenced by CFuiManager::SetListColumnWidth().

void CFuiList::SetParentPosition int  xParent,
int  yParent
[virtual]
 

Reimplemented from CFuiComponent.

Definition at line 3258 of file Fui.cpp.

References CFuiComponent::x, and CFuiComponent::y.


Member Data Documentation

int CFuiList::autowidth [protected]
 

Definition at line 961 of file Fui.h.

Referenced by Read().

SBitmap* CFuiList::bmBack [protected]
 

Definition at line 964 of file Fui.h.

Referenced by Draw().

SBitmap* CFuiList::bmBottom [protected]
 

Definition at line 966 of file Fui.h.

SBitmap* CFuiList::bmBottomLeft [protected]
 

Definition at line 971 of file Fui.h.

SBitmap* CFuiList::bmBottomRight [protected]
 

Definition at line 972 of file Fui.h.

SBitmap* CFuiList::bmHighlight [protected]
 

Definition at line 973 of file Fui.h.

SBitmap* CFuiList::bmLeft [protected]
 

Definition at line 967 of file Fui.h.

SBitmap* CFuiList::bmRight [protected]
 

Definition at line 968 of file Fui.h.

SBitmap* CFuiList::bmTop [protected]
 

Definition at line 965 of file Fui.h.

SBitmap* CFuiList::bmTopLeft [protected]
 

Definition at line 969 of file Fui.h.

SBitmap* CFuiList::bmTopRight [protected]
 

Definition at line 970 of file Fui.h.

unsigned int CFuiList::colHighlight [protected]
 

Definition at line 977 of file Fui.h.

std::vector<CFuiListColumn> CFuiList::cols [protected]
 

Definition at line 981 of file Fui.h.

Referenced by DeleteColumn().

unsigned int CFuiList::colText [protected]
 

Definition at line 975 of file Fui.h.

unsigned int CFuiList::colTextHighlight [protected]
 

Definition at line 976 of file Fui.h.

std::list<CFuiComponent *> CFuiList::decorationList [protected]
 

Definition at line 979 of file Fui.h.

int CFuiList::dheight [protected]
 

Definition at line 960 of file Fui.h.

Referenced by Read().

int CFuiList::dwidth [protected]
 

Definition at line 959 of file Fui.h.

Referenced by Read().

int CFuiList::hscroll [protected]
 

Definition at line 958 of file Fui.h.

Referenced by Read().

int CFuiList::multiselect [protected]
 

Definition at line 956 of file Fui.h.

Referenced by Read().

bool CFuiList::noBackground [protected]
 

Definition at line 962 of file Fui.h.

unsigned int CFuiList::nRows [protected]
 

Definition at line 980 of file Fui.h.

Referenced by AddRow().

unsigned int CFuiList::scrollCol [protected]
 

Definition at line 984 of file Fui.h.

unsigned int CFuiList::scrollRow [protected]
 

Definition at line 983 of file Fui.h.

int CFuiList::usrr [protected]
 

Definition at line 955 of file Fui.h.

Referenced by Read().

int CFuiList::utit [protected]
 

Definition at line 954 of file Fui.h.

Referenced by Read().

int CFuiList::vscroll [protected]
 

Definition at line 957 of file Fui.h.

Referenced by Read().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen