Commit Graph

7081 Commits

Author SHA1 Message Date
Marco Martin
41b82ff620 s patch makes the concept of maximum and minimum size of the panel
actually meaningful:
the idea is that an applet can change its own preferred size and ask its
containment if it can fullfill its wish on the size
so the panel tries to resize itself as it can in its maximum and minimum
size constraints.
at the moment only the taskbar uses this, also the systray could use it
(and in general all expanding applets)
it use a new signal in Plasma::Applet, called
sizeHintChanged(Qt::SizeHint)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838364
2008-07-27 16:20:56 +00:00
Alessandro Diaferia
e9386fe8dc fallback to default theme also when a plaint svg is used
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838356
2008-07-27 15:50:00 +00:00
Marco Martin
41ab1a27c1 take margins into account
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838051
2008-07-26 15:05:16 +00:00
Aaron J. Seigo
263870d46d the tip can be null
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=837827
2008-07-25 20:18:54 +00:00
Jason Stubbs
12ec0f5c2b Prevent a tooltip from showing after a user has clicked or scrolled on a
widget (until it is re-entered)

Also fixed a small whitespace issue.

Back-port to 4.1 if so desired. :)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=837733
2008-07-25 15:20:12 +00:00
Marco Martin
bebd1cdc1c inserted a new group of hints:
prefix-hint-margin-direction where prefix (optional) is the current
rendered panel and direction is either top bottom, left or right
is used to give a panel custom margins different respect to the borders

removed the contentAtOrigin property that vas never used and actually
dead code

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=837731
2008-07-25 15:08:22 +00:00
Sebastian Sauer
19e5356bf5 Don't crash if d->toolBox is NULL.
"plasmoidviewer desktop" works now too :)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=836717
2008-07-22 20:46:34 +00:00
Laurent Montel
5e5622ddf2 Not necessary to test it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=836698
2008-07-22 20:21:41 +00:00
Aaron J. Seigo
538272d133 make Theme::currentThemeHasImage check for compressedsvg files
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=836139
2008-07-21 19:36:47 +00:00
Alexander Neundorf
f925d33c9b -also disable _KDE4_TARGET_LINK_INTERFACE_LIBRARIES() and use the renamed LINK_INTERFACE_LIBRARIES target property
instead: 
set_target_properties(foo PROPERTIES 
                          ${KDE4_DISABLE_PROPERTY_}LINK_INTERFACE_LIBRARIES  "kdeui;kdecore" 
                     )

While this doesn't look very nice, it is completely forward and backward compatible (i.e. cmake 2.4 doesn't complain,
cmake 2.6 works, both versions work as soon as the reduced link interface is the default (soon), if somebody 
uses this with kdelibs which don't have that anymore he will get the reduced interface instead of errors, so all 
should be ok)

Alex

CCMAIL: mueller@kde.org




svn path=/trunk/KDE/kdelibs/; revision=836131
2008-07-21 19:19:06 +00:00
Alexander Neundorf
daafe8f8a0 -adapt kdebase to the renaming of kde4_target_link_interface_libraries() to _kde4_target_link_interface_libraries()
Alex

CCMAIL: mueller@kde.org



svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=835652
2008-07-20 22:03:14 +00:00
Aaron J. Seigo
9732101c83 support compressed svg files
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=835219
2008-07-20 09:23:59 +00:00
Aaron J. Seigo
85275b25ea reposition the toolbox whenever changing our zoom state
BUG:166860

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834951
2008-07-19 18:51:22 +00:00
Chani Armitage
d7bc9f3898 add security check in showConfigurationInterface too
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834476
2008-07-19 03:22:41 +00:00
Chani Armitage
bbcc79fc0e only allow configuration while widgets are unlocked
something went wrong, very wrong, when pulling from gitorious. I don't know what or why. but this is a copy of the last commit I made on my laptop...

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834472
2008-07-19 03:00:36 +00:00
Alex Merry
0d42d36814 Help bug-hunting devs
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834455
2008-07-19 00:03:08 +00:00
Aaron J. Seigo
bfd552b776 add the word Activity now that we've essentially committed to using it
BUG:166875

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834030
2008-07-17 20:52:04 +00:00
Aaron J. Seigo
910847c1f4 minimum version is MAJOR.0.0
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833999
2008-07-17 19:45:17 +00:00
Aaron J. Seigo
b5c2d8f925 build
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833998
2008-07-17 19:44:29 +00:00
Pino Toscano
bec3fc7541 fix i18n() usage
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833977
2008-07-17 18:40:11 +00:00
Aaron J. Seigo
98e46ae18a watch for containment destruction; for people who like torturing plasma in weird nd wonderful ways
BUG:166824

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833976
2008-07-17 18:36:55 +00:00
Aaron J. Seigo
9fce6a940f one less string freeze todo
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833969
2008-07-17 18:25:50 +00:00
Aaron J. Seigo
abf220d8db associate broken applets with the id so they will be removedable (automatically at next start, even)
BUG:166811

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833967
2008-07-17 18:21:55 +00:00
Dirk Mueller
754b000b42 also implement the plugin version checks for the other plugin types
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833940
2008-07-17 16:26:29 +00:00
David Faure
6675e4e222 SVN_SILENT pedantic
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833690
2008-07-17 10:46:02 +00:00
Aaron J. Seigo
d6e7628cb6 move PlasmaAppletDialog into libplasma as PopupApplet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833658
2008-07-17 09:30:57 +00:00
Aaron J. Seigo
e52ca538e0 styleSheet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833657
2008-07-17 09:30:19 +00:00
Aaron J. Seigo
93131a7cd2 these includes don't belong in the header in the first place
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833620
2008-07-17 07:53:31 +00:00
Pino Toscano
c63c0c7305 include fixup
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833610
2008-07-17 07:31:36 +00:00
Laurent Montel
fd3cc633be Need to export it. (fix compile applets/icon)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833588
2008-07-17 06:34:59 +00:00
Aaron J. Seigo
adbf92d5dc disconnect before deleting; we don't want to get informed of any changes from this point forward.
perhaps the cause of the "crash on lock" bug?
CCBUG:166802

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833582
2008-07-17 05:56:52 +00:00
Aaron J. Seigo
a73c3bb39a assign tooltip before moving on
BUG:166800

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833581
2008-07-17 05:54:30 +00:00
Dirk Mueller
5a2b46c73e - coding style
- more plugins to version

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833560
2008-07-17 01:27:43 +00:00
Dirk Mueller
02a008da35 introduce plugin versioning for plasma and ensure
that only applets with a matching major.minor version
are loaded. needs porting to plugins other than applets.

CCMAIL: aseigo@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833550
2008-07-17 01:11:25 +00:00
Aaron J. Seigo
19b3401af9 * get rid of ToolTipManager::getItemItsApplet
* introduce Plasma::viewFor and Plasma::popupPosition

generally nicer code all around.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833534
2008-07-16 23:48:41 +00:00
Aaron J. Seigo
c1fb3655cd * register widgets when data is set on them if they aren't already registered
* allocate ToolTip objects only as needed
* invoke tool tip show/hide slots on the associated widget to allow for dynamic tooltip data

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833526
2008-07-16 23:27:34 +00:00
Alexis Ménard
24d494fd5a Install event filter is better than reimplement sceneEvent.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833521
2008-07-16 23:11:51 +00:00
Aaron J. Seigo
92c7ffc9df * a const fix
* BIG WARNINGS TO AVOID FUTURE ERRORS

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833500
2008-07-16 21:58:36 +00:00
Aaron J. Seigo
853b6a1f93 SVN_SILENT a few bits of code consistency
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833494
2008-07-16 21:48:52 +00:00
Aaron J. Seigo
504ebb9e0c SVN_SILENT ws fix
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833492
2008-07-16 21:45:52 +00:00
Aaron J. Seigo
84a92918a9 * move the private slots to the private class
* corrections to the on-destruction handler

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833491
2008-07-16 21:44:19 +00:00
Anne-Marie Mahfouf
4ce38c254d consistency with Qt: stylesheet() -> styleSheet() and setStylesheet() -> setStyleSheet()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833427
2008-07-16 20:07:34 +00:00
Alexis Ménard
762481e13e obviously i have drink too much when i write this condition
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833386
2008-07-16 18:51:24 +00:00
Aaron J. Seigo
d4818afd6e use KIconLoader::global
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833354
2008-07-16 17:54:46 +00:00
Aaron J. Seigo
9fa78a4688 thought i committed this yesterday; apparently not.. safer handle clearing.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833352
2008-07-16 17:51:58 +00:00
Loic Marteau
7cb619cf68 use SmallIcon() to load icon and be sure that the proper size setting is used
IconSize() seems to not work when doubled icon size is checked in user settings
use a workaround instead

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833344
2008-07-16 17:23:35 +00:00
Alex Merry
56968db224 Actually call registerOperationScheme(). Also document a macro.
CCMAIL:panel-devel@kde.org
Can someone backport this to the 4.1 branch, please?  Otherwise no-one can write services in 4.1.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833339
2008-07-16 17:04:40 +00:00
Alexis Ménard
aa2a6f536d oops don't compile ;) revert the last commit
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833299
2008-07-16 15:52:56 +00:00
Alexis Ménard
21888421bf don't need to be public
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833298
2008-07-16 15:52:53 +00:00
Alexis Ménard
f4ec3034df Add api doc comments + delete old stuff in applet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833277
2008-07-16 15:18:08 +00:00