KMimeTypeChooser

Anders Lund anders at alweb.dk
Sun Apr 11 00:29:34 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, here is a new version of the files.

I have followed the suggestions from Simon, so the data retrievers are not 
const, and added the const char *name standard argument. I also used aenum 
for the visuals, for readability.

I kept the parent as the first argument, because there is a bunch of 
parameters with default values following.

I have also, with help from David on irc, made the widget update if a mime 
type is changed while using the dialog. I connect to the KSycoca signal only 
when the mimetype editor is launched, that should be sufficient (?), and also 
on his suggestion added a few parameters:
* you can now provide a list of groups to show.
* you can provide a default group to open.

I also renamed KMimeTypeChooserDlg -> KMimeTypeChooserDialog, which I believe 
is more compliant with the rest of KDE.

The attached files are currently used in my local copy of katepart, and are 
fully functionning.

Btw, kio could be considered a more logical loaction for these classes than 
kdeui?

- -anders

- -- 
Document your code
Check before committing
Shoot spammers

Given the ugliness of the gmail service, I think everybody
with a democratic mind should stop using google at all.
=== Support democracy and individual freedom ===
=== Find yourself a different search service ===
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAeINmyyMSZA8sCCYRAi6VAJ4oLnzw0djfPKRK1fs47cFZBKzrqwCggWZy
+pj9vuRuDeab5t8r+M+Zc/8=
=C4/9
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmimetypechooser.cpp
Type: text/x-c++src
Size: 8035 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040411/40848701/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmimetypechooser.h
Type: text/x-chdr
Size: 6038 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040411/40848701/attachment.h>


More information about the kde-core-devel mailing list