16#ifndef __albaGUIDialogFindVme_H__
17#define __albaGUIDialogFindVme_H__
48 void MetchCase(
bool mc =
false) {m_MatchCase = mc;};
51 void WholeWord(
bool ww =
false) {m_WholeWord = ww;};
Implementation of the message object for the Subject/Observer design pattern.
class Name : albaGUICheckTree.
albaGUIDialogFindVme - a dialog widget with a find VME GUI.
std::vector< albaVME * > m_NodeFoundList
bool AlreadyFound(albaVME *n)
Check if a node has been found yet.
albaVME * FindInTreeByName(albaVME *node, const char *name, bool match_case=true, bool whole_word=true)
Find a node in all the subtrees matching the given VME Name.
albaGUIDialogFindVme(const wxString &title, long style=albaCLOSEWINDOW)
albaGUICheckTree * m_Tree
The VME tree.
int m_MatchCase
Enable the case sensitive search.
albaString m_SearchString
The string to find into the VME tree.
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
bool FindNextNode(const char *text)
Useful for initialize the search string or to use it by code.
void MetchCase(bool mc=false)
Set the flag for the case sensitive search.
void SetTree(albaGUICheckTree *tree)
Set the tree on which find the VME.
void WholeWord(bool ww=false)
Set the flag for searching node with the whole word matching.
albaGUI * m_Gui
Gui variable used to plug custom widgets.
virtual ~albaGUIDialogFindVme()
int m_WholeWord
Enable the find only for exact matching VME names.
albaGUIDialog is the base class for albaDialogs.
albaGUI is a panel with function to easily create GUI.
albaString - performs common string operations on c-strings.
albaVMERoot - a VME is the root of a tree of VME nodes.