mirror of
https://gitee.com/Polarix/simplegui.git
synced 2025-06-17 13:37:52 +00:00

修正LCD面板控件像素网格状态设定不正确的问题。 更新模拟器逻辑结构和模拟器操作接口。 增加模拟程序主入口,模仿Main主入口函数。 修改了一些全局变量的使用方法。 订正了一些注释的描述错误。 模拟环境正式更名为SimpleGUI Virtual SDK。
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
/***************************************************************
|
|
* Name: LCDSimulatorMain.h
|
|
* Purpose: Defines Application Frame
|
|
* Author: ()
|
|
* Created: 2017-02-25
|
|
* Copyright: ()
|
|
* License:
|
|
**************************************************************/
|
|
|
|
#ifndef __INCLUDE_CLASS_APPLICATION_H__
|
|
#define __INCLUDE_CLASS_APPLICATION_H__
|
|
|
|
//=======================================================================//
|
|
//= Include files. =//
|
|
//=======================================================================//
|
|
#include <wx\dialog.h>
|
|
#include <wx\app.h>
|
|
#include "LCDFrame.h"
|
|
|
|
enum
|
|
{
|
|
APP_PROC_NORMAL = 0,
|
|
APP_PROC_FAILURE = -1,
|
|
APP_PROC_ABNORMAL = -2,
|
|
};
|
|
|
|
//=======================================================================//
|
|
//= Class declare. =//
|
|
//=======================================================================//
|
|
class Application : public wxApp
|
|
{
|
|
private:
|
|
LCDFrame* m_pclsMainFrame;
|
|
|
|
protected:
|
|
virtual void OnKeyDown(wxKeyEvent& clsEvent);
|
|
|
|
public:
|
|
bool OnInit(void);
|
|
int OnRun(void);
|
|
int OnExit(void);
|
|
|
|
};
|
|
|
|
#endif //__INCLUDE_CLASS_APPLICATION_H__
|