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

#include <albaGUIListBox.h>

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

Public Member Functions

 albaGUIListBox (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxCLIP_CHILDREN)
 
virtual ~albaGUIListBox ()
 
void Clear ()
 
void AddItem (wxString label, bool checked=false)
 
void RemoveItem (long id)
 
bool IsChecked ()
 
void CheckItem (long id)
 
void CheckSelectedItem ()
 
void SetItemLabel (long id, wxString label)
 
void SetItemLabel (wxString label)
 
wxString GetStringSelection ()
 
int GetNumberOfItems ()
 
void SetListener (albaObserver *listener)
 
void Select (int id)
 
- 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")
 

Public Attributes

wxListBox * m_ListBox
 
- Public Attributes inherited from albaGUIPanel
albaGUIPanelm_NextPanel
 

Protected Member Functions

void OnSelect (wxCommandEvent &event)
 
void OnSize (wxSizeEvent &event)
 

Protected Attributes

wxString m_ItemSelected
 
albaObserverm_Listener
 
bool m_PreventNotify
 

Detailed Description

a ListBox that send albaEventNotification in the form albaEvent(this, widget_id, item_id, checked)

Definition at line 35 of file albaGUIListBox.h.

Constructor & Destructor Documentation

◆ albaGUIListBox()

albaGUIListBox::albaGUIListBox ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL|wxCLIP_CHILDREN 
)

◆ ~albaGUIListBox()

virtual albaGUIListBox::~albaGUIListBox ( )
virtual

Member Function Documentation

◆ Clear()

void albaGUIListBox::Clear ( )

◆ AddItem()

void albaGUIListBox::AddItem ( wxString  label,
bool  checked = false 
)

◆ RemoveItem()

void albaGUIListBox::RemoveItem ( long  id)

◆ IsChecked()

bool albaGUIListBox::IsChecked ( )

◆ CheckItem()

void albaGUIListBox::CheckItem ( long  id)

◆ CheckSelectedItem()

void albaGUIListBox::CheckSelectedItem ( )

◆ SetItemLabel() [1/2]

void albaGUIListBox::SetItemLabel ( long  id,
wxString  label 
)

◆ SetItemLabel() [2/2]

void albaGUIListBox::SetItemLabel ( wxString  label)

◆ GetStringSelection()

wxString albaGUIListBox::GetStringSelection ( )
inline

Definition at line 54 of file albaGUIListBox.h.

References m_ListBox.

◆ GetNumberOfItems()

int albaGUIListBox::GetNumberOfItems ( )
inline

Definition at line 55 of file albaGUIListBox.h.

References m_ListBox.

◆ SetListener()

void albaGUIListBox::SetListener ( albaObserver listener)
inline

Definition at line 56 of file albaGUIListBox.h.

References m_Listener.

◆ Select()

void albaGUIListBox::Select ( int  id)

◆ OnSelect()

void albaGUIListBox::OnSelect ( wxCommandEvent &  event)
protected

◆ OnSize()

void albaGUIListBox::OnSize ( wxSizeEvent &  event)
protected

Member Data Documentation

◆ m_ListBox

wxListBox* albaGUIListBox::m_ListBox

Definition at line 59 of file albaGUIListBox.h.

Referenced by GetNumberOfItems(), and GetStringSelection().

◆ m_ItemSelected

wxString albaGUIListBox::m_ItemSelected
protected

Definition at line 65 of file albaGUIListBox.h.

◆ m_Listener

albaObserver* albaGUIListBox::m_Listener
protected

Definition at line 66 of file albaGUIListBox.h.

Referenced by SetListener().

◆ m_PreventNotify

bool albaGUIListBox::m_PreventNotify
protected

Definition at line 67 of file albaGUIListBox.h.


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