qubx :: dataGTK :: TimeControlLayer :: Class TimeControlLayer
[hide private]
[frames] | no frames]

Class TimeControlLayer

source code

     object --+    
              |    
toolspace.Layer --+
                  |
                 TimeControlLayer

Floating controls for which/how many segments to show, and what time range.

Instance Methods [hide private]
 
__init__(self, signals, x)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__onAddSeg(self, segm, f, l, start) source code
 
__onChangeSampling(self, file, sampling) source code
 
__onClearSegs(self, segm) source code
 
__onMovingTimeRange(self, timeRange, left, right) source code
 
__onSetSignal(self, i, field_name, val, prev, undoing=False) source code
 
__onSetTimeRange(self, timeRange, left, right, by_mouse) source code
 
click_segRange(self, x, y, e) source code
 
click_together(self, x, y, e) source code
 
down_together(self) source code
 
pop_range(self, full=False) source code
 
re_range(self, event_if_moved=True) source code
 
scroll_together(self, x, y, e, off) source code
 
seg_back_group(self, x, y, e) source code
 
seg_back_one(self, x, y, e) source code
 
seg_fwd_group(self, x, y, e) source code
 
seg_fwd_one(self, x, y, e) source code
 
set_Gseg(self, x) source code
 
set_Iseg(self, x) source code
 
set_Nseg(self, x) source code
 
set_dur(self, dur) source code
 
set_file(self, x) source code
 
set_hilite(self, left, right) source code
 
set_left(self, x) source code
 
set_ndiv(self, x) source code
 
set_right(self, x) source code
 
set_sel(self, left, right) source code
 
set_sel_left(self, x) source code
 
set_sel_right(self, x) source code
 
setup_dur(self, iseg=None)
Adjusts the overall duration when the index or number of segments changes.
source code
 
up_together(self) source code
 
zoom_in(self, factor=2.0, left=86738.82583, right=86738.82583) source code
 
zoom_out(self, factor=2.0, prefer_undo=True) source code

Inherited from toolspace.Layer: add_sublayer, button_press, button_release, clear_sublayers, draw, find_sub, invalidate, motion_notify, mouse_enter, mouse_exit, on_hide, on_show, pt_in_rect, remove_sublayer, render, render_to, scroll, set_h, set_h_min, set_space, set_sub_hover, set_w, set_w_min, set_x, set_y, sub_press, sub_release

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  OnChangeHilite
WeakEvent(Layer, left, right) when hilite changes
  OnChangeSegments
WeakEVent(Layer) when Iseg/Greal changes
  OnChangeSel
WeakEvent(Layer, left, right) when sel_left and/or sel_right change
  OnChangeShowing
WeakEvent(Layer) when left/right changes
  signals
dataview.signals (lo-res), a qubx.Table
  timeRange
qubx.toolspace.SubLayer_Range

Inherited from toolspace.Layer: OnInvalidate, appearance, border, cBG, cBorder, h, h_min, invalid, rq_h, rq_w, rq_x, rq_y, subs, surface, w, w_min, x, y

Properties [hide private]
  Greal
actual number of onscreen segments e.g.
  Gseg
number of onscreen segments ('at a time')
  Iseg
index of first onscreen segment
  Ndiv
number of horizontal divisions (grid lines) because zoom is controlled by 'per div'
  Nseg
total number of data segments
  file
qubx.data_types.QubData instance which is being viewed; assign before using
  hilite
(left, right) of the high-res selection, in seconds from segment start
  left
lower bound of the lo-res onscreen area, in seconds from segment start
  right
upper bound of the lo-res onscreen area, in seconds from segment start
  sel
shorthand for (sel_left, sel_right)
  sel_left
lower bound of the lo-res selection, in seconds from segment start
  sel_right
upper bound of the hi-res selection, in seconds from segment start

Inherited from toolspace.Layer: space, sub_hover

Inherited from object: __class__

Method Details [hide private]

__init__(self, signals, x)
(Constructor)

source code 

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

Parameters:
Overrides: object.__init__

Property Details [hide private]

Greal

actual number of onscreen segments e.g. if Nseg < Gseg

Get Method:
unreachable(self)

Gseg

number of onscreen segments ('at a time')

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

Iseg

index of first onscreen segment

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

Ndiv

number of horizontal divisions (grid lines) because zoom is controlled by 'per div'

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

Nseg

total number of data segments

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

file

qubx.data_types.QubData instance which is being viewed; assign before using

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

hilite

(left, right) of the high-res selection, in seconds from segment start

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

left

lower bound of the lo-res onscreen area, in seconds from segment start

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

right

upper bound of the lo-res onscreen area, in seconds from segment start

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

sel

shorthand for (sel_left, sel_right)

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

sel_left

lower bound of the lo-res selection, in seconds from segment start

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

sel_right

upper bound of the hi-res selection, in seconds from segment start

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)