On October 2, 2009 01:21:01 Marco Martin wrote: > On Friday 02 October 2009, Alan Alpert wrote: > > On Fri, 2 Oct 2009 03:06:50 ext Marco Martin wrote: > > > On Thursday 01 October 2009, Chani wrote: > > > > > Once the file is loaded we need to provide ways for it to access > > > > > plasma specific functionality. The plasma functionality which I > > > > > believe needs to be exposed is: > > > > > -Plasma Widgets > > > > > -Plasma Theme (SVGs/colors) > > > > > -Plasma data sources (through data engines) > > > > > > > > and services > > > > > > > > > -Centrally managed configuration data storage > > > > > -Config dialog requested > > > > > Please correct me if anything is missing from this list or is > > > > > incorrect. > > > > > > > > constraints events? > > > > > > that means being aware at least of the location and formfactor > > > > Is this just size/sizeHints? Because if so we might be able to implement > > those by just setting the PlasmaQmlView size - this could propagate to > > the root item and you can design your applet with bindings to this size. > > the constraintevent is a virtual that in applets can be reimplemented to > manage a bunch of events at once, out of my mind are: > -size > -formfactor: is it planar (desktop) vertical or horizontal?(panels) > -location: in desktop, top, bottom, left... > -immutability: desktop locked/unlocked > those are the most important, i'm forgetting something? >
enum Constraint { NoConstraint = 0, /** The FormFactor for an object */ FormFactorConstraint = 1,· /** The Location of an object */ LocationConstraint = 2, /** Which screen an object is on */· ScreenConstraint = 4, /** the size of the applet was changed */ SizeConstraint = 8, /** the immutability (locked) nature of the applet changed */ ImmutableConstraint = 16,· /** application startup has completed */ StartupCompletedConstraint = 32,· /** the desktop context has changed */ ContextConstraint = 64, /** the position of the popup needs to be recalculated*/ PopupConstraint = 128, AllConstraints = FormFactorConstraint | LocationConstraint | ScreenConstraint | SizeConstraint | ImmutableConstraint | ContextConstraint | PopupConstraint }; -- This message brought to you by eevil bananas and the number 3. www.chani3.com
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel