Commit Graph

594 Commits

Author SHA1 Message Date
Marco Martin
99bab1825e get rid of PaintUtils
the only one using it was PlasmaCore.IconItem, move the transition() function there
2013-03-13 12:05:06 +01:00
Marco Martin
8df5da1c50 group files by topic in the cmake file 2013-03-13 11:56:24 +01:00
Marco Martin
620478614a remove unused QGraphics* includes 2013-03-13 11:45:34 +01:00
Marco Martin
8eb21b7e21 remove deleted classes from doxygen index 2013-03-13 11:34:32 +01:00
Marco Martin
4219697fcb remove Corona::defaultContainmentActionsPlugins() 2013-03-13 11:32:00 +01:00
Marco Martin
7abd6d81d5 remove s_positioningContainments 2013-03-13 11:32:00 +01:00
Marco Martin
d884d396ec remove offscreenWidgets 2013-03-13 11:32:00 +01:00
Marco Martin
45c55b22b2 remove preferredToolBoxPlugin 2013-03-13 11:32:00 +01:00
Marco Martin
054f443469 remove defaultContainmentPlugin 2013-03-13 11:32:00 +01:00
Marco Martin
3bfbc31381 remove some not used includes 2013-03-13 11:32:00 +01:00
Sebastian Kügler
55952980b5 Move plasmapkg into src
It's not really a tool, and really belongs under src.
2013-03-13 02:44:37 +01:00
Sebastian Kügler
a3b39a8321 All imports are now 2.0
This patch changes the version numbers of the plugins to 2.0. This
includes the previously 0.1 plasmacomponents, extras and
qtextracomponents. DragandDrop, which was at 1.0 is now also at 2.0.

Also, all the QML code has been changed to import the 2.0 plugins.

