Class MainWindow (version 0.16)Description: The main application window and central controller object This object first is the main window but also the main controller. The main controller is the port by which access can be gained to all the data objects, view and other aspects of the program.
Method Overview
add_current_view_observer( ref ObserverBase observer )Description: Add an observer for the "current view changed" event If the current view changes, this observer is triggered. The integer slot of the observer will receive the number of the view active before. The current view's reference is already updated when this event is issued.
add_new_view_observer( ref ObserverBase observer )Description: Add an observer for a "new view" event If a new view is created, this observer will receive a signal. The integer slot of this observer will receive the index of the newly created view.
cancelDescription: Cancel current editing operations This method call cancels all current editing operations and restores normal mouse mode.
clone_current_viewDescription: Clone the current view and make it current
close_current_viewDescription: Close the current view This method does not open a dialog to query which cell view to close if multiple cell are opened in the view but rather closes all cells.
cm_bookmark_viewDescription: 'cm_bookmark_view' action (bound to a menu)
cm_cancelDescription: 'cm_cancel' action (bound to a menu)
cm_cell_hideDescription: 'cm_cell_hide' action (bound to a menu)
cm_cell_selectDescription: 'cm_cell_select' action (bound to a menu)
cm_cell_showDescription: 'cm_cell_show' action (bound to a menu)
cm_cell_show_allDescription: 'cm_cell_show_all' action (bound to a menu)
cm_cloneDescription: 'cm_clone' action (bound to a menu)
cm_closeDescription: 'cm_close' action (bound to a menu)
cm_copyDescription: 'cm_copy' action (bound to a menu)
cm_cutDescription: 'cm_cut' action (bound to a menu)
cm_dec_max_hierDescription: 'cm_dec_max_hier' action (bound to a menu)
cm_deleteDescription: 'cm_delete' action (bound to a menu)
cm_exitDescription: 'cm_exit' action (bound to a menu)
cm_goto_positionDescription: 'cm_goto_position' action (bound to a menu)
cm_help_aboutDescription: 'cm_help_about' action (bound to a menu)
cm_inc_max_hierDescription: 'cm_inc_max_hier' action (bound to a menu)
cm_last_display_stateDescription: 'cm_last_display_state' action (bound to a menu)
cm_layout_propsDescription: 'cm_layout_props' action (bound to a menu)
cm_load_bookmarksDescription: 'cm_load_bookmarks' action (bound to a menu)
cm_load_layer_propsDescription: 'cm_load_layer_props' action (bound to a menu)
cm_lv_add_missingDescription: 'cm_lv_add_missing' action (bound to a menu)
cm_lv_deleteDescription: 'cm_lv_delete' action (bound to a menu)
cm_lv_expand_allDescription: 'cm_lv_expand_all' action (bound to a menu)
cm_lv_groupDescription: 'cm_lv_group' action (bound to a menu)
cm_lv_hideDescription: 'cm_lv_hide' action (bound to a menu)
cm_lv_insertDescription: 'cm_lv_insert' action (bound to a menu)
cm_lv_regroup_by_datatypeDescription: 'cm_lv_regroup_by_datatype' action (bound to a menu)
cm_lv_regroup_by_indexDescription: 'cm_lv_regroup_by_index' action (bound to a menu)
cm_lv_regroup_by_layerDescription: 'cm_lv_regroup_by_layer' action (bound to a menu)
cm_lv_regroup_flattenDescription: 'cm_lv_regroup_flatten' action (bound to a menu)
cm_lv_remove_unusedDescription: 'cm_lv_remove_unused' action (bound to a menu)
cm_lv_renameDescription: 'cm_lv_rename' action (bound to a menu)
cm_lv_select_allDescription: 'cm_lv_select_all' action (bound to a menu)
cm_lv_showDescription: 'cm_lv_show' action (bound to a menu)
cm_lv_sort_by_dliDescription: 'cm_lv_sort_by_dli' action (bound to a menu)
cm_lv_sort_by_idlDescription: 'cm_lv_sort_by_idl' action (bound to a menu)
cm_lv_sort_by_ildDescription: 'cm_lv_sort_by_ild' action (bound to a menu)
cm_lv_sort_by_ldiDescription: 'cm_lv_sort_by_ldi' action (bound to a menu)
cm_lv_sort_by_nameDescription: 'cm_lv_sort_by_name' action (bound to a menu)
cm_lv_sourceDescription: 'cm_lv_source' action (bound to a menu)
cm_lv_ungroupDescription: 'cm_lv_ungroup' action (bound to a menu)
cm_manage_bookmarksDescription: 'cm_manage_bookmarks' action (bound to a menu)
cm_max_hierDescription: 'cm_max_hier' action (bound to a menu)
cm_max_hier_0Description: 'cm_max_hier_0' action (bound to a menu)
cm_max_hier_1Description: 'cm_max_hier_1' action (bound to a menu)
cm_next_display_stateDescription: 'cm_next_display_state' action (bound to a menu)
cm_openDescription: 'cm_open' action (bound to a menu)
cm_open_new_viewDescription: 'cm_open_new_view' action (bound to a menu)
cm_open_tooDescription: 'cm_open_too' action (bound to a menu)
cm_pan_downDescription: 'cm_pan_down' action (bound to a menu)
cm_pan_leftDescription: 'cm_pan_left' action (bound to a menu)
cm_pan_rightDescription: 'cm_pan_right' action (bound to a menu)
cm_pan_upDescription: 'cm_pan_up' action (bound to a menu)
cm_pasteDescription: 'cm_paste' action (bound to a menu)
cm_redoDescription: 'cm_redo' action (bound to a menu)
cm_redrawDescription: 'cm_redraw' action (bound to a menu)
cm_reloadDescription: 'cm_reload' action (bound to a menu)
cm_save_bookmarksDescription: 'cm_save_bookmarks' action (bound to a menu)
cm_save_layer_propsDescription: 'cm_save_layer_props' action (bound to a menu)
cm_screenshotDescription: 'cm_screenshot' action (bound to a menu)
cm_select_cellDescription: 'cm_select_cell' action (bound to a menu)
cm_select_current_cellDescription: 'cm_select_current_cell' action (bound to a menu)
cm_setupDescription: 'cm_setup' action (bound to a menu)
cm_show_propertiesDescription: 'cm_show_properties' action (bound to a menu)
cm_undoDescription: 'cm_undo' action (bound to a menu)
cm_zoom_fitDescription: 'cm_zoom_fit' action (bound to a menu)
cm_zoom_inDescription: 'cm_zoom_in' action (bound to a menu)
cm_zoom_outDescription: 'cm_zoom_out' action (bound to a menu)
const ref CellView create_layout( int mode )Description: Create a new, empty layout Create the layout in the current view, replacing the current layouts (mode 0), in a new view (mode 1) or adding it to the current view (mode 2)In mode 1, the new view is made the current one.
ref LayoutView current_viewDescription: Return a reference to the current view's object
[const] int current_view_indexDescription: Return the current view's index This method will return the index of the current view.
destroyDescription: Explicitly destroy the object Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.
[const] bool destroyedDescription: Tell, if the object was destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.
enable_edits( bool enable )Description: Enable or disable edits This method allows to put the application into read-only mode by disabling all edit functions. For doing so, this method has be called with a 'false' argument. Calling it with a 'true' parameter enables all edits again.
exitDescription: Schedule an exit for the application This method does not immediately exit the application but sends an exit request to the application which will cause a clean shutdown of the GUI.
[const] double grid_micronDescription: Get the global grid in micron The global grid is used at various places, i.e. for ruler snapping, for grid display etc. With this method it can be set to the desired value.
const ref CellView load_layout( string filename, int mode )Description: Load a new layout Loads the given file into the current view, replacing the current layouts (mode 0), into a new view (mode 1) or adding the layout to the current view (mode 2) In mode 1, the new view is made the current one.
ref AbstractMenu menuDescription: Return a reference to the abstract menu
redrawDescription: Redraw the current view Issues a redraw request to the current view. This usually happens automatically, so this method does not need to be called in most relevant cases.
remove_current_view_observer( ref ObserverBase observer )Description: Remove an observer for the change of the "current view changed" event
remove_new_view_observer( ref ObserverBase observer )Description: Remove an observer for a "new view" event
resize( int width, int height )Description: Resize the window This method resizes the window to the given target size including decoration such as menu bar and control panels
select_view( int index )Description: Select the view with the given index This method will make the view with the given index the current (front) view.
synchroneous=( bool sync_mode )Description: Put the main window into synchroneous mode In synchroneous mode, an application is allowed to block on redraw. While redrawing, no user interactions are possible. Although this is not desireable for smooth operation, it can be beneficial for test or automation purposes, i.e. if a screenshot needs to be produced once the application has finished drawing.
ref LayoutView view( int )Description: Return a reference to a view object by index
[const] unsigned int viewsDescription: Return the number of views
|