lp:~nik90/checkbox/clean-qml-code

Created by Nekhelesh Ramananthan on 2014-08-15 and last modified on 2014-08-15
Get this branch:
bzr branch lp:~nik90/checkbox/clean-qml-code
Only Nekhelesh Ramananthan can upload to this branch. If you are Nekhelesh Ramananthan please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Nekhelesh Ramananthan
Project:
Checkbox
Status:
Development

Recent revisions

3203. By Nekhelesh Ramananthan on 2014-08-15

Cleaned up qml code

3202. By Zygmunt Krynicki on 2014-08-15

checkbox-touch: add a README file

Signed-off-by: Zygmunt Krynicki <email address hidden>

3201. By Zygmunt Krynicki on 2014-08-15

checkbox-touch: rewrite main.py to use components

This patch replaces inline components with components loaded from external
files. The main UI is switched from a Page to a Page stack that currently
just holds the WelcomePage.

For simple sanity checks, when the CheckboxStack becomes ready we print
out (via console.log) a number of version strings.

Signed-off-by: Zygmunt Krynicki <email address hidden>

3200. By Zygmunt Krynicki on 2014-08-15

checkbox-touch:components: add the CheckboxStack component

This component wraps pyotherside's Python and our own PlainBox components.
It offers a stackReady() signal that once sent, can be used to interact
with other exposed functionality. Currently that is just limited to
the plainboxVersion, pyothersideVersion and pythonVersion properties.

Signed-off-by: Zygmunt Krynicki <email address hidden>

3199. By Zygmunt Krynicki on 2014-08-15

checkbox-touch:components: add WelcomePage

This welcome page implements the current design (we should make the
design public for easier access) of the touch UI. The welcome text
is still as stub (waiting for design update).

The button action is exposed via the startTestingTriggered() signal

Signed-off-by: Zygmunt Krynicki <email address hidden>

3198. By Zygmunt Krynicki on 2014-08-15

checkbox-touch:components: add PlainBox component

This component extends PythonObjectHandle to offer API mapping to the
corresponding python class from the checkbox_stack.py module.

Currently it just offers a property for the plainbox version string.

Signed-off-by: Zygmunt Krynicki <email address hidden>

3197. By Zygmunt Krynicki on 2014-08-15

checkbox-touch:components: add PythonObjectHandle

This QML component complements the recently added python APIs.
The component wraps a single handle and pyotherside reference and
exposes one public function, invoke(). That function allows one to
asynchronously call any method on the wrapped python object.

Internally the _unref() function is called when the QML component is
being destroyed and the handleReady() signal is sent when the component
becomes usable (typically all user initialization code would be in
the handler of that signal)

Signed-off-by: Zygmunt Krynicki <email address hidden>

3196. By Zygmunt Krynicki on 2014-08-15

checkbox-touch:py: remove dummy code from checkbox_touch

The checkbox_touch module contained some initial dummy code. We don't
need it anymore so let's get rid of it. The module should stay behind to
hold any code specific to checkbox_touch that we may need later.

Signed-off-by: Zygmunt Krynicki <email address hidden>

3195. By Zygmunt Krynicki on 2014-08-15

checkbox-touch:py: add checkbox_stack module

This python module offers the following APIs:

The RemoteObjectLifecycleManager class allows QML to share references
to python objects without having to pass them through the pyotherside
data processing bridge. Objects are represented by simple handles
(a little like file descriptors). The API allows one to ref any object,
unref any handle and invoke a method on any object represented by a handle

The PlainBox class (name overload!) is a simple prototype to using
all of plainbox's APIs without having to import all the guts from all
over the code. It will offer discovery of sessions and providers.
Currently it offers a way to load the version of the plainbox library.

The module does some magic to put py_{ref,unref,invoke} into the global
scope (via builtins) so that it is easy to call from pyotherside.

Signed-off-by: Zygmunt Krynicki <email address hidden>

3194. By Zygmunt Krynicki on 2014-08-15

checkbox-touch: fix copyright date

Signed-off-by: Zygmunt Krynicki <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:checkbox
This branch contains Public information 
Everyone can see this information.