As a side-effect, we now share a version number with QtQuick 2.0 now.
2013-03-13 02:34:53 +01:00
Sebastian Kügler
4cfc6863af change all 0.1 imports to 2.0 in qml files 2013-03-13 01:56:19 +01:00
Marco Martin
aa3652ec86 make svg stylesheet private
there isn't anymore the "SVG" magic parameter in Theme:: styleSheet()
2013-03-12 21:45:14 +01:00
Script Kiddy
edb2603012 SVN_SILENT made messages (.desktop file) 2013-03-12 17:26:19 +01:00
Marco Martin
dd0cc2464d ThmemeProxy is a subclass of Theme 2013-03-12 16:49:33 +01:00
Marco Martin
fd97160327 remove the singleton usage from everywhere 2013-03-12 16:29:04 +01:00
Marco Martin
fe9ebd86a8 remove the ThemePrivate singleton 2013-03-12 13:03:06 +01:00
Marco Martin
2006df44cc make sure we connect themeChanged 2013-03-11 22:39:15 +01:00
Marco Martin
0ca0934370 themePrivate instances are kept in statics
as a static pointer with refcount if "global" and internal refcounted hash if created with name
2013-03-11 22:26:15 +01:00
Marco Martin
3edbe10c8c make ThmemePrivate a QObject
and remove every reference of ThemePrivate::q, this is needed for
sharing the same ThemePrivate between Thme einstances (there would be more then one q)
2013-03-11 20:20:50 +01:00
Marco Martin
4d71b527dc move ThmemePrivate in own file
it will make easier making it implicitly shared
2013-03-11 19:24:07 +01:00
Marco Martin
ed84d47425 removed connection to removed slot 2013-03-11 18:58:58 +01:00
Marco Martin
44781d4b35 make settingsChanged() private 2013-03-11 18:08:03 +01:00
Marco Martin
b7a079f87d replace homepage() with pluginInfo()
a KPluginInfo will have the homepage from the desktop file but also the other data as well such as author and description
2013-03-11 18:01:22 +01:00
Marco Martin
ae120ba02d remove useNativeWidgetStyle 2013-03-11 17:44:00 +01:00
Marco Martin
62c8a7b500 don't expose windowTranslucencyEnabled 2013-03-11 17:39:42 +01:00
Marco Martin
2894eef3c4 add notify signal for font properties 2013-03-11 17:26:01 +01:00
Marco Martin
bf79616342 get rid of the FontRole enum 2013-03-11 17:15:25 +01:00
Marco Martin
83baa3691e theme.defaultFont.mSize api changed
QML2 has QFont directly binded, but doesn't have mSize, so move it to Theme
theme.defaultFont.mSize to theme.mSize(theme.defaultFont)
2013-03-11 17:06:05 +01:00
Marco Martin
74d1a62bdd remove fonts from Plasma::Thmeme
replace FontProxy with default QFont QML2 bindings
2013-03-11 16:59:39 +01:00
Marco Martin
f07387267a remove fontMetrics() 2013-03-11 16:08:37 +01:00
Marco Martin
d0b4b462f0 remove properties and invokables from Theme 2013-03-11 16:03:05 +01:00
Aaron Seigo
961dd4d6ce make setting a custom max cache size work
replaces the data member for tooltip, which API has been removed
2013-03-11 14:35:47 +01:00
Aaron Seigo
30589b391a double the size of the cache; i find that it gets fill on desktop too fast 2013-03-11 14:35:47 +01:00
Sebastian Kügler
f429f83153 typos-- 2013-03-11 13:07:54 +01:00
Aaron Seigo
224946e394 less jumping around and desktop assumptions 2013-03-11 12:49:59 +01:00
Script Kiddy
68a2d5a229 SVN_SILENT made messages (.desktop file) 2013-03-11 08:40:05 +01:00
Sebastian Kügler
958fb30760 a few touch-ups 2013-03-11 03:23:40 +01:00
Sebastian Kügler
bd452c7b92 New page in testshaderdemo showing Shadow effects 2013-03-11 03:12:06 +01:00
Sebastian Kügler
905080a416 Pages with various effects for the Demo applet
This demo shows very simple and slightly more complex shaders used with
Plasma Components.
2013-03-11 02:10:39 +01:00
Script Kiddy
ca81fda6e7 SVN_SILENT made messages (.desktop file) 2013-03-10 08:58:07 +01:00
Script Kiddy
06156f798f SVN_SILENT made messages (.desktop file) 2013-03-09 09:14:19 +01:00
Sebastian Kügler
39219a6567 a few more improvements to the shadertest 2013-03-09 06:00:25 +01:00
Sebastian Kügler
91339544ab editor now does fragment and vertex shaders 2013-03-09 04:15:17 +01:00
Sebastian Kügler
c536aa4006 kill useless files 2013-03-09 03:45:57 +01:00
Sebastian Kügler
365628c648 UI cleanup and reorg, one page per example 2013-03-09 03:44:02 +01:00
Sebastian Kügler
749e88af02 New test applet for shader experiments 2013-03-09 01:57:42 +01:00
Sebastian Kügler
64892e1c4e Use hideSource, Luke
And, dear Luke, don't implement the same in twenty eight lines that are
just one property away. RTFM, Luke.
2013-03-09 01:53:24 +01:00
Marco Martin
af6e538fa4 make the desktop scripting finally work
completely migrate to X-Plasma-ContainmentType from the desktop file, use it to set the containment type as soon as possible (in Containment::init())
in this way the desktop script can recognize panels as what they are immediately
2013-03-07 21:25:30 +01:00
Marco Martin
0830c5047b X-Plasma-ContainmentType is Desktop by default
so when searching for desktops also search those who don't have
2013-03-07 19:55:45 +01:00
Marco Martin
dc9075f157 ContainmentCategories -> X-Plasma-ContainmentType
containments can have one and only one type
2013-03-07 19:28:06 +01:00
Marco Martin
28a93f2c14 fully build panel.cpp except hiding 2013-03-07 17:56:57 +01:00
Marco Martin
cc142eddbc add desktop scripting files, use it
still partially stub
2013-03-07 17:39:10 +01:00
Marco Martin
5b7af5f117 make wallpaper configuration work after wallpaper switch 2013-03-07 16:59:32 +01:00
Marco Martin
f7e8fd5bcf reorganize and add config page for autumn 2013-03-07 15:40:49 +01:00
Marco Martin
18a663228f switch wallpaper plugins 2013-03-07 15:27:53 +01:00
Marco Martin
647e265b0e highlight current item 2013-03-07 12:47:34 +01:00
Marco Martin
5d05d06ae2 color picker collapsed by default 2013-03-07 12:01:29 +01:00
Marco Martin
4a5648edbc sync dialog size 2013-03-07 12:01:29 +01:00
Marco Martin
a4b22cc7d4 warnings-- 2013-03-07 12:01:29 +01:00
Marco Martin
e6eae78f06 propagate size hints 2013-03-07 12:01:29 +01:00
Marco Martin
7d79041e2a propagate size hints 2013-03-07 12:01:29 +01:00
Sebastian Kügler
b4fb6a0bde Falling leaves wallpaper plugin
Using QtQuick's particle shader to render a wallpaper.

