|
Public Member Functions |
| SelectionFrame (string title, Button actionButton) |
ArrayList | GetSelection () |
| Returns the selected objects.
|
void | SetItems (ArrayList items) |
| Sets the selected items.
|
void | AddItem (string item) |
| Adds an item.
|
void | RemoveItem (string item) |
| Removes an item.
|
ArrayList | GetItems () |
| Gets all items, not only the selected ones.
|
void | UnselectAll () |
| Unselects all items.
|
delegate void | OnItemActivateHandler (string item) |
Public Attributes |
OnItemActivateHandler | OnItemActivate |
| Called whenever an item is activated. That is whenever the item is double-clicked. This method will also be called when spacebar are pressed, the TreeView are in focus, and if some item is selected. If more than one item are selected, the first item will be choosen as parameter to the handler.
|
VBox | GuiBox = new VBox(false, 8) |
Button | ActionButton |
Private Member Functions |
void | onSelect (object o, SelectCursorRowArgs args) |
void | onSelectionChange (object o, EventArgs args) |
void | TreeViewPressed (object o, ButtonPressEventArgs args) |
void | tvForeach (TreeModel model, TreePath path, TreeIter iter) |
TreeIter | FindItem (string item, out bool isIter) |
| finds an item.
|
Private Attributes |
ArrayList | _selection = new ArrayList() |
ScrolledWindow | _scrolledWindow = new ScrolledWindow() |
TreeStore | _store = new TreeStore(typeof(string)) |
TreeView | _tv = new TreeView() |
HButtonBox | _buttonBox = new HButtonBox() |
The button will only be senssitive (clickable) when items are selected.