Aaron J. Seigo
b82624429e
- make it possible to instantiate a Plasma::Widget itself (implement all pure virtuals from QGraphicsItem)
...
- allow parenting it to a QGraphicsItem
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=687019
2007-07-12 18:11:50 +00:00
Aaron J. Seigo
ac35242c5d
fix the indentation before i add anything to this
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=687015
2007-07-12 17:54:58 +00:00
Riccardo Iaconelli
349e57629d
Let's use the right cursor on the lineedit
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=686047
2007-07-10 13:16:33 +00:00
Zack Rusin
0e274e2017
We've made SourceOver the default compositionMode in QPainter.
...
This in turn makes the default:
QPainter::fillRect(QRect(...), Qt::transparent);
a no-op. The commit makes the fillrect actually do what, I bet
it was supposed to be doing. (but i ain't much of a gambler since
i'm not sure what it's supposed to be doin in the first place. at
least now it's doing something "weird" faster)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=680260
2007-06-25 19:20:54 +00:00
Aaron J. Seigo
49f9cd42f8
adapt to new Phase API
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679872
2007-06-25 06:02:33 +00:00
Tim Beaulen
2e78ff6e5e
From EBN:
...
Check for QString compares to ""... OOPS! 1 issue found!
./libs/plasma/widgets/lineedit.cpp: line#178 (1)
Do not compare a QString to "". Instead use the .isEmpty() method. For example, if(str == "") becomes if(str.isEmpty())
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679628
2007-06-24 12:50:58 +00:00
Thomas Georgiou
40d9432574
Revert HTML too when defaultText is removed.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679088
2007-06-22 23:36:38 +00:00
Fredrik Höglund
55b7bc3219
Use pix.fill(Qt::transparent) to initialize the button pixmap to fully transparent.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678647
2007-06-21 21:54:42 +00:00
Thomas Georgiou
35b86c492e
Add defaultText graying.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678576
2007-06-21 19:18:08 +00:00
Aaron J. Seigo
5ff761af6f
* move members to the private class
...
* style guide fixes
* simplify the code in some places
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678573
2007-06-21 18:47:04 +00:00
Aaron J. Seigo
5f8c6be988
make Applet (and lineedit) usable with qgraphics_item cast. we probably want to do this with all of our QGI subclasses.
...
i introduced a new enum in the Plasma namespace, ItemType, so we can keep track of these id's centrally.
however, the right click mechanism is rather broken in its implementation; we need a way to offer a centralized menu on appets no metter where they are clicked.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678562
2007-06-21 18:07:39 +00:00
Thomas Georgiou
c37fabf01c
Add "defaultText" functionality: when the lineedit does not have focus
...
and it is empty, the can be "defaultText" that will be displayed. See
dict applet for example.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678514
2007-06-21 15:42:05 +00:00
André Wöbbeking
7aaec35dad
constify url()
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678187
2007-06-20 21:08:30 +00:00
Thomas Georgiou
32a450bb4d
Fix coding style.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678168
2007-06-20 20:28:55 +00:00
Thomas Georgiou
c4ff3b9135
Add textChanged(QString&) signal.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678161
2007-06-20 20:12:38 +00:00
Thomas Georgiou
40c39333a1
Emit editingFinished() when enter/return is pressed.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678157
2007-06-20 19:49:31 +00:00
Thomas Georgiou
0ffa2dcc29
Emit the clicked() signal when clicked.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678145
2007-06-20 19:13:30 +00:00
Aaron J. Seigo
2d0a8aa271
add a getter for the url property
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677940
2007-06-20 08:10:38 +00:00
Aaron J. Seigo
f29bc49788
comment out the debug we know is working so i can read debug from stuff that isn't
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677928
2007-06-20 07:39:04 +00:00
Aaron J. Seigo
65f98b0246
don't make the icon movable by default.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677927
2007-06-20 07:36:48 +00:00
Aaron J. Seigo
a3b156c7d8
SVN_SILENT: some white space fixes i didn't want to mix in with the functional changes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677816
2007-06-19 23:32:04 +00:00
Aaron J. Seigo
b2da6b36ac
always stop the anim, but only if we have one going on
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677807
2007-06-19 22:48:42 +00:00
Aaron J. Seigo
059a64583d
phased.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677783
2007-06-19 21:56:40 +00:00
Aaron J. Seigo
229c60eae9
erm. yeah. that's what i *really* meant.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676882
2007-06-17 21:24:50 +00:00
Aaron J. Seigo
60a844195e
* make mini buttons "click" on mouse release like a proper button
...
* don't click when moving (either the icon or the mini buttons)
* only show the buttons on hovered states, allowing for proper button/hover/pressed painting
* try and avoid unecessary if/else's and other codedamage
* get rid of some dead code
now it's about ready to be phased =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676842
2007-06-17 20:56:03 +00:00
Aaron J. Seigo
1fa0feaa48
* use EaseIn for the icon button show
...
* show the button(s) in .2s rather than the very slow feeling .5s
* don't leak the timeline
* don't connect to the timeline signal more than once
* comment in code that is ifdef'd out anyways
* don't set the svg element for fg and bg unless it exists
* remove some dead code
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676786
2007-06-17 17:49:49 +00:00
Pino Toscano
bbabb1fea4
headers cleanup
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676483
2007-06-16 23:38:56 +00:00
Riccardo Iaconelli
7a70eac7fe
Much nicer icons.
...
Implemented the concept for icons from David Vignoni (screencast coming...).
Context menu now shows "Plasma".
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676455
2007-06-16 22:35:31 +00:00
Aaron J. Seigo
c62b683dbd
for the pussies who don't have srcdir==buildir for qt ;)
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672777
2007-06-08 05:39:34 +00:00
Aaron J. Seigo
58277a7608
plug a bunch of memory leaks
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672687
2007-06-07 20:57:18 +00:00
Aaron J. Seigo
df0e5f74a0
* build
...
* only blur on hover to mask some of the artifacts
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672649
2007-06-07 19:10:48 +00:00
Aaron J. Seigo
6193f93785
proof of concept for composited effects by toying with the backing store
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672646
2007-06-07 19:07:45 +00:00
Aaron J. Seigo
a80c5349e4
* let's not bother with the blur here quite yet; let's do it Right(tm) later in an image effects lib, and when we can actually operate on the backing store
...
* if there is not -pressed element, still paint something proper
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672363
2007-06-06 20:48:06 +00:00
Riccardo Iaconelli
a043e502f3
* Saner resizing of the icon when pressed
...
* Nicer SVG, also fixed the corners, now are pixel perfect
* Prepared the code for the upcoming blur of the wallpaper....
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672328
2007-06-06 19:45:00 +00:00
Aaron J. Seigo
a2b7f5fc43
shrink and center on click; not that it matters since this will move into Phase for great beauty and flexibility ... but this should llook a little nicer in the screencasts...
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672120
2007-06-06 05:19:44 +00:00
Aaron J. Seigo
83eed9ccd4
* build
...
* use KUrl::List
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672119
2007-06-06 05:12:51 +00:00
Siraj Razick
013fae0a0d
slight shrik effect on the pixmap
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=671927
2007-06-05 20:44:28 +00:00
Aaron J. Seigo
11651586c0
center the icons properly and cut down on the amount of duplicated information we keep in here
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=671917
2007-06-05 19:48:14 +00:00
Siraj Razick
9d778637b5
ifndef typo fixed now the item can be used
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=671898
2007-06-05 18:39:59 +00:00
Aaron J. Seigo
c2f7734144
icon; doesn't actually work the way i expect it to. need to talk to bibr about some things.
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=671576
2007-06-05 02:54:48 +00:00
Inge Wallin
60032d6779
Some krazy fixes while waiting for a compile:
...
22: Check for spelling errors.
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=671493
2007-06-04 21:40:44 +00:00
Laurent Montel
65be58f69e
Remove not necessary "class classname;"
...
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=671233
2007-06-04 08:24:29 +00:00
Aaron J. Seigo
bbaebc6b1b
move workspace/plasma/lib to workspace/lib/plasma so that we can do:
...
#include <plasma/foo.h>
in headers in libplasma. this is important so that they can be used post-install by third party plugins, apps, etc.
also, changed Applet::loadDataEngine to just Applet::dataEngine and make it actually return the data engine; move the applets to using it. safer and fewer LoC
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=670850
2007-06-02 17:29:39 +00:00
Matt Williams
f93b9f7396
EBN Krazy header fixes
...
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669864
2007-05-30 16:47:36 +00:00
Aaron J. Seigo
77307ba1dd
icon buttons generally work now. huzzah. you can theme them with iconbutton.svg with the following elements, all of which are optional:
...
- background
- background-hover
- background-pressed
- foreground
- foregound-hover
- foreground-pressed
what each does is left as an exercise for the reader ;)
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669620
2007-05-29 20:37:21 +00:00
Aaron J. Seigo
429d8fd708
apparently i missed this entire directory when introducing PLASMA_EXPORT. but i got 'em this time! ;)
...
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669395
2007-05-29 08:02:01 +00:00
Aaron J. Seigo
3f2e92b6ae
add the start of an icon button. the stupid number of svg's needs to be wrapped into two with svg elements for them, geometry isn't managed right (e.g. we ignore text width) etc.. but the basics exist. should be usable by hacking's end tomorrow, and then we can play with using them to pop menus and expanders. i'll get to Phase yet ;)
...
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669394
2007-05-29 07:59:50 +00:00
Aaron J. Seigo
0df727c4d0
this seems to make it works a wee bit better ;) still not perfect
...
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669392
2007-05-29 07:58:05 +00:00
Aaron J. Seigo
c7b7b5b8ca
proper export
...
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669388
2007-05-29 07:54:41 +00:00
Aaron J. Seigo
6393ddd3ad
make lineedit a LayoutItem. seems to basically work, though i don't think it is quite perfect yet =)
...
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=668932
2007-05-28 05:52:56 +00:00