Commit Graph

576 Commits

Author SHA1 Message Date
Pino Toscano
f706960801 QtModule/QClass for Qt includes in public headers
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812730
2008-05-26 09:10:11 +00:00
Aaron J. Seigo
83a0bdac74 and unhover without anims.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812650
2008-05-25 21:47:09 +00:00
Aaron J. Seigo
f0da40111e don't draw multiple times if we aren't going to actually fade anything in
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812647
2008-05-25 21:38:22 +00:00
Chani Armitage
3dcf445db4 convert the toolbox to use qactions. this makes the toolbox act a bit more reliably, makes some other bugs more annoying, and makes it easier to fix them.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=811914
2008-05-24 01:48:36 +00:00
Alex Merry
9178353bb4 Fix inclusion guards for future widgets.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=810532
2008-05-20 22:36:28 +00:00
Richard Dale
c3aa6bec48 * Fix the broken guard macros in the widget* headers
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=810412
2008-05-20 17:29:23 +00:00
Laurent Montel
47183f095f SVN_SILENT:
Typo

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=810151
2008-05-20 06:24:52 +00:00
Aaron J. Seigo
c413c02ca7 export these files too
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=810070
2008-05-19 23:25:56 +00:00
Aaron J. Seigo
9abfe2e1d0 export the classes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=810061
2008-05-19 23:17:44 +00:00
Chani Armitage
f6d290849f add groupbox
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809979
2008-05-19 20:18:46 +00:00
Chani Armitage
50889239d6 add combobox
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809932
2008-05-19 19:10:58 +00:00
Chani Armitage
ec2bcd9010 add textedit
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809903
2008-05-19 18:17:12 +00:00
Pino Toscano
a2e1e54c73 add quotes around #include file name
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809700
2008-05-19 09:31:40 +00:00
Chani Armitage
ec8c013149 add checkbox
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809581
2008-05-19 06:12:48 +00:00
Aaron J. Seigo
43e837c8c7 * add RadioButton
* install PushButton headers

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809577
2008-05-19 05:56:42 +00:00
Chani Armitage
0906a09ae9 return of the son of pushbutton
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809575
2008-05-19 05:44:32 +00:00
Aaron J. Seigo
69435a397f forward signals, no need for image setting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809574
2008-05-19 05:42:44 +00:00
Aaron J. Seigo
51bb717cae a little more help
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809573
2008-05-19 05:26:53 +00:00
Aaron J. Seigo
5c7589a741 call the parent class' resizeEvent as well
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809571
2008-05-19 05:25:33 +00:00
Aaron J. Seigo
9d619d61c6 add some widgets. it works! no more explicit proxy widget usage, and a nice simplified api that makes the baby jesus happy
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809503
2008-05-19 01:24:12 +00:00
Aaron J. Seigo
b4c0e2ea4d more fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809501
2008-05-19 01:23:04 +00:00
Aaron J. Seigo
6455a32abf template fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809476
2008-05-18 23:18:08 +00:00
Aaron J. Seigo
01387b3014 svn add too
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809472
2008-05-18 23:11:44 +00:00
Aaron J. Seigo
c0244c2c68 a little system for making widgets quickly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809454
2008-05-18 22:27:29 +00:00
Aaron J. Seigo
d7e2844da3 not built anyways
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809361
2008-05-18 19:32:08 +00:00
Aaron J. Seigo
102cd5b748 no longer used
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=807767
2008-05-14 17:16:36 +00:00
Dan Meltzer
f57cc1c623 Lotsa little ebn fixes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805672
2008-05-09 05:32:15 +00:00
Andre Duffeck
4e793192de port Plasma::Flash
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805377
2008-05-08 11:45:49 +00:00
Aaron J. Seigo
a7fd1ce868 clean this up a bit
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804345
2008-05-05 18:37:18 +00:00
Pino Toscano
5df3e2846b Qt includes in public headers needs the QtModule/QClass form
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803730
2008-05-04 06:13:17 +00:00
Albert Astals Cid
4068f45cf9 const & in foreach
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801430
2008-04-26 16:19:00 +00:00
Aaron J. Seigo
72db181c7c Phase -> Animator
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800875
2008-04-25 03:23:31 +00:00
Aaron J. Seigo
6e80fe4354 Phase becomes Animator
Animator becomes AnimationDriver

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800870
2008-04-25 03:11:59 +00:00
Davide Bettio
aa5f747305 API REVIEW: Phase -> AnimatorDriver
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800840
2008-04-24 23:21:17 +00:00
Davide Bettio
3bfaf57014 API REVIEW: Animation merges with ElementAnimation.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800825
2008-04-24 22:30:53 +00:00
Davide Bettio
175cf065e7 API REVIEW: AnimId -> int
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800804
2008-04-24 21:26:36 +00:00
Davide Bettio
d6995254db API REVIEW: animationResult() -> currentPixmap()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800784
2008-04-24 20:44:16 +00:00
Davide Bettio
3a150a6f6b API REVIEW: setAnimationPixmap() -> setInitialPixmap()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800782
2008-04-24 20:37:26 +00:00
Dan Meltzer
f24d1efa28 Plasma::WebContent::geometry should return a qrectf, not a qsizef
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800379
2008-04-24 02:56:48 +00:00
Aaron J. Seigo
d28a4c277a consolidate color and font methods into one method for each with a role enumeration
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800334
2008-04-23 22:36:00 +00:00
Anne-Marie Mahfouf
970e72245c API review
more SIGNAL changed() -> themeChanged()
thanks Alexis for your vigilance!

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800244
2008-04-23 18:35:03 +00:00
Marco Martin
d0ba4e77ec Api change:
Plasma::Svg(imagePath, parent) -> Plasma::Svg(parent)  and
Plasma::PanelSvg(imagePath, parent) -> Plasma::PanelSvg(parent)
updated as needed every class that was using Svg or PanelSvg

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800143
2008-04-23 13:07:41 +00:00
Anne-Marie Mahfouf
36bc2c4e97 Plasma::Theme::self() -> Plasma::Theme::defaultTheme() as planned during the sprint
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=799919
2008-04-22 21:10:14 +00:00
Petri Damstén
77e66bc8fb Convert Meter and SignalPlotter to QGraphicsWidget based widgets
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=799477
2008-04-21 16:26:18 +00:00
Marco Martin
f522c38eeb file() and setFile() -> imagePath() and setImagePath()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797772
2008-04-16 20:48:53 +00:00
Marco Martin
d07a60c581 Rename SvnPanel into PanelSvg and update accordingly who is using that,
as discussed in api reviews

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797663
2008-04-16 17:23:58 +00:00
Alexis Ménard
d5dd4e16ac Ammmaaziiing grace!!
Widget class is dead..

