From f4c79ca075042b834ba04adbd32b1973245089a0 Mon Sep 17 00:00:00 2001 From: un1versal Date: Wed, 9 Dec 2015 12:00:31 +0000 Subject: src/modules: typos, consistency capitalize, fomatting and indenting fixes these contains in addition the whitespace changes --- src/modules/objects/KvsObject_treeWidget.cpp | 41 ++++++---------------------- 1 file changed, 8 insertions(+), 33 deletions(-) (limited to 'src/modules/objects/KvsObject_treeWidget.cpp') diff --git a/src/modules/objects/KvsObject_treeWidget.cpp b/src/modules/objects/KvsObject_treeWidget.cpp index bc7ceac28..498375288 100644 --- a/src/modules/objects/KvsObject_treeWidget.cpp +++ b/src/modules/objects/KvsObject_treeWidget.cpp @@ -55,18 +55,17 @@ The items are added by creating children [class]listviewitem[/class] objects: simply allocating them with $new will add the items to the listview and simply deleting them will remove them. Allocating a [class]listviewtitem[/class] item2 as a child of item1 will insert it to the same listview creating - a subtree of items spannig from item1. The subtree can be opened or closed by a simple click either + a subtree of items spanning from item1. The subtree can be opened or closed by a simple click either on the parent item or on the little plus sign on the side of it (when [classfnc:listview]$setRootIsDecorated[/classfnc] is set to $true. The listview can be in Single, Multi, Extended or NoSelection selection mode. In single selection mode there can be only one selected item at a time and the selected item is also the current item (this mode is the default). In Multi and Extended selection mode there can be multiple selected items - and the current item is one of them. The difference between Multi and Extended is in the way + and the current item is one of them. The difference between multi and extended is in the way that items can be selected by the mouse actions: experiment with the two modes :). The NoSelection mode has obviously no selection at all. @functions: !fn: $addColumn(,[]) Adds a width pixels wide column with the column header label to the list view. - !fn: $setSorting(,) Sets the list view to be sorted by column in ascending order if sort_order is "ascending" or descending order if it is "descending". !fn: $setSortingEnabled() @@ -74,86 +73,64 @@ In order to avoid performance issues, it is recommended that sorting is enabled after inserting the items into the tree. !fn: $hideListViewHeader() Hide the listview column header. - !fn: $showListViewHeader() Show the listview column header. - !fn: $isListViewHeaderVisible() Returns '1' if the listview header is currently visible. Otherwise this function returns '0'. - !fn: $setAllColumnsShowFocus() When the argument is $true, causes the listview to display the focus and selection by highlighting all the columns of the item. When the argument is $false then only the first column is selected/highlighted. - !fn: $setSelectionMode() Sets the selection mode for this listview. can be one of "Single","NoSelection","Multi" or "Extended". - !fn: $selectedItems() Returns the currently selected [class]listviewitem[/class] or $null if no items are selected. This function works only if the list view is in single selection mode. - !fn: $itemAt(,) Returns the listviewitem object at the x,y globals coordinates or $null if no item at. - !fn: $currentItem() Returns the current [class]listviewitem[/class] or $null if no item is current at the moment. - !fn: $firstChild() Returns the first child [class]listviewitem[/class] of this listview or $null if there are no items at all. - !fn: $topLevelItem() Returns the child [class]listviewitem[/class] of this listview or $null if it does not exist. - !fn: $topLevelItemCount() Returns the number of top level items of this listview. - !fn: setAcceptDrops() If is true, user can drop files for this listview. The default value is true. - !fn: $clickEvent() This function is called when the user clicks in the list view. In its argument the [class]listviewitem[/class] object clicked or 0 if the user didn't click on an item.[br] The default implementation emits the [classfnc]$clicked[/classfnc]() signal. - !fn: $selectionChangedEvent() This event handle whenever the set of selected items has changed. The argument is the newly selected item if the listview is in single selection mode.[br] - When the listview is in Multi or Extended selection mode then item is always $null.[br] + When the listview is in multi or extended selection mode then item is always $null.[br] The default implementation emits the [classfnc]$selectionChanged[/classfnc]() signal. - !fn: $currentChangedEvent() This event are called whenever the current item has changed. In its argument is the newly selected item or 0 if the change made no item current.[br] The default implementation emits the [classfnc]$currentChanged[/classfnc]() signal. - !fn: $itemActivatedEvent() This s signal is emitted when the user activates an item by single- or double-clicking or pressing 'Enter'.[br] - In its argument the currrent item.[br] + In its argument the current item.[br] The default implementation emits the [classfnc]$itemActivated[/classfnc]() signal. - !fn: $spacePressedEvent() This function is called by the framework when the space key is pressed.[br] - In its arument the currrent item.[br] + In its an argument in the current item.[br] The default implementation emits the [classfnc]$spacePressed[/classfnc]() signal. - !fn: $onItemEvent() - This event is called by framwork when the user moves the mouse cursor onto item. + This event is called by framework when the user moves the mouse cursor onto item. The default implementation emits the [classfnc]$onItem[/classfnc]() signal. - !fn: $itemExpandedEvent() - This event is called when an item has been expanded, i.e. when the children of item are shown. + This event is called when an item has been expanded, i.e. when the child of an item is shown. The default implementation emits the [classfnc]$expanded[/classfnc]() signal. - !fn: $itemCollapsedEvent() - This event is called when an item has been collapsed, i.e. when the children of item are hidden. + This event is called when an item has been collapsed, i.e. when the child of an item is hidden. The default implementation emits the [classfnc]$collapsed[/classfnc]() signal. - !fn: $itemChangedEvent(,,) This event is called when the item has been renamed in text, e.g. by in in-place renaming, in column col.[br] The default implementation emits the [classfnc]$itemChanged[/classfnc]() signal. - - @signals: !sg: $clicked() This signal is emitted by the default implementation of [classfnc]$clickEvent[/classfnc](). @@ -175,8 +152,6 @@ This signal is emitted by the default implementation of [classfnc]$itemChangedEvent[/classfnc](). !sg: $rightButtonClicked() This signal is emitted by the default implementation of [classfnc]$rightButtonClickedEvent[/classfnc](). - - */ -- cgit v1.3.1-10-gc9f91