change the wallpaperPlugin in your appletsrc to org.kde.autumn to try
it.

The code for the wallpaper has been borrowed from QtDeclarative
examples.
2013-03-07 05:50:01 +01:00
Sebastian Kügler
9bbb2f33f5 Use a shader to animate the applet's busy state
This is just an experiment to show how we can use shaders for our
animations within the containment. It seems to work nicely.

The shader code has been borrowed from the shadereffects example in Qt's
declarative module.
2013-03-07 05:37:48 +01:00
Sebastian Kügler
239fe72c47 Bigger buttons in Plasmoid Page
Easier to hit when the thing wobbles.
2013-03-07 05:28:44 +01:00
Sebastian Kügler
8856c16d1a show it's html 2013-03-07 02:43:51 +01:00
Sebastian Kügler
1a31c22e57 debug-- 2013-03-07 02:42:13 +01:00
Sebastian Kügler
5a30426e07 test mimedata attachment and transport from drag to drop area
Works for me.
2013-03-07 01:08:55 +01:00
Sebastian Kügler
37e3ef99f0 Make mouse interaction work
- events need to be accepted, otherwise they don't have effect on the
  drag, and it doesn't get released
- slightly more intelligent starting of drag, saves quite some cycles
  and is way more correct this way

The "attach pixmap of dragged item" is still disabled. This probably
needs to be rethought entirely. One option would be to ditch this class
in favour of QtQuick 2's Drag, DragEvent and DropArea. Food for API
discussion.
2013-03-07 00:26:39 +01:00
Marco Martin
d25ba46ae7 display a color picker for wallpaper color config 2013-03-06 21:19:19 +01:00
Kevin Ottens
424868cecd Use the target name directly for now
kde4support doesn't yet use the same CMake magic than the other more
stable frameworks. So refer to it by its target name as exported by the
KDELibs4 module.
2013-03-06 19:00:10 +01:00
Marco Martin
6cede145d5 configview exposes more stuff for containments: subclass 2013-03-06 17:53:03 +01:00
Marco Martin
132adc7f21 possible to configure wallpapers != from current 2013-03-06 14:20:20 +01:00
Sebastian Kügler
068dadc6d2 this has to be k4aboutdata, after all (for now) 2013-03-06 03:41:48 +01:00
Sebastian Kügler
c777215222 show dnd status in widget 2013-03-06 01:28:26 +01:00
Sebastian Kügler
adc838008b update KAboutData semantics in shell 2013-03-06 01:28:08 +01:00
Sebastian Kügler
48447f631b link shell against kio 2013-03-06 01:27:37 +01:00
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
Marco Martin
c3a536a7a4 replace name, pluginName and icon with pluginInfo()
add ContainmentAction::pluginInfo()
2013-02-25 14:49:42 +01:00
Marco Martin
f00987658b remove ContainmentActions::configAccepted() 2013-02-25 14:43:16 +01:00
Marco Martin
d68087f410 performNextAction/performPreviousAction 2013-02-25 14:42:02 +01:00
Marco Martin
4ab7b3d044 remove ContainmentActions::triggerableContextAction 2013-02-25 14:39:46 +01:00
Marco Martin
b704d0a33a ContainmentActions has no friends 2013-02-25 14:38:22 +01:00
Marco Martin
de57997384 remove ContainmentActions::init() 2013-02-25 14:35:06 +01:00
Marco Martin
4a24e49317 remove ContainmentActions::configurationRequired
plugins will have to manage themselves wether they need to be configured
2013-02-25 14:31:36 +01:00
Marco Martin
4052f596f9 remove properties and dataEngine
dataEngine() is no more present in ContainmentActions: DataEngineConsumer is public now
2013-02-25 14:28:05 +01:00
Marco Martin
75ddf58938 ConfigView::configPages() is a list of dialogs
returns a list of data to create the pages: a title, an icon and a component
2013-02-22 20:58:54 +01:00
Marco Martin
949d114eec move the config view in a separate file 2013-02-22 18:24:36 +01:00
Script Kiddy
459b49fff9 SVN_SILENT made messages (.desktop file) 2013-02-22 18:03:06 +01:00
Sebastian Kügler
0faa120641 Convert alignment to Qt::AlignmentFlag
Also start a bit on the logic of setting location. Does nothing yet, but
build.
2013-02-22 16:45:08 +01:00
Marco Martin
ff089521af actually load config ui files 2013-02-22 15:43:01 +01:00
Marco Martin
cfe6a40d3d ad a stub config ui
the config ui layout will be decided from the corona.
the desktop one will end up having desktop components

