From kde-panel-devel Tue Nov 25 12:59:09 2014 From: Evgeniy Alekseev Date: Tue, 25 Nov 2014 12:59:09 +0000 To: kde-panel-devel Subject: Re: Some issues with porting KDE4 plasmoid to Plasma5 Message-Id: <141695080.ifuFvghUmq () arcanis-t440> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=141692034607980 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============8121168846028420098==" --===============8121168846028420098== Content-Type: multipart/signed; boundary="nextPart1741598.4mmvR1oDDS"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart1741598.4mmvR1oDDS Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" At Tuesday 25 November 2014 10:23:37 Marco Martin wrote: > On Sunday 16 November 2014, Evgeniy Alekseev wrote: > > Hello, > >=20 > > Some time ago I've started a porting of my plasmoids and dataengine= s to > > the > > newest Plasma and found some problems with it. I've ported a DataEn= gine > > w\o > > any problem, but I have issues about a Plasmoid. I've read API refe= rence > > and look at examples from plasma-next and didn't find solutions. > >=20 > > First of all I want say that I don't plan to use QML/JS now and pla= n to > > develop of my plasmoids in pure C++. Firstly it is related to other= > > project >=20 > in Plasma5 pure C++ plasmoids are not possible anymore, the c++ api w= as for > QGraphicsView (since plasma was based on top of it) plasma5 is based = on top > of scene graph, so the only way to write an UI is trough QML. > You can still use C++ in a dataengine or a private QML import. >=20 > > parts which is in C++/Qt and I don't want to use additional languag= es w\o > > any special necessity. Also as far as I understand the core plasmoi= d part > > (on which I have issue too) still shoul be written in C++. Also I t= ry to > > avoid using deprecated functions. > >=20 > > My questions are: > >=20 > > 1. Is there any alternative to Plasma::PopupApplet? If there is not= , is > > there a plan to implement it? >=20 > all applets are popupapplets now. > see > http://notmart.org/blog/2014/02/making-plasmoids-qml-api-better/ >=20 > especially the section "Compact and full representations" >=20 > > 2. Is there a possibility to paint complex UI w\o using QML (in C++= code)? > > For example, I didn't find old Applet::setLayout() and > > PopupApplet::setWidget() methods. >=20 > no, only QML is allowed, and subclassing Applet doesn't really work a= nymore. > If you have a complex QWidget ui in theory you could still have it by= > implementing it in a QML import, then making ti show from a slot invo= ked by > qml. >=20 > > 3. How can I connect DataEngine to my Plasmoid? The old method whic= h I > > used > > was dataEnigne(), some new applets use this method too, but it does= n't > > exist in the newest Plasma headers. Some new widgets such as nm-app= let use > > Plasma::DataEngineManager::self()->engine() constuction, but > > Plasma::DataEngineManager class doesn't exist in the Plasma too =3D= ( >=20 > see the QML bindings: > https://techbase.kde.org/Development/Tutorials/Plasma2/QML2/API#Data_= Engines Thank you for the answer and the links!=20 Seems all my questions are QML porting retaled, so I'll look on it and = hope=20 will port own KDE stuff successfully =3D) Thank you again. =2D-=20 Sincerely yours, Evgeniy Alekseev email: darkarcanis@mail.ru ICQ: 407-398-235 Jabber: arcanis@jabber.ru --nextPart1741598.4mmvR1oDDS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJUdH0dAAoJEC6JASMxNh8BZIIQAOO0eSzXX2GGHAlGdnbj97Ly FhM4FkDrhQFSGcODVQLrfD//nixYz84YHmflq8aXnr4NZX3yTy0mYuNi6bGA65u4 /c149E7z/68wVvikQiMneNQ2SXpb+vcHtxEFxAzy8+cYyFTUDyEvaywh622z8ZK+ O11w1loy1cFvz/9M5Kn6ice8NobP5PrJg0nZxXKnOP+Qg4fk8/ZkLQdhx0fzTodG 9xFtaKHAOS3gqOuW8ZhxD4u864O6PprTh1pIA11hr/1oZwnxhRQjgJ22hTDSIq65 5ZDvK5z378d9omncyGNOfWPPa+NoV3h49kkAkdH8FZHL59ly+ozx4KzsRytrJB9U 6ZqlObSyxkaZmR2RYRVTwXXKbxZsrvc8BDdWEoKxXuCc59HeodKJdH3UIR0ev4Ma ePJhd4T7xKsA8NQafCPGG4IYF0pBxxMr7Wj6tfrkSDUxm6m05M4P+kB+Uzw6Vpvh ryF986TakGvlGg4miHVvrqw3nrpTiSU6MjQKA776TCDg9tF0AhrbJ+fsl/dWMBzm fjvnDTGPlyNz/LIXC90XYvjpgi9SMjr4Rj2BHbR3eNDtI7047OMzwFAnLfGAJuQZ sxH6G0P09Byhv0lb1CZwxKCwK4atQ6IPVHscULVP/iyLu7zgPYJmsc7IebZkVcs+ /2SAIaaVL+b2C6qAX0bs =F/Iz -----END PGP SIGNATURE----- --nextPart1741598.4mmvR1oDDS-- --===============8121168846028420098== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============8121168846028420098==--