Displays a list of job information. Instances need to be configured
by specifying a format for display and a function for filtering those to
display.
It contains a list of job display objects, and tracks and highlights a
focussed one.
|
__init__(self,
display,
name,
job_filter,
job_header_fmt,
header='
' ,
show_job_output=False,
sync_main_job=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
|
|
on_add_job(self,
job)
Add a single job to the list. |
|
|
|
on_remove_job(self,
job)
A job is removed from the manager, so remove it from the list. |
|
|
|
|
|
|
|
|
|
_get_job_header_size(self)
Return the number of lines used by each job header. |
|
|
|
_load_job(self)
Ask the job manager to load a new job on disk, which will be inserted
at the front of the list. |
|
|
|
_get_job_option(self,
option,
job=None)
Fetch an option from self.job_options. |
|
|
|
_set_job_option(self,
option,
value,
job=None)
Set an option in self.job_options. |
|
|
|
_set_curjob(self,
newjob=None,
next=False,
prev=False,
dispmode='
' )
Update the current job and related state. |
|
|
|
current_job(self)
Return the current job as a hsh.jobs.Job object. |
|
|
|
last_job(self)
Return the last job as a hsh.jobs.Job object or None. |
|
|
|
set_current_job(self,
job)
Update the list's current job to the given hsh.jobs.Job object, and
change display position so it's visible. |
|
|
|
get_predecessor(self,
job)
Given a job, fetch one from the list which falls before it based on
jobid. |
|
|
|
get_successor(self,
job)
Given a job, fetch one from the list which falls after it based on
jobid. |
|
|
|
|
boolean
|
draw(self,
win,
force_redraw,
search=None)
This default implementation of draw() is purely illustrative, and
only draws the header. |
|
|
|
move_search(self,
pattern,
forward=True,
from_end=False)
Update the display position so the next match of the given pattern is
visible. |
|
|
|
|
|
|
|
|
|
move_job_bottom(self,
ki) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input_command(self,
ki,
overwrite)
Insert the current job's command line to input view, and if overwrite
is True, remove any existing input. |
|
|
|
|
|
|
Inherited from view.View :
change_view ,
delete_left ,
delete_line ,
delete_right ,
draw_header ,
draw_line ,
get_face ,
get_name ,
has_terminal ,
header_info ,
insert ,
is_dirty ,
min_height ,
min_width ,
move_bottom ,
move_end ,
move_left ,
move_right ,
move_start ,
move_top ,
next_window ,
paste ,
putch ,
quit ,
set_dirty ,
set_focus ,
set_has_terminal ,
show_search ,
wants_terminal
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|