Porting Applications to KDE 2.0
Last Modified on November 28, 2000
This document contains the changes you have to apply to programs written for
KDE1.1 when you want to port them to KDE2.0.
As a start you should have a look at doc/porting.doc in the Qt package,
or this page online.
- Getting Started
- Global changes
- automoc/am_edit, Makefile.am tags
- KApplication
- KCmdLineArgs
- KLocale
- KGlobal: access to KDE global objects.
- KIconLoader
- KTMainWindow
- KHelpMenu
- KToolBar
- Starting other programs
- khtmlw
- KIntegerLine, KIntLineEdit
- KDNDIcon, KDNDDropZone, KDNDWidget, kdecore/drag.h
- KConfigBase, KConfig, KSimpleConfig
- libkfm
- KDialog
- kcharsets
- KWizard, KNoteBook
- KSpinBox, KNumericSpinBox
- KClipboard
- KPanner, KNewPanner
- KTreeList, KTreeListItem
- KMsgBox
- KCombo
- KQuickHelp
- KPixmap::gradientFill
- KTabListBox
- KToolBarButton & KRadioGroup
- KAccel
- kstring.h / KString
- ktopwidget.h / KTopWidget
- kbutton.h / KButton
- kbuttonbox.h / KButtonBox
- kcolorgroup.h / KColorGroup
- kled.h, kledlamp.h / KLed, KLedLamp
- KDockWidget
- KPixmap, KPixmapEffect
- KDE Control Center
- KWMModuleApplication libkdeui/kwmmapp.h
- KDebug
- KFileDialog - General Stuff
- KFileDialog - Preview Mode
- Image Effects
- KAudio (kaudio.h)
- KImageIO (kimgio.h)
The first step to get your KDE application to compile under KDE 2.0,
is to detect KDE 2.0 and Qt 2.x at configure time. The easiest way to
get a working autoconf/automake framework, is to either use
KDevelop or
kapptemplate
(available in CVS under the module "kdesdk"), to generate a new
application template. Replace the generated source files by yours
and adapt Makefile.am accordingly.
Return to the Table of Contents
We did our best to clean up the header files of kdelibs, so they do
not include unnecessary bloat for your application. As a consequence, you
may notice that some header files are missing from your source files as
they have been included before by kapp.h for example. There is a