Click here to Skip to main content
15,881,882 members
Articles / Mobile Apps

The StateWizard VC++ Add-in and Engine with Source Code

Rate me:
Please Sign up or sign in to vote.
4.73/5 (24 votes)
26 Mar 2009CPOL12 min read 190.1K   2.8K   132  
A cross-platform state-oriented application framework and a ClassWizard-like round-trip UML dynamic modeling/development tool that runs in popular IDEs. Aims at providing concurrent, distributed, and real-time application development tools for Win32/Linux
#pragma once


// AddEventDlg.h : header file


#include "resource.h"
#include "StateTreeCtrl.h"

/////////////////////////////////////////////////////////////////////////////
// CAddEventDlg dialog

class CAddEventDlg : public CDialog
{
	// Construction
public:
	CStateTreeCtrl* m_pStateTree;
	BOOL m_bIsInternalTransition;
	BOOL m_bIsEditEvent;
	CString m_sOrigEventID;
	CString m_sOrigTransStateName;
	CString m_sOrigActionName;
	CAddEventDlg(CWnd* pParent = NULL); 
	void UpdateOKBtnStatus();

//	CAddEventDlg(IApplication * pApp, CWnd* pParent = NULL);   // standard constructor
//	IApplication *m_pApplication;

	// Dialog Data
	//{{AFX_DATA(CAddEventDlg)
	enum { IDD = IDD_ADDEVENTBOX };
	CComboBox	m_stateListBox;
	CString	m_eventHdlName;
	CString	m_transitionStateName;
	CString	m_eventID;
	//}}AFX_DATA


	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAddEventDlg)
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

	// Implementation
protected:
	HTREEITEM IsUniqueEventID(LPCTSTR sEventID, HTREEITEM hParent );
	void AddStateEventHdler();

	// Generated message map functions
	//{{AFX_MSG(CAddEventDlg)
	virtual void OnOK();
	afx_msg void OnInternalTransationButton();
	afx_msg void OnTransactionStateButton();
	afx_msg void OnEventIDEditTextChange();
	virtual BOOL OnInitDialog();
	afx_msg void OnDestroy();
	afx_msg void OnActionCheck();
	afx_msg void OnEditchangeEventIdBox();
	afx_msg void OnSelchangeEventIdBox();
	afx_msg void OnSelchangeTransitionStateNameBox();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
public:
	afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Alex "Question is more important than the answer."

Comments and Discussions