summaryrefslogtreecommitdiff
path: root/src/T2.h
blob: 4bb929932143fcee0babff2746b235577ef5c626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once

#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols
#include "common.h"

class CT2App : public CWinApp {
public:
    CT2App();

    //{{AFX_VIRTUAL(CT2App)
    virtual BOOL InitInstance();
    virtual int Run();
    virtual BOOL PreTranslateMessage(MSG *pMsg);
    virtual BOOL OnIdle(LONG lCount);
    virtual int ExitInstance();
    //}}AFX_VIRTUAL

    // modifies counter _DC - called from T2MoverModuleTable ctor
    // also called on Debug Step Run
    virtual void app_vfA4(BOOL inEnable);

    // sets mMessage
    virtual void app_vfA8(T2Message * inMessage);

    // clears mMessage
    virtual void app_vfAC();

    // gets global data
    virtual T2GlobalData *app_vfB0() { return mGlobalData; }

    // runs a message loop - called from T2PluginLoader
    virtual void app_vfB4();

    T2GlobalData *mGlobalData;
    T2PluginLoader *mPluginLoader;
    T2ToolWindow *mToolWindow;
    T2TowerDoc *mDocument;
    T2MainWindow *mMainWindow;
    int _DC;
    CString mStrE0;
    int _E4;
    T2Message *mMessage;

    //{{AFX_MSG(CT2App)
    afx_msg void OnCmdAbout();
    afx_msg void OnCmdOpen();
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

void ffDestroy();

#define T2_APP ((CT2App *) AfxGetApp())