still missing:
* binding to plasmoid object
* way close the dialog
* use ok/apply/cancel
* how to implement difference between ok to apply and instant apply?
2013-02-22 15:10:55 +01:00
Albert Astals Cid
0b091ec503 Add missing " 2013-02-22 13:43:24 +01:00
Sebastian Kügler
46fcb0f402 remove visualParent for QUeryDialog 2013-02-22 12:43:32 +01:00
Marco Martin
b29ddd2f27 support for vertical panels 2013-02-22 11:51:55 +01:00
Marco Martin
06ca6e57aa correct sign for offset 2013-02-22 11:51:55 +01:00
Sebastian Kügler
7c9d0abc23 Use Qt::AligntmentFlag instead of int for popupPosition 2013-02-22 03:54:14 +01:00
Sebastian Kügler
f23ca788ee better dialog content in tca 2013-02-22 03:51:51 +01:00
Sebastian Kügler
00c93c186d Test code for placement 2013-02-22 03:43:09 +01:00
Sebastian Kügler
8f71cf9de7 Center in visualParent by default
If we have no visual parent, use the workArea's center. This is mostly
in line with Plasma1's behavior (modulo visualParent vs. parent).
2013-02-22 03:41:56 +01:00
Sebastian Kügler
16d42cc955 Add visualParent to dialogs, QueryDialog example 2013-02-22 02:18:16 +01:00
Sebastian Kügler
006eb99b55 Make dialog-in-separate-window kind of work
inlining is still broken, disabled right now. popupPosition has moved
into PlasmaCore.Dialog internally, so don't handle it in QML.
2013-02-22 02:18:16 +01:00
Sebastian Kügler
e96671be05 Add debugsels for popupPosition 2013-02-22 02:18:16 +01:00
Marco Martin
14da11551a support alignment 2013-02-21 21:12:12 +01:00
Marco Martin
36d5f25371 restore some values from config
panelviews can restore offset, minimum, maximum and size from the config
still needed alignment and
resize will need a bit of work since should be containment-controlled
2013-02-21 20:35:21 +01:00
Marco Martin
02aa67a990 add view config
experiment, for now has a slightly different way to find own config group compared to plasma1
2013-02-21 18:32:32 +01:00
Marco Martin
9804b223f2 iexplicitly link KF5::kwindowsystem 2013-02-21 18:02:12 +01:00
Marco Martin
f4a4bb55de sync panel position to containment location 2013-02-21 17:49:52 +01:00
Marco Martin
99d49220df panel is a Dock 2013-02-21 16:30:01 +01:00
Marco Martin
790036d5f8 blur behind panels 2013-02-21 16:22:42 +01:00
Marco Martin
73ab93e009 use the margins of the framesvg instead of own 2013-02-21 16:04:08 +01:00
Marco Martin
799a5989d9 enable blur behind 2013-02-21 14:58:09 +01:00
Marco Martin
31838228d4 add missing declaration 2013-02-21 14:49:28 +01:00
Marco Martin
efc725acec use a framesvgitem as background 2013-02-21 14:32:48 +01:00
Marco Martin
de81cdada3 implement popupPosition
call it only by setting a visualParent, don't expose it to qml for now
2013-02-20 20:39:15 +01:00
Marco Martin
a1507092a0 restore isactivewindow 2013-02-20 19:39:03 +01:00
Marco Martin
7ce2d0f7d6 sync sizes also on the other way 2013-02-20 19:31:06 +01:00
Marco Martin
f7e3a72d14 iremove unused properties
x,y,width,height are already in qquickwindow
2013-02-20 18:03:28 +01:00
Marco Martin
8ba734f05b correct item resize
comment out more old api

