Implements HierarchyEditor widget.
You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.
class CHierarchyEditor :public virtual IHierarchyEditor, public standard::CCustomTreeView
{
public:
int getItemCount() override;
IListItemHierarchyEditor *getItem(const int index) override;
IListItemHierarchyEditor *Add(IListItemHierarchyEditor *item) override;
IListItemHierarchyEditor *Add(const String &caption, IComponent *component, IControl *control, IListItem *item) override;
IListItemHierarchyEditor *Add(const String &caption, IComponent *component, IControl *control, IListItem *item, IControl *parent, const bool unfold) override;
bool Delete(const int index) override;
bool Clear() override;
IListItemOwner *QueryListItemOwner() override;
CHierarchyEditor();
CHierarchyEditor(IControl *parent);
CHierarchyEditor(IForm *parent);
~CHierarchyEditor() override;
standard::IImageList *getImageList(); // Return assigned image list
bool setImageList(standard::IImageList *value); // Assign image list
IListItemHierarchyEditor *Find(IComponent *component, IControl *control, IListItem *item); // Find item with assigned component, control, item
bool DeleteEx(IComponent *component, IControl *control, IListItem *item); // Delete element with assigned component, control, item
bool SelectEx(IComponent *component, IControl *control, IListItem *item, const bool selected, const bool active); // Select item
bool isMovable(IListItemHierarchyEditor *target); // Check if item is movable. Only ItemLists of same level are selected, or only controls and/or components of same level are selected and target accept it
bool isMovable(IListItemHierarchyEditor *target, std::vector<IListItemHierarchyEditor*> &items, bool &move_items); // Check if items are movable
bool DeselectAllListItems(); // Deselect all list items
bool DeselectAll(); // Deselect all items
bool DeleteSelected(); // Delete all selected items
};
Namespace: | nitisa::ide |
Include: | Ide/Controls/HierarchyEditor/HierarchyEditor.h |