Archive:Development/Architecture/KDE3/Library Structure (zh CN): Difference between revisions
Appearance
No edit summary |
m AnneW moved page Development/Architecture/KDE3/Library Structure (zh CN) to Archive:Development/Architecture/KDE3/Library Structure (zh CN) without leaving a redirect: Obsolete |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
下面简单介绍了类库结构。 | 下面简单介绍了类库结构。 | ||
Line 8: | Line 8: | ||
: The kdecore library is the basic application framework for every KDE based program. It provides access to the configuration system, command line handling, icon loading and manipulation, some special kinds inter-process communication, file handling and various other utilities. | : The kdecore library is the basic application framework for every KDE based program. It provides access to the configuration system, command line handling, icon loading and manipulation, some special kinds inter-process communication, file handling and various other utilities. | ||
; [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/index.html | ; [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/index.html KDEUI] | ||
: The kdeui library provides many widgets and standard dialogs which Qt doesn't have or which have more features than their Qt counterparts. It also includes several widgets which are subclassed from Qt ones and are better integrated with the KDE desktop by respecting user preferences. | : The kdeui library provides many widgets and standard dialogs which Qt doesn't have or which have more features than their Qt counterparts. It also includes several widgets which are subclassed from Qt ones and are better integrated with the KDE desktop by respecting user preferences. | ||
; [http://api.kde.org/3.5-api/kdelibs-apidocs/kio/html/index.html | ; [http://api.kde.org/3.5-api/kdelibs-apidocs/kio/html/index.html KIO] | ||
: The kio library contains facilities for asynchronous, network transparent I/O and access to mimetype handling. It also provides the KDE file dialog and its helper classes. | : The kio library contains facilities for asynchronous, network transparent I/O and access to mimetype handling. It also provides the KDE file dialog and its helper classes. | ||
; [http://api.kde.org/3.5-api/kdelibs-apidocs/kjs/html/index.html | ; [http://api.kde.org/3.5-api/kdelibs-apidocs/kjs/html/index.html KJS] | ||
: JavaScript的实现。 | : JavaScript的实现。 | ||
; [http://api.kde.org/3.5-api/kdelibs-apidocs/khtml/html/index.html | ; [http://api.kde.org/3.5-api/kdelibs-apidocs/khtml/html/index.html KHtml] | ||
: The khtml library contains the KHTML part, a HTML browsing widget, DOM API and parser, including interfaces to Java and JavaScript. | : The khtml library contains the KHTML part, a HTML browsing widget, DOM API and parser, including interfaces to Java and JavaScript. | ||
== 类库分组 == | == 类库分组 == | ||
主应用框架 - 所有程序都要用的类。 | |||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKApplication.html KApplication] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKApplication.html KApplication] - 初始化及控制KDE应用程序. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKUniqueApplication.html KUniqueApplication] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKUniqueApplication.html KUniqueApplication] - 确保同一时间系统只有一个实例。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKAboutData.html KAboutData] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKAboutData.html KAboutData] - 关于对话框内容。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKCmdLineArgs.html KCmdLineArgs] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKCmdLineArgs.html KCmdLineArgs] - 处理命令行参数。 | ||
配置设定 - access to KDE's hierarchical configuration database, global settings and application resources. | |||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKConfig.html KConfig] - provides access to KDE's configuration database. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKConfig.html KConfig] - provides access to KDE's configuration database. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKSimpleConfig.html KSimpleConfig] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKSimpleConfig.html KSimpleConfig] - 处理简单,非层级关联的配置文件。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKDesktopFile.html KDesktopFile] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKDesktopFile.html KDesktopFile] - 处理 <tt>.desktop</tt> 文件。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKGlobalSettings.html KGlobalSettings] - convenient access to not application-specific settings. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKGlobalSettings.html KGlobalSettings] - convenient access to not application-specific settings. | ||
文件和URL处理 - URL解码,临时文件 | 文件和URL处理 - URL解码,临时文件 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKURL.html KURL] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKURL.html KURL] - 表现和处理URL。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKTempFile.html KTempFile] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKTempFile.html KTempFile] - 为临时数据创建文件。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKSaveFile.html KSaveFile] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKSaveFile.html KSaveFile] - 自动保存文件。 | ||
Line 53: | Line 53: | ||
工具类 - 内存管理,规范表达式,字符串处理, 随机数 | 工具类 - 内存管理,规范表达式,字符串处理, 随机数 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKRegExp.html KRegExp] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKRegExp.html KRegExp] - POSIX规范表达式。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKStringHandler.html KStringHandler] - an extravagant interface for string manipulation. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKStringHandler.html KStringHandler] - an extravagant interface for string manipulation. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKZoneAllocator.html KZoneAllocator] - efficient memory allocator for large groups of small objects. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKZoneAllocator.html KZoneAllocator] - efficient memory allocator for large groups of small objects. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKRandomSequence.html KRandomSequence] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKRandomSequence.html KRandomSequence] - 伪随机数产生器。 | ||
键盘快捷键- classes helping to establish consistent key bindings throughout the desktop. | 键盘快捷键- classes helping to establish consistent key bindings throughout the desktop. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKAccel.html KAccel] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKAccel.html KAccel] - 键盘快捷键集合。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKStdAccel.html KStdAccel] - easy access to the common keyboard shortcut keys. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKStdAccel.html KStdAccel] - easy access to the common keyboard shortcut keys. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKGlobalAccel.html KGlobalAccel] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKGlobalAccel.html KGlobalAccel] - 系统级快捷键集合。 | ||
图形界面 - 图标加载和操作 | 图形界面 - 图标加载和操作 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKIconLoader.html KIconLoader] - loads icons in a theme-conforming way. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKIconLoader.html KIconLoader] - loads icons in a theme-conforming way. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKIconTheme.html KIconTheme] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKIconTheme.html KIconTheme] - KIconLoader帮助类。 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKPixmap.html KPixmap] - a pixmap class with extended dithering capabilities. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKPixmap.html KPixmap] - a pixmap class with extended dithering capabilities. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKPixmapEffect.html KPixmapEffect] - pixmap effects like gradients and patterns. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKPixmapEffect.html KPixmapEffect] - pixmap effects like gradients and patterns. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKPixmapIO.html KPixmapIO] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKPixmapIO.html KPixmapIO] - QImage到QPixmap快速转换。 | ||
Line 79: | Line 79: | ||
自动补全 | |||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKCompletion.html KCompletion] - generic auto-completion of strings. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKCompletion.html KCompletion] - generic auto-completion of strings. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kio/html/classKURLCompletion.html KURLCompletion] - auto-completion of URLs. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kio/html/classKURLCompletion.html KURLCompletion] - auto-completion of URLs. | ||
Line 102: | Line 102: | ||
对话框 - 选取文件,颜色,字体的完整对话框。 | |||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kfile/html/classKFileDialog.html KFileDialog] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kfile/html/classKFileDialog.html KFileDialog] - 文件选取对话框 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKColorDialog.html KColorDialog] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKColorDialog.html KColorDialog] - 颜色选取对话框 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKFontDialog.html KFontDialog] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKFontDialog.html KFontDialog] - 字体选取对话框 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kfile/html/classKIconDialog.html KIconDialog] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kfile/html/classKIconDialog.html KIconDialog] - 图标选取对话框 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKKeyDialog.html KKeyDialog] - a dialog for editing keyboard bindings. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKKeyDialog.html KKeyDialog] - a dialog for editing keyboard bindings. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKEditToolBar.html KEditToolBar] - a dialog for editing toolbars. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKEditToolBar.html KEditToolBar] - a dialog for editing toolbars. | ||
Line 119: | Line 119: | ||
Actions和XML图形界面 | Actions和XML图形界面 | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKAction.html KAction] - abstraction for an action that can be plugged into menu bars and tool bars. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKAction.html KAction] - abstraction for an action that can be plugged into menu bars and tool bars. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKActionCollection.html KActionCollection] - | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKActionCollection.html KActionCollection] - 一系列Actions. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKXMLGUIClient.html KXMLGUIClient] - a GUI fragment consisting of an action collection and a DOM tree representing their location in the GUI. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKXMLGUIClient.html KXMLGUIClient] - a GUI fragment consisting of an action collection and a DOM tree representing their location in the GUI. | ||
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kparts/html/classKParts_1_1PartManager.html KPartManager] - manages the activation of XMLGUI clients. | * [http://api.kde.org/3.5-api/kdelibs-apidocs/kparts/html/classKParts_1_1PartManager.html KPartManager] - manages the activation of XMLGUI clients. |
Latest revision as of 13:08, 23 June 2013
下面简单介绍了类库结构。
类库名
- KDECore
- The kdecore library is the basic application framework for every KDE based program. It provides access to the configuration system, command line handling, icon loading and manipulation, some special kinds inter-process communication, file handling and various other utilities.
- KDEUI
- The kdeui library provides many widgets and standard dialogs which Qt doesn't have or which have more features than their Qt counterparts. It also includes several widgets which are subclassed from Qt ones and are better integrated with the KDE desktop by respecting user preferences.
- KIO
- The kio library contains facilities for asynchronous, network transparent I/O and access to mimetype handling. It also provides the KDE file dialog and its helper classes.
- KJS
- JavaScript的实现。
- KHtml
- The khtml library contains the KHTML part, a HTML browsing widget, DOM API and parser, including interfaces to Java and JavaScript.
类库分组
主应用框架 - 所有程序都要用的类。
- KApplication - 初始化及控制KDE应用程序.
- KUniqueApplication - 确保同一时间系统只有一个实例。
- KAboutData - 关于对话框内容。
- KCmdLineArgs - 处理命令行参数。
配置设定 - access to KDE's hierarchical configuration database, global settings and application resources.
- KConfig - provides access to KDE's configuration database.
- KSimpleConfig - 处理简单,非层级关联的配置文件。
- KDesktopFile - 处理 .desktop 文件。
- KGlobalSettings - convenient access to not application-specific settings.
文件和URL处理 - URL解码,临时文件
进程间通讯 - DCOP helper classes and subprocess invokation.
- KProcess - 创建和控制子进程。
- KShellProcess - 从Shell创建子进程。
- PtyProcess - 通过伪终端和子进程通讯。
- KIPC - 用X11 ClientMessages实现的进程间通讯。
- DCOPClient - DCOP消息传递.
- KDCOPPropertyProxy - 通过DCOP公布Qt属性的代理类。
- KDCOPActionProxy - Actions公布DCOP接口的代理类。
工具类 - 内存管理,规范表达式,字符串处理, 随机数
- KRegExp - POSIX规范表达式。
- KStringHandler - an extravagant interface for string manipulation.
- KZoneAllocator - efficient memory allocator for large groups of small objects.
- KRandomSequence - 伪随机数产生器。
键盘快捷键- classes helping to establish consistent key bindings throughout the desktop.
- KAccel - 键盘快捷键集合。
- KStdAccel - easy access to the common keyboard shortcut keys.
- KGlobalAccel - 系统级快捷键集合。
图形界面 - 图标加载和操作
- KIconLoader - loads icons in a theme-conforming way.
- KIconTheme - KIconLoader帮助类。
- KPixmap - a pixmap class with extended dithering capabilities.
- KPixmapEffect - pixmap effects like gradients and patterns.
- KPixmapIO - QImage到QPixmap快速转换。
拖拽 - drag objects for colors and URLs.
- KURLDrag - a drag object for URLs.
- KColorDrag - a drag object for colors.
- KMultipleDrag - allows to construct drag objects from several others.
自动补全
- KCompletion - generic auto-completion of strings.
- KURLCompletion - auto-completion of URLs.
- KShellCompletion - auto-completion of executables.
Widgets - widget classes for list views, rules, color selction etc.
- KListView - a variant of QListView that honors KDE's system-wide settings.
- KListBox - a variant of QListBox that honors KDE's system-wide settings.
- KIconView - a variant of QIconView that honors KDE's system-wide settings.
- KLineEdit - a variant of QLineEdit with completion support.
- KComboBox - a variant of QComboBox with completion support.
- KFontCombo - a combo box for selecting fonts.
- KColorCombo - a combo box for selecting colors.
- KColorButton - a button for selecting colors.
- KURLCombo - a combo box for selecting file names and URLs.
- KURLRequester - a line edit for selecting file names and URLs.
- KRuler - a ruler widget.
- KAnimWidget - animations.
- KNumInput - a widget for inputting numbers.
- KPasswordEdit - a widget for inputting passwords.
对话框 - 选取文件,颜色,字体的完整对话框。
- KFileDialog - 文件选取对话框
- KColorDialog - 颜色选取对话框
- KFontDialog - 字体选取对话框
- KIconDialog - 图标选取对话框
- KKeyDialog - a dialog for editing keyboard bindings.
- KEditToolBar - a dialog for editing toolbars.
- KTipDialog - a Tip-of-the-day dialog.
- KAboutDialog - an about dialog.
- KLineEditDlg - a simple dialog for entering text.
- KURLRequesterDlg - a simple dialog for entering URLs.
- KMessageBox - a dialog for signaling errors and warnings.
- KPasswordDialog - a dialog for inputting passwords.
Actions和XML图形界面
- KAction - abstraction for an action that can be plugged into menu bars and tool bars.
- KActionCollection - 一系列Actions.
- KXMLGUIClient - a GUI fragment consisting of an action collection and a DOM tree representing their location in the GUI.
- KPartManager - manages the activation of XMLGUI clients.
插件和组件
- KLibrary - represents a dynamically loaded library.
- KLibLoader - shared library loading.
- KLibFactory - object factory in plugins.
- KServiceType - represents a service type.
- KService - represents a service.
- KMimeType - represents a MIME type.
- KServiceTypeProfile - user preferences for MIME type mappings.
- KTrader - 请求querying for services.
作者: Bernd Gehrmann [email protected]