⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wxseditor.h

📁 非常好用的可移植的多平台C/C++源代码编辑器
💻 H
字号:
#ifndef WXSEDITOR_H
#define WXSEDITOR_H

#include <editorbase.h>
#include "wxsevent.h"

class wxsResource;

class wxsEditor : public EditorBase
{
	public:
	
        /** Ctor */
		wxsEditor(wxWindow* parent, const wxString& title,wxsResource* Resource);
		
		/** Dctor */
		virtual ~wxsEditor();
		
		/** Getting current resouce */
		inline wxsResource* GetResource() { return Resource; }
		
		
    protected:
    
        /** This function should delete all dependencies between this window and
         *  resource object. F.ex. it could delete preview objects
         *
         *  NOTE: Can not use this function. This unbinding should be done
         *        inside deestrtuctor
         */
//        virtual void MyUnbind() = 0;
        
	private:
	
        /** Function unbinding from current resurce if any */
        void Unbind();
        
        /** Currently associated resource */
        wxsResource* Resource;
        
        /** Handler for all wxSmith events
         *
         * All events must be processed here or inside derived editor's class.
         * Skipping these events will cause stack overflow (events are thrown back
         * into wxSmith plugin)
         */
        void OnSmithEvent(wxsEvent& event);
        
        DECLARE_EVENT_TABLE()
};

#endif // WXSEDITOR_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -