0.45.0
![]() |
#include <iUserControlTreeView.h>
Inherits igor::iUserControl.
Public Member Functions | |
iUserControlTreeView (const iWidgetPtr parent=nullptr) | |
virtual | ~iUserControlTreeView () |
void | setItems (iItemData *itemData) |
const std::vector< iItemPath > & | getSelectedItemPaths () const |
void | setSelectedItemPaths (const std::vector< iItemPath > &itemPaths) |
iClickTreeViewEvent & | getClickEvent () |
iContextMenuTreeViewEvent & | getContextMenuTreeViewEvent () |
void | clearFilter () |
void | setFilter (const iaString &key, const iaString &value) |
void | clear () override |
![]() | |
iUserControl (iWidgetType type=iWidgetType::iUserControl, const iWidgetPtr parent=nullptr) | |
virtual | ~iUserControl ()=default |
![]() | |
iWidgetType | getWidgetType () const |
iWidgetKind | getWidgetKind () const |
void | setZValue (uint32 zvalue) |
uint32 | getZValue () const |
void | setBackground (const iaColor4f &color) |
const iaColor4f & | getBackground () const |
void | setForeground (const iaColor4f &color) |
const iaColor4f & | getForeground () const |
bool | isBlocked () const |
bool | hasKeyboardFocus () const |
iWidgetState | getState () const |
iClickEvent & | getClickEvent () |
iMouseOffClickEvent & | getMouseOffClickEvent () |
iDoubleClickEvent & | getDoubleClickEvent () |
iMouseOverEvent & | getMouseOverEvent () |
iMouseOffEvent & | getMouseOffEvent () |
iChangeEvent & | getChangeEvent () |
iFocusEvent & | getFocusEvent () |
iWheelUpEvent & | getWheelUpEvent () |
iWheelDownEvent & | getWheelDownEvent () |
iContextMenuEvent & | getContextMenuEvent () |
iSelectionChangedEvent & | getSelectionChangedEvent () |
iaVector2f | getActualPos () const |
int32 | getActualPosX () const |
int32 | getActualPosY () const |
int32 | getActualWidth () const |
int32 | getActualHeight () const |
iaRectanglef | getActualRect () const |
iaRectanglef | getActualClientRect () const |
int32 | getRelativePosX () const |
int32 | getRelativePosY () const |
int32 | getMinWidth () const |
int32 | getMinHeight () const |
int32 | getConfiguredMinWidth () const |
int32 | getConfiguredMinHeight () const |
void | setMinWidth (int32 width) |
void | setMinHeight (int32 height) |
void | setMinSize (int32 width, int32 height) |
void | setAcceptOutOfBoundsClicks (bool acceptOutOfBoundsClick=true) |
bool | getAcceptOutOfBoundsClicks () const |
iHorizontalAlignment | getHorizontalAlignment () const |
iVerticalAlignment | getVerticalAlignment () const |
void | setHorizontalAlignment (iHorizontalAlignment horizontalAlignment) |
void | setVerticalAlignment (iVerticalAlignment verticalAlignment) |
bool | isVisible () const |
bool | isEnabled () const |
void | setVisible (bool visible=true) |
void | setEnabled (bool enabled=true) |
iWidgetID | getID () const |
iWidgetID | getParentID () const |
iWidgetPtr | getParent () const |
bool | isMouseOver () |
void | setAcceptDrag (bool acceptDrag) |
bool | isAcceptingDrag () |
void | setAcceptDrop (bool acceptDrop) |
bool | isAcceptingDrop () |
bool | hasParent () const |
void | setGrowingByContent (bool grow=true) |
bool | isGrowingByContent () const |
iaString | getInfo () const |
void | setTooltip (const iaString &text) |
iaString | getTooltip () const |
const std::vector< iWidgetPtr > & | getChildren () const |
virtual void | clear () |
void | setIgnoreChildEventConsumption (bool value=true) |
bool | isIgnoringChildEventConsumption () const |
iWidgetPtr | getRoot () |
virtual void | blockEvents () |
virtual void | unblockEvents () |
void | setOverlayEnabled (bool overlay) |
bool | isOverlayEnabled () const |
virtual void | draw () |
virtual void | drawOverlay () |
virtual void | addWidget (iWidgetPtr widget) |
virtual void | removeWidget (iWidgetPtr widget) |
void | setCursor (iMouseCursorType cursorType) |
void | setUserData (const std::any &userData) |
std::any | getUserData () const |
void | setSelectable (bool selectable) |
bool | isSelectable () const |
void | setMultiSelection (bool enabled) |
bool | isMultiSelectionEnabled () const |
void | setSelect (bool select) |
bool | isSelected () const |
void | clearSelection () |
const std::vector< iWidgetPtr > | getSelection () const |
void | setSelection (const std::vector< iWidgetPtr > &selection) |
void | refresh () |
Protected Member Functions | |
void | onClick (const iWidgetPtr source) |
void | onContextMenu (const iWidgetPtr source) |
void | initUI () |
virtual void | updateUI (iItem *item, const iItemPath &itemPath, int indentation=0) |
![]() | |
virtual void | calcMinSize () |
![]() | |
void | clearChildren () |
void | updateMinSize (int32 width, int32 height) |
void | setParent (iWidgetPtr parent) |
void | setKeyboardFocus () |
void | resetKeyboardFocus () |
void | setClientArea (int32 left, int32 right, int32 top, int32 bottom) |
const iaVector2f & | getLastMousePos () const |
iWidget (iWidgetType type, iWidgetKind kind, const iWidgetPtr parent=nullptr) | |
virtual | ~iWidget () |
virtual bool | onEvent (iEvent &event) |
virtual bool | onMouseWheel (const iEventMouseWheel &event) |
virtual bool | onMouseKeyDown (const iEventMouseKeyDown &event) |
virtual bool | onMouseDoubleClick (const iEventMouseKeyDoubleClick &event) |
virtual bool | onMouseKeyUp (const iEventMouseKeyUp &event) |
virtual void | onMouseMove (const iEventMouseMove &event) |
virtual bool | onASCII (const iEventKeyASCII &event) |
virtual bool | onKeyDown (const iEventKeyDown &event) |
virtual bool | onKeyUp (const iEventKeyUp &event) |
virtual void | onLostKeyboardFocus () |
virtual void | onGainedKeyboardFocus () |
virtual void | calcMinSize () |
virtual void | updateAlignment (int32 clientWidth, int32 clientHeight) |
virtual void | calcChildOffsets (std::vector< iaRectanglef > &offsets) |
virtual void | onDragEnter (iDrag &drag) |
virtual void | onDragMove (iDrag &drag, const iaVector2f &mousePos) |
virtual void | onDragLeave (iDrag &drag) |
virtual void | onDrop (const iDrag &drag, const iaVector2f &mousePos) |
virtual void | onDrag () |
virtual void | onRefresh () |
Additional Inherited Members | |
![]() | |
static iWidgetPtr | getKeyboardFocusWidget () |
static IGOR_INLINE float32 | getScale () |
![]() | |
static const iWidgetID | INVALID_WIDGET_ID = 0 |
tree view widget
igor::iUserControlTreeView::iUserControlTreeView | ( | const iWidgetPtr | parent = nullptr | ) |
ctor initializes member variables
parent | the optional parent |
|
virtual |
clean up
|
overridevirtual |
clears the widget back to default
Reimplemented from igor::iWidget.
void igor::iUserControlTreeView::clearFilter | ( | ) |
clears filter
iClickTreeViewEvent & igor::iUserControlTreeView::getClickEvent | ( | ) |
iContextMenuTreeViewEvent & igor::iUserControlTreeView::getContextMenuTreeViewEvent | ( | ) |
const std::vector< iItemPath > & igor::iUserControlTreeView::getSelectedItemPaths | ( | ) | const |
|
protected |
initializes ui
|
protected |
handle click events from our buttons
source | the widget that was clicked |
|
protected |
called when context menu is to be opened
source | the widget that was clicked |
filter for given key and value (iaString type only)
the filter is applied during setItems
key | the key to filter for |
value | the value to filter for |
void igor::iUserControlTreeView::setItems | ( | iItemData * | itemData | ) |
sets tree items
caller keeps ownership
itemData | item data container |
void igor::iUserControlTreeView::setSelectedItemPaths | ( | const std::vector< iItemPath > & | itemPaths | ) |
sets selection from item paths
itemPaths | the item paths to select |
|
protectedvirtual |
updates ui from tree items
item | the current item to update from |
itemPath | the path of the current item |
indentation | indentation of given item |
|
protected |
hold on to all widgets
|
protected |
button layout holding all buttons
|
protected |
click event
|
protected |
context menu event
only display what matches the filter
|
protected |
scroll widget
|
protected |
selected item paths
|
protected |
box layout