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

#include <albaGUIDialogFindVme.h>

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

Public Member Functions

 albaGUIDialogFindVme (const wxString &title, long style=albaCLOSEWINDOW)
 
virtual ~albaGUIDialogFindVme ()
 
void OnEvent (albaEventBase *alba_event)
 
void SetTree (albaGUICheckTree *tree)
 
bool FindNextNode (const char *text)
 
void MetchCase (bool mc=false)
 
void WholeWord (bool ww=false)
 
- Public Member Functions inherited from albaGUIDialog
 albaGUIDialog (const wxString &title, long style=albaCLOSEWINDOW|albaRESIZABLE|albaCLOSE)
 
virtual ~albaGUIDialog ()
 
void SetListener (albaObserver *Listener)
 
void OnEvent (albaEventBase *alba_event)
 
void Add (wxWindow *window, int option=0, int flag=wxEXPAND, int border=0)
 
void Add (albaGUI *window, int option=0, int flag=wxEXPAND, int border=0)
 
void Add (wxSizer *sizer, int option=0, int flag=wxEXPAND, int border=0)
 
bool Remove (wxWindow *window)
 
bool Remove (wxSizer *sizer)
 
int ShowModal ()
 
void EnableOk (bool enable)
 
void EnableCancel (bool enable)
 
void EnableClose (bool enable)
 
virtual void WXSetInitialFittingClientSize (int flags, wxSizer *sizer=NULL)
 
virtual void OnOK (wxCommandEvent &event)
 
virtual void OnCancel (wxCommandEvent &event)
 
virtual void OnCloseWindow (wxCloseEvent &event)
 
virtual void OnSize (wxSizeEvent &event)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Member Functions

albaVMEFindInTreeByName (albaVME *node, const char *name, bool match_case=true, bool whole_word=true)
 
bool AlreadyFound (albaVME *n)
 

Protected Attributes

albaGUIm_Gui
 
albaString m_SearchString
 
int m_MatchCase
 
int m_WholeWord
 
albaGUICheckTreem_Tree
 
albaVMERootm_Root
 
std::vector< albaVME * > m_NodeFoundList
 

Additional Inherited Members

- Public Attributes inherited from albaGUIDialog
wxBoxSizer * m_GuiSizer
 
wxBoxSizer * m_ButtonsSizer
 
wxBoxSizer * m_DialogSizer
 
wxButton * m_OkButton
 
wxButton * m_CancelButton
 
wxButton * m_CloseButton
 
albaObserverm_Listener
 

Detailed Description

albaGUIDialogFindVme - a dialog widget with a find VME GUI.

See also
albaGUIDialog

Definition at line 33 of file albaGUIDialogFindVme.h.

Constructor & Destructor Documentation

◆ albaGUIDialogFindVme()

albaGUIDialogFindVme::albaGUIDialogFindVme ( const wxString &  title,
long  style = albaCLOSEWINDOW 
)

◆ ~albaGUIDialogFindVme()

virtual albaGUIDialogFindVme::~albaGUIDialogFindVme ( )
virtual

Member Function Documentation

◆ OnEvent()

void albaGUIDialogFindVme::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Reimplemented from albaGUIDialog.

◆ SetTree()

void albaGUIDialogFindVme::SetTree ( albaGUICheckTree tree)

Set the tree on which find the VME.

◆ FindNextNode()

bool albaGUIDialogFindVme::FindNextNode ( const char *  text)

Useful for initialize the search string or to use it by code.

◆ MetchCase()

void albaGUIDialogFindVme::MetchCase ( bool  mc = false)
inline

Set the flag for the case sensitive search.

Definition at line 48 of file albaGUIDialogFindVme.h.

◆ WholeWord()

void albaGUIDialogFindVme::WholeWord ( bool  ww = false)
inline

Set the flag for searching node with the whole word matching.

Definition at line 51 of file albaGUIDialogFindVme.h.

◆ FindInTreeByName()

albaVME * albaGUIDialogFindVme::FindInTreeByName ( albaVME node,
const char *  name,
bool  match_case = true,
bool  whole_word = true 
)
protected

Find a node in all the subtrees matching the given VME Name.

◆ AlreadyFound()

bool albaGUIDialogFindVme::AlreadyFound ( albaVME n)
protected

Check if a node has been found yet.

Member Data Documentation

◆ m_Gui

albaGUI* albaGUIDialogFindVme::m_Gui
protected

Gui variable used to plug custom widgets.

Definition at line 60 of file albaGUIDialogFindVme.h.

◆ m_SearchString

albaString albaGUIDialogFindVme::m_SearchString
protected

The string to find into the VME tree.

Definition at line 61 of file albaGUIDialogFindVme.h.

◆ m_MatchCase

int albaGUIDialogFindVme::m_MatchCase
protected

Enable the case sensitive search.

Definition at line 62 of file albaGUIDialogFindVme.h.

◆ m_WholeWord

int albaGUIDialogFindVme::m_WholeWord
protected

Enable the find only for exact matching VME names.

Definition at line 63 of file albaGUIDialogFindVme.h.

◆ m_Tree

albaGUICheckTree* albaGUIDialogFindVme::m_Tree
protected

The VME tree.

Definition at line 64 of file albaGUIDialogFindVme.h.

◆ m_Root

albaVMERoot* albaGUIDialogFindVme::m_Root
protected

Definition at line 65 of file albaGUIDialogFindVme.h.

◆ m_NodeFoundList

std::vector<albaVME*> albaGUIDialogFindVme::m_NodeFoundList
protected

Definition at line 66 of file albaGUIDialogFindVme.h.


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