[MainView] Need a way to dynamically alter the current global actions

Bug #1207804 reported by Alexandre Abreu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Undecided
Unassigned
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The MainView current exposes an actions property (behind the scene aliased to actionManager.actions which is a qmllistproperty) that is used to declare static actions for the global actions context.

There is currently no ways (besides using Pages) to dynamically alter and access those actions at runtime.

The context of the requests and the associated requests come from WebApps where depending on what's being present on a given supported web application (think GMail or GoogleDocs) actions are dynamically being added (as the DOM is being parsed) at runtime. The use case is very dynamic at its core.

The webbrowser-app will be used as a container for WebApps but it uses a MainView (it used to use a plain ActionManager) which does not expose ways to dynamically tweak actions.

In this very context, a simple solution would be to add addaction/removeaction caps to the MainView, but a somewhat better one (but trickier to get right imo) would be the capability to introduce additional actioncontexts (*dynamic* ones i.e. w/ addaction & removeaction capabilities) and allow them to either replace the global one or complement it. One could still keep the static list of actions but have some dynamic caps within the boundary of the unityactions API w/ a bridge to the SDK MainView ...

Related branches

summary: - [MainView] Need a way to dyanmically alter the current global actions
+ [MainView] Need a way to dynamically alter the current global actions
Revision history for this message
Tim Peeters (tpeeters) wrote :

Is there someone in the sdk team who is more involved with webapps than the others?

Revision history for this message
Tim Peeters (tpeeters) wrote :

Alexandre, so I understand it correctly that there will be a single qml-app that is based on the webbrowser-app of which an instance will run for each webapp? Do you have a branch somewhere or even a ppa/package that we can try out to get a better feeling of what you are working on? Thanks.

Revision history for this message
Tim Peeters (tpeeters) wrote :

correction: *DO I understand it correctly that....

Revision history for this message
Olivier Tilloy (osomon) wrote :

@Tim: the webapps container and the webbrowser app are the same application. You can already check out how webapps are integrated at lp:webbrowser-app (the implementation is not complete yet, but it should give you a good idea of how it works).

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-ui-toolkit at revision None, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Changed in ubuntu-ui-toolkit:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+13.10.20130822.1-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+13.10.20130822.1-0ubuntu1) saucy; urgency=low

  [ Alexandre Abreu ]
  * Add an actionmanager property that let clients be more flexible with
    their actions at runtime. (LP: #1207804)

  [ tpeeters ]
  * Do not trigger a ToolbarButton that is not enabled. (LP: #1202245)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 707
 -- Ubuntu daily release <email address hidden> Thu, 22 Aug 2013 18:55:49 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.