Next Previous Table of Contents

# KDE Application Tutorials

## The KDE Application Tutorials Handbook for the KDevelop Integrated Development Environment

Ralf Nolden <Ralf.Nolden@post.rwth-aachen.de>The KDevelop Team
Version 1.2 , March 21, 2000

The KDE Application Tutorials Handbook for the KDevelop Integrated Development Environment, a tutorial collection on how to create KDE applications by examples. This handbook itself is part of the KDevelop Integrated Development Environment and is therefore also licensed under the GNU General Public License; see Copyright for more information.

## 1. Introduction

- 1.1 What you should know already

## 2. Getting Started

## 3. Building the Qt Tutorials

- 3.1 Step One: Hello World!
- 3.2 Step 2 and 3: Extensions
- 3.3 Writing your own Widgets
- 3.4 Extending the Widget Class
- 3.5 Adding a new Class
- 3.6 Step 7-14

## 4. Creating KDE Applications

## 5. Installing KDE 2

- 5.1 Setting up Qt-2.1
- 5.2 Setting up KDE 2 Libraries
- 5.3 Setting up KDevelop

## 6. Application Concepts

- 6.1 The Document-View Model
- 6.2 The Multiple Document Interface (MDI)

## 7. The MDI Framework

- 7.1 Creating an MDI Framework
- 7.2 Overview

## 8. Defining the Documents

- 8.1 Adding the Instances
- 8.2 Initialization of the Document
- 8.3 Implementing the Serialization

## 9. Defining the View

- 9.1 Interactivity with the User
- 9.2 Reimplementing Event Handlers
- 9.3 Painting and Resizing the Document

## 10. Extending the GUI

- 10.1 Adding the "Pen" Menu
- 10.2 Adding Toolbar Buttons
- 10.3 Creating the Pen Width Dialog
- 10.4 Connections and Setting Up
- 10.5 Calling the Dialogs

## 11. Extended Views

- 11.1 Syncronizing Views
- 11.2 Scrolled Views
- 11.3 Adapting the View

## 12. Using KImageIO with KScribble

- 12.1 Preparing the Document
- 12.2 Registering File Formats
- 12.3 Opening Images
- 12.4 Setting File Filters with KImageIO

## 13. Adding Printing Functionality

## 14. Copyright

## Appendix

## 15. KScribble-1.0 Example Sourcecode

- 15.1 Project Tarball
- 15.2 main.cpp
- 15.3 kscribble.h
- 15.4 kscribble.cpp
- 15.5 kscribbledoc.h
- 15.6 kscribbledoc.cpp
- 15.7 kscribbleview.h
- 15.8 kscribbleview.cpp
- 15.9 kpenbrushdlg.h
- 15.10 kpenbrushdlg.cpp
- 15.11 kpenbrushdlgdata.cpp
- 15.12 resource.h

Next Previous Table of Contents