Commit Graph

316 Commits

Author SHA1 Message Date
Sebastian Kügler
987d8ffc9d fix typo in includes 2013-03-06 01:22:00 +01:00
Marco Martin
67ce7f706e add kdeui 2013-03-05 20:14:01 +01:00
Marco Martin
dcd9954815 enable build of desktop scripting
it still doesn't do anything and needs porting away from deprecated classes
2013-03-05 19:17:22 +01:00
Marco Martin
0af1a25b5e move scripting into the shell 2013-03-05 17:48:01 +01:00
Marco Martin
3dee256411 get default containments and toolbox from package 2013-03-05 17:22:00 +01:00
Marco Martin
9e2240bd8c get shell package from config 2013-03-05 16:44:13 +01:00
Marco Martin
0033cb5513 port away from kglobal 2013-03-05 16:10:45 +01:00
Marco Martin
8e7b77153e port away from kglobal 2013-03-05 16:08:09 +01:00
Marco Martin
313bdb7d5e adapt to api changes 2013-03-05 15:32:29 +01:00
Marco Martin
6043baef89 adapt to kaboutdata api changes 2013-03-05 14:43:14 +01:00
Marco Martin
53c161fb58 packages without structure are invalid 2013-03-05 14:23:52 +01:00
Marco Martin
8646393758 shell package partly working 2013-03-05 13:58:18 +01:00
Marco Martin
4746d9074e add apluginloader for a custom package structure
probably this package structure goes into libplasma
2013-03-05 13:34:18 +01:00
Marco Martin
90cf52e6c6 remove shortcutsChanged() 2013-03-04 16:50:01 +01:00
Marco Martin
e49b58c95d remove initializeLayout() 2013-03-04 16:48:17 +01:00
Marco Martin
759780ce3f remove releaseVisualFocus 2013-03-04 16:33:59 +01:00
Marco Martin
55add92bf8 remove actionCollections and shortcut config dlg 2013-03-04 16:28:51 +01:00
Marco Martin
9f6fbec2f3 remove updateShortcuts() and addShortcut() 2013-03-04 16:25:37 +01:00
Marco Martin
bc3c23187d remove containmentForScreen(int, QString, QVariantList)
this function is redundant, you can use containmentForScreen(int) then create a containment if returns 0
2013-03-04 16:18:06 +01:00
Marco Martin
585c1ec21e remove appletMimeType()
addContainment becomes createContainment
2013-03-04 16:15:04 +01:00
Marco Martin
f4de55af67 use KAction from kde4support
it should buld again, usingkaction as type for kactioncollection
2013-03-04 15:46:47 +01:00
Marco Martin
79256d9931 remove AbstractDialogManager 2013-03-04 15:21:26 +01:00
Marco Martin
89d7cbd648 CoronaBase->Corona
Corona was renamed CoronaBase in early stages of plasma2 life, then back to Corona, remove all signs of CoronaBase
2013-03-04 14:56:55 +01:00
Aaron Seigo
3edcbc51a3 better name for the method, and the setter will be replaced by package content 2013-03-04 13:51:13 +01:00
Sebastian Kügler
efb57d45b9 fix typos 2013-03-04 13:43:23 +01:00
Sebastian Kügler
a1afc6644b Fix typos in apidocs 2013-03-04 13:10:44 +01:00
Aaron Seigo
ec82e17b41 pretty? :) 2013-03-02 00:06:34 +01:00
Aaron Seigo
e9c25137e3 add a configmodel item to the package 2013-03-02 00:05:50 +01:00
Marco Martin
d1c4de17d8 animate color transition 2013-03-01 20:05:04 +01:00
Marco Martin
7064d02e1a expose the wallpaper config to the config ui
there is still a serious problem: it is possible to configure only the currently loaded wallpaper plugin
2013-03-01 20:01:54 +01:00
Marco Martin
f5664e8b3f try to add a config 2013-03-01 16:39:47 +01:00
Marco Martin
be06b06015 support for panel icon sizes 2013-03-01 16:11:08 +01:00
Marco Martin
6f5a593d91 WallpaperInterface for wallpapers
will be used to provide configuration access and a configuration UI
2013-03-01 15:11:08 +01:00
Marco Martin
fda16dee08 don't export AppletPrivate 2013-03-01 14:29:14 +01:00
Marco Martin
c3924c75b7 remove createConfigurationInterface
configuration interface stuff is done right now in the ConfigView class, right now in the qml scriptengine (may be moved to the shell eventually)
2013-03-01 11:36:58 +01:00
Marco Martin
099319a911 preliminary list of wallpaper plugins 2013-02-28 21:24:30 +01:00
Marco Martin
552437ca62 dummy pages for wallpaper and containment actions 2013-02-28 16:39:11 +01:00
Marco Martin
b88339cb4a attempt to load different page set for containments 2013-02-28 16:33:44 +01:00
Marco Martin
d2d4faaa3e hide choices when there is only one 2013-02-28 15:54:02 +01:00
Marco Martin
ea710003fc a prototype, not used here for instant apply
on a desktop we will probably continue to have ok/apply/cancel buttons, on a ctive we will have instant apply, this commented code is a way to achieve this in a way that require no adaptation from the config pages whatsoever
2013-02-28 15:03:42 +01:00
Marco Martin
0b6770e2b2 Containment::addApplet -> Containment::createApplet 2013-02-28 13:32:47 +01:00
Sebastian Kügler
8a386d065c add a bit of debugging info
which shows that we're getting wrong events right now. :/
2013-02-27 22:13:14 +01:00
Sebastian Kügler
3be712eacd new test page for Drag & Drop 2013-02-27 22:13:14 +01:00
Alex Neundorf
f07a425546 -fix build, find ThreadWeaver via KF5
I thin using the variables is safer, this way you are somewhat guarded against changes
in the names of targets, and a typo leads to an empty variable, instead to
"ld: cannot find -lkcoreaddons" which looks very much like a missing normal library

