Archive:Development/Architecture/KDE3/Library Structure (zh CN): Difference between revisions

From KDE TechBase
(New page: {{Template:I18n/Language Navigation Bar|Development/Architecture/KDE3/Library Structure}} 下面简单介绍了类库结构。 == 类库名 == ; [http://api.kde.org/3.5-api/kdelibs-apid...)
 
No edit summary
Line 43: Line 43:


进程间通讯 - DCOP helper classes and subprocess invokation.
进程间通讯 - DCOP helper classes and subprocess invokation.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKProcess.html KProcess] - invokes and controls child processes.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKProcess.html KProcess] - 创建和控制子进程。
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKShellProcess.html KShellProcess] - invokes child processes via a shell.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKShellProcess.html KShellProcess] - 从Shell创建子进程。
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdesu/html/classPtyProcess.html PtyProcess] - communication with a child process through a pseudo terminal.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdesu/html/classPtyProcess.html PtyProcess] - 通过伪终端和子进程通讯。
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKIPC.html KIPC] - simple IPC mechanism using X11 ClientMessages.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKIPC.html KIPC] - 用X11 ClientMessages实现的进程间通讯。
* [http://api.kde.org/3.5-api/kdelibs-apidocs/dcop/html/classDCOPClient.html DCOPClient] - DCOP messaging.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/dcop/html/classDCOPClient.html DCOPClient] - DCOP消息传递.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKDCOPPropertyProxy.html KDCOPPropertyProxy] - a proxy class publishing Qt properties through DCOP.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKDCOPPropertyProxy.html KDCOPPropertyProxy] - 通过DCOP公布Qt属性的代理类。
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKDCOPActionProxy.html KDCOPActionProxy] - a proxy class publishing a DCOP interface for actions.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdeui/html/classKDCOPActionProxy.html KDCOPActionProxy] - Actions公布DCOP接口的代理类。




Line 59: Line 59:




Keyboard accelerators - 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] - collection of keyboard shortcuts.
* [http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKAccel.html KAccel] - collection of keyboard shortcuts.
* [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.

Revision as of 11:54, 2 March 2009


Development/Architecture/KDE3/Library Structure


下面简单介绍了类库结构。

类库名

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.

类库分组

Core application skeleton - classes needed by almost every application.


Configuration settings - access to KDE's hierarchical configuration database, global settings and application resources.

  • KConfig - provides access to KDE's configuration database.
  • KSimpleConfig - access to simple, non-hierarchical configuration files.
  • KDesktopFile - access to .desktop files.
  • KGlobalSettings - convenient access to not application-specific settings.


文件和URL处理 - URL解码,临时文件

  • KURL - represents and parses URLs.
  • KTempFile - creates unique files for temporary data
  • KSaveFile - allows to save files atomically.


进程间通讯 - DCOP helper classes and subprocess invokation.


工具类 - 内存管理,规范表达式,字符串处理, 随机数


键盘快捷键- classes helping to establish consistent key bindings throughout the desktop.

  • KAccel - collection of keyboard shortcuts.
  • KStdAccel - easy access to the common keyboard shortcut keys.
  • KGlobalAccel - collection of system-wide keyboard shortcuts.


图形界面 - 图标加载和操作

  • KIconLoader - loads icons in a theme-conforming way.
  • KIconTheme - helper classes for KIconLoader.
  • KPixmap - a pixmap class with extended dithering capabilities.
  • KPixmapEffect - pixmap effects like gradients and patterns.
  • KPixmapIO - fast QImage to QPixmap conversion.


拖拽 - drag objects for colors and URLs.


Auto-Completion


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.


Dialogs - full-featured dialogs for file, color and font selection.


Actions和XML图形界面

  • KAction - abstraction for an action that can be plugged into menu bars and tool bars.
  • KActionCollection - a set of 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.


插件和组件


作者: Bernd Gehrmann [email protected]