v_sim.UiSelection¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.ListStore (18), GObject.Object (37), Gtk.Buildable (10), Gtk.TreeDragDest (2), Gtk.TreeDragSource (3), Gtk.TreeModel (28), Gtk.TreeSortable (6)
- Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
highlight the selection.  | 
||
r/w  | 
highlight model.  | 
||
r/w  | 
node model.  | 
||
r/w  | 
ids of selected nodes.  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class v_sim.UiSelection(*column_types)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Common name to refer to a #_VisuUiSelection.
- classmethod new()¶
 - Returns:
 a newly created object.
- Return type:
 
Create a new
Gtk.ListStoreto store planes.New in version 3.8.
- add(id)¶
 - 
Add the node identified by id to self. If the node already exists or if self has no current node model, nothing is done. If there are several nodes to insert at once, use
v_sim.UiSelection.append() instead to ensure that the selection signalis only emitted once.New in version 3.8.
 
- append(ids)¶
 - Parameters:
 ids ([
int]) – a list of node ids.
Inserts every node from ids into self. The selection signal is only emitted once.
New in version 3.8.
- appendHighlightedNodes()¶
 A convenient method to get the highlighted nodes and add them to the self.
New in version 3.8.
- at(iter, id)¶
 - Parameters:
 iter (
Gtk.TreeIter) – aGtk.TreeIterstructure.id (
int) – a node id.
- Returns:
 Trueif node id is set at iter.- Return type:
 
Inquires if the model self is storing node id at iter.
New in version 3.8.
- clear()¶
 An overloaded method of
Gtk.ListStore.clear() to ensure that the selection signal is properly emitted.New in version 3.8.
- get()¶
 - Returns:
 a list of node ids.
- Return type:
 [
int]
Retrieves the list of node ids in the selection.
New in version 3.8.
- highlight(iter, status)¶
 - Parameters:
 iter (
Gtk.TreeIterorNone) – aGtk.TreeIterstructure.status (
v_sim.GlExtMarksStatus) – a mark status.
Apply the new status to nodes. If iter is
None, all nodes stored in self are modified, otherwise, only the node at iter.New in version 3.8.
- remove(ids)¶
 - Parameters:
 ids ([
int]) – a list of node ids.
Remove a list of nodes from self.
New in version 3.8.
- removeAt(iter)¶
 - Parameters:
 iter (
Gtk.TreeIter) – aGtk.TreeIterstructure.- Returns:
 Trueif iter was actually removed.- Return type:
 
Remove the node stored at iter from self. This is an overloaded function of
Gtk.ListStore.remove() to emit the selection signal after change.New in version 3.8.
- removePaths(paths)¶
 - Parameters:
 paths ([
Gtk.TreePath]) – a list ofGtk.TreePath
Remove all given paths from self.
New in version 3.8.
- set(ids)¶
 - Parameters:
 ids ([
int]) – a list of node ids.
Clear the self and update it with the nodes from ids.
New in version 3.8.
- setHighlightModel(marks)¶
 - Parameters:
 marks (
v_sim.GlExtMarksorNone) – av_sim.GlExtMarksobject.- Returns:
 Trueif set is changed- Return type:
 
Bind the set object to list.
- setNodeModel(data)¶
 - Parameters:
 data (
v_sim.DataorNone) – av_sim.Dataobject.- Returns:
 Trueif set is changed- Return type:
 
Bind the set object to list.
Property Details¶
- v_sim.UiSelection.props.highlight¶
 - 
highlight the selection.
 
- v_sim.UiSelection.props.marks¶
 - Name:
 marks- Type:
 - Default Value:
 - Flags:
 
highlight model.
- v_sim.UiSelection.props.model¶
 - Name:
 model- Type:
 - Default Value:
 - Flags:
 
node model.
- v_sim.UiSelection.props.selection¶
 - Name:
 selection- Type:
 - Default Value:
 - Flags:
 
ids of selected nodes.