Alex
2013-02-27 21:45:35 +01:00
Sebastian Kügler
3ee1474c17 draganddrop: all classes build and are enabled 2013-02-27 19:24:44 +01:00
Sebastian Kügler
b60983ca1f Port DeclarativeDragDropEvent 2013-02-27 18:55:53 +01:00
Marco Martin
53df27b8b7 config.qml is a pure model, search in config/ 2013-02-27 18:33:09 +01:00
Marco Martin
6458522bbc migrate page loading to ConfigModel 2013-02-27 18:33:09 +01:00
Sebastian Kügler
4fc1dbef00 draganddrop: more porting, build some bits already 2013-02-27 17:59:03 +01:00
Marco Martin
872839ecf9 a simple model to parse config categories
ConfigModel will be used in the plasmoid config qml that defines a model for the categories of the config dialog
2013-02-27 17:41:31 +01:00
Sebastian Kügler
2168bdec75 no i18n right now 2013-02-27 14:54:55 +01:00
Sebastian Kügler
112fb3f78a Fix API 2013-02-27 14:54:55 +01:00
Sebastian Kügler
f79c3833bd Start port of drag and drop import 2013-02-27 14:54:55 +01:00
Marco Martin
6777a7dc56 call superclass event handlers 2013-02-27 14:51:12 +01:00
Marco Martin
854ecdcf5b make sure the dialog is resized before showing
crash--
probably there is a bug in scenegraph when one calls show() of a 0,0 size wondow
2013-02-27 14:35:34 +01:00
Marco Martin
7e96fe9000 resizing based on contents implicit sizes
still to be made a tad more reliable
2013-02-27 14:03:36 +01:00
Marco Martin
8ea0de9892 save and restore works again 2013-02-27 13:33:01 +01:00
Marco Martin
05bf0d344c another small layout improvement 2013-02-27 11:57:55 +01:00
Marco Martin
4608fc6012 comments++ 2013-02-27 11:15:33 +01:00
Marco Martin
528429b5ab load global module if the local is not provided 2013-02-27 11:09:25 +01:00
Marco Martin
6d194f02e3 support for shell-provided configuration uis 2013-02-27 11:02:30 +01:00
Sebastian Kügler
b14ab3f1b6 Improve error handling a bit, and clean up outdated FIXMEs 2013-02-27 06:48:57 +01:00
Sebastian Kügler
90b022435a Make validation of zipped packages possible
- move the unpack block into its own function
- unzip if necessary, and point validator and metadata loader at this
  function
- manually delete the tempdir, to keep it as long as the Package is
  alive