still in the repo for tooltip code

CCMAIL : aseigo@kde.org


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796973
2008-04-14 16:02:23 +00:00
Alexis Ménard
d91b8a94d4 remove useless function
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796939
2008-04-14 15:15:26 +00:00
Alexis Ménard
1b7a9a14e0 +bye bye paintwidget method
+remove tooltip that will be replaced by the tooltip manager
+port some used stuff in applet class

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796924
2008-04-14 14:50:02 +00:00
Alexis Ménard
1e8d0d6051 API clean : bye bye cache mode wich is managed by qt
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796903
2008-04-14 14:18:17 +00:00
Alexis Ménard
1b15d951a9 API clean : bye bye opacity, wich is bas implemented in all cases
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796900
2008-04-14 14:09:13 +00:00
Laurent Montel
f8ddf5cfc6 Fix include
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796796
2008-04-14 10:33:37 +00:00
Alexis Ménard
67758e04a6 fix future compile issues
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796777
2008-04-14 09:50:39 +00:00
Alexis Ménard
aa3c3eccce no more old layouts in libplasma, new stuff on API can start
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796624
2008-04-13 22:01:18 +00:00
Alexis Ménard
2cc5870dd6 port ++
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796617
2008-04-13 21:47:47 +00:00
Alexis Ménard
1605283e9e port ++
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796610
2008-04-13 21:21:50 +00:00
Alexis Ménard
4467261c95 Merge woc branch to trunk, say good bye to old plasma, there is a lot of stuff to port
applets, 
please update to another revision to use the version that works

