wxseditor.cpp
来自「非常好用的可移植的多平台C/C++源代码编辑器」· C++ 代码 · 共 40 行
CPP
40 行
#include "wxsheaders.h"
#include "wxseditor.h"
#include "wxsresource.h"
#include <wx/wx.h>
wxsEditor::wxsEditor(wxWindow* parent, const wxString& title,wxsResource* _Resource):
EditorBase(parent,title),
Resource(_Resource)
{
}
wxsEditor::~wxsEditor()
{
Unbind();
}
void wxsEditor::Unbind()
{
if ( Resource )
{
//MyUnbind(); // Can not call this since we're inside destructor
wxsResource* ResStore = Resource;
Resource = NULL;
ResStore->EditorSaysHeIsClosing();
}
}
void wxsEditor::OnSmithEvent(wxsEvent& event)
{
}
BEGIN_EVENT_TABLE(wxsEditor,EditorBase)
EVT_SELECT_RES(wxsEditor::OnSmithEvent)
EVT_UNSELECT_RES(wxsEditor::OnSmithEvent)
EVT_SELECT_WIDGET(wxsEditor::OnSmithEvent)
EVT_UNSELECT_WIDGET(wxsEditor::OnSmithEvent)
END_EVENT_TABLE()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?