Development/Architecture/KDE4/KParts: Difference between revisions

    From KDE TechBase
    No edit summary
    No edit summary
    (17 intermediate revisions by 8 users not shown)
    Line 1: Line 1:
    KParts is the name of the component framework for the KDE desktop environment. An individual component is called a KPart. KParts are analogous to Bonobo components in GNOME, both of which are based on the same concepts as Microsoft's Object Linking and Embedding.


    ===Example usage===
    '''KParts''' is the name of the component framework for KDE. An individual component is called a '''KPart'''. As an example, Konsole is available as a KPart and is used in applications like Konqueror and Kate. Good examples about how KParts can be used are Konqueror, which (among other things) uses the KWord part to display documents, KMPlayer part to play multimedia, and Kontact, which embeds kdepim applications under one roof.
    Konsole is available as a KPart and is used in applications like Konqueror and Kate. Konqueror is good example of how KParts can be used. Konqueror uses the KWord part to display documents, KMPlayer part to play multimedia.
     
    KParts also provide flexibility in your software selection. For example, the KHTML part which is by default used by Konqueror for HTML rendering can very easily be exchanged by a Webkit KPart.
     
    ===Further reading===
    * [[Development/Tutorials/Using_KParts|Techbase Tutorial: "Using KParts"]]
    * [http://api.kde.org/4.0-api/kdelibs-apidocs/kparts/html/index.html KParts API Reference]
    * [http://api.kde.org/4.0-api/kdelibs-apidocs/kparts/html/classKParts_1_1Part.html KParts Class Reference]
    * [http://www-106.ibm.com/developerworks/library/l-kparts/ Coding with KParts] (from IBM)
     
    [[Category:KDE4]]

    Revision as of 12:52, 13 July 2012

    KParts is the name of the component framework for KDE. An individual component is called a KPart. As an example, Konsole is available as a KPart and is used in applications like Konqueror and Kate. Good examples about how KParts can be used are Konqueror, which (among other things) uses the KWord part to display documents, KMPlayer part to play multimedia, and Kontact, which embeds kdepim applications under one roof.

    KParts also provide flexibility in your software selection. For example, the KHTML part which is by default used by Konqueror for HTML rendering can very easily be exchanged by a Webkit KPart.

    Further reading