will be reenable one by one only when needed
2013-02-20 15:51:28 +01:00
Marco Martin
059682af85 less dead code 2013-02-20 15:25:13 +01:00
Marco Martin
1928ecce74 make sure a transparent window 2013-02-20 15:18:58 +01:00
Sebastian Kügler
603c6e4a9b Use a PlasmaComponents.Dialog in tca 2013-02-20 06:57:39 +01:00
Sebastian Kügler
6461683f58 Some work on PlasmaComponents.Dialog
Still broken in all kinds of ways, buttons, geometry, etc.
2013-02-20 06:56:48 +01:00
Sebastian Kügler
0fe94f0dac try to make dialog transparent 2013-02-20 06:56:38 +01:00
Sebastian Kügler
a9092a7583 Three types of Dialogs on DialogsPage 2013-02-20 05:43:09 +01:00
Sebastian Kügler
877b8f03df Page with Dialogs in ComponentsApplet 2013-02-20 05:32:48 +01:00
Sebastian Kügler
ea508733d6 Rejig Dialog - starts working
It now inherits from QQuickWindow.

setting the mainItem is not reparenting it right now, this will probably
break, so needs fixing. For now, it works though as long as the mainItem
has the Dialog as parent already. WindowFlags and sizing seems to work.
2013-02-20 05:30:22 +01:00
Sebastian Kügler
305e711c8c Fix namespace of RangeModel in Slider and ProgressBar
Now those components work as well.
2013-02-20 05:27:11 +01:00
Sebastian Kügler
71e2114541 Fix RangeModel namespace 2013-02-20 05:24:03 +01:00
Sebastian Kügler
2566309c9a Start porting PlasmaCore.Dialog
This commit enables the build of PlasmaCore.Dialog. Most of the code is
disabled, as it's quite wired up with QGraphicsWidgets. The remaining
pieces are actually able to bring up a window, but don't display
anything.
2013-02-20 04:25:29 +01:00
Sebastian Kügler
226e61c432 module directive for runnermodel 2013-02-20 02:31:33 +01:00
Sebastian Kügler
0c2793718b shush 2013-02-20 02:27:41 +01:00
Sebastian Kügler
4375b61759 Add module identier to qmldirs 2013-02-20 02:09:23 +01:00
Sebastian Kügler
4683f10dcb Fix namespacing in Sheet 2013-02-20 01:36:22 +01:00
Sebastian Kügler
55a9091992 Use Item as type for ToolBar, apparently we can't use our own defined types here anymore 2013-02-20 01:36:08 +01:00
Sebastian Kügler
d3ce808a41 Fix namespacing in SectionScroller 2013-02-20 01:35:27 +01:00
Sebastian Kügler
af1ca41261 Fix namespacing in PageStack 2013-02-20 01:34:57 +01:00
Sebastian Kügler
614259cf69 Fix namespacing in Dialog 2013-02-20 01:34:26 +01:00
Sebastian Kügler
0900460842 Fix namespacing in SelectionDialog 2013-02-20 01:34:07 +01:00
Sebastian Kügler
bb842b64d2 Fix namespacing in QueryDialog 2013-02-20 01:33:57 +01:00
Sebastian Kügler
b8ccb0ded6 Fix namespacing in CommonDialog 2013-02-20 01:33:43 +01:00
Sebastian Kügler
59e65cbaee Fix import in ButtonColumn 2013-02-20 01:33:01 +01:00
Sebastian Kügler
13a0842115 add buttonspage
New page, holds buttons and text elements.
2013-02-20 01:10:29 +01:00
Sebastian Kügler
fec80c2c96 Remove activeFocus property, it's moved up into one of its parents 2013-02-20 01:09:08 +01:00
Sebastian Kügler
36564796d0 Fix namespacing for RangeModel in ScrollBar 2013-02-20 01:08:52 +01:00
Sebastian Kügler
f0e6ab494d don't show cropped text in toolbox 2013-02-20 00:50:14 +01:00
Sebastian Kügler
aa233c1055 exercise clearbutton and enabling in TextField 2013-02-20 00:26:57 +01:00
Sebastian Kügler
4e82cc5d3d TextField polishing
- remove call to closeSoftwareInputPanel before calling it, it's removed
  from TextInput in commit
