请输入您要查询的百科知识:

 

词条 KDE Platform 4
释义

  1. Technologies

      Technologies superseded in KDE Platform 4  

  2. KParts

  3. Solid

  4. Hello world example

  5. References

  6. External links

{{Infobox software
| name = KDE Platform 4
| logo = File:KDE_Mascot_Konqi_for_KDE_Frameworks.png
| logo caption =
| screenshot =
| caption =
| collapsible =
| author = KDE
| developer = KDE
| released = {{Start date and age|2008|01|11|df=yes}}[1]
| discontinued = yes
| status = Maintenance
| programming language = C++[2][3]
| operating system =
| size =
| language =
| language count =
| language footnote =
| genre = {{unbulleted list|System libraries|Software frameworks}}
| license = GNU Lesser General Public License (LGPL)
| website =
| logo_size =
| logo_alt =
| screenshot_size =
| screenshot_alt =
}}

KDE Platform 4 is a collection of libraries and software frameworks by KDE that serve as technological foundation for KDE Software Compilation 4 distributed under the GNU Lesser General Public License (LGPL). KDE Platform 4 is the successor to KDElibs and the predecessor of KDE Frameworks 5. KDE Platform 4 is the only version of KDE Platform, see KDE’s brand repositioning.

Technologies

  • User Interface
    • Plasma – desktop and panel widget engine
    • KHTML – HTML rendering engine
    • KIO – extensible network-transparent file access
    • KParts – lightweight in-process graphical component framework
    • Sonnet – spell checker
    • XMLGUI – allows defining UI elements such as menus and toolbars via XML files
    • Goya
  • Hardware and Multimedia
    • Phonon – multimedia framework
    • Solid – device integration framework
  • Services
    • NEPOMUK
    • KNewStuff – KDE's "Hot New Stuff" classes
    • Policykit-KDE
  • Communication
    • Akonadi
  • Games
    • Gluon
    • KGGZ
  • Other
    • ThreadWeaver – library to use multiprocessor systems more effectively
    • Kiosk – allows disabling features within KDE to create a more controlled environment
    • Kross
    • KConfig XT
    • ownCloud[4]

Technologies superseded in KDE Platform 4

  • aRts – sound server (replaced with Phonon)
  • DCOP – inter-process communication system (replaced with D-Bus)

KParts

KParts is the component framework for the KDE Plasma desktop environment. An individual component is called a KPart. KParts are analogous to Bonobo components in GNOME and ActiveX controls in Microsoft's Component Object Model. Konsole is available as a KPart and is used in applications like Konqueror and Kate.

Example uses of KParts:

  • Konqueror uses the Okular part to display documents
  • Konqueror uses the Dragon Player part to play multimedia
  • Kontact embeds kdepim applications
  • Kate and other editors use the katepart editor component
  • Several applications use the Konsole KPart to embed a terminal
External links
  • [https://web.archive.org/web/20101018053040/http://developer.kde.org/documentation/tutorials/kparts/ Creating and Using Components (KParts)] (from KDE)
  • [https://web.archive.org/web/20101119030551/http://developer.kde.org/documentation/tutorials/dot/writing-plugins.html Writing Plugins For KDE Applications] (from KDE)

Solid

{{redirect|Solid (software)||Solid (disambiguation)}}Solid is a device integration framework for KDE Platform 4, the current release of KDE. It functions on similar principles to KDE's multimedia pillar Phonon; rather than managing hardware on its own, it makes existing solutions accessible through a single API. The current solution uses udev, NetworkManager and BlueZ (the official Linux Bluetooth stack). However, any and all parts can be replaced without breaking the application, making applications using Solid extremely flexible and portable.[5][6] Work is underway to build a Solid backend for the Windows port of KDE based on Windows Management Instrumentation.[7]

Solid is broken up into many hardware “domains” which operate independently. Domains may be added as needed. For instance, one domain may be Bluetooth, and another may be power management. Solid is used extensively within KDE 4 and its popular applications, making them more aware of hardware events and easier to develop.

External links
  • Solid home page
  • KDE dot article on Solid

Hello world example

  1. include
  2. include
  3. include
  4. include
  5. include

int main (int argc, char *argv[])

{
    KAboutData aboutData(                         // The program name used internally.                         "tutorial1",                         // The message catalog name                         // If null, program name is used instead.                         0,                         // A displayable program name string.                         ki18n("Tutorial 1"),                         // The program version string.                         "1.0",                         // Short description of what the app does.                         ki18n("Displays a KMessageBox popup"),                         // The license this code is released under                         KAboutData::License_GPL,                         // Copyright Statement                         ki18n("Copyright (c) 2007"),                         // Optional text shown in the About box.                         // Can contain any information desired.                         ki18n("Some text..."),                         // The program homepage string.                         "http://example.com/",                         // The bug report email address                         "submit@bugs.kde.org");     KCmdLineArgs::init( argc, argv, &aboutData );    KApplication app;    KGuiItem yesButton( i18n( "Hello" ), QString(),                        i18n( "This is a tooltip" ),                        i18n( "This is a WhatsThis help text." ) );    KMessageBox::questionYesNo( 0, i18n( "Hello World" ),                                i18n( "Hello" ), yesButton );    return 0;

}

References

1. ^{{cite web | url=http://kde.org/announcements/4.0/ | title=KDE 4.0 Release Announcement}}
2. ^{{cite web |url= http://www.kde.org/developerplatform/ |title= The KDE development platform |accessdate=2010-11-26}}
3. ^{{cite web |url= http://techbase.kde.org/Development/Languages |title= Development/Languages |accessdate=2010-12-04}}
4. ^http://owncloud.org/
5. ^K Desktop Environment - KDE 4.0 Released
6. ^UPower, UDev and UDisks Support, Metadata Backup
7. ^KDE Commit Digest issue 107

External links

{{Portal|Free and open-source software}}
  • TechBase, documentation for KDE developers
  • [https://projects.kde.org/ KDE Projects], overview of all projects within git.kde.org
  • KDE quick Git source code browser
  • KDE Bug Tracking System
  • KDE tutorial first program
{{KDE}}{{DEFAULTSORT:Kde Platform}}

8 : KDE Platform|Application programming interfaces|Articles with example C++ code|Computing platforms|Free computer libraries|KDE software|Unix windowing system-related software|X-based libraries

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 22:17:30