Commit Graph

280 Commits

Author SHA1 Message Date
Sebastian Kügler
7e9b152acf init applet after it's added 2013-03-21 16:48:13 +01:00
Sebastian Kügler
60fda41cfe add widgetexplorer button in testcontainment 2013-03-21 05:44:38 +01:00
Sebastian Kügler
12f481e50a header cleanup, copyrights, runtime warnings-- 2013-03-21 05:22:46 +01:00
Sebastian Kügler
64b3812c05 logic to load Plasmoids
- add a mousearea to the delegate that calls
  widgetExplorer.addApplet(pluginName)
- in widgetsexplorer, locate the plasmoid, load it via
  Applet::loadPlasmoid(), then add it to the containment
- In showWidgetExplorer, we set the widgetExplorer's containment to the
  sender(), if there's no containment set, we can't add the applet. This
  way, the widgetexplorer knows which containment the applet should go to

This makes it possible to add Plasmoids via the GUI :-)
2013-03-21 05:04:17 +01:00
Sebastian Kügler
1619430697 add WidgetExplorer object to the rootContext
- WidgetExplorer is parented to the view, and deleted / init'ed along
  with it
- the model is populated before the QML UI is loaded

The explorer now shows a list of widgets, no interaction atm.
2013-03-21 04:03:05 +01:00
Sebastian Kügler
bc2b5bd9fc Initialize the model 2013-03-21 04:02:44 +01:00
Sebastian Kügler
6d511c0f6a Listview showing pluginnames 2013-03-21 03:57:37 +01:00
Sebastian Kügler
c210adaf20 make-it-build 2013-03-21 03:25:26 +01:00
Sebastian Kügler
253e7b2c60 add widgetexplorer to the build 2013-03-21 03:21:36 +01:00
Sebastian Kügler
2c622914af Make widgetsexplorer almost build
Lots of slaughtering going on here, as we're ripping out
QGraphics*-based UIs. The widgetExplorer object won't have UI in it
anymore, as that is done in the desktop shell package (rather than its
own package).

Lots of features are disabled right now (install, uninstall, download),
the idea is to first just get the model working, and then re-enable
features one at a time.
2013-03-21 03:19:01 +01:00
Sebastian Kügler
8f04230c5e pristine copies of widgetexplorer.{h,cpp}
from kde-workspace/libs/plasmagenericshell/widgetsexplorer
2013-03-21 03:17:57 +01:00
Sebastian Kügler
9da71194c8 port away from KIcon 2013-03-21 03:13:30 +01:00
Sebastian Kügler
7bea46d23c Port model to Qt5/Frameworks5 2013-03-21 01:49:35 +01:00
Sebastian Kügler
d099b7e2c6 Pristine copies of applet model from
from: kde-workspace/libs/plasmagenericshell/widgetsexplorer
2013-03-21 01:33:57 +01:00
Sebastian Kügler
d4d9b70721 window title for add widgets 2013-03-21 01:06:43 +01:00
Sebastian Kügler
1db566ee2b Add widget explorer qml file -- pretty bare. 2013-03-21 01:03:44 +01:00
Sebastian Kügler
94d14ac5da Widgetexplorer - wiring up
- add explorer subdirectory to shellpackge, add widgetexplorer filedefinition
- hook up containment added with a connection to showing the widget
  explorer
- memory management for widget explorer: create on demand, delete after
  close: Maybe we want to cache it? For now, go for reduced memory
  consumption rather than quick opening, and see how slow this might
  react.
- add QQuickView for widget explorer in desktopcorona

