16#ifndef __albaGUIListCtrl_H__
17#define __albaGUIListCtrl_H__
23#include <wx/imaglist.h>
24#include <wx/listctrl.h>
51 albaGUIListCtrl (wxWindow* parent, wxWindowID
id=-1,
bool CloseButton =
false,
bool HideTitle =
false);
ITEM_ICONS
possible values for icon
ITEM_ICONS
possible values for icon
albaGUIListCtrl allows a simplified use of a wxWindows ListCtrl widget.
wxString GetItemLabel(long index)
Get the item's label.
bool AddItem(wxString label, ITEM_ICONS icon=ITEM_GRAY)
Add one item to the list.
ITEM_ICONS GetItemIcon(long index)
Get the item's icon.
bool DeleteItem(long index)
Remove the item from the list.
void SetListener(albaObserver *listener)
bool SetItemLabel(long index, wxString label)
Set the item's label.
void OnSelectionChanged(wxListEvent &event)
Notify the Listener of item selection and deselection.
albaGUIListCtrl(wxWindow *parent, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false)
void Reset()
Clear the control list.
bool SetItemIcon(long index, ITEM_ICONS icon)
Set the item's icon, return true on success.
void DeselectItem(long index)
Deselect an item from the list.
bool SelectItem(long index)
Select the item 'id'.
albaObserver * m_Listener
virtual ~albaGUIListCtrl()
void SetColumnLabel(int col, wxString label)
Set the label for the list's column.
Class Name: albaGUINamedPanel.
Interface implementing the Observer of the Subject/Observer design pattern.