[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Accessing UI elements from within JavaScript
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2010-12-21 20:35:31
Message-ID: 201012211235.32293.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday, December 20, 2010, Stefan Zimmer wrote:
> I am writing my first plasmoid, in JavaScript. My plasmoid has a config
> dialog defined in ui/config.ui. I want to connect a button defined in this
> config.ui file to a signal. How do i realize this? How can I access
> components defined inside the ui?

right now, the configuration UI is limited to what you can do with Qt 
Designer. there is no interaction with the UI by the plasmoid other than:

* the configChanged event
* access of the updated values via the configuration as defined by the files 
in contents/config 

i'm hoping to improve this with libplasma2 to allow more flexibility. it will 
probably mean moving from a QWidget to using the same widgets plasmoids 
themselves use.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic