ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaGUIListCtrlBitmap Class Reference

#include <albaGUIListCtrlBitmap.h>

Inheritance diagram for albaGUIListCtrlBitmap:
Inheritance graph
[legend]
Collaboration diagram for albaGUIListCtrlBitmap:
Collaboration graph
[legend]

Public Member Functions

 albaGUIListCtrlBitmap (wxWindow *parent, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false)
 
virtual ~albaGUIListCtrlBitmap ()
 
void SetListener (albaObserver *listener)
 
void Reset ()
 
bool AddItem (long item_id, wxString label, wxBitmap *bmp=NULL)
 
bool DeleteItem (long item_id)
 
bool SetItemLabel (long item_id, wxString label)
 
wxString GetItemLabel (long item_id)
 
bool SetItemIcon (long item_id, wxBitmap *bmp)
 
ITEM_ICONS GetItemIcon (long item_id)
 
bool SelectItem (long item_id)
 
void SetColumnLabel (int col, wxString label)
 
- Public Member Functions inherited from albaGUINamedPanel
 albaGUINamedPanel (wxWindow *parent, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false)
 
virtual ~albaGUINamedPanel ()
 
void Add (wxWindow *window, int option=0, int flag=wxEXPAND, int border=0)
 
void Add (wxSizer *sizer, int option=0, int flag=wxEXPAND, int border=0)
 
bool Remove (wxWindow *window)
 
bool Remove (wxSizer *sizer)
 
void SetTitle (wxString label)
 
void SetTitleColor (wxColour *color=NULL)
 
wxBoxSizer * GetTopSizer ()
 
wxPanel * GetTopPanel ()
 
- Public Member Functions inherited from albaGUIPanel
 albaGUIPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
 

Protected Member Functions

void OnSelectionChanged (wxListEvent &event)
 

Protected Attributes

bool m_PreventNotify
 
wxListCtrl * m_List
 
wxImageList * m_Images
 
albaObserverm_Listener
 
- Protected Attributes inherited from albaGUINamedPanel
wxPanel * m_Top
 
albaGUILabm_Label
 
wxBoxSizer * m_Sizer
 
wxBoxSizer * m_TopSizer
 
albaGUINamedPanelm_NextPanel
 
wxColour m_Color
 

Additional Inherited Members

- Public Attributes inherited from albaGUIPanel
albaGUIPanelm_NextPanel
 

Detailed Description

albaGUIListCtrlBitmap allows a simplified use of a wxWindows ListCtrl widget.

Definition at line 52 of file albaGUIListCtrlBitmap.h.

Constructor & Destructor Documentation

◆ albaGUIListCtrlBitmap()

albaGUIListCtrlBitmap::albaGUIListCtrlBitmap ( wxWindow *  parent,
wxWindowID  id = -1,
bool  CloseButton = false,
bool  HideTitle = false 
)

◆ ~albaGUIListCtrlBitmap()

virtual albaGUIListCtrlBitmap::~albaGUIListCtrlBitmap ( )
virtual

Member Function Documentation

◆ SetListener()

void albaGUIListCtrlBitmap::SetListener ( albaObserver listener)
inline

Definition at line 58 of file albaGUIListCtrlBitmap.h.

References m_Listener.

◆ Reset()

void albaGUIListCtrlBitmap::Reset ( )

Clear the control list.

◆ AddItem()

bool albaGUIListCtrlBitmap::AddItem ( long  item_id,
wxString  label,
wxBitmap *  bmp = NULL 
)

Add one item to the list.

◆ DeleteItem()

bool albaGUIListCtrlBitmap::DeleteItem ( long  item_id)

Remove the item from the list.

◆ SetItemLabel()

bool albaGUIListCtrlBitmap::SetItemLabel ( long  item_id,
wxString  label 
)

Set the item's label.

◆ GetItemLabel()

wxString albaGUIListCtrlBitmap::GetItemLabel ( long  item_id)

Get the item's label.

◆ SetItemIcon()

bool albaGUIListCtrlBitmap::SetItemIcon ( long  item_id,
wxBitmap *  bmp 
)

Set the item's icon, return true on success.

◆ GetItemIcon()

ITEM_ICONS albaGUIListCtrlBitmap::GetItemIcon ( long  item_id)

Get the item's icon.

◆ SelectItem()

bool albaGUIListCtrlBitmap::SelectItem ( long  item_id)

Select the item 'id'.

◆ SetColumnLabel()

void albaGUIListCtrlBitmap::SetColumnLabel ( int  col,
wxString  label 
)

Set the label for the list's column.

◆ OnSelectionChanged()

void albaGUIListCtrlBitmap::OnSelectionChanged ( wxListEvent &  event)
protected

Notify the Listener of item selection and deselection.

Member Data Documentation

◆ m_PreventNotify

bool albaGUIListCtrlBitmap::m_PreventNotify
protected

Definition at line 91 of file albaGUIListCtrlBitmap.h.

◆ m_List

wxListCtrl* albaGUIListCtrlBitmap::m_List
protected

Definition at line 92 of file albaGUIListCtrlBitmap.h.

◆ m_Images

wxImageList* albaGUIListCtrlBitmap::m_Images
protected

Definition at line 93 of file albaGUIListCtrlBitmap.h.

◆ m_Listener

albaObserver* albaGUIListCtrlBitmap::m_Listener
protected

Definition at line 94 of file albaGUIListCtrlBitmap.h.

Referenced by SetListener().


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