17#ifndef __albaGUICheckListBox_H__
18#define __albaGUICheckListBox_H__
34#define albaGUICheckListBox_ArraySize 4096
54 const wxPoint& pos = wxDefaultPosition,
55 const wxSize& size = wxDefaultSize,
56 long style = wxTAB_TRAVERSAL | wxCLIP_CHILDREN);
67 void AddItem(
int id, wxString label,
bool checked);
137 DECLARE_EVENT_TABLE()
#define albaGUICheckListBox_ArraySize
a CheckList that send albaEventNotification in the form albaEvent(this, widget_id,...
void SetItemLabel(int id, albaString label)
Set the item label.
void Select(int id)
Select the item.
void SetListener(albaObserver *listener)
virtual ~albaGUICheckListBox()
void OnSelect(wxCommandEvent &event)
Send an event to the listener to notify that an item has been selected.
wxCheckListBox * m_CheckListBox
void Clear()
Clear the checked listbox.
bool IsItemChecked(int id)
Return true if the item is checked.
albaString GetItemLabel(int id)
Get the item label.
void RemoveItem(int id)
Remove the item from the checked listbox.
int FindItem(wxString label)
Return the index of the item into the checked listbox, otherwise -1 if the item is not present.
void CheckItem(int id, bool check)
Check/Uncheck the item into the checked listbox.
void SetCheckEvent(bool enable)
Set Flag used to distinguish between Check item and Select item event.
void SetCheckModeToCheck()
Set the check mode of the checked listbox to be MODE_CHECK.
bool m_CheckEvent
Flag used to distinguish between Check item and Select item event.
void AddItem(int id, wxString label)
Add the item to the checked listbox.
void OnCheck(wxCommandEvent &event)
Send an event to the listener to notify that an item has been checked.
albaGUICheckListBox(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxCLIP_CHILDREN)
void AddItem(int id, wxString label, bool checked)
Add the item to the checked listbox and allow to check it.
int GetNumberOfItems()
Return the number of inserted items.
albaObserver * m_Listener
bool IsCheckEvent()
Return true if the event raised is coming from a check/uncheck item.
int FindItemIndex(int id)
Return the index of the item into the array, otherwise -1 if the item is not present.
void SetCheckMode(int mode)
Set the check mode of the checked listbox to be MODE_RADIO or MODE_CHECK.
void OnSize(wxSizeEvent &event)
Resize the checked listbox according to the new parent panel size.
void SetCheckModeToRadio()
Set the check mode of the checked listbox to be MODE_RADIO.
void HighlightItem(int index, int rgbText[3], int rgbBack[3])
Highlight Item.
int GetSelection()
Get the selected item.
class name: albaGUIPanel Inherits directly from wxPanel and adds the pointer to the next panel
Interface implementing the Observer of the Subject/Observer design pattern.
albaString - performs common string operations on c-strings.