Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

SelectionFrame Class Reference

Widget where it is possible to select items from a list. The widget also contains a button. More...

List of all members.

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()


Detailed Description

Widget where it is possible to select items from a list. The widget also contains a button.

The button will only be senssitive (clickable) when items are selected.


Constructor & Destructor Documentation

SelectionFrame::SelectionFrame string  title,
Button  actionButton
[inline]
 

Parameters:
title The frames title.
actionButton The button shown on the frame.


Member Function Documentation

void SelectionFrame::AddItem string  item  )  [inline]
 

Adds an item.

TreeIter SelectionFrame::FindItem string  item,
out bool  isIter
[inline, private]
 

finds an item.

Parameters:
item The object to search for.
isIter true if some item were found.
Returns:
The found item. If no item were found it still returns a TreeIter.

ArrayList SelectionFrame::GetItems  )  [inline]
 

Gets all items, not only the selected ones.

ArrayList SelectionFrame::GetSelection  )  [inline]
 

Returns the selected objects.

delegate void SelectionFrame::OnItemActivateHandler string  item  ) 
 

void SelectionFrame::onSelect object  o,
SelectCursorRowArgs  args
[inline, private]
 

void SelectionFrame::onSelectionChange object  o,
EventArgs  args
[inline, private]
 

void SelectionFrame::RemoveItem string  item  )  [inline]
 

Removes an item.

void SelectionFrame::SetItems ArrayList  items  )  [inline]
 

Sets the selected items.

void SelectionFrame::TreeViewPressed object  o,
ButtonPressEventArgs  args
[inline, private]
 

void SelectionFrame::tvForeach TreeModel  model,
TreePath  path,
TreeIter  iter
[inline, private]
 

void SelectionFrame::UnselectAll  )  [inline]
 

Unselects all items.


Member Data Documentation

HButtonBox SelectionFrame::_buttonBox = new HButtonBox() [private]
 

ScrolledWindow SelectionFrame::_scrolledWindow = new ScrolledWindow() [private]
 

ArrayList SelectionFrame::_selection = new ArrayList() [private]
 

TreeStore SelectionFrame::_store = new TreeStore(typeof(string)) [private]
 

TreeView SelectionFrame::_tv = new TreeView() [private]
 

Button SelectionFrame::ActionButton
 

VBox SelectionFrame::GuiBox = new VBox(false, 8)
 

OnItemActivateHandler SelectionFrame::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.


The documentation for this class was generated from the following file: SourceForge.net Logo