OpenAlea Visualea’s API
QT4 Main window
-
class openalea.visualea.mainwindow.MainWindow(session, parent=None)[source]
-
about()[source]
Display About Dialog
-
add_last_open(pkgid, factory_name)[source]
Register a new lest opened node.
-
add_pkgdir()[source]
-
clear_data_pool()[source]
Clear the data pool
-
clear_python_console()[source]
Clear python shell
-
closeEvent(event)[source]
Close All subwindows
-
close_tab_workspace(cindex)[source]
Close workspace indexed by cindex cindex is Node
-
contextMenuEvent(event)[source]
Context menu event : Display the menu
-
current_view()[source]
Return the active widget
-
debug()[source]
-
display_leftpanel(toggled)[source]
-
display_rightpanel(toggled)[source]
-
dragEnterEvent(event)[source]
todo
-
dropEvent(event)[source]
todo
-
exec_python_script()[source]
Choose a python source and execute it
-
export_image()[source]
Export current workspace to an image
-
export_image_svg()[source]
Export current workspace to an image
-
find_node()[source]
Find node Command
-
help()[source]
Display help
-
new_data()[source]
Import file
-
new_graph()[source]
Create a new graph
-
new_package()[source]
Create a new user package
-
new_python_node()[source]
Create a new node
-
new_session()[source]
-
new_workspace()[source]
Create an empty workspace
-
notify(sender, event)[source]
Notification from observed
-
on_package_manager_focus_change(item)[source]
-
on_scene_focus_change(scene, item)[source]
-
on_session_started(session)[source]
-
open_compositenode(factory)[source]
open a composite node editor
-
open_preferences()[source]
Open Preference dialog
-
open_python_console()[source]
Set focus on the python shell
-
open_session()[source]
-
open_widget_tab(graph, factory, caption=None, pos=-1)[source]
Open a widget in a tab giving an instance and its widget
caption is append to the tab title
-
quit()[source]
Quit Application
-
read_settings()[source]
Read application settings.
-
redo_last_open_menu()[source]
Create entries for last opened nodes.
-
reinit_treeview()[source]
Reinitialise package and category views
-
reload_all()[source]
-
reopen_last(action)[source]
Reopen a last open node.
-
save_as()[source]
Save as menu entry
-
save_session()[source]
Save menu entry
-
search_node()[source]
Activated when search line edit is validated
-
to_python_script()[source]
Translate the active workspace into a python script
-
update_tabwidget()[source]
open tab widget
-
web()[source]
Open OpenAlea website
-
write_settings()[source]
Save application settings.
-
ws_changed(index)[source]
Current workspace has changed
Tree Item model for package manager.
Only Package and Category objects are view as a tree item.
Others are view as leaves.
-
class openalea.visualea.node_treeview.CategoryModel(pkgmanager, parent=None)[source]
QT4 data model (model/view pattern) to view category
-
reset()[source]
-
class openalea.visualea.node_treeview.DataPoolListView(main_win, datapool, parent=None)[source]
Specialized QListView to display data pool contents
Context menu event : Display the menu
-
dragEnterEvent(event)[source]
-
dragMoveEvent(event)[source]
-
dropEvent(event)[source]
-
notify(sender, event)[source]
Notification by observed
-
remove_element()[source]
Remove an element from the datapool
-
startDrag(supportedActions)[source]
-
class openalea.visualea.node_treeview.DataPoolModel(datapool, parent=None)[source]
QT4 data model (model/view pattern) to support Data Pool
-
data(index, role)[source]
-
flags(index)[source]
-
reset()[source]
-
rowCount(parent)[source]
-
class openalea.visualea.node_treeview.NodeFactoryTreeView(main_win, parent=None)[source]
Specialized TreeView to display node factory in a tree with Drag and Drop support
-
collapsed(index)[source]
-
expanded(index)[source]
-
reset()[source]
-
class openalea.visualea.node_treeview.NodeFactoryView(main_win, parent=None)[source]
Base class for all view which display node factories.
Implements Drag and Drop facilities.
-
add_composite_node()[source]
-
add_data()[source]
-
add_python_node()[source]
Context menu event : Display the menu
-
dragEnterEvent(event)[source]
-
dragMoveEvent(event)[source]
-
dropEvent(event)[source]
-
duplicate_package()[source]
Duplicate a package
-
edit_node(*args)[source]
-
edit_package()[source]
Edit package Metadata
-
edit_pkg_code()[source]
Edit __wralea__
-
edit_properties()[source]
Edit Node info
-
get_current_pkg()[source]
Return the current package
-
static get_item_info(item)[source]
Return (package_id, factory_id, mimetype) corresponding to item.
-
grab_icon()[source]
Set the package icon
-
mouseDoubleClickEvent(event)[source]
-
move_package()[source]
Move a package
-
open_node(*args)[source]
-
reinit_treeview()[source]
-
reload_package()[source]
Reload package
-
remove_node()[source]
Remove the node from the package
-
remove_package()[source]
Remove selected package
-
startDrag(supportedActions)[source]
-
class openalea.visualea.node_treeview.PkgModel(pkgmanager, parent=None)[source]
QT4 data model (model/view pattern) to support pkgmanager
-
columnCount(parent)[source]
-
data(index, role)[source]
-
flags(index)[source]
-
get_full_name(item)[source]
construct a full unique name from item
using parent.parent.item syntax
-
index(row, column, parent)[source]
-
parent(index)[source]
-
reset()[source]
-
rowCount(parent)[source]
-
class openalea.visualea.node_treeview.SearchListView(main_win, parent=None)[source]
Specialized QListView to display search results with Drag and Drop support
-
reset()[source]
-
class openalea.visualea.node_treeview.SearchModel(parent=None)[source]
QT4 data model (model/view pattern) to support Search result
-
columnCount(index)[source]
-
data(index, role)[source]
-
flags(index)[source]
-
index(row, column, parent)[source]
-
rowCount(parent)[source]
-
set_results(results)[source]
Set the search results : results is a list of factory
-
openalea.visualea.node_treeview.get_icon(item)[source]
Return Icon object depending of the type of item
-
openalea.visualea.node_treeview.item_compare(x, y)[source]