Commit Graph

2052 Commits

Author SHA1 Message Date
Aaron J. Seigo
da4f6c6e72 ws, style fixes, use booleans rather than ints when returning a boolean
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803034
2008-05-01 17:42:34 +00:00
Marco Martin
4c1e5b8e9d New class called PanelController:
is a new QWidget shown when the user clicks on the panel toolbox, it's a
thing that will eventually replace the panel configuration dialog.
at the moment it has an add aplet and remove panel buttons.
it is possible to resize the panel by dragging the upper edge of the
panel controller and in the future will be provided a way to resize the
panel width and changing the position.
at the moment there is the known problem that the resize handle doesn't
work for vertical panel for now.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802932
2008-05-01 09:58:36 +00:00
Marco Martin
6c04d0c3e4 removed getBorderSize(), replaced by PanelSvg::getMargins()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802931
2008-05-01 09:53:09 +00:00
Marco Martin
703b6c2ffa * adds a new convenience method getMargins(&qreal,&qreal,&qreal,&qreal)
to fetch all the four margins at a time
* now applet uses it

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802928
2008-05-01 09:49:30 +00:00
Jordi Polo
fa598a779a oops, wrong include file.
Deleted unused variable 


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802919
2008-05-01 09:01:49 +00:00
Jordi Polo
95157e20c4 Big patch with several internal changes to krunner:
-New RunnerManager class, it manages runners at high level 
and gives a simple API for interfaces to use. 
- AbstractRunners gains description, setIgnoredTypes, ignoredTypes methods. 
Now runners can specify what SearchContext::Types they are not going to process.
- SearchContext tries shared data between the original context and any local context.
It doesn't have its own completer no more.
- SearchMatch has a new type of match, CompleterMatch. Instead of using a hard coded 
completer in SearchContext
- Interface class on krunner has its own completer and other changes
done to accomodate the above changes in libplasma.
-A new configuration option blacklist for runnermanager and krunner 
instead of the whitelist of krunner. 


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802903
2008-05-01 07:51:59 +00:00
Aaron J. Seigo
207968b217 resetConfigurationObject()->pimpl
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802892
2008-05-01 03:24:20 +00:00
Aaron J. Seigo
43e6bac986 Plasma::AspectRatioMode, just like Qt::AspectRatioMode. the setter/getter in Applet even used Mode.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802866
2008-04-30 22:13:27 +00:00
Aaron J. Seigo
ef45e56b8c SVN_SILENT: build fix
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802865
2008-04-30 22:10:22 +00:00
Aaron J. Seigo
b81b6ad8de split out the private applet classes into a _p.h
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802860
2008-04-30 21:50:43 +00:00
Aaron J. Seigo
212821f611 put ShadowItem in the Plasma namespace
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802858
2008-04-30 21:47:47 +00:00
Davide Bettio
0916889c58 API REVIEW:
* watchForMouseMove() -> registerAsDragHandle() / unregisterDragHandle()
* Added isRegisteredAsDragHandle() (I'm not really sure If it's a good idea to add this method).

ping me if you find better names for registerAsDragHandle() / unregisterDragHandle().

CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802774
2008-04-30 15:04:49 +00:00
Laurent Montel
2621c6c07f Language->API
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802727
2008-04-30 11:41:07 +00:00
Laurent Montel
59d235e3f4 X-Plasma-Language->X-Plasma-API
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802726
2008-04-30 11:39:35 +00:00
Andreas Hartmetz
9117de06cf dashbot is such a sissy
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802621
2008-04-30 01:30:11 +00:00
Aaron J. Seigo
5482bad2ce protected slots -> Q_PRIVATE_SLOT
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802610
2008-04-29 23:27:17 +00:00
Aaron J. Seigo
67f44e6f0a * constructor + destructor private
* init -> pimpl

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802607
2008-04-29 23:24:09 +00:00
Aaron J. Seigo
0c2b74e11d * animateItem, moveItem return int
* add stopItemAnimation and stopItemMovement

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802605
2008-04-29 23:16:33 +00:00
Alexis Ménard
1eee210264 fix default layout and label when a label fail to load
FIXME : get the correct color for the label with the theme

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802598
2008-04-29 22:57:08 +00:00
André Wöbbeking
15bf9c6ce7 -pedantic
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802583
2008-04-29 21:59:51 +00:00
Marco Martin
43066e49ce API review:
remainSquare(), aspectRatioMode() and their setters are merged in
aspectRatioMode() + setAspectRatioMode(Plasma::AspectRatio)
Plasma::AspectRatio has IgnoreAspectRatio, KeepAspectRatio and Square

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802561
2008-04-29 20:31:18 +00:00
Aaron J. Seigo
f4d9309b86 api cleanup
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802539
2008-04-29 20:01:23 +00:00
Aaron J. Seigo
9165b11235 at tokamak i said i regretted using the term "Language" to describe what is really "API". i meant it.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802486
2008-04-29 16:24:14 +00:00
Script Kiddy
b717f9bdbb SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802307
2008-04-29 05:57:03 +00:00
Aaron J. Seigo
a75e4604c0 allow applet script to dig around with Applet
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802291
2008-04-29 03:05:31 +00:00
Aaron J. Seigo
9234ac63e9 this method should also be protected
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802289
2008-04-29 02:35:56 +00:00
Aaron J. Seigo
daf3d7a4a2 API REVIEW: needsConfiguring() => configurationRequired
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802288
2008-04-29 02:34:21 +00:00
Aaron J. Seigo
0402391d17 we don't need our own shape() here anymore; it really hardly worked at the best of times and was we move to window decos it'll become irrelevant anyhow
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802287
2008-04-29 02:30:23 +00:00
Aaron J. Seigo
1847d60a1d API REVIEW: launchActivated -> releaseVisualFocus; more generic and a bit more obvious as to its purpose
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802286
2008-04-29 02:28:35 +00:00
Aaron J. Seigo
53a6938a87 schedule a configuration sync upon loading the default setup
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802285
2008-04-29 02:19:12 +00:00
Aaron J. Seigo
5d287cfcbb one more slot pimpl'd
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802282
2008-04-29 01:41:24 +00:00
Aaron J. Seigo
c6f866378d not a slot
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802280
2008-04-29 01:24:00 +00:00
Aaron J. Seigo
13fcca652e move dataengine private details into the pimpl
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802279
2008-04-29 01:17:12 +00:00
Joseph Burns
4b0bc4fb5a API Review: uninstallPackage -> packageName instead of param package
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802278
2008-04-29 00:56:33 +00:00
Aaron J. Seigo
2dd5891029 with some intriguing grotesqueness internal to the library, we can simplify the API and remove location/formFactor from Containment and just use the ones in Applet; externally this is probably rather safer
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802277
2008-04-29 00:49:10 +00:00
Aaron J. Seigo
b94c6913ff small optimization: prevent reconnecting (and likely a delete and new of a SignalObject) when the requested polling interval and the current one are the same
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802273
2008-04-29 00:26:33 +00:00
Aaron J. Seigo
9a156375a3 SVN_SILENT: a bit more useful debug in places
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802271
2008-04-29 00:15:26 +00:00
Aaron J. Seigo
93882feae4 * more debug for when these issues arise
* nicer logic handling (no negation ;)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802270
2008-04-29 00:10:43 +00:00
Aaron J. Seigo
69524609a3 remove createLayout from Containment. now each containment will need to implement its own layouting. this is not so big a deal since FreeLayout is no longer needed to make applets behave properly. now panels can do whatever the heck they want.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802255
2008-04-28 23:00:08 +00:00
Aaron J. Seigo
fa166c72ef SVN_SILENT: small ws fix that was laying around on disk here
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802253
2008-04-28 22:56:02 +00:00
Davide Bettio
b37d43eafd API REVIEW: showConfigurationInterface() -> nonvirtual
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802232
2008-04-28 21:23:27 +00:00
Rob Scheepmaker
571e8a0db6 ...oops?... Let's also add an implementation...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802211
2008-04-28 20:37:10 +00:00
Marco Martin
ade65ba938 some fixes to the toolbox:
* the hoverEvent of the PanelToolbox is always accepted
* the hoverEvent of desktopToolbox is always accepted if the desktop is
  zoomed-out
* boundingRect size of PanelToolbox is halved since it does not zoom
  anymore on mouse over

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802195
2008-04-28 19:41:43 +00:00
Rob Scheepmaker
78bfa23fac added setTrackContainmentChanges to view. necesarry for improved drag&drop visualisation.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802187
2008-04-28 19:14:28 +00:00
Davide Bettio
78ef3e466c API REVIEW: createConfigurationInterface() -> virtual protected, not slot
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802169
2008-04-28 18:32:34 +00:00
Marco Martin
3e6877ab4d restored the toolbox mouse over edge detection, so the annoyance is
back.
at least it does wat is supposed to do now. so some discussion still needed
on what it's supposed to behave...

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802161
2008-04-28 17:55:34 +00:00
Davide Bettio
c32f8a4511 Replacing exec() with run(): this change wasn't discussed during the tokamak meeting.
run() method is more obvious than exec() (don't forget that a runner run :) ).
Anyway during the meeting we have decided to replace createMatchOptions() with createRunOptions()
and (set)hasMatchOptions() with (set)hasRunOptions(), now with this commit we have a more coherent naming.
CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802143
2008-04-28 17:11:12 +00:00
Marco Martin
f06d25a00c API reviews:
globalName(), instanceName()->pimpl

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802135
2008-04-28 16:22:01 +00:00
Marco Martin
9bee311b96 API reviews:
ThemeChanged()->Q_PRIVATE_SLOT

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802130
2008-04-28 15:55:13 +00:00
Marco Martin
48be92bdab API reviews:
checkImmutability()->Q_PRIVATE_SLOT
added a q-pointer into Applet needed for this and themeChanged the other
Q_PRIVATE_SLOT that will be added

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802124
2008-04-28 15:41:18 +00:00