SRGraphEditDialog Class

class SRGraphEditDialog: public CDialog

Part of Chart Explorer
The components and data lists in the current graph are displayed in an expandable tree diagram. When the user double-clicks a component, data list, or individual data item; a dialog (property sheet) is displayed that allows many properties of the selected item to be changed.
When the user right-clicks on an item, a popup menu appears that is specific to the item type. Components can be added or deleted, loaded or stored to disk, or reordered. Annotations can be added to data items.

Defined in: grpeddlg.h

Class Members

virtual void OnEditDataItem()

Displays the SRGraphComponentProperties dialog with pages appropriate for the type of the selected item

virtual void AddCustomComponent(int Selection)

Override this routine to add your own components

virtual void BuildTree()

Builds an expandable tree diagram showing the components and data in the current graph

enum ImageValues

Constructor

SRGTreeCtrl m_GraphTree

Tree diagram control

SRGraph * m_pGraph

Pointer to the graph being edited

HTREEITEM m_DataListItem

Data list item for tree diagram

HTREEITEM m_ComponentListItem

Component list item for tree diagram

HTREEITEM m_Root

Root item for tree diagram

CImageList m_ImageList

List of items in tree diagram

virtual BOOL OnInitDialog()

Initializes dialog -- builds tree diagram

afx_msg void OnDblclkTree1(NMHDR* pNMHDR, LRESULT* pResult)

Handles double-click on tree items -- displays editing dialog

afx_msg void OnRclickTree1(NMHDR* pNMHDR, LRESULT* pResult)

Handles right-click on tree items -- displays popup menu

afx_msg void OnLoadComponentList()

Displays file selection dialog and loads the graph from the file

afx_msg void OnSaveComponentList()

Saves a description of the graph in a disk file for reuse

afx_msg void OnDeleteComponent()

Deletes the selected component from the graph

afx_msg void OnEditComponentProperties()

Displays property editing dialog for the selected component

afx_msg void OnAddComponent()

Adds a new component to the graph

afx_msg void OnAddLabel()

Does nothing

afx_msg void OnAddannotation()

Adds an annotation to a data item, data list, or component

afx_msg void OnLabelAddannotation()

Calls OnAddannotation

afx_msg void OnIdBack1()

Moves the selected item back one step in the list order

afx_msg void OnIdForward1()

Moves the selected item forward one step in the list order

afx_msg void OnIdMovetotop()

Moves the selected item to the top of the list order

afx_msg void OnIdSendtoback()

Moves the selected item to the back of the list order