Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
CFindDlg Class Reference

#include <finddlg.h>

Inheritance diagram for CFindDlg:
Inheritance graph
Collaboration diagram for CFindDlg:
Collaboration graph

Public Types

enum  { IDD = IDD_FIND_FLOW }
 

Public Member Functions

 CFindDlg (Visio::IVApplicationPtr vsoApp)
 
LRESULT OnNMClickDrawing1 (int, LPNMHDR pNMHDR, BOOL &)
 
LRESULT OnNMClickDrawing2 (int, LPNMHDR pNMHDR, BOOL &)
 
LRESULT OnTreeViewClicked (CTreeViewCtrl &tree)
 
void updateInstancesNames ()
 
LRESULT OnTreeViewItemClicked (CTreeViewCtrl &tree, HTREEITEM item, UINT unFlags)
 
LRESULT processCheckBoxes (CTreeViewCtrl &tree, HTREEITEM item, bool multiSelect, bool reverted=false)
 
void processCheck (CTreeViewCtrl &tree, HTREEITEM item, BOOL newCheckState)
 
void setCheckBoxes (CTreeViewCtrl &tree, BOOL bCheck)
 

Public Attributes

CTreeViewCtrl m_drawing1
 
CTreeViewCtrl m_drawing2
 
std::vector< std::wstring > m_checkedInstancesNames
 
std::vector< Visio::IVPagePtr > m_pages1
 
Visio::IVPagePtr m_page2
 

Protected Member Functions

LRESULT OnInitDialog (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnAdvancedSwitch (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnCloseCmd (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
void setAdvancedVisibility (bool visible)
 
void InitializeTree (CTreeViewCtrl &tree, bool isPattern)
 
std::vector< Visio::IVPagePtr > GetTreeSelection (CTreeViewCtrl &tree)
 
std::vector< std::wstring > getCheckedInstances ()
 

Private Attributes

Visio::IVApplicationPtr m_vsoApp
 
CStatic m_advancedGroupBox
 
CButton m_advancedSwitchBtn
 
CListViewCtrl m_instancesList
 
bool m_advancedVisible
 
std::vector< Visio::IVPagePtr > m_pagesChecked
 

Detailed Description

Definition at line 27 of file finddlg.h.

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 

Definition at line 31 of file finddlg.h.

Constructor & Destructor Documentation

CFindDlg::CFindDlg ( Visio::IVApplicationPtr  vsoApp)

Definition at line 24 of file finddlg.cpp.

References m_advancedVisible, and m_vsoApp.

Member Function Documentation

std::vector< std::wstring > CFindDlg::getCheckedInstances ( )
protected

Definition at line 316 of file finddlg.cpp.

References m_instancesList.

Referenced by OnCloseCmd().

std::vector< Visio::IVPagePtr > CFindDlg::GetTreeSelection ( CTreeViewCtrl &  tree)
protected

Definition at line 103 of file finddlg.cpp.

References m_vsoApp.

Referenced by OnCloseCmd().

void CFindDlg::InitializeTree ( CTreeViewCtrl &  tree,
bool  isPattern 
)
protected

Definition at line 76 of file finddlg.cpp.

References DT_BMSC, DT_HMSC, get_drawing_type(), and m_vsoApp.

Referenced by OnInitDialog().

LRESULT CFindDlg::OnAdvancedSwitch ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL &  bHandled 
)
protected

Definition at line 243 of file finddlg.cpp.

References m_advancedVisible, and setAdvancedVisibility().

LRESULT CFindDlg::OnCloseCmd ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL &  bHandled 
)
protected
LRESULT CFindDlg::OnInitDialog ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL &  bHandled 
)
protected
LRESULT CFindDlg::OnNMClickDrawing1 ( int  ,
LPNMHDR  pNMHDR,
BOOL &   
)

Definition at line 130 of file finddlg.cpp.

References m_drawing1, and OnTreeViewClicked().

LRESULT CFindDlg::OnNMClickDrawing2 ( int  ,
LPNMHDR  pNMHDR,
BOOL &   
)

Definition at line 135 of file finddlg.cpp.

References m_drawing2, and OnTreeViewClicked().

