Commit Graph

23 Commits

Author SHA1 Message Date
Jesse Lee Zamora
629a3b3789 Polish the rough edges out of the gradient painting code.
svn path=/trunk/KDE/kdelibs/; revision=891051
2008-12-01 01:54:07 +00:00
Jesse Lee Zamora
0fd4c5e3b2 Before if the background of the delegate is not white, the gradient would paint
white, and look terrible. So, this fixes that by checking the background color and 
making the gradient that color.


svn path=/trunk/KDE/kdelibs/; revision=891038
2008-12-01 01:14:35 +00:00
Jesse Lee Zamora
54141a7ec7 This fixes a bug where if the text is too long it runs out of the item delegate rect. It adds a
nice gradient on items that the text is too long.


svn path=/trunk/KDE/kdelibs/; revision=887773
2008-11-22 20:46:50 +00:00
Aaron J. Seigo
1376b1dc9b consistent mocing
svn path=/trunk/KDE/kdelibs/; revision=884497
2008-11-15 06:11:17 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Allen Winter
c4573eae9a use QString::clear() to clear a QString instead of assigning QString().
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870305
2008-10-12 11:05:42 +00:00
Allen Winter
a7aebfa60a a bunch more coding style fixes. still some lines longer than 100 chars.
this is definitely helping me find false positives in the Krazy style checker.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Aaron J. Seigo
922c85c705 it makes no sense to have the blur stuff in one header/namespace and the roundedRectangle stuff in another: it's all painting related. putting them together, however, makes "ImageEffects" really not accurate. ImageEffects will also clash, concept-wise, with a real effects lib.
therefore, introducing Plasma::PaintUtils.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827859
2008-07-03 23:50:13 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Aaron J. Seigo
04f01a17dd center the icon vertically
BUG:163213

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816767
2008-06-04 19:35:17 +00:00
Marco Martin
7b8860b462 API reviews:
static constants now in pimpl
also, don't make assumptions on icon size

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801766
2008-04-27 17:09:48 +00:00
Marco Martin
3a6281aa6a API review:
setRole()->setRoleMapping()
+ roleMapping() getter

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800985
2008-04-25 11:35:20 +00:00
Marco Martin
4e92155f7d API reviews:
Plasma::Delegate has a parent argument in the constructor

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800960
2008-04-25 10:16:49 +00:00
Aaron J. Seigo
e36acd4151 remove a couple of tricks used prior to the selection rect that now look over the top
* don't bold on hover for a calmer look
 * don't scale down the icons (made them blurry anyways)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793687
2008-04-04 20:17:49 +00:00
Rafael Fernández López
b1a56982ad Kickoff changes asked on panel-devel. As voted, the background painting did not get in
- Strict mouse hover
    - Leaving an item will unselect that item
    - Leaving the viewport will unselect the selected item if was any
- Better keyboard navigation
    - If no item selected, Up will select the last item, Down will select the first item
- Search improvements
    - The first result becomes the selected index, if exists
    - The bottom tabbar is hidden for ease of use, intuitivity and letting more room for search results

CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792562
2008-04-01 15:53:52 +00:00
Aaron J. Seigo
bd671a7c8a explain why we don't show subtitles on hover since people keep trying to change that
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791989
2008-03-30 21:38:17 +00:00
Andre Duffeck
47f56bd824 Use KColorScheme::InactiveText role for the sub-titles
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791134
2008-03-28 13:40:41 +00:00
Adriaan de Groot
b70a5c53bb floor() is c99, need math.h for it as well
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=790776
2008-03-27 12:53:48 +00:00
Marco Martin
92dd45a555 Porting Kickoff item delegate to Plasma::Delegate
this removes a lot of duplication

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=788915
2008-03-22 20:26:46 +00:00
Marco Martin
13efb56562 fix the empty space calculation in Plasma::Delegate
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=787721
2008-03-19 18:09:15 +00:00
Marco Martin
750094f6bf Add a new Plasma class: Plasma::Delegate
it will draw all the listviews used in Plasma that acts like a menu, like Kickoff or Devicenotifier.
at the moment only devicenotifier uses that, (so now it looks like kickoff) a port of the kickoff delegate is planned.
if you want to draw additional data you must
can subclass it
call paint of the father and then use  onr of the function the functions rectAfterTitle, rectAfterSubTitle and emptyRect to get the blank space
paint in the rect obtained with the above functions

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786973
2008-03-18 11:09:39 +00:00