Package qubx :: Module data_panel :: Class DataFace
[hide private]
[frames] | no frames]

Class DataFace

source code

        object --+                                
                 |                                
        ??.GObject --+                            
                     |                            
            gtk.Object --+                        
                         |                        
        object --+       |                        
                 |       |                        
gobject.GInterface --+   |                        
                     |   |                        
  atk.ImplementorIface --+                        
                         |                        
        object --+       |                        
                 |       |                        
gobject.GInterface --+   |                        
                     |   |                        
         gtk.Buildable --+                        
                         |                        
                gtk.Widget --+                    
                             |                    
                 gtk.Container --+                
                                 |                
                object --+       |                
                         |       |                
        gobject.GInterface --+   |                
                             |   |                
                gtk.Orientable --+                
                                 |                
                           gtk.Box --+            
                                     |            
                              gtk.VBox --+        
                                         |        
                                faces.Face --+    
                                             |    
                               faces.FilesFace --+
                                                 |
                                    object --+   |
                                             |   |
                       settings.PropertiedBase --+
                                                 |
                                                DataFace

Panel displaying one of possibly several open data files. If has_modeling, file index 0 is qubx.data_types.QubData_Scratch.

Instance Methods [hide private]
 
__init__(self, tables, has_modeling, global_name='')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
init_fitting(self) source code
 
make_page(self, view) source code
 
__onAllocPage(self, page, allocation) source code
 
__onSplitterPosition(self, paned, param_spec) source code
 
__onUpdateDisplay(self, prefs, updates) source code
 
__onSwitch(self, selfy, file) source code
 
__onSave(self, selfy, file, path) source code
 
__onRqFit(self, show_fit) source code
 
onShow(self, showing)
Override this method to do something when showing changes.
source code
 
init_scratch(self, has_modeling) source code
 
open(self, path=None)
Override this method to open the file at path and add it to table.
source code
 
open_sequence(self, paths=None) source code
 
open_seq_next(self, already_closed=False) source code
 
go_seq(self, ix) source code
 
close_seq_curr(self) source code
 
done_sequence(self) source code
 
__onClickSequence(self, ix) source code
 
__onClosing(self, ix) source code
 
save(self, path=None) source code
 
on_pre_close(self) source code
 
on_pre_save(self, fname) source code
 
is_changed(self)
Override this method to report if the current file has been modified.
source code
 
can_save(self)
Override this method to report if the file can be saved.
source code
 
can_revert(self)
Override this method to report if the file can be reverted to saved.
source code
 
