wxsstringlistproperty.h
来自「非常好用的可移植的多平台C/C++源代码编辑器」· C头文件 代码 · 共 55 行
H
55 行
#ifndef WXSSTRINGLISTPROPERTY_H
#define WXSSTRINGLISTPROPERTY_H
#include "../wxsproperties.h"
#include "../widget.h"
class wxsStringListProperty : public wxsProperty
{
public:
/** Ctor */
wxsStringListProperty(wxsProperties* Properties,wxArrayString& Array);
/** Ctor */
wxsStringListProperty(wxsProperties* Properties,wxArrayString& Array,int& Selected,int SortedFlag=0);
/** DCtor */
virtual ~wxsStringListProperty();
/** 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();
void EditList();
#else
virtual void AddToPropGrid(wxPropertyGrid* Grid,const wxString& Name);
virtual bool PropGridChanged(wxPropertyGrid* Grid,wxPGId Id);
virtual void UpdatePropGrid(wxPropertyGrid* Grid);
#endif
private:
wxArrayString& Array;
int* Selected;
int SortedFlag;
#ifdef __NO_PROPGRGID
friend class wxsStringListPropertyWindow;
#else
wxPGId PGId;
wxPGId SelId;
void BuildChoices(wxPropertyGrid* Grid);
void RebuildChoices(wxPropertyGrid* Grid);
bool IsSorted();
#endif
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?