Bug 167538

Summary: Cannot add objects to Kross::ActionCollection
Product: [Frameworks and Libraries] kdelibs Reporter: Ben Boeckel <bugzilla.kde>
Component: generalAssignee: Sebastian Sauer <mail>
Status: RESOLVED FIXED    
Severity: wishlist CC: cullmann
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ben Boeckel 2008-07-27 18:50:47 UTC
Version:            (using KDE 4.0.98)
Installed from:    Compiled From Sources

I would like to be able to add QObjects to the action collection as well. I can add them at the trunk (Manager) and the leaf (Action), but anything that could be consolidated at the branch level has to be added to the leaves individually. Is there a way that it could be added to ActionCollection?
Comment 1 Sebastian Sauer 2008-07-29 04:48:12 UTC
proposal from MathStuf;

/KDE/kdelibs/includes/Kross/z

is:

#include "../../kross/x/y"


core/
    actioncollection.h
        Kross/ActionCollection
    action.h
        Kross/Action
    childreninterface.h
        Kross/ChildrenInterface
    errorinterface.h
        Kross/ErrorInterface
    interpreter.h
        Kross/Interpreter
        Kross/InterpreterInfo
    manager.h
        Kross/Manager
    metafunction.h
        Kross/MetaFunction
        Kross/MetaFunction/Option // use the '/' ?
    metatype.h
        Kross/MetaType
        // Other MetaType* classes?
    object.h
        Kross/Object
    script.h
        Kross/Script
    wrapperinterface.h
        Kross/WrapperInterface

ui/
    model.h
        Kross/ActionCollectionModel
        Kross/ActionCollectionProxyModel
    plugin.h
        Kross/ScriptingPlugin
    view.h
        Kross/ActionCollectionEditor
        Kross/ActionCollectionView
Comment 2 Ben Boeckel 2008-12-28 00:35:31 UTC
If I were to make patches for this, would it be possible for this to make it into 4.2 (or even 4.3)? From what I can see, Kross::ActionCollection would need to grow an inheritance from Kross::ChildrenInterface. The Kross plugins would also need to add objects from parents of the action when being executed. Since this breaks binary compatibility and, AFAIK, KDevelop and KOffice2 are the only (or at least biggest) users of Kross and they do not yet have major releases where binary incompatibility would cause too much fallout.
Comment 3 Christoph Cullmann 2024-05-06 17:47:06 UTC
Kross got removed.