My Project
SallyAPI::GUI::CListViewExt Class Reference

List view ext. More...

#include <ListViewExt.h>

Inheritance diagram for SallyAPI::GUI::CListViewExt:
SallyAPI::GUI::CForm SallyAPI::GUI::CControl SallyAPI::GUI::CGUIBaseObject SallyAPI::Core::CBaseObject

List of all members.

Public Member Functions

 CListViewExt (SallyAPI::GUI::CGUIBaseObject *parent, int x, int y, int width, int height, int cols, std::map< int, int > widthList, int controlId=0)
 Constructor.
virtual ~CListViewExt ()
 Destructor.
virtual void Resize (int width, int height)
 Resizes.
int GetScrollbarPosition ()
 Gets the scroll bar position.
int GetMaxDisplayedElements ()
 Gets the maximum displayed elements.
int GetListSize ()
 Gets the list size.
void AddItem (SallyAPI::GUI::CListViewItem listItem, bool updateView=true)
 Adds an item to 'updateView'.
bool RemoveItem (int index)
 Removes the item described by index.
void UpdateView ()
 Updates this object.
void Clear ()
 Clears this object to its blank/initial state.
std::vector
< SallyAPI::GUI::CListViewItem * > * 
GetListItems ()
 Gets the list items.
SallyAPI::GUI::CListViewItemGetItem (int index)
 Gets the requested item by index.
void SetActive (int index)
 Sets an active.
int GetActive ()
 Gets the index of the active element.
int GetStartItem ()
 Gets the start item.
void SetStartItem (int startItem)
 Sets a start item.
void ShowScrollbarIfNotScrollable (bool value)
 Shows the scrollbar if not scrollable.
bool IsScrollbarVisibleIfNotScrollbable ()
 Query if this object is scrollbar visible if not scrollbable.
virtual void SetAlphaBlending (int alphaBlending)
 Sets an alpha blending.
virtual bool CheckProcessMouseUp (int x, int y)
 Check process mouse up.
virtual bool CheckProcessMouseDown (int x, int y)
 Check process mouse down.
virtual void Enable (bool enable)
 Enables.
virtual void Timer (float timeDelta)
 Timers.
virtual void SendMessageToChilds (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)
 Send message to childs.
virtual void SendMessageToParent (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)
 Send message to parent.

Protected Member Functions

void ResetListView ()
 Resets a list view.
int GetMaxItemStart ()
 Gets the maximum item start.
bool ResetBox2Object ()
 Resets a box 2 object.
void OnCommandScrollbarMoved (SallyAPI::GUI::CGUIBaseObject *reporter, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter)
 Executes the command scrollbar moved action.
void OnCommandDoubleclicked (int reporterId)
 Executes the command doubleclicked action.
void OnCommandMouseMove (SallyAPI::GUI::SendMessage::CParameterBase *messageParameter)
 Executes the command mouse move action.
void OnCommandSorting (SallyAPI::GUI::SendMessage::CParameterBase *messageParameter)
 Executes the command sorting action.
void OnCommandStartDragging (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter)
 Executes the command start dragging action.
void OnCommandItemHoldClicked (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter)
 Executes the command item hold clicked action.
virtual void AddChild (SallyAPI::GUI::CControl *control)
 Adds a child.

Protected Attributes

std::vector
< SallyAPI::GUI::CListViewItem * > 
m_vItems
SallyAPI::GUI::CScrollbarm_pScrollbar
std::map< int, std::map< int,
SallyAPI::GUI::CListViewButton * > > 
m_mButton
int m_iStartItem
int m_iCols
int m_iRows
int m_iActive
b2World * m_pb2World
CBox2DObjectm_pb2Object
b2Body * m_pb2LeftBody
b2Body * m_pb2RightBody
int m_iOldPositionX
int m_iOldPositionY
std::map< int, int > m_mWidthList
bool m_bSorting
int m_iSortingMove
int m_iSortingControl

Detailed Description

List view ext.

Author:
Christian Knobloch
Date:
26.04.2010

Constructor & Destructor Documentation

CListViewExt::CListViewExt ( SallyAPI::GUI::CGUIBaseObject parent,
int  x,
int  y,
int  width,
int  height,
int  cols,
std::map< int, int >  widthList,
int  controlId = 0 
)

Constructor.

m_iStartItem(0), m_iCols(cols), m_iActive(-1), m_iOldPositionX(0), m_iOldPositionY(0)

Author:
Christian Knobloch
Date:
29.11.2010
Parameters:
[in,out]parentIf non-null, the parent.
xThe x coordinate.
yThe y coordinate.
widthThe width.
heightThe height.
colsThe cols.
widthListList of widthes.
controlIdIdentifier for the control.

Destructor.

Author:
Christian Knobloch
Date:
23.11.2010

Member Function Documentation

void CListViewExt::AddChild ( SallyAPI::GUI::CControl control) [protected, virtual]

Adds a child.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
[in,out]controlIf non-null, the control.

Reimplemented from SallyAPI::GUI::CForm.

void CListViewExt::AddItem ( SallyAPI::GUI::CListViewItem  listItem,
bool  updateView = true 
)

Adds an item to 'updateView'.

Author:
Christian Knobloch
Date:
25.06.2011
Parameters:
listItemThe list item.
updateViewtrue to update view.
bool CListViewExt::CheckProcessMouseDown ( int  x,
int  y 
) [virtual]

