diff options
Diffstat (limited to 'src/T2.h')
-rw-r--r-- | src/T2.h | 48 |
1 files changed, 48 insertions, 0 deletions
@@ -1,3 +1,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(); |