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

#include <albaGUIDictionaryWidget.h>

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

Public Member Functions

 albaGUIDictionaryWidget (wxWindow *parent, int id)
 
 ~albaGUIDictionaryWidget ()
 
void SetListener (albaObserver *Listener)
 
void OnEvent (albaEventBase *event)
 
void SetCloud (albaVME *vme)
 
void AddItem (wxString item)
 
int RemoveItem (long itemId)
 
int RemoveItem (albaString itemName)
 
int GetItemIndex (albaString itemName)
 
albaString GetItemByIndex (int index)
 
int UpdateItem (albaString oldItemName, albaString newItemName)
 
int SelectItem (albaString itemName, bool select=true)
 
int DeselectItem (albaString itemName)
 
int GetSize ()
 
void SetTitle (wxString title)
 
wxString ChooseItem ()
 
void LoadDictionary ()
 
void LoadDictionary (wxString file)
 
void InitDictionary (std::vector< wxString > *strVect)
 
wxWindow * GetWidget ()
 
const char * GetDictionaryFileName ()
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Member Functions

void ValidateAllItem (bool valid=true)
 

Protected Attributes

albaObserverm_Listener
 
wxString m_File
 
std::vector< albaStringm_Items
 
std::vector< bool > m_Selections
 
albaGUIListCtrlm_List
 
albaVMEm_Vme
 

Detailed Description

class name : albaGUIDictionaryWidget Widget that handle a dictionary object.

Definition at line 41 of file albaGUIDictionaryWidget.h.

Constructor & Destructor Documentation

◆ albaGUIDictionaryWidget()

albaGUIDictionaryWidget::albaGUIDictionaryWidget ( wxWindow *  parent,
int  id 
)

constructor

◆ ~albaGUIDictionaryWidget()

albaGUIDictionaryWidget::~albaGUIDictionaryWidget ( )

destructor

Member Function Documentation

◆ SetListener()

void albaGUIDictionaryWidget::SetListener ( albaObserver Listener)
inline

Set the listener of the events launched.

Definition at line 50 of file albaGUIDictionaryWidget.h.

◆ OnEvent()

void albaGUIDictionaryWidget::OnEvent ( albaEventBase event)
virtual

Answer to the messages coming from interface.

Implements albaObserver.

◆ SetCloud()

void albaGUIDictionaryWidget::SetCloud ( albaVME vme)

Set the reference cloud.

◆ AddItem()

void albaGUIDictionaryWidget::AddItem ( wxString  item)

◆ RemoveItem() [1/2]

int albaGUIDictionaryWidget::RemoveItem ( long  itemId)

◆ RemoveItem() [2/2]

int albaGUIDictionaryWidget::RemoveItem ( albaString  itemName)

◆ GetItemIndex()

int albaGUIDictionaryWidget::GetItemIndex ( albaString  itemName)

◆ GetItemByIndex()

albaString albaGUIDictionaryWidget::GetItemByIndex ( int  index)

◆ UpdateItem()

int albaGUIDictionaryWidget::UpdateItem ( albaString  oldItemName,
albaString  newItemName 
)

◆ SelectItem()

int albaGUIDictionaryWidget::SelectItem ( albaString  itemName,
bool  select = true 
)

◆ DeselectItem()

int albaGUIDictionaryWidget::DeselectItem ( albaString  itemName)

◆ GetSize()

int albaGUIDictionaryWidget::GetSize ( )
inline

Definition at line 73 of file albaGUIDictionaryWidget.h.

◆ SetTitle()

void albaGUIDictionaryWidget::SetTitle ( wxString  title)
inline

Definition at line 75 of file albaGUIDictionaryWidget.h.

◆ ChooseItem()

wxString albaGUIDictionaryWidget::ChooseItem ( )

Return choosed item.

◆ LoadDictionary() [1/2]

void albaGUIDictionaryWidget::LoadDictionary ( )

Load dictionary opening file dialog.

◆ LoadDictionary() [2/2]

void albaGUIDictionaryWidget::LoadDictionary ( wxString  file)

Load dictionary from file.

◆ InitDictionary()

void albaGUIDictionaryWidget::InitDictionary ( std::vector< wxString > *  strVect)

◆ GetWidget()

wxWindow * albaGUIDictionaryWidget::GetWidget ( )
inline

Return dictionary GUI.

Definition at line 89 of file albaGUIDictionaryWidget.h.

◆ GetDictionaryFileName()

const char * albaGUIDictionaryWidget::GetDictionaryFileName ( )
inline

Return file name dictionary.

Definition at line 92 of file albaGUIDictionaryWidget.h.

◆ ValidateAllItem()

void albaGUIDictionaryWidget::ValidateAllItem ( bool  valid = true)
protected

Set the icon of all the items present into the cloud to red or gray according to valid.

Member Data Documentation

◆ m_Listener

albaObserver* albaGUIDictionaryWidget::m_Listener
protected

Definition at line 98 of file albaGUIDictionaryWidget.h.

◆ m_File

wxString albaGUIDictionaryWidget::m_File
protected

Definition at line 99 of file albaGUIDictionaryWidget.h.

◆ m_Items

std::vector<albaString> albaGUIDictionaryWidget::m_Items
protected

Definition at line 100 of file albaGUIDictionaryWidget.h.

◆ m_Selections

std::vector<bool> albaGUIDictionaryWidget::m_Selections
protected

Definition at line 101 of file albaGUIDictionaryWidget.h.

◆ m_List

albaGUIListCtrl* albaGUIDictionaryWidget::m_List
protected

Definition at line 102 of file albaGUIDictionaryWidget.h.

◆ m_Vme

albaVME* albaGUIDictionaryWidget::m_Vme
protected

Definition at line 103 of file albaGUIDictionaryWidget.h.


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