3721de405e
I suppose it now "just works", but will test. The API is not there,
anyway, so it's safe to remove.
- clearbutton only shows when enabled
- clearbutton rightmargin
2013-02-20 00:26:33 +01:00
Sebastian Kügler
5d1717fcfa Focus textfield with radiobutton -- works fine. 2013-02-19 22:37:03 +01:00
Sebastian Kügler
48cd938931 do not override TextField.activeFocus property
In QtQuick2, we cannot override a property anymore. In the case of
TextField, this means we'll have to rely on Qt for focus handling.
2013-02-19 22:32:41 +01:00
Sebastian Kügler
58f719d9aa Shuffle widgets a bit to make space for a TextFiel 2013-02-19 22:31:57 +01:00
Marco Martin
30f1612982 the view qml is Back in Black 2013-02-19 20:44:24 +01:00
Marco Martin
18a050c1b3 delay creation of containments as well 2013-02-19 20:33:25 +01:00
Marco Martin
222e132ecd use the function QmlObject::createObjectFromSource 2013-02-19 20:20:32 +01:00
Marco Martin
31c442f39a QmlObject::setQmlPath -> setSource
to be consistent with QQuickView
2013-02-19 19:27:10 +01:00
Marco Martin
08f9417c32 move object creations inside appletInterface 2013-02-19 19:27:10 +01:00
Marco Martin
97d8362774 fix isValid() 2013-02-19 17:50:38 +01:00
Sebastian Kügler
9a3fb52e78 test theme.iconSizes -- works fine 2013-02-19 17:48:13 +01:00
Marco Martin
26b5b98e0a start to delay a bit objects creation.
use a component incubator to create objects whuile the event loop is running

load applets ui only when they get a view

it will have to be cleaned out a lot, by moving the loading logic into AppletInterface
2013-02-19 17:27:32 +01:00
Sebastian Kügler
f4f22df3a3 Split out testcomponents applet into several files 2013-02-19 17:12:24 +01:00
Marco Martin
22918af6b4 better organization of DeclarativeAppletScript::init( 2013-02-19 14:47:11 +01:00
Marco Martin
82930e7226 try to use a simple incubator to make loading appear smooter 2013-02-19 14:40:03 +01:00
Marco Martin
0a587eae5e compare only applet ids, because geometries are not here anymore 2013-02-19 14:19:08 +01:00
Marco Martin
3ce3048ad1 Containment::ToolType -> Plasma::ActionType
actions categories are no more Toolbox-specific, but generic properties for actions
2013-02-19 14:04:20 +01:00
Marco Martin
f5b51c7c54 Containment::Type -> Plasma::ContainmentType 2013-02-19 13:52:32 +01:00
Marco Martin
444d49709b move in PluginLoader metadata-related methods
listContainments
listContainmentsOfType
listContainmentTypes
listContainmentsForMimeType
2013-02-19 13:09:33 +01:00
Marco Martin
2686bed090 remove unused includes 2013-02-19 13:00:57 +01:00
Marco Martin
959103e004 ean removed friends and memebers 2013-02-19 12:41:31 +01:00
Marco Martin
32cbdac6e2 separe containmentactions and containment
most of containmentactions related stuff is now out of containment. some entanglement still exists
2013-02-19 12:03:53 +01:00
Marco Martin
ca799b08bf containmentActions logic is in ContainmentInterface
a copy is still in Containment, will be cleaned in next commit
2013-02-19 11:52:51 +01:00
Marco Martin
6941264229 remove toolBox related signals 2013-02-18 20:14:26 +01:00
Marco Martin
206c5cfb5e make containmentActionsConfig private
it will eventually have to be removed but for now the config needs to exist before the containmentactions instance, therefore still has to be out of ContainmentActions
2013-02-18 20:12:31 +01:00
Marco Martin
5b8ee2a834 remove add and remove ToolBoxAction 2013-02-18 19:09:57 +01:00
Marco Martin
79ebeb0a37 Applet::destroy() no more virtual 2013-02-18 19:01:50 +01:00
Marco Martin
d3448c01d6 remove Containment::destroy() 2013-02-18 18:59:47 +01:00
Marco Martin
86d89bf634 port more to new connect syntax to catch more errors 2013-02-18 18:54:44 +01:00
Marco Martin
57add3903f tore containment loading
use new connect syntax to catch signature mismatch of appletAdded
2013-02-18 18:46:29 +01:00
Marco Martin
bb005f1cc5 remove perVirtualdesktop views
remove any desktop reference from setScreen and containmentForScreen
along with lastScreen and lastDesktop
2013-02-18 18:05:45 +01:00
Marco Martin
0e8115b697 get rid of desktop and lastScreen accessors
remove Containment::desktop() lastDesktop(), lastScreen()
2013-02-18 17:57:05 +01:00
Marco Martin
94720b0cb4 get rid of Containment::clearApplets() 2013-02-18 17:50:15 +01:00
Marco Martin
87cbad5565 get rif of showDropZone 2013-02-18 17:41:34 +01:00
Marco Martin
38145bedba get rid of context menu and wheel events 2013-02-18 17:37:47 +01:00
Marco Martin
2d845a4c91 get rid of position in addApplet() 2013-02-18 17:28:29 +01:00
Aaron Seigo
1303008ee6 clearContainments is unused and ACTUALLY remove the containments when init'ing 2013-02-18 13:17:48 +01:00
Aaron Seigo
dcc4c58bf7 keep the trailing slash as long as the package is a dir
also, use chop :)
2013-02-18 12:22:35 +01:00
Sebastian Kügler
c662f09a7c Create the service directory, in case it doesn't exist.
Fixes package installation with non-existing local directories.
2013-02-18 04:09:50 +01:00
Sebastian Kügler
bbf7e910ec Fix loading plugininfo from file
Remove trailing slash from the path as it might point to a file, in
which case the file info lookup will fail.
2013-02-18 04:08:00 +01:00
Sebastian Kügler
b15f6baebd Port, make build and enable KRunnerModel plugin 2013-02-18 01:15:01 +01:00
Sebastian Kügler
6aa3947cd8 clean up linker targets in PlasmaExtras 2013-02-18 01:14:23 +01:00
Sebastian Kügler
1425583f4c correct margins inside tabgroup 2013-02-18 01:04:41 +01:00
Sebastian Kügler
e7034a50cb remove traces from dataengineconsumer and declarativeitemcontainer
dataengineconsumer is now used from kdelibs
declarativeitemcontainer is not needed with QtQuick2
2013-02-18 01:03:42 +01:00
Burkhard Lück
dbc845f0a6 fix message extraction
use find for all the .cpp files, does not break when subdirs are renamed/moved
2013-02-17 22:39:56 +01:00
Burkhard Lück
5305774fbd fix message extraction
use find for all the .cpp files, does not break when subdirs are renamed/moved
2013-02-17 14:31:34 +01:00
Script Kiddy
a2efe7fb54 SVN_SILENT made messages (.desktop file) 2013-02-17 08:30:09 +01:00
Sebastian Kügler
1e13f5718e Fix off-by-one in RunnerModel
Forward-ported from RB

REVIEW:108922
2013-02-16 14:47:13 +01:00
Script Kiddy
72e2b9f1b6 SVN_SILENT made messages (.desktop file) 2013-02-16 09:56:02 +01:00
Marco Martin
a139247403 correctly emit appletRemoved
applet remove animation
At the moment is possible only to animate the disappearance of the background, the applet is immediately deleted.

how could be possible to animate the applet as well? (the graphic object should get to live more than Applet* and AppletScript* themselves)
2013-02-15 18:10:46 +01:00
Marco Martin
44b92bec42 make the destroy action work 2013-02-15 18:10:46 +01:00
Marco Martin
4c92755e8b correctly popuplate Applet contextmenu
the containment one is still a stub
2013-02-15 18:10:46 +01:00
Aaron Seigo
9a65f002ea move signing test into staging for now 2013-02-15 16:34:58 +01:00