swamigui Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
SwamiguiTree; GtkWidget * swamigui_tree_new (IpatchList *stores
); void swamigui_tree_set_store_list (SwamiguiTree *tree
,IpatchList *list
); IpatchList * swamigui_tree_get_store_list (SwamiguiTree *tree
); void swamigui_tree_set_selected_store (SwamiguiTree *tree
,SwamiguiTreeStore *store
); SwamiguiTreeStore * swamigui_tree_get_selected_store (SwamiguiTree *tree
); GObject * swamigui_tree_get_selection_single (SwamiguiTree *tree
); IpatchList * swamigui_tree_get_selection (SwamiguiTree *tree
); void swamigui_tree_clear_selection (SwamiguiTree *tree
); void swamigui_tree_set_selection (SwamiguiTree *tree
,IpatchList *list
); void swamigui_tree_spotlight_item (SwamiguiTree *tree
,GObject *item
); void swamigui_tree_search_set_start (SwamiguiTree *tree
,GObject *start
); void swamigui_tree_search_set_text (SwamiguiTree *tree
,const char *text
); void swamigui_tree_search_set_visible (SwamiguiTree *tree
,gboolean visible
); void swamigui_tree_search_next (SwamiguiTree *tree
); void swamigui_tree_search_prev (SwamiguiTree *tree
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----SwamiguiTree
"selected-store" SwamiguiTreeStore* : Read / Write "selection" IpatchList* : Read / Write "selection-single" GObject* : Read / Write "store-list" IpatchList* : Read / Write
GtkWidget * swamigui_tree_new (IpatchList *stores
);
Create a new Swami tree object
|
List of tree stores to use or NULL to set later
(see swamigui_tree_set_store_list() ).
|
Returns : |
Swami tree object |
void swamigui_tree_set_store_list (SwamiguiTree *tree
,IpatchList *list
);
Set the tree stores of a tree view. Each tree store gets its own tab
in the tabbed tree
.
|
Swami GUI tree view |
|
List of SwamiguiTreeStore objects, this list is used directly and should not be modified after calling this function. |
IpatchList * swamigui_tree_get_store_list (SwamiguiTree *tree
);
Gets the tree stores of a tree view.
|
Swami GUI tree view |
Returns : |
List of SwamiguiTreeStore objects or NULL if none, NO
reference is added and so the list should only be used within the
context of the calling function unless referenced or duplicated.
|
void swamigui_tree_set_selected_store (SwamiguiTree *tree
,SwamiguiTreeStore *store
);
Sets the currently selected store. The notebook tab containing store
will
be selected which will cause the current tree selection to be updated to the
item selection of the GtkTreeView contained therein.
|
Swami tree object |
|
Store to select as the active store |
SwamiguiTreeStore * swamigui_tree_get_selected_store (SwamiguiTree *tree
);
Get the currently selected tree store (displayed in the current notebook tab).
|
Swami tree object |
Returns : |
Currently selected tree store or NULL if none. Not referenced and
so caller should take care to reference it if using outside of calling scope.
|
GObject * swamigui_tree_get_selection_single (SwamiguiTree *tree
);
Get and insure single item selection in Swami tree object
|
Swami tree object |
Returns : |
The currently selected single item or NULL if multiple or no items
are selected. A reference is not added so caller should take care to
reference it if using outside of the calling scope.
|
IpatchList * swamigui_tree_get_selection (SwamiguiTree *tree
);
Get Swami tree selection.
|
Swami tree object |
Returns : |
List of items in the tree selection or NULL if no items
selected. The returned list object is internal and should not be
modified.
NOTE - The list's reference count is not incremented, so if it is
desirable to use the list beyond the scope of the calling function
it should be duplicated or a reference added.
|
void swamigui_tree_clear_selection (SwamiguiTree *tree
);
Clear tree selection (unselect all items)
|
Swami tree object |
void swamigui_tree_set_selection (SwamiguiTree *tree
,IpatchList *list
);
Set the tree selection. List of objects must be in the same tree store (notebook tab). If items are in a non selected store it will become selected.
|
Swami tree object |
|
List of objects to select |
void swamigui_tree_spotlight_item (SwamiguiTree *tree
,GObject *item
);
Spotlights an item in a Swami tree object by recursively expanding all nodes up the tree from item and moving the view to position item in the center of the view and then selects it. If the item is part of an unselected store (i.e., notebook tab), then it will become selected.
|
Swami tree object |
|
Object in tree to spotlight
|
void swamigui_tree_search_set_start (SwamiguiTree *tree
,GObject *start
);
Sets the beginning object in tree to start searching from, the passed object is included in the search (can match).
|
Tree widget |
|
Start object to begin search from (inclusive, NULL for entire tree)
|
void swamigui_tree_search_set_text (SwamiguiTree *tree
,const char *text
);
Set the text of the tree's search entry and update search selection.
|
Tree widget |
|
Text to set search to |
void swamigui_tree_search_set_visible (SwamiguiTree *tree
,gboolean visible
);
Shows/hides the search entry below the tree.
|
Tree widget |
|
TRUE to show search entry, FALSE to hide it |
void swamigui_tree_search_next (SwamiguiTree *tree
);
Go to the previous matching item for the current search.
|
Tree widget |
"selected-store"
property"selected-store" SwamiguiTreeStore* : Read / Write
Selected tree store.