author | Michael Krelin <hacker@klever.net> | 2004-07-05 01:53:09 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2004-07-05 01:53:09 (UTC) |
commit | 955d4e00adc9f39ab93bf21f07506eb75b013c70 (patch) (side-by-side diff) | |
tree | 92493a2c9ac206b822e24a9e5a6f6b1589be6afb /T42Document.h | |
download | T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.zip T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.tar.gz T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.tar.bz2 |
initial commit into svn repository
git-svn-id: http://svn.klever.net/kin/T42/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | T42Document.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/T42Document.h b/T42Document.h new file mode 100644 index 0000000..fd59368 --- a/dev/null +++ b/T42Document.h @@ -0,0 +1,81 @@ +// T42Document.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// T42Document document
+
+class T42Document;
+class T42View;
+
+class CT42Robot {
+public:
+ T42Document* m_pDocument;
+
+ CT42Robot() : m_pDocument(NULL) {}
+ virtual ~CT42Robot() {}
+
+ virtual BOOL OnAttach(T42Document* pDocument) {
+ m_pDocument = pDocument;
+ return TRUE;
+ }
+ virtual BOOL OnDetach() { return TRUE; }
+
+ virtual BOOL OnConnect() { return TRUE; }
+ virtual BOOL OnReceive(char*,int) { return TRUE; }
+ virtual BOOL OnDisconnect() { return TRUE; }
+
+ virtual BOOL OnIPResolved() { return TRUE; }
+
+ virtual BOOL OnMinute() { return TRUE; }
+};
+
+class T42Document : public CDocument
+{
+protected:
+ T42Document(); // protected constructor used by dynamic creation
+ DECLARE_DYNCREATE(T42Document)
+
+// Attributes
+public:
+ void OnMinute();
+ BOOL m_bHidden;
+ BOOL SendOver(LPCTSTR str);
+ BOOL DetachRobot();
+ BOOL AttachRobot(CT42Robot* pRobot);
+ CT42Robot* m_pRobot;
+ void AutosaveLayout();
+ void SaveLayout();
+ T42View* m_pView;
+ void Talk(LPCTSTR from=NULL,LPCTSTR to=NULL,LPCTSTR tty=NULL,BOOL bPrompt=FALSE);
+
+// Operations
+public:
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(T42Document)
+ public:
+ virtual void Serialize(CArchive& ar); // overridden for document i/o
+ virtual void OnChangedViewList();
+ virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
+ protected:
+ virtual BOOL OnNewDocument();
+ //}}AFX_VIRTUAL
+
+// Implementation
+public:
+ virtual ~T42Document();
+#ifdef _DEBUG
+ virtual void AssertValid() const;
+ virtual void Dump(CDumpContext& dc) const;
+#endif
+
+ // Generated message map functions
+protected:
+ //{{AFX_MSG(T42Document)
+ afx_msg void OnWindowSavelayout();
+ afx_msg void OnUpdateWindowAutosavelayout(CCmdUI* pCmdUI);
+ afx_msg void OnWindowAutosavelayout();
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
|