This patch makes it possible to upgrade packages from .plasmoid files.
2013-02-27 06:46:28 +01:00
Sebastian Kügler
c8202da160 update sycoca after uninstalling, debug-- 2013-02-27 03:36:53 +01:00
Sebastian Kügler
ff721cf8ae Respect packageRoot when uninstalling, not path() 2013-02-27 03:05:05 +01:00
Marco Martin
8170075d8d fix page title 2013-02-26 22:32:31 +01:00
Marco Martin
de8644af69 make the config.qml object a "model" 2013-02-26 21:48:36 +01:00
Aaron Seigo
56d73373ac when reseting the config loader, also make it re-read the config 2013-02-26 14:50:41 +01:00
Aaron Seigo
9478edaa05 lazy create the config loader on demand, reset when appropriate 2013-02-26 14:50:41 +01:00
Aaron Seigo
7ab77c4e6d don't parse xml if we are given nothing to parse 2013-02-26 14:50:41 +01:00
Aaron Seigo
9be56f7724 clear our data when we parse 2013-02-26 14:50:41 +01:00
Aaron Seigo
4cb892dd04 only create a new svg item if we don't already have one 2013-02-26 14:50:41 +01:00
Marco Martin
c7ade82561 some other layout fix 2013-02-26 14:49:46 +01:00
Marco Martin
e781a2bba2 slightly better layout 2013-02-26 14:30:51 +01:00
Marco Martin
fd9282d22f auto load first page 2013-02-26 13:58:37 +01:00
Marco Martin
3a5e5f931b close window on ok/cancel pressed
delete window on close
2013-02-26 12:47:08 +01:00
Sebastian Kügler
45147081e7 Fix comment 2013-02-26 05:47:12 +01:00
Sebastian Kügler
0ce418c311 Add Desktop, Floating and FullScreen dialog examples 2013-02-26 05:44:46 +01:00
Sebastian Kügler
2032816118 Disable borders when we're hitting the screen's edge 2013-02-26 05:39:49 +01:00
Sebastian Kügler
d6b66ecb96 Switch enabledBorders based on popupPosition 2013-02-26 04:50:00 +01:00
Sebastian Kügler
6a73133da4 positioning for popups
- default top TopEdge
- Swap edges if specified
- shift on non-specified edges
- all borders, edge-cases (ha!) are confirmed working
- cleaned up some cruft

Not taken care of yet:
- framesvg border disabling
- sliding effect w/ kwin
- smarter resolution of visualParent
2013-02-26 03:58:55 +01:00
Sebastian Kügler
c10b33a0a0 smallish improvements in testapplet 2013-02-26 02:17:40 +01:00
Sebastian Kügler
9b4db5a7b4 Basic edge locations working inside PlasmaCore.Dialog 2013-02-26 02:17:21 +01:00
Sebastian Kügler
a32b63d297 Set edge from test applet 2013-02-26 01:14:05 +01:00
Sebastian Kügler
8131ad0abc Add PlasmaNamespace as PlasmaCore.Plasma
This is not beautiful, so we'll change it later on, for now, this allows
us to test enum settings.
2013-02-26 01:10:28 +01:00
Marco Martin
aa1940b246 partly working configuration
still writes in the wrong config file
2013-02-25 20:58:01 +01:00
Aaron Seigo
9ab4acd23a get rid of constructors which take QVariantList args as much as possible
was used to pass in URLs to construct the applet with ... which is
not the nicest of APIs as it is entirely undocumentable
2013-02-25 18:08:12 +01:00
Sebastian Kügler
14e42206b0 test code for dialog location 2013-02-25 17:55:06 +01:00
Sebastian Kügler
e2a2a9f6d2 revert int -> Qt::AlignmentFlag for location 2013-02-25 17:55:06 +01:00
Marco Martin
e00f0b10bb remove ContainmentActions::ContainmentActionsSource
all containmentactions are global separed by containment type
2013-02-25 16:55:28 +01:00
Sebastian Kügler
9e8f112be0 a few lingering bits of dialog layout code, not enabled 2013-02-25 16:48:04 +01:00
Aaron Seigo
1649761e0d remove enableAction API; just use the KActionCollection 2013-02-25 16:43:06 +01:00
Aaron Seigo
a674a7b894 expose the KActionCollection rather than wrap its API 2013-02-25 16:36:27 +01:00
Aaron Seigo
c9ff91fb0f expose the KActionCollection instead of wrapping its API 2013-02-25 16:31:26 +01:00
Aaron Seigo
0db4b9b870 don't add actions from the corona -> keyboard shortcuts aren't handled here anyways 2013-02-25 16:19:16 +01:00
Aaron Seigo
f2f96c507e remove actions related to focus; that belongs in script engine 2013-02-25 16:19:16 +01:00
Aaron Seigo
6122c2d2d1 get rid of associated widgets -> one less QWidget usage!
was still being used for global shortcuts .. turns out that isn't
necessary
2013-02-25 16:19:16 +01:00
Marco Martin
23e5277dbf remove ContainmentPrivate::defaultWallpaperMode 2013-02-25 15:59:46 +01:00
Marco Martin
2f2039ed23 remove ContainmentPrivate::globalContainmentActionPlugins 2013-02-25 15:58:31 +01:00
Marco Martin
342146b2fc get rid of ContainmentActionsPluginConfig
expose directly the hash of default plugins from Corona for the default plugins to use as containmentActions, getting rid of this class that is in the end just a wrapper
2013-02-25 15:47:16 +01:00