wxsenumproperty.h

来自「非常好用的可移植的多平台C/C++源代码编辑器」· C头文件 代码 · 共 47 行

H
47
字号
#ifndef WXSENUMPROPERTY_H
#define WXSENUMPROPERTY_H

#include "../wxsproperties.h"
#include "../widget.h"

class wxsEnumPropertyWindow;
class wxsEnumProperty : public wxsProperty
{
	public:
	
        /** Ctor */
		wxsEnumProperty(wxsProperties* Properties,int &Value,const wxChar** Names,const long* Values);
		
		/** DCtor */
		virtual ~wxsEnumProperty();
		
        /** Taking name of value type handled by this item */
        virtual const wxString& GetTypeName();
        
    protected:
    
        #ifdef __NO_PROPGRGID
            virtual wxWindow* BuildEditWindow(wxWindow* Parent);
            virtual void UpdateEditWindow();
        #else
            virtual void AddToPropGrid(wxPropertyGrid* Grid,const wxString& Name);
            virtual bool PropGridChanged(wxPropertyGrid* Grid,wxPGId Id);
            virtual void UpdatePropGrid(wxPropertyGrid* Grid);
        #endif
        
	private:
	
        int& Value;
        const wxChar** Names;
        const long* Values;
        
        #ifdef __NO_PROPGRGID
            wxsEnumPropertyWindow* Window;
            friend class wxsEnumPropertyWindow;
        #else
            wxPGId PGId;
        #endif
};

#endif 

⌨️ 快捷键说明

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