init_file(self, file, view)
Override this method to do things when the file comes onscreen (e.g.
source code
 
done_file(self, file, view)
Override this method to do things when the file goes offscreen.
source code
 
__onPopupLists(self, item) source code
 
__onPopupDisplay(self, item) source code
 
__onPopupTools(self, item) source code
 
get_open_filters(self)
Override this method to return a list of (".extension", gtk.FileFilter) to add to the open file dialog.
source code
 
get_save_filters(self)
Override this method to return a list of (".extension", gtk.FileFilter) to add to the save file dialog; By default, uses the open_filters.
source code
 
close_down(self)
Override: don't close the simulation data.
source code
 
__onClickSaveSession(self, item) source code
 
__onClickAutoSaveSession(self, item) source code
 
set_auto_save_session(self, minutes) source code
 
__onTimeoutSession(self) source code
 
__onClickStoreFits(self, item) source code
 
on_popup_file(self) source code
 
copy_segments_to_list(self, list_name=None, copy_rows_type=None, group=None, inverse=False, criteria=None) source code
 
__onChangePath(self, data, path) source code
 
__onPopulateLists(self, add) source code
 
__onChooseList(self, mnu, list_name) source code
 
__onClickCloseList(self, ctrls, lst) source code
 
__onSwitchList(self, lists, index, item) source code
 
__show_list_table(self, item) source code
 
list_add_screen(self) source code
 
new_list(self, list_name=None) source code
 
import_list(self, fname=None) source code
 
export_list(self, fname=None) source code
 
copy_list(self, list_name=None, copy_rows_type=None, group=None, inverse=False, criteria=None) source code
 
measure_list(self) source code
 
split_list(self, group_names=None) source code
 
__onPopupListTools(self, mnu) source code
 
__onItemScript(self, item, name) source code
 
__onChangeCopyGroup(self, txt, val) source code
 
__onClickCopyColor(self, palette, color) source code
 
__onHint(self, data, hint) source code
 
get_samples(self, left=None, right=None, signal_name=None, source=1)
Returns array of data values, onscreen or between times "left" and "right" in seconds, onscreen segments or all.
source code
 
get_samples_indexed(self, first, last, signal_name=None)
Returns array of data values with index between first and last, inclusive.
source code
 
add_computed_signal(self) source code
 
help_bind(self, func) source code
 
help_write_test(self, func) source code

Inherited from faces.FilesFace: add_recent, close, close_one, do_print, make_view, new, promptSave, saveAs, set_file, set_index, show_file

Inherited from faces.Face: request_show, set_parent_window, set_pop_prefs, set_showing

Inherited from gtk.VBox: __iter__

Inherited from gtk.Box: get_homogeneous, get_spacing, pack_end, pack_end_defaults, pack_start, pack_start_defaults, query_child_packing, reorder_child, set_child_packing, set_homogeneous, set_spacing

Inherited from gtk.Container: __len__, __nonzero__, add, add_with_properties, check_resize, child_get, child_get_property, child_set, child_set_property, child_type, children, do_add, do_check_resize, do_child_type, do_composite_name, do_forall, do_get_child_property, do_remove, do_set_child_property, do_set_focus_child, forall, foreach, get_border_width, get_children, get_focus_chain, get_focus_child, get_focus_hadjustment, get_focus_vadjustment, get_resize_mode, install_child_property, list_child_properties, propagate_expose, remove, resize_children, set_border_width, set_focus_chain, set_focus_child, set_focus_hadjustment, set_focus_vadjustment, set_reallocate_redraws, set_resize_mode, unset_focus_chain

Inherited from gtk.Widget: activate, add_accelerator, add_events, add_mnemonic_label, can_activate_accel, child_focus, child_notify, class_path, create_pango_context, create_pango_layout, destroy, do_button_press_event, do_button_release_event, do_can_activate_accel, do_client_event, do_composited_changed, do_configure_event, do_delete_event, do_destroy_event, do_direction_changed, do_drag_begin, do_drag_data_delete, do_drag_data_get, do_drag_data_received, do_drag_drop, do_drag_end, do_drag_leave, do_drag_motion, do_enter_notify_event, do_event, do_expose_event, do_focus, do_focus_in_event, do_focus_out_event, do_get_accessible, do_grab_broken_event, do_grab_focus, do_grab_notify, do_hide, do_hide_all, do_hierarchy_changed, do_key_press_event, do_key_release_event, do_leave_notify_event, do_map, do_map_event, do_mnemonic_activate, do_motion_notify_event, do_no_expose_event, do_parent_set, do_popup_menu, do_property_notify_event, do_proximity_in_event, do_proximity_out_event, do_realize, do_screen_changed, do_scroll_event, do_selection_clear_event, do_selection_get, do_selection_notify_event, do_selection_received, do_selection_request_event, do_show, do_show_all, do_show_help, do_size_allocate, do_size_request, do_state_changed, do_style_set, do_unmap, do_unmap_event, do_unrealize, do_visibility_notify_event, do_window_state_event, drag_begin, drag_check_threshold, drag_dest_add_image_targets, drag_dest_add_text_targets, drag_dest_add_uri_targets, drag_dest_find_target, drag_dest_get_target_list, drag_dest_get_track_motion, drag_dest_set, drag_dest_set_proxy, drag_dest_set_target_list, drag_dest_set_track_motion, drag_dest_unset, drag_get_data, drag_highlight, drag_source_add_image_targets, drag_source_add_text_targets, drag_source_add_uri_targets, drag_source_get_target_list, drag_source_set, drag_source_set_icon, drag_source_set_icon_name, drag_source_set_icon_pixbuf, drag_source_set_icon_stock, drag_source_set_target_list, drag_source_unset, drag_unhighlight, draw, ensure_style, error_bell, event, freeze_child_notify, get_accessible, get_action, get_activate_signal, get_allocation, get_ancestor, get_app_paintable, get_can_default, get_can_focus, get_child_requisition, get_child_visible, get_clipboard, get_colormap, get_composite_name, get_direction, get_display, get_double_buffered, get_events, get_extension_events, get_has_tooltip, get_has_window, get_mapped, get_modifier_style, get_name, get_no_show_all, get_pango_context, get_parent, get_parent_window, get_pointer, get_realized, get_receives_default, get_requisition, get_root_window, get_screen, get_sensitive, get_settings, get_size_request, get_snapshot, get_state, get_style, get_tooltip_markup, get_tooltip_text, get_tooltip_window, get_toplevel, get_visible, get_visual, get_window, grab_add, grab_default, grab_focus, grab_remove, has_default, has_focus, has_grab, has_rc_style, has_screen, hide, hide_all, hide_on_delete, input_shape_combine_mask, intersect, is_ancestor, is_composited, is_drawable, is_focus, is_sensitive, is_toplevel, keynav_failed, list_accel_closures, list_mnemonic_labels, map, menu_get_for_attach_widget, mnemonic_activate, modify_base, modify_bg, modify_cursor, modify_fg, modify_font, modify_style, modify_text, path, queue_clear, queue_clear_area, queue_draw, queue_draw_area, queue_resize, queue_resize_no_redraw, rc_get_style, realize, region_intersect, remove_accelerator, remove_mnemonic_label, render_icon, reparent, reset_rc_styles, reset_shapes, selection_add_target, selection_add_targets, selection_clear_targets, selection_convert, selection_owner_set, selection_remove_all, send_expose, send_focus_change, set_accel_path, set_activate_signal, set_allocation, set_app_paintable, set_can_default, set_can_focus, set_child_visible, set_colormap, set_composite_name, set_direction, set_double_buffered, set_events, set_extension_events, set_has_tooltip, set_has_window, set_mapped, set_name, set_no_show_all, set_parent, set_realized, set_receives_default, set_redraw_on_allocate, set_scroll_adjustments, set_sensitive, set_set_scroll_adjustments_signal, set_size_request, set_state, set_style, set_tooltip_markup, set_tooltip_text, set_tooltip_window, set_uposition, set_usize, set_visible, set_window, shape_combine_mask, show, show_all, show_now, size_allocate, size_request, style_attach, style_get_property, thaw_child_notify, translate_coordinates, trigger_tooltip_query, unmap, unparent, unrealize

Inherited from gtk.Object: do_destroy, flags, remove_data, remove_no_notify, set_flags, unset_flags

Inherited from unreachable.GObject: __copy__, __deepcopy__, __delattr__, __eq__, __gdoc__, __ge__, __gobject_init__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from atk.ImplementorIface: ref_accessible

Inherited from gtk.Buildable: add_child, construct_child, do_add_child, do_construct_child, do_get_internal_child, do_parser_finished, do_set_name, get_internal_child, parser_finished

Inherited from gtk.Orientable: get_orientation, set_orientation

Inherited from settings.PropertiedBase: propertied_add_property, propertied_connect_NumEntry, propertied_connect_check, propertied_connect_radios, propertied_connect_settings, propertied_connect_settings1, propertied_get, propertied_init, propertied_on_preset, propertied_on_radio, propertied_on_user_set, propertied_scriptable, propertied_set

Inherited from object: __format__, __getattribute__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __explore_featured = ['has_modeling', 'about', 'controls_fit',...
  propertied_spec_dict = {'prompt_store_fit_curves': <qubx.setti...
  propertied_specs = [<qubx.settings.Property object>, <qubx.set...

Inherited from gtk.VBox: __gtype__

Instance Variables [hide private]
  views
list of each file's view

Inherited from faces.FilesFace: OnChange, OnClosing, OnSave, OnSwitch, file, index, lbls, names, page0, table, view

Inherited from faces.Face: icon, menubar, showing, tab_sublayers

Properties [hide private]
  prompt_store_fit_curves
False to trust the user on "save fit curves in session"
  splitter_frac
position between 0.0 and 1.0 of last hi/lo splitter moved

Inherited from faces.Face: parent_window, pop_prefs

Inherited from gtk.Container: border_width, focus_child, has_focus_chain, need_resize, reallocate_redraws, resize_mode

Inherited from gtk.Widget: allocation, name, parent, requisition, saved_state, state, style, window

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, tables, has_modeling, global_name='')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • name - the name of this face; e.g. Data
  • table - a qubx.ObjectTable of files
  • ViewClass - class or function(files_table) which instantiates a ToolSpace, subsequently assigned .file
  • menu_width - the file switcher is this many 'M's wide, at lower-left
  • popup_color - COLORREF of the inscribed-triangle File menu
Overrides: object.__init__
(inherited documentation)

make_page(self, view)

source code 
Overrides: faces.FilesFace.make_page

onShow(self, showing)

source code 

Override this method to do something when showing changes.

Overrides: faces.Face.onShow
(inherited documentation)

open(self, path=None)

source code 

Override this method to open the file at path and add it to table.

Overrides: faces.FilesFace.open
(inherited documentation)

save(self, path=None)

source code 
Overrides: faces.FilesFace.save

on_pre_close(self)

source code 
Overrides: faces.FilesFace.on_pre_close

on_pre_save(self, fname)

source code 
Overrides: faces.FilesFace.on_pre_save

is_changed(self)

source code 

Override this method to report if the current file has been modified.

Overrides: faces.FilesFace.is_changed
(inherited documentation)

can_save(self)

source code 

Override this method to report if the file can be saved.

Overrides: faces.FilesFace.can_save
(inherited documentation)

can_revert(self)

source code 

Override this method to report if the file can be reverted to saved.

Overrides: faces.FilesFace.can_revert
(inherited documentation)

init_file(self, file, view)

source code 

Override this method to do things when the file comes onscreen (e.g. subscribe to its events).

Overrides: faces.FilesFace.init_file
(inherited documentation)

done_file(self, file, view)

source code 

Override this method to do things when the file goes offscreen.

Overrides: faces.FilesFace.done_file
(inherited documentation)

get_open_filters(self)

source code 

Override this method to return a list of (".extension", gtk.FileFilter) to add to the open file dialog.

Overrides: faces.FilesFace.get_open_filters
(inherited documentation)

get_save_filters(self)

source code 

Override this method to return a list of (".extension", gtk.FileFilter) to add to the save file dialog; By default, uses the open_filters.

Overrides: faces.FilesFace.get_save_filters
(inherited documentation)

close_down(self)

source code 

Override: don't close the simulation data.

Overrides: faces.FilesFace.close_down

on_popup_file(self)

source code 
Overrides: faces.FilesFace.on_popup_file

Class Variable Details [hide private]

__explore_featured

Value:
['has_modeling',
 'about',
 'controls_fit',
 'sequence',
 'lstSequence',
 'display_prefs',
 'menubar',
 'init_fitting',
...

propertied_spec_dict

Value:
{'prompt_store_fit_curves': <qubx.settings.Property object>,
 'splitter_frac': <qubx.settings.Property object>}

propertied_specs

Value:
[<qubx.settings.Property object>, <qubx.settings.Property object>]

Property Details [hide private]

prompt_store_fit_curves

False to trust the user on "save fit curves in session"

Get Method:
unreachable.act(*act_args, **act_kw)
Set Method:
unreachable.act(*act_args, **act_kw)

splitter_frac

position between 0.0 and 1.0 of last hi/lo splitter moved

Get Method:
unreachable.act(*act_args, **act_kw)
Set Method:
unreachable.act(*act_args, **act_kw)