Check process mouse down.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if it succeeds, false if it fails.

Reimplemented from SallyAPI::GUI::CControl.

bool CListViewExt::CheckProcessMouseUp ( int  x,
int  y 
) [virtual]

Check process mouse up.

Author:
Christian Knobloch
Date:
29.11.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if it succeeds, false if it fails.

Reimplemented from SallyAPI::GUI::CControl.

Clears this object to its blank/initial state.

Author:
Christian Knobloch
Date:
23.11.2010
void CListViewExt::Enable ( bool  enable) [virtual]

Enables.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
enabletrue to enable, false to disable.

Reimplemented from SallyAPI::GUI::CControl.

Gets the index of the active element.

Author:
Christian Knobloch
Date:
23.11.2010
Returns:
The active.

Gets the requested item by index.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
indexZero-based index of the.
Returns:
null if it fails, else the item.

Gets the list items.

Author:
Christian Knobloch
Date:
23.11.2010
Returns:
null if it fails, else the list items.

Gets the list size.

Author:
Christian Knobloch
Date:
23.11.2010
Returns:
The list size.

Gets the maximum displayed elements.

Author:
Christian Knobloch
Date:
23.11.2010
Returns:
The maximum displayed elements.
int CListViewExt::GetMaxItemStart ( ) [protected]

Gets the maximum item start.

Author:
Christian Knobloch
Date:
23.11.2010
Returns:
The maximum item start.

Gets the scroll bar position.

Author:
Christian Knobloch
Date:
21.12.2011
Returns:
The scroll bar position.

Gets the start item.

Author:
Christian Knobloch
Date:
23.11.2010
Returns:
The start item.

Query if this object is scrollbar visible if not scrollbable.

Author:
Christian Knobloch
Date:
27.04.2010
Returns:
true if scrollbar visible if not scrollbable, false if not.
void CListViewExt::OnCommandDoubleclicked ( int  reporterId) [protected]

Executes the command doubleclicked action.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
reporterIdIdentifier for the reporter.
void CListViewExt::OnCommandItemHoldClicked ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter 
) [protected]

Executes the command item hold clicked action.

Author:
Christian Knobloch
Date:
24.06.2011
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
[in,out]messageParameterIf non-null, the message parameter.

Executes the command mouse move action.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
[in,out]messageParameterIf non-null, the message parameter.

Executes the command scrollbar moved action.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
[in,out]reporterIf non-null, the reporter.
[in,out]messageParameterIf non-null, the message parameter.

Executes the command sorting action.

Author:
Christian Knobloch
Date:
06.06.2011
Parameters:
[in,out]messageParameterIf non-null, the message parameter.
void CListViewExt::OnCommandStartDragging ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter 
) [protected]

Executes the command start dragging action.

Author:
Christian Knobloch
Date:
14.06.2011
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
[in,out]messageParameterIf non-null, the message parameter.
bool CListViewExt::RemoveItem ( int  index)

Removes the item described by index.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
indexZero-based index of the.
Returns:
true if it succeeds, false if it fails.
bool CListViewExt::ResetBox2Object ( ) [protected]

Resets a box 2 object.

Author:
Christian Knobloch
Date:
23.11.2010
Returns:
true if it succeeds, false if it fails.
void CListViewExt::ResetListView ( ) [protected]

Resets a list view.

Author:
Christian Knobloch
Date:
23.11.2010
void CListViewExt::Resize ( int  width,
int  height 
) [virtual]

Resizes.

Author:
Christian Knobloch
Date:
29.11.2010
Parameters:
widthThe width.
heightThe height.

Reimplemented from SallyAPI::GUI::CControl.

void CListViewExt::SendMessageToChilds ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
int  messageId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter = NULL 
) [virtual]

Send message to childs.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
messageIdIdentifier for the message.
[in,out]messageParameterIf non-null, the message parameter.

Reimplemented from SallyAPI::GUI::CForm.

void CListViewExt::SendMessageToParent ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
int  messageId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter = NULL 
) [virtual]

Send message to parent.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
messageIdIdentifier for the message.
[in,out]messageParameterIf non-null, the message parameter.

Reimplemented from SallyAPI::GUI::CForm.

void CListViewExt::SetActive ( int  index)

Sets an active.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
indexZero-based index of the.
void CListViewExt::SetAlphaBlending ( int  alphaBlending) [virtual]

Sets an alpha blending.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
alphaBlendingThe alpha blending.

Reimplemented from SallyAPI::GUI::CForm.

void CListViewExt::SetStartItem ( int  startItem)

Sets a start item.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
startItemThe start item.

Shows the scrollbar if not scrollable.

Author:
Christian Knobloch
Date:
27.04.2010
Parameters:
valuetrue to value.
void CListViewExt::Timer ( float  timeDelta) [virtual]

Timers.

Author:
Christian Knobloch
Date:
23.11.2010
Parameters:
timeDeltaThe time delta.

Reimplemented from SallyAPI::GUI::CForm.

Updates this object.

Author:
Christian Knobloch
Date:
23.11.2010

Member Data Documentation

std::map<int, std::map<int, SallyAPI::GUI::CListViewButton*> > SallyAPI::GUI::CListViewExt::m_mButton [protected]
std::map<int, int> SallyAPI::GUI::CListViewExt::m_mWidthList [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines