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

📄 wxseventseditor.h

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

#include <wx/scrolwin.h>
#include <wx/propgrid/propgrid.h>

class wxsWidget;
class wxsWidgetEvents;
class wxsWindowRes;
class wxsProject;
class wxsEventDesc;

class wxsEventsEditor : public wxPropertyGrid
{
	public:
	
        /** Ctor */
		wxsEventsEditor(wxWindow* Parent,wxsWidget* Widget);
		
		/** Dctor */
		virtual ~wxsEventsEditor();
		
		/** Setting widget with events to be edited */
		void SetWidget(wxsWidget* Widget);
		
	private:
	
        wxsWidgetEvents* Events;
        wxsWidget* Widget;
        wxsWindowRes* Res;
        wxsProject* Proj;
        wxString SourceFile;
        wxString HeaderFile;
        wxString ClassName;
        
        void BuildPropertyGrid(bool UpdateOnly=false);
        void ReadPropertyGrid();
        void UpdatePropertyGrid() { BuildPropertyGrid(true); }
        void FindFunctions(const wxString& EventType,wxArrayString& Array);
        
        wxString GetNewFunction(wxsEventDesc* Event);
        wxString GetFunctionProposition(wxsEventDesc* Event);
        bool CreateNewFunction(wxsEventDesc* Event,const wxString& NewFunctionName);
        
        void OnPropertyChanged(wxPropertyGridEvent& event);
        
        DECLARE_EVENT_TABLE()
};

#endif // WXSEVENTSEDITOR_H

⌨️ 快捷键说明

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