• Skip to content
  • Skip to link menu
KDE Women Homepage
  • KDE Women Homepage / Tutorials / KDevelop templates / KDE General templates
 
 

The KDevelop C++ KDE templates explained

Octobre 2005
Anne-Marie Mahfouf
(using KDevelop 3.3 which will be shipped with KDE 3.5)
[ General KDE templates | Other KDE templates | SCons templates | Qt templates ]

You access the templates via Project -> New Project --> C++ -> KDE. You choose a template, fill the title, author name and email, set a version control system if you want one and click on Finish in the last tab of the wizard. Then you run in the Build menu Run automake & friends, Run configure, Build project and Install (or Install as root depending of your settings).

Application framework

Screenshot

Automake based. Generates a simple KDE application with one toplevel window, menus and toolbars. A DCOP interface is also provided, so that your application can provide a scripting interface.

Has a KMenuBar and a sample to include a new menu item (Custom). The custom action currently brings the configuration dialog although without KConfig XT support.


Application Framework (KPart)

Screenshot

Automake based. Generates a complex KDE application with a KParts shell and a KPart component. A kpart is a KDE concept that allows file viewing capability to be plugged into Konqueror and other programs. Konqueror uses kparts to display everything from directories to movies. The list of file types that can be displayed in Konqueror is not finite, and new kparts are being written all the time

Some tutorials:
http://developer.kde.org/documentation/tutorials/components/preface.html http://phil.freehackers.org/kde/kpart-techno/kpart-techno.html http://www-106.ibm.com/developerworks/linux/edu/l-dw-linuxkp1-i.html

KConfig XT

Screenshot

Automake based. KConfig XT is the new configuration system in KDE. The default settings are written in the kcfg file and only non-default values are written in the application rc file.
The Configure dialog is show there:



KConfig Xt tutorial: http://techbase.kde.org/Development/Tutorials/Using_KConfig_XT

Simple Designer based KDE application

Screenshot

Automake based. Generates a simple KDE application with one Qt-designer based widget. The base widget is a KMainWindow which has a view as central widget. The view is a subclass of the designer file. There are no actions and no menubar implemented in the template.

Simple KDE application

Screenshot

Automake based. Generates a simple KDE application with one widget. It's only a KMainWindow based class with a QLabel inside.

KConfig XT for KDE 3.5

Note: this template needs kdelibs3.5 and will not work with kdelibs version below than that.

Automake based. The code is stripped to make the most of the recent KDE technology wich allows you to build a main window in very few lines of code. Note that the toolbar and statusbar code is taken care in the setupGUI() method for hiding and showing the toolbar and statusbar. Same with the Configure Shortcuts... and Configure Toolbars... dialogs, they are also managed in that method.



 


Last update: 2007-04-14

[ Edit ]

Inform

Skip menu "Inform"
  • Home
  • KDE Home
  • Tutorials
    • KDevelop3 & Designer3
    • KDE3.5 from svn + KDE3.x
    • KDevelop templates
      • KDE General templates
      • Other KDE templates
      • SCons templates
      • Qt templates
    • A KDE4 template
  • Tips List
  • Events
  • Projects
  • Links

Communicate

Skip menu "Communicate"
  • Contact
  • About Us
  • Interviews

Global navigation links

  • KDE Home
  • KDE Accessibility Home
  • Description of Access Keys
  • Back to content
  • Back to menu

Search:


Maintained by women.kde.org Webmaster
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal