![]() Registered Member ![]()
|
Seeing this:
http://websvn.kde.org/trunk/KDE/kdeplas ... iew=markup I found there is no code to bring up a setting dialog. But in KDE4, it has one shortcut setting dialog. How did it achieve this? If I want a dialog like that, what should I do?
grissiom, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Plasmoid developers do not need to do anything, Plasma will provide it with a shortcut dialog automatically. It only needs to implement the adding of its own pages to that dialog.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
OK~ But it seems that only "official" plasmoids have the dialog. If I makeup a plasmoid my own, install it by "plasmapkg -i ${PRONAME}.zip". It don't have that dialog...
grissiom, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Unusual. Which functions have you implemented in your script?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
My code is:
Last edited by grissiom on Sun Apr 19, 2009 3:17 pm, edited 1 time in total.
grissiom, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
If you wish to show your own configuration, you should override standardConfigurationDialog() instead of showConfigurationInterface().
You may wish to look at the GMail-Notifier plasmoid on KDE-Look and see how that does it.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
No, actually I just want a "standard" shortcut configure dialog... So I learn to the "showdashbroad" plasmoid. Unfortunately, things seems different....
grissiom, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Unfortunately I do not know much about Python. I can only recommend you check some of the other Python based plasmoids on kde-look.org, or ask on the plasma-devel@kde.org mailing list.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]