aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/unitymenumodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add action role (replacing actionState role)Nick Dedekind2013-07-301-6/+30
|
* Set model qdata on items instead of the muxerLars Uebernickel2013-07-301-7/+3
|
* Add ActionStateParserNick Dedekind2013-07-301-2/+35
|
* unitymenumodel: lookup themed icon before turning it into a uriNick Dedekind2013-07-301-5/+11
|
* unitymenumodel: add get()Lars Uebernickel2013-07-261-0/+12
|
* Expose the state of a menu item's action in model.actionStateLars Uebernickel2013-07-261-3/+22
|
* Fix crash in UnityMenuModel::menuItemChangedLars Uebernickel2013-07-251-1/+1
| | | | | | | menuItemInserted set the iter _after_ the one that was just inserted as qdata. This is (a) wrong and (b) leads to the end iter being in there in some cases. menuItemChanged can't deal with that (it calls g_sequence_get() without checking for the end iter).
* unitymenumodel: expose type and extended attributes to qmlLars Uebernickel2013-07-251-1/+113
|
* unitymenumodel: add support for iconsLars Uebernickel2013-06-251-1/+55
| | | | For now, this includes themed icons, file icons, and icons send as raw data.
* unitymenumodel: allow setting multiple prefixed action groupsLars Uebernickel2013-06-241-12/+15
|
* unitymenumodel: set free func on GSequenceLars Uebernickel2013-06-241-29/+10
| | | | | Makes item removal code much cleaner (no need for the explicit free), at the cost of another qdata.
* unitymenumodel: use g_clear_objectLars Uebernickel2013-06-241-6/+2
|
* unitymenumodel: remove forSubMenuLars Uebernickel2013-06-241-13/+6
|
* unitymenumodel: move role enum into .cppLars Uebernickel2013-06-241-3/+10
| | | | No need for that to be public.
* unitymenumodel: remove redundant priv functionsLars Uebernickel2013-06-241-67/+42
|
* Move unityqmlmenumodel's properties to unitymenumodelLars Uebernickel2013-06-241-60/+115
| | | | | | | | This gets rid of the ad-hoc construct-only properties and ::init() vfunc. Names and paths can now be changed after creating the menu model. This will probably be used seldom in practice, but it makes the code a bit cleaner. Unityqmlmenumodel doesn't do anything interesting right now.
* unitymenumodel: call init in the the constructor that is meant to be used ↵Lars Uebernickel2013-06-051-0/+1
| | | | from c++
* unitymenumodel: add support for submenusLars Uebernickel2013-06-051-18/+65
|
* unitymenumodel: add activate()Lars Uebernickel2013-06-051-0/+17
|
* unitymenumodel: expose isSeparatorLars Uebernickel2013-06-041-0/+4
|
* unitymenumodel: watch the bus nameLars Uebernickel2013-06-041-30/+83
| | | | This makes it possible to restart the service that provides the menu.
* Introduce UnityMenuModel and UnityQmlMenuModelLars Uebernickel2013-06-041-0/+227
UnityMenuModel serves the same purpose as QMenuModel, but it is based on GtkMenuTracker and has a different API. GtkMenuTracker is maintained in gtk, but meant to be copy-and-pasted into other consumers of menu models. It does not introduce new dependencies. It does give us access to all the features that GMenuModel has.