green flag from aaron


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796368
2008-04-13 13:23:39 +00:00
Chani Armitage
be10ede60a save space
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=795838
2008-04-11 14:57:48 +00:00
Aaron J. Seigo
1f6d6175a7 avoid recursive calls to updateToolTip by doing what we *really* want to be doing here, which is updating the data. this also prevents the case where a tooltip is updated randomly, causing the tooltip to show. i wonder if that's what has been the cause of the occasional taskbar tooltip showing when it shouldn't?
reviewed by Rafał Miłecki

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=794638
2008-04-08 07:20:36 +00:00
Dirk Mueller
9859202dbe typo: seperator -> separator
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793603
2008-04-04 14:41:19 +00:00
Aaron J. Seigo
88ffba62e0 zero the page pointer before setting it so we don't end up deleting a garbage pointer
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793449
2008-04-04 00:13:57 +00:00
Aaron J. Seigo
391822437b export the class
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793439
2008-04-03 23:51:58 +00:00
Aaron J. Seigo
f5a28bd5d7 * add setPage that mimics the setPage in QWebView
* allow d->page to be NULL

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793424
2008-04-03 23:35:41 +00:00
Aaron J. Seigo
a8de881058 move webcontent implementation into libplasma
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793418
2008-04-03 22:49:19 +00:00
Aaron J. Seigo
f3557f6796 move webcontent into libplasma. well, the header anyways. svn not being able to do globbing on these moves is.. rediculous.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793417
2008-04-03 22:48:55 +00:00
Andre Duffeck
004c4b029b fix typo in apidox
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792974
2008-04-02 18:29:25 +00:00
Aaron J. Seigo
def626b080 updateToolTip now gets called also when going away, with false. patch by Rafał Miłecki
CCMAIL:zajec5@gmail.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792738
2008-04-01 23:01:52 +00:00
Chani Armitage
a5ec59b775 -setDefaultText no longer clobbers regular text
-fewer string comparisons

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791584
2008-03-29 22:22:44 +00:00
Chani Armitage
fb7a84644d compare default text correctly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791246
2008-03-28 21:11:57 +00:00
Chani Armitage
7983ed5bb9 comments++
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791229
2008-03-28 19:43:17 +00:00
Aaron J. Seigo
abf654c5c5 have the tooltip inform the widget that it's about to tip so last second updates can be made, particularly nice for expensive tooltips
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786834
2008-03-18 01:39:28 +00:00
Aaron J. Seigo
25476574a3 only remove it implicitly from our layout if the item is actually being removed from us (not just being stuffed into a child); in the case of a child becoming a grandchild, it will need to be explicitly added to a new layout or removed from an existing one.
prevents applethandle from causing applets to be removed from the FreeLayout in the DefaultDesktopp containment, as seen by Ivan

CCMAIL:panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=785670
2008-03-14 16:59:10 +00:00
Marco Martin
afdb5e84a0 reworked how shaped windows with svg backgrounds are obtained:
there is a new function PanelSvg::mask() that returns a qbitmap of the areas of the svg with alpha=0 that can be used to create the mask of the window, at the moment used in tooltip and dialog (krunner still to come).
so now windows that uses svg backgrounds should always set PanelSvg::mask() as their own mask, regardless if composite is active or not.
In this commit there are also two (identical) svgs for opaque tooltips and dialogs with pixelated rounded borders that looks good without antialiasing (and unlike the previous version they are vector based now).

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782727
2008-03-05 21:03:27 +00:00
Aaron J. Seigo
c1e480f20c numerous horizontal icon layout issues fixed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781876
2008-03-03 19:35:24 +00:00
Marco Martin
2d34c6777c Initialize d->numDisplayLines
(and i wondered why sizeFromIconSize() seemed to have a non deterministic behaviour :P)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781244
2008-03-02 12:30:29 +00:00
Dan Meltzer
7f624f85d9 Revert one large git mess
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780657
2008-02-29 17:50:57 +00:00
Dan Meltzer
a081559257 Commit initial progress of work to port to qt4.4
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780654
2008-02-29 17:43:31 +00:00
Sebastian Kügler
ae0510db05 Icons now fade in the background animation. They also learnt to react on color theme
changes. Some codingstyle changes as the icing on the cake.

The fade-in effect can be switched off with Rafaels new feature, btw.

RB:195

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779804
2008-02-27 00:50:07 +00:00
Vincenzo Di Massa
a2a6ed7f04 Delete the property on the parent widget :-)
My first bugfix, yay!

