CPropertyEditor



Implements PropertyEditor widget.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CPropertyEditor :public virtual IPropertyEditor, public CControl
{
public:
    enum FOLDER_STATE // Folder states 
    {
        fsFolded, // Closed 
        fsUnfolded // Opened 
    };

    enum PROPERTY_STATE // Property states 
    {
        psNormal, // Normal 
        psHovered, // Hovered 
        psFocused // Focused 
    };
public:
    CURSOR_TYPE getCursor() override;

    bool setDPI(const Point &value) override;

    void Refresh(const bool refresh_children) override;

    int getPropertyListCount() override;
    IPropertyList *getPropertyList(const int index) override;
    int getPropertyCount() override;
    IProperty *getProperty(const int index) override;
    int getActivePropertyIndex() override;

    bool AttachPropertyList(IPropertyList *list) override;
    bool DetachPropertyList(const int index) override;
    bool DetachPropertyList(IPropertyList *list) override;
    bool DetachPropertyLists() override;

    CPropertyEditor();
    CPropertyEditor(IForm *parent);
    CPropertyEditor(IControl *parent);
    ~CPropertyEditor();

    IBuiltInScroll *getScroll(); // Return scroll 
    RectF getBorderWidth() const; // Return border width 
    RectC getBorderColor() const; // Return border color 
    Color getLeftBorderColor() const; // Return left border color 
    Color getTopBorderColor() const; // Return top border color 
    Color getRightBorderColor() const; // Return right border color 
    Color getBottomBorderColor() const; // Return bottom border color 
    Color getBackgroundColor() const; // Return background color 
    Gradient *getBackgroundGradient(); // Return background gradient 
    float getFolderWidth() const; // Return folder width 
    Color getFolderBackgroundColor() const; // Return folder background color 
    Gradient *getFolderBackgroundGradient(); // Return folder background gradient 
    float getFolderIconPadding() const; // Return folder icon padding 
    float getFolderIconBorderWidth() const; // Return folder icon border width 
    float getFolderIconBorderRadius() const; // Return folder icon border corner radius 
    Color getFolderIconBorderColor() const; // Return folder icon border color 
    Color getFolderIconBackgroundColor() const; // Return folder icon background color 
    Gradient *getFolderIconBackgroundGradient(); // Return folder icon background gradient 
    float getFolderIconInnerPadding() const; // Return folder icon inner padding 
    Color getFolderIconLineColor(const FOLDER_STATE state); // Return folder icon line color depending on folder state 
    float getFolderSeparatorWidth() const; // Return folder separator width 
    Color getFolderSeparatorColor() const; // Return folder separator color 
    Gradient *getFolderSeparatorGradient(); // Return folder separator gradient 
    float getCaptionWidth() const; // Return caption width in parts of control width(0..1) 
    float getCaptionPadding() const; // Return caption padding 
    float getCaptionStatePadding() const; // Return caption padding for unfolded states 
    Color getCaptionColor(const PROPERTY_STATE state) const; // Return caption color depending on property state 
    float getCaptionBorderWidth(const PROPERTY_STATE state) const; // Return caption border width depending on property state 
    Color getCaptionBorderColor(const PROPERTY_STATE state) const; // Return caption border color depending on property state 
    Color getCaptionBackgroundColor(const PROPERTY_STATE state) const; // Return caption background color depending on property state 
    Gradient *getCaptionBackgroundGradient(const PROPERTY_STATE state); // Return caption background gradient depending on property state 
    float getCaptionSeparatorWidth() const; // Return caption separator width 
    Color getCaptionSeparatorColor() const; // Return caption separator color 
    Gradient *getCaptionSeparatorGradient(); // Return caption separator gradient 

    bool setScroll(IBuiltInScroll *value); // Set scroll 
    bool setBorderWidth(const RectF &value); // Set border width 
    bool setBorderColor(const RectC &value); // Set border color 
    bool setLeftBorderColor(const Color &value); // Set left border color 
    bool setTopBorderColor(const Color &value); // Set top border color 
    bool setRightBorderColor(const Color &value); // Set right border color 
    bool setBottomBorderColor(const Color &value); // Set bottom border color 
    bool setBackgroundColor(const Color &value); // Set background color 
    bool setFolderWidth(const float value); // Set folder width 
    bool setFolderBackgroundColor(const Color &value); // Set folder background color 
    bool setFolderIconPadding(const float value); // Set folder icon padding 
    bool setFolderIconBorderWidth(const float value); // Set folder icon border width 
    bool setFolderIconBorderRadius(const float value); // Set folder icon border corner radius 
    bool setFolderIconBorderColor(const Color &value); // Set folder icon border color 
    bool setFolderIconBackgroundColor(const Color &value); // Set folder icon background color 
    bool setFolderIconInnerPadding(const float value); // Set folder icon inner padding 
    bool setFolderIconLineColor(const FOLDER_STATE state, const Color &value); // Set folder icon line color depending on folder state 
    bool setFolderSeparatorWidth(const float value); // Set folder separator width 
    bool setFolderSeparatorColor(const Color &value); // Set folder separator color 
    bool setCaptionWidth(const float value); // Set caption width in parts of control width(0..1) 
    bool setCaptionPadding(const float value); // Set caption padding 
    bool setCaptionStatePadding(const float value); // Set caption padding for unfolded states 
    bool setCaptionColor(const PROPERTY_STATE state, const Color &value); // Set caption color depending on property state 
    bool setCaptionBorderWidth(const PROPERTY_STATE state, const float value); // Set caption border width depending on property state 
    bool setCaptionBorderColor(const PROPERTY_STATE state, const Color &value); // Set caption background color depending on property state 
    bool setCaptionBackgroundColor(const PROPERTY_STATE state, const Color &value); // Set caption background color depending on property state 
    bool setCaptionSeparatorWidth(const float value); // Set caption separator width 
    bool setCaptionSeparatorColor(const Color &value); // Set caption separator color 
};
Namespace: nitisa::ide
Include: Ide/Controls/PropertyEditor/PropertyEditor.h