LRESULT CFindDlg::OnTreeViewClicked ( CTreeViewCtrl &  tree)

Definition at line 140 of file finddlg.cpp.

References OnTreeViewItemClicked(), and updateInstancesNames().

Referenced by OnNMClickDrawing1(), and OnNMClickDrawing2().

LRESULT CFindDlg::OnTreeViewItemClicked ( CTreeViewCtrl &  tree,
HTREEITEM  item,
UINT  unFlags 
)

Definition at line 158 of file finddlg.cpp.

References m_drawing1, and processCheckBoxes().

Referenced by OnTreeViewClicked().

void CFindDlg::processCheck ( CTreeViewCtrl &  tree,
HTREEITEM  item,
BOOL  newCheckState 
)

Definition at line 271 of file finddlg.cpp.

References m_pagesChecked, m_vsoApp, and TRACE.

Referenced by processCheckBoxes(), and setCheckBoxes().

LRESULT CFindDlg::processCheckBoxes ( CTreeViewCtrl &  tree,
HTREEITEM  item,
bool  multiSelect,
bool  reverted = false 
)

Definition at line 191 of file finddlg.cpp.

References processCheck(), and setCheckBoxes().

Referenced by OnTreeViewItemClicked().

void CFindDlg::setAdvancedVisibility ( bool  visible)
protected

Definition at line 250 of file finddlg.cpp.

References m_advancedGroupBox, and m_advancedSwitchBtn.

Referenced by OnAdvancedSwitch(), and OnInitDialog().

void CFindDlg::setCheckBoxes ( CTreeViewCtrl &  tree,
BOOL  bCheck 
)

Definition at line 170 of file finddlg.cpp.

References processCheck().

Referenced by processCheckBoxes().

void CFindDlg::updateInstancesNames ( )

Definition at line 292 of file finddlg.cpp.

References get_shape_type(), m_instancesList, m_pagesChecked, and ST_BMSC_INSTANCE.

Referenced by OnTreeViewClicked().

Member Data Documentation

CStatic CFindDlg::m_advancedGroupBox
private

Definition at line 69 of file finddlg.h.

Referenced by setAdvancedVisibility().

CButton CFindDlg::m_advancedSwitchBtn
private

Definition at line 70 of file finddlg.h.

Referenced by setAdvancedVisibility().

bool CFindDlg::m_advancedVisible
private

Definition at line 72 of file finddlg.h.

Referenced by CFindDlg(), OnAdvancedSwitch(), and OnInitDialog().

std::vector<std::wstring> CFindDlg::m_checkedInstancesNames

Definition at line 36 of file finddlg.h.

Referenced by OnCloseCmd(), and CDocumentMonitor::OnMenuFindFlow().

CTreeViewCtrl CFindDlg::m_drawing1

Definition at line 32 of file finddlg.h.

Referenced by OnCloseCmd(), OnInitDialog(), OnNMClickDrawing1(), and OnTreeViewItemClicked().

CTreeViewCtrl CFindDlg::m_drawing2

Definition at line 33 of file finddlg.h.

Referenced by OnCloseCmd(), OnInitDialog(), and OnNMClickDrawing2().

CListViewCtrl CFindDlg::m_instancesList
private

Definition at line 71 of file finddlg.h.

Referenced by getCheckedInstances(), OnInitDialog(), and updateInstancesNames().

Visio::IVPagePtr CFindDlg::m_page2

Definition at line 38 of file finddlg.h.

Referenced by OnCloseCmd(), and CDocumentMonitor::OnMenuFindFlow().

std::vector<Visio::IVPagePtr> CFindDlg::m_pages1

Definition at line 37 of file finddlg.h.

Referenced by OnCloseCmd(), and CDocumentMonitor::OnMenuFindFlow().

std::vector<Visio::IVPagePtr> CFindDlg::m_pagesChecked
private

Definition at line 73 of file finddlg.h.

Referenced by processCheck(), and updateInstancesNames().

Visio::IVApplicationPtr CFindDlg::m_vsoApp
private

Definition at line 67 of file finddlg.h.

Referenced by CFindDlg(), GetTreeSelection(), InitializeTree(), and processCheck().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:57 for Sequence Chart Studio by  doxygen