Commit Graph

27 Commits

Author SHA1 Message Date
Jason Stubbs
45c7a63a1f If an applet doesn't have a minimum size hint, calculate a minimum size where
its content area is a minimum of 16x16

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752324
2007-12-24 07:30:17 +00:00
Aaron J. Seigo
420c0a1996 resize the applet and set rotation matrix on mouse release, not destruction. makes resize->move work properly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751097
2007-12-21 03:10:35 +00:00
Jason Stubbs
82eae90414 Take translations into account when moving an applet.
Patch derived from work done by Thomas Coopman.
BUG: 153927

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=748642
2007-12-15 05:48:13 +00:00
Adriaan de Groot
ce8d1ede68 Math functions in namespace std:: ; gcc likes it either way but not everyone does. Also use standard math.h #define which, at 1.57079632679489661923, has way more significant others than before.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=746995
2007-12-10 19:52:29 +00:00
Jason Stubbs
80bbadc39f Operating under the premise that applets will receive notified with
constraintsUpdated(LocationConstraint) whenever there is a change in
position relative view makes global geometry handling much easier.
This change ensures that moving an applet via its handle follows the
above premise.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=746173
2007-12-08 03:38:11 +00:00
Aaron Eisenberg
f7a0308982 Added the ability to lock desktop widgets and assigned icons to all the desktop context menu actions.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=744659
2007-12-04 02:17:21 +00:00
Aaron J. Seigo
7fa8e8e1c0 respect min and max sizes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742405
2007-11-27 23:14:49 +00:00
Aaron J. Seigo
37498d2541 order of operations can be important; dragging between containments still isn't perfect as there is somethings a "jump" of the applet on mouse over before it settles in to where it should be, but this gets a bit closer
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742102
2007-11-27 06:04:45 +00:00
Aaron J. Seigo
28f584f03b proper order of arguments to get the geometries right. dragging between containments now works pretty well.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742035
2007-11-26 23:38:39 +00:00
Jeremy Paul Whiting
44a7a86a6c enable moving applets from one desktop containment to another, still a bit buggy, but functional
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742001
2007-11-26 21:57:50 +00:00
Kevin Ottens
1d7f16296d Also snaps to the original size.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741943
2007-11-26 19:44:40 +00:00
Kevin Ottens
0cbf8a7a48 Snap angles based on the applet coordinates, not the handle ones.
Surprisingly the solution didn't involve pi/2... I'm almost
disappointed.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741942
2007-11-26 19:37:20 +00:00
Percy Leonhardt
a166f48ccc Support resizing of applet while handle is visible.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=740406
2007-11-23 08:01:29 +00:00
Aaron J. Seigo
9c52d8f067 actually make plasmoid removal work and harden the applet handle against the applet being removed from under it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739867
2007-11-22 05:11:06 +00:00
Aaron J. Seigo
fb73ea9e37 fix button painting position when there is no configure button
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738758
2007-11-19 15:52:17 +00:00
Aaron J. Seigo
8158515bfd * actually resize the applet rather than just change its matrix
* correct the positioning of the close button
* correct the minimum required size bit

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738577
2007-11-19 07:58:31 +00:00
Aaron J. Seigo
85e8a49d7c tighten up the applet handles a little more even
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738555
2007-11-19 07:23:07 +00:00
Aaron J. Seigo
997f9e75a8 allow moving on any part of the applet surface; it seems our widgets still work just fine with this which is pretty cool; in this case i like the event model for QGV =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738454
2007-11-18 23:03:57 +00:00
Aaron J. Seigo
c9ce91e944 nicer painting of the bakground. we use the colour scheme from the theme for this, though now an svg. i want this to be a bit more of a standardized element and svg's don't deal overly well with having rounded corners bent to odd proportions =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738425
2007-11-18 21:34:27 +00:00
Aaron J. Seigo
db730a36d9 add a little bit of snapping to the rotate at 90 degree intervals
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738148
2007-11-18 02:37:30 +00:00
Aaron J. Seigo
fa25221352 * we don't really need a move button now i guess
* put close at the bottom and move it away a bit
* increase the size of the icons a little bit (i went too small last); though this probably should be a property of the screen res

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738147
2007-11-18 02:00:20 +00:00
Aaron J. Seigo
3af857e265 aseigo's first run over this code;
* don't use magic pixel values, use static const ints and it makes everything so easy to play with
* make the borders and icons much smaller
* allow dragging using any area that isn't the applet. really, we ought to be able to drag on the applet border as well, but ce la vis?

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738128
2007-11-18 01:16:47 +00:00
Andre Duffeck
174096635e Add signals that incicate an application launch. DashBoardView can
connect and hide itself then, for example.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=737051
2007-11-15 11:06:33 +00:00
Andre Duffeck
f1af4e3271 i forgot to adapt the button mapping at the changed button positions.
Thanks marsmissions for reporting.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=736006
2007-11-13 09:00:52 +00:00
Andre Duffeck
29501c53f2 require less space if the applet does not have a configuration interface
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735975
2007-11-13 07:43:10 +00:00
Andre Duffeck
a99f124c4d Do not leave a gap if the applet does not have a configuration
interface

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735974
2007-11-13 07:40:21 +00:00
Kevin Ottens
bf77e378a6 Add support for applet handles in plasma containments.
Still a couple of issues to flesh out, but that's usable already.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735845
2007-11-12 19:27:21 +00:00