BUG: 157816

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779541
2008-02-26 13:00:49 +00:00
Aaron J. Seigo
b4722d7052 some debug to help figure out the xinerama problems; will disable once it's all good.
Will: can you svn up and send the output this generates for you? thanks
CCBUG:158406

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779405
2008-02-26 01:55:50 +00:00
Aaron J. Seigo
9c6dd4846b assert on having a view before calling this ...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779305
2008-02-25 20:50:26 +00:00
Aaron J. Seigo
ee26284ec3 fix maximum size in lieu of the WoC porting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778192
2008-02-22 19:40:46 +00:00
Aaron J. Seigo
756041badd const ref fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776990
2008-02-19 09:19:02 +00:00
Aaron J. Seigo
b19eb3eaff handful more of krazy fixes and i'm done for the night
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776988
2008-02-19 09:12:34 +00:00
Aaron J. Seigo
777b8083f8 * moves the idea of margins up to LayoutItem, allowing any LayoutItem to have a margin
* moves the idea of the size of the item up to LayoutItem, as both Widget and Layout implemented it separately
* provides a way in LayoutItem to adjust a rect within an item to its margins (that is what LayoutItem::topLeft() is there for)
* fix several bugs, both painting and sizing, in LineEdit
* Applet sets margins now based on the existence of setDrawBackground


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776380
2008-02-17 23:02:46 +00:00
Benjamin K. Stuhl
f78ab80d19 Call QWidget::resizeEvent() so that we get our layout recalculated. This
fixes the previews showing up in the wrong place.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776041
2008-02-17 07:47:52 +00:00
Marco Martin
0cfd49fb26 ok, not painterMask, maskPainter, woops :)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775827
2008-02-16 18:47:46 +00:00
Marco Martin
1403f2d007 painter => painterMask: more descriptive name
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775826
2008-02-16 18:43:25 +00:00
Marco Martin
bd80f41ae2 fixing a rendering problem with Qt>=4.4
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775816
2008-02-16 18:07:28 +00:00
Marco Martin
3f937278e1 Fix IconAction animation
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775286
2008-02-15 11:39:10 +00:00
Andreas Aardal Hanssen
7516d7ea30 Introduce QGraphicsItem::CacheMode in place of Widget::CachePaintMode.
This move was planned from the beginning; Widget::CachePaintMode was a
backport of the same feature in Qt 4.4. OK'ed by aseigo after post on
panel-devel. I've left CachePaintMode in there (it simply redirects to
CacheMode); I don't know if it's OK to remove these APIs or not (and
it's not monday anyway).

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775198
2008-02-15 06:51:37 +00:00
Aaron J. Seigo
d03a381595 various geometry fixes (though somewhat depends on monday's big layout fix commit)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774336
2008-02-13 01:48:18 +00:00
Aaron J. Seigo
e27b0ca4d0 ok, second try based on tzander's response. i think this should work better and be a nice come back from lunch toy for him to play/test with.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773999
2008-02-12 10:07:45 +00:00
Aaron J. Seigo
5b394a752f make popup location calcs xinerama aware. i bet this even closes some BRs. i'm too tired to look for them though. =P
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773980
2008-02-12 09:41:49 +00:00
Andre Duffeck
c42f0593ba Fix broken usage of Plasma::Phase
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773933
2008-02-12 05:52:49 +00:00
Aaron J. Seigo
22c8b77b34 this is not a Plasma::Widget. now styling is back. looks as nasty as ever, though.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773813
2008-02-11 20:50:13 +00:00
Aaron J. Seigo
c7fe098480 avoid flicker
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773744
2008-02-11 17:35:21 +00:00
Aaron J. Seigo
a438b53373 die, setSize, die, and all the problems you represent. silly duplicated, not-like-qwidget API anyways. ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773505
2008-02-11 08:24:09 +00:00
Aaron J. Seigo
eed0410c56 * make setSize virtual as well since it sets d->size internally, so Applet needs to intercept that call
* remove some dead code in widgets.cpp

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773475
2008-02-11 06:11:13 +00:00
Chani Armitage
1c4bdb9408 don't set d->size directly; this fixes the weird issues with setting minimum size before contentsize and makes sure the svg is updated
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773472
2008-02-11 05:53:19 +00:00