Ubuntu下sqlite3的配置与使用(以后会说到Ubuntu下C++数据库应用开发程序(窗体程序))
/*************************************************************** * Name: CaculatorMain.h * Purpose: Defines Application Frame * Author: zhangaihua (627168856@qq.com) * Created: 2013-12-25 * Copyright: zhangaihua (http://blog.csdn.net/u012388338) * License: **************************************************************/
#ifndef CACULATORMAIN_H #define CACULATORMAIN_H
#include "CaculatorApp.h"
#include "GUIFrame.h"
class CaculatorFrame: public GUIFrame { public: CaculatorFrame(wxWindow *parent); ~CaculatorFrame();
private: void OnChar(wxKeyEvent& event); void OnText(wxCommandEvent& event); void OnCls(wxCommandEvent& event); void OnBck(wxCommandEvent& event); void OnAdd(wxCommandEvent& event); void OnNum(wxCommandEvent& event); void OnSub(wxCommandEvent& event); void OnMul(wxCommandEvent& event); void OnDot(wxCommandEvent& event); void OnEql(wxCommandEvent& event); void OnDiv(wxCommandEvent& event); void OnSqrt(wxCommandEvent& event); void OnSquare(wxCommandEvent& event); void OnCos(wxCommandEvent& event); void OnSin(wxCommandEvent& event); void Calculate(); void Display1(); void Display2(); enum { idNum0=wxID_HIGHEST+314, idNum1,idNum2,idNum3, idNum4,idNum5,idNum6, idNum7,idNum8,idNum9 }; double result;//当前计算的结果 char op;//操作符 wxString msg; };
#endif // CACULATORMAIN_H