Archive:Development/Architecture/KDE4/Plasma (zh TW): Difference between revisions

    From KDE TechBase
    (Created page with '{{Template:I18n/Language Navigation Bar|Development/Architecture/KDE4/Plasma}} Plasma 是在 KDE4 中計劃取代 KDesktop 的新型桌面的名稱。你可以把它視為是[ht...')
     
    No edit summary
    Line 3: Line 3:
    Plasma 是在 KDE4 中計劃取代 KDesktop 的新型桌面的名稱。你可以把它視為是[http://netdragon.sf.net SuperKaramba]和 KDesktop 的結合,但它不僅是如此。它是一個整合了功能和美學的概念。
    Plasma 是在 KDE4 中計劃取代 KDesktop 的新型桌面的名稱。你可以把它視為是[http://netdragon.sf.net SuperKaramba]和 KDesktop 的結合,但它不僅是如此。它是一個整合了功能和美學的概念。


    它的實現基於自 Qt 4.2 開始引入的 Qt [http://doc.trolltech.com/graphicsview.html Graphics View 框架]。
    它的實現基於自 Qt 4.2 開始引入的 Qt [http://doc.qt.nokia.com/graphicsview.html Graphics View 框架]。


    From a developer point of view there are some classes in libplasma who play central roles.
    從開發人員的視角而言,在 libplasma 中有幾個類別扮演著主要的角色。


    * '''Corona''': extends [http://doc.trolltech.com/qgraphicsscene.html QGraphicsScene] and provides functionality for adding applets and karamba themes.
    * '''Corona'''[http://doc.qt.nokia.com/qgraphicsscene.html QGraphicsScene] 的擴展,並且提供了增加 applet 和 karamba 主題的功能。
    * '''Widget''': extends [http://doc.trolltech.com/qgraphicsitem.html QGraphicsItem] and works as simple elements in the desktop. There are some built-in in libplasma as icons or buttons.
    * '''Widget'''[http://doc.qt.nokia.com/qgraphicsitem.html QGraphicsItem] 的擴展,在桌面中作為一個基本元素運作。在 libplasma 中提供了一些内建的 Widget,如圖示或按鈕等。
    * '''Applet''': extends Widget and implements sophisticated functionality as rss display, a clock or system monitoring.
    * '''Applet''':擴展自 Widget,並且實現了更加複雜的功能,如 rss 顯示、時鐘、或者系統監視器等。
    * '''DataEngine''': The common use of a DataEngine is to provide data to an applet for display. This allows a user interface elements to show all sorts of data.
    * '''DataEngine''':DataEngine 的共同用途是提供數據給 applet 顯示。這讓使用者界面元素可以顯示各種類型的數據。


    ===Further reading===
    ===進一步閱讀===
    * [http://plasma.kde.org Plasma homesite]
    * [http://plasma.kde.org Plasma 網站]
    * [http://api.kde.org/4.0-api/kdebase-workspace-apidocs/libs/plasma/html/index.html API]
    * [http://api.kde.org/4.x-api/kdebase-workspace-apidocs/libs/plasma/html/index.html API]
    * [http://techbase.kde.org/Projects/Plasma Plasma techbase page]
    * [http://techbase.kde.org/Projects/Plasma Plasma techbase 頁面]

    Revision as of 16:17, 29 September 2009


    Development/Architecture/KDE4/Plasma


    Plasma 是在 KDE4 中計劃取代 KDesktop 的新型桌面的名稱。你可以把它視為是SuperKaramba和 KDesktop 的結合,但它不僅是如此。它是一個整合了功能和美學的概念。

    它的實現基於自 Qt 4.2 開始引入的 Qt Graphics View 框架

    從開發人員的視角而言,在 libplasma 中有幾個類別扮演著主要的角色。

    • CoronaQGraphicsScene 的擴展,並且提供了增加 applet 和 karamba 主題的功能。
    • WidgetQGraphicsItem 的擴展,在桌面中作為一個基本元素運作。在 libplasma 中提供了一些内建的 Widget,如圖示或按鈕等。
    • Applet:擴展自 Widget,並且實現了更加複雜的功能,如 rss 顯示、時鐘、或者系統監視器等。
    • DataEngine:DataEngine 的共同用途是提供數據給 applet 顯示。這讓使用者界面元素可以顯示各種類型的數據。

    進一步閱讀