summaryrefslogtreecommitdiff
path: root/src/T2.h
blob: ebbfbe1e60e50b911787f393c1377e96231adced (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
#pragma once
#include "common.h"

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

class CT2App : public CWinApp {
    DECLARE_MESSAGE_MAP()

public:
    CT2App();

    virtual BOOL InitInstance();
    virtual int Run();
    virtual BOOL PreTranslateMessage(MSG *pMsg);
    virtual BOOL OnIdle(LONG lCount);
    virtual int ExitInstance();

    // 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;

protected:
    afx_msg void OnCmdAbout();
    afx_msg void OnCmdOpen();

    friend class T2OpenSelectDlg;
};

void ffDestroy();