My data tool dialogs with kword but I would like to do more
- Date: Fri, 01 Feb 2008 23:06:30 +0100
- From: jaaf <jaa.f@xxxxxxxxxxx>
- Subject: My data tool dialogs with kword but I would like to do more
Hi,
I am presently working on the development of a tool that aims at helping
learners in the reading of Japanese texts.
I have developed a dictionary search engine that return various helpful
information for the reader.
I would like to have the text to be studied ( get from the Internet)
pasted into a KWord document editor and offer the user the possibility
to select a word in the text and using a pop menu, launch different
kinds of search and insert the results into the main text.
I was told by David FAURE to use a data tool. I could manage to have a
simple example of data tool working with KWord but I still have a few
questions?
1- the only way to call the data tool I could make out was to select a
word first. Is it the only way to get the command(s) in the popmenu?
2- contrarily to what I read in the kadatatool.h file (see below) I
could only have one single command in the popmenu. Is there a
possibility to select into more than one command and to pass the chosen
one to the data tool? If yes, how to write the .kdesktop file?
Reading the kadatool.h .cpp files I read that all the information about
the data tool is enclosed in a simple class KDataToolInfo, among others
: commands that the data tool can execute, userCommands to be displayed
in a QPopMenu. It is said that the commands key and userCommands work by
pair. Hum!?
Is there anybody to help me?
Thank you.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<