From 44266273bf50c8312801206e4162ba77bc7b420b Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 5 Oct 2014 17:12:10 -0400 Subject: [PATCH] Included hscommon.jobprogress in the devdocs --- help/conf.tmpl | 2 +- help/en/developer/hscommon/index.rst | 11 ++++------- help/en/developer/hscommon/jobprogress/job.rst | 17 +++++++++++++++++ .../hscommon/jobprogress/performer.rst | 12 ++++++++++++ help/en/developer/hscommon/jobprogress/qt.rst | 12 ++++++++++++ hscommon/gui/progress_window.py | 4 ++-- 6 files changed, 48 insertions(+), 10 deletions(-) create mode 100644 help/en/developer/hscommon/jobprogress/job.rst create mode 100644 help/en/developer/hscommon/jobprogress/performer.rst create mode 100644 help/en/developer/hscommon/jobprogress/qt.rst diff --git a/help/conf.tmpl b/help/conf.tmpl index 3519e575..22e0f16f 100644 --- a/help/conf.tmpl +++ b/help/conf.tmpl @@ -25,7 +25,7 @@ sys.path.insert(0, os.path.abspath(os.path.join('..', '..'))) def fix_nulljob_in_sig(app, what, name, obj, options, signature, return_annotation): if signature: - signature = re.sub(r"", "nulljob", signature) + signature = re.sub(r"", "nulljob", signature) return signature, return_annotation def setup(app): diff --git a/help/en/developer/hscommon/index.rst b/help/en/developer/hscommon/index.rst index 38f7afca..4fc45f97 100644 --- a/help/en/developer/hscommon/index.rst +++ b/help/en/developer/hscommon/index.rst @@ -3,6 +3,7 @@ hscommon .. toctree:: :maxdepth: 2 + :glob: build conflict @@ -10,10 +11,6 @@ hscommon notify path util - gui/base - gui/text_field - gui/selectable_list - gui/table - gui/tree - gui/column - gui/progress_window + jobprogress/* + gui/* + diff --git a/help/en/developer/hscommon/jobprogress/job.rst b/help/en/developer/hscommon/jobprogress/job.rst new file mode 100644 index 00000000..af1553f8 --- /dev/null +++ b/help/en/developer/hscommon/jobprogress/job.rst @@ -0,0 +1,17 @@ +hscommon.jobprogress.job +======================== + +.. automodule:: hscommon.jobprogress.job + + .. autosummary:: + + Job + NullJob + + .. autoclass:: Job + :members: + :private-members: + + .. autoclass:: NullJob + :members: + diff --git a/help/en/developer/hscommon/jobprogress/performer.rst b/help/en/developer/hscommon/jobprogress/performer.rst new file mode 100644 index 00000000..8a9ead0a --- /dev/null +++ b/help/en/developer/hscommon/jobprogress/performer.rst @@ -0,0 +1,12 @@ +hscommon.jobprogress.performer +============================== + +.. automodule:: hscommon.jobprogress.performer + + .. autosummary:: + + ThreadedJobPerformer + + .. autoclass:: ThreadedJobPerformer + :members: + diff --git a/help/en/developer/hscommon/jobprogress/qt.rst b/help/en/developer/hscommon/jobprogress/qt.rst new file mode 100644 index 00000000..e7fd1df5 --- /dev/null +++ b/help/en/developer/hscommon/jobprogress/qt.rst @@ -0,0 +1,12 @@ +hscommon.jobprogress.qt +======================= + +.. automodule:: hscommon.jobprogress.qt + + .. autosummary:: + + Progress + + .. autoclass:: Progress + :members: + diff --git a/hscommon/gui/progress_window.py b/hscommon/gui/progress_window.py index 36db75ec..0a6a0c3e 100644 --- a/hscommon/gui/progress_window.py +++ b/hscommon/gui/progress_window.py @@ -48,7 +48,7 @@ class ProgressWindow(GUIObject, ThreadedJobPerformer): :meth:`pulse` in the main thread because GUI toolkit usually only support calling UI-related functions from the main thread. - We subclass :class:`.GUIObject` and :class:`ThreadedJobPerformer`. + We subclass :class:`.GUIObject` and :class:`.ThreadedJobPerformer`. Expected view: :class:`ProgressWindowView`. :param finishfunc: A function ``f(jobid)`` that is called when a job is completed. ``jobid`` is @@ -102,7 +102,7 @@ class ProgressWindow(GUIObject, ThreadedJobPerformer): def run(self, jobid, title, target, args=()): """Starts a threaded job. - The ``target`` function will be sent, as its first argument, a :class:`Job` instance which + The ``target`` function will be sent, as its first argument, a :class:`.Job` instance which it can use to report on its progress. :param jobid: Arbitrary identifier which will be passed to ``finish_func()`` at the end.