With this patch, I can open a widget explorer window from the QML
containment. Of course, the widget explorer is just a pink window right
now.
2013-03-21 01:03:44 +01:00
Sebastian Kügler
bbb1f590b3 different icon in testapplet 2013-03-21 01:03:44 +01:00
Marco Martin
a1eda09446 sync the panel controller size with screen 2013-03-20 20:24:10 +01:00
Sebastian Kügler
195f76c85a clean up includes 2013-03-20 01:27:33 +01:00
Sebastian Kügler
395bb412eb Fix a few errors in the testplasmoids 2013-03-20 01:19:46 +01:00
Marco Martin
5e3723cd7c a very simple panel controller
dummy, but setting the offset already works
2013-03-19 22:07:27 +01:00
Sebastian Kügler
55c3eeacea radio buttons to choose backound 2013-03-19 05:08:39 +01:00
Sebastian Kügler
601f61ec39 layout improvements 2013-03-19 03:35:24 +01:00
Sebastian Kügler
80848e750b Colorshower as first page 2013-03-19 03:35:01 +01:00
Sebastian Kügler
fbf4ada101 remove hardcoded size 2013-03-19 00:29:37 +01:00
Sebastian Kügler
68987f0fa5 Default size 1024x768
Makes the initial size of the shell a bit bigger so we can test multiple applets
2013-03-18 21:43:13 +01:00
Script Kiddy
de7289fe14 SVN_SILENT made messages (.desktop file) 2013-03-16 09:39:01 +01:00
Sebastian Kügler
6b3a49df98 Fix typos 2013-03-16 01:01:54 +01:00
Sebastian Kügler
b9942926ed Fix reference error 2013-03-15 00:45:12 +01:00
Script Kiddy
e331e06425 SVN_SILENT made messages (.desktop file) 2013-03-14 09:57:34 +01:00
Marco Martin
fbb766acd7 use only uniform vec2 2013-03-13 21:50:13 +01:00
Marco Martin
5494d40134 use a vec2 instead of two reals 2013-03-13 20:28:02 +01:00
Marco Martin
df1b259802 convert from 1 to 1.0
integers are not allowed there
2013-03-13 20:17:28 +01:00
Marco Martin
086d3e1e8f try an actual wobblywindows effect
it still has some serious problems:
-animation not smooth
-the deformation is linear, the applet appears broken
-unfortunately the ShaderEffect must be a lot bigger thanthe thing it deforms because it looks clipped now
2013-03-13 17:47:55 +01:00
Marco Martin
46b83aaced adapt to api change 2013-03-13 14:00:51 +01:00
Marco Martin
c8efa02fed use the package name instead of app name
plasma2 will have only one executable for different shells
(also, appears to fix a weird crash)
2013-03-13 13:56:53 +01:00
Marco Martin
8a8a9554e9 execute the update scripts, if any 2013-03-13 13:30:37 +01:00
Marco Martin
0223f929dd listen to print and printError 2013-03-13 13:18:49 +01:00
Marco Martin
1a6e9cd85d remove defaultLayoutScripts
this path is now taken from the corona package
2013-03-13 13:18:49 +01:00
Marco Martin
620478614a remove unused QGraphics* includes 2013-03-13 11:45:34 +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
Script Kiddy
edb2603012 SVN_SILENT made messages (.desktop file) 2013-03-12 17:26:19 +01:00
Marco Martin
fd97160327 remove the singleton usage from everywhere 2013-03-12 16:29:04 +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
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
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
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
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
5a30426e07 test mimedata attachment and transport from drag to drop area
Works for me.
2013-03-07 01:08:55 +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
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
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
e49b58c95d remove initializeLayout() 2013-03-04 16:48:17 +01:00
Marco Martin
585c1ec21e remove appletMimeType()
addContainment becomes createContainment
2013-03-04 16:15:04 +01:00
Aaron Seigo
ec82e17b41 pretty? :) 2013-03-02 00:06:34 +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
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
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
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
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
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
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
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
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
0ce418c311 Add Desktop, Floating and FullScreen dialog examples 2013-02-26 05:44:46 +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
a32b63d297 Set edge from test applet 2013-02-26 01:14:05 +01:00
Marco Martin
aa1940b246 partly working configuration
still writes in the wrong config file
2013-02-25 20:58:01 +01:00
Sebastian Kügler
14e42206b0 test code for dialog location 2013-02-25 17:55:06 +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
Script Kiddy
459b49fff9 SVN_SILENT made messages (.desktop file) 2013-02-22 18:03:06 +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
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
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
16d42cc955 Add visualParent to dialogs, QueryDialog example 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
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
7ce2d0f7d6 sync sizes also on the other way 2013-02-20 19:31:06 +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
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