Kross::ActionCollections are like normal ActionCollections a group of Actions. In this case those are

+

Kross::ActionCollections, much like KActionCollections, represent a group of actions. A Kross::ActionCollection is used to group Kross::Actions together and collectively give them an icon, description, name and display text.

−

Kross::ActionCollections and can be used to group Actions and give the Collection Icon, a Description a Name and a Display Text.

The name "actioncollection can be replaced by any name you want and should be usefull and reasonably chosen. The function actionCollection() from Kross::Manager::self() is used to define that this is a toplevel collection. This is usefull if you want to have sub collections for different types of Kross::Actions.

+

The first parameter, "actioncollection" in the example above, can be replaced by any name you want and should be useful and reasonably chosen. Passing in the collection returned by Kross::Manager::self()->actionCollection() defines that this is a toplevel collection. This is usefull if you want to have sub collections for different types of Kross::Actions.

== Using it ==

== Using it ==

−

Now that we created a Kross::ActionCollection its time to populate it with Kross::Actions. Therefore we create some actions which can all have different code and interpreters for them selfs.

+

Now that we have created a Kross::ActionCollection it is time to populate it with Kross::Actions. Therefore we next create some actions, each of which can have different code and interpreters.

Latest revision as of 19:42, 29 June 2011

Kross::ActionCollections, much like KActionCollections, represent a group of actions. A Kross::ActionCollection is used to group Kross::Actions together and collectively give them an icon, description, name and display text.

The first parameter, "actioncollection" in the example above, can be replaced by any name you want and should be useful and reasonably chosen. Passing in the collection returned by Kross::Manager::self()->actionCollection() defines that this is a toplevel collection. This is usefull if you want to have sub collections for different types of Kross::Actions.