From kde-panel-devel Thu Nov 26 17:55:10 2009 From: Marco Martin Date: Thu, 26 Nov 2009 17:55:10 +0000 To: kde-panel-devel Subject: Re: Reuse calendar applet Message-Id: <200911261855.10266.notmart () gmail ! com> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=125925813913281 On Thursday 26 November 2009, Flavio Castelli wrote: > I'm trying to reuse the plasma calendar applet inside my application. > > Currently I've been able to embed the applet but I have not been able to > handle the date selection events. > > This signal is emitted by the Plasma::Calendar class defined by > kdebase/workspace/libs/plasmaclock/calendar.h. > There's an instance of Plasma::Calendar inside of CalendarApplet which is > accessible by the CalendarApplet::graphicsWidget(). > > The CalendarApplet class is declared inside of > kdebase/workspace/plasma/generic/applets/calendar/calendar.h but this file > is not installed. > > Am I missing something? > > Thanks in advance > Flavio this fits in the idea of the reusable plasma part... yes, would be nice some way of communication between the outside application and the applets. right now blindly connecting to graphicsWidget() should work. the calendar widget right now is kept private since is used just by the clocks, if there will be enough use cases it could make into the other widgets some day perhaps -- Marco Martin _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel