XIAPROJECTS 2017
Open source developing team

Help us! be a sponsor!
thanks you for a cofee...
/ All / Tutorials / tutorial3 [06/November/2007 06:46 ] 1906 hits
Read article: index - tutorial2

Make your application KXDocker support

These design lines are based on KXDocker 1.0.0

Links may be broken

Contents:

DCOP C++ Skills

This tutorial require C++ programming skills and a little of KDE DCOP Client skills, please take a look on kde.org API about:

Steps

2.1) Edit your KDE Project

Open your KDE project with your favorite editor, you need at least a C++ project wich link again KDE libraries and also Qt 3.x

2.2) Include libkxdocker.cpp

To avoid link again libkxdocker.so which may be not found on every system you can simply include source of Cpp which carry DCOP C++ ready methods to work with KXDocker, put this line into a .cpp project's file:

#include <libkxdockerclient.cpp>

2.3) Using DCOP example calls

Now you are ready to use example class libkxdockerclass like this example:

	// *** Costructor code *** START
	KXDocker=new libkxdockerclient(this,"MyApplicationName");
	// if the class start with x will not be saved into xml user configuration
	KXDocker->setClientClass("xlibkxdocker");
	// *** Costructor code *** END
You can easy call show(), hide(), bounce(), setText(...), loadIcon(...) or setPixmap(...) by your application to reflect application status into KXDocker.

All trademarks mentioned on this page are the property of their respective owners.
Engine 2.0.0.1 Copyright (c) 2017 XIA Projects 2017 Stefano Zingarini
today: 4