Commit Graph

1084 Commits

Author SHA1 Message Date
Marco Martin
e16c30142f resize the graphics object as soon as possible
it avoids many resizes that take cpu cycles and mess with the layout
2013-09-20 23:28:38 +02:00
Marco Martin
4767f3a8d0 emit appletadded only when manually added
when the containment's component.oncompleted is hitted, the applet list is guaranteed to be completely correctly restored from config

we may want to support both cases in the future to make writing containment easier
2013-09-20 18:18:46 +02:00
Marco Martin
b14c23bed0 new way for sending data
plasmoid has an externalData signal, and will be used like
Connections {
        target: plasmoid
        onExternalData: {
            if (mimetype === "text/plain") {
                noteText.text = data
            }
        }
    }

a notes example applet describes its use
2013-09-20 12:59:35 +02:00
Marco Martin
3656c416f2 manage args also for pasted text without urls 2013-09-19 19:52:53 +02:00
Marco Martin
7489fa32f8 argsrc for config that can be passed as parameter
instead of args of the applet ctor, applets can define an argsrc file for what is acceptable as mimedata on drag and drop (or any other dynamic creation)
2013-09-19 19:37:10 +02:00
Marco Martin
9b3b387b0b new install targe 2013-09-18 21:36:36 +02:00
Sebastian Kügler
6307275a33 Fix include 2013-09-18 18:09:33 +02:00
Marco Martin
5b0fcd8113 platform specific resolution of imports 2013-09-18 16:34:31 +02:00
Marco Martin
d567b3414b catch file types by extension too 2013-09-18 15:41:21 +02:00
Marco Martin
6d65ece95a more strict in package resolution
also resolve js files too
2013-09-18 14:11:16 +02:00
Marco Martin
b1c49c5d44 working package redirection for qml files 2013-09-18 12:49:09 +02:00
Marco Martin
930c8647e6 add a dummy url interceptor
will be used for device specific stuff
2013-09-18 12:10:03 +02:00
Marco Martin
8f20c41931 moved containmentconfigview out of libplasmaquick 2013-09-16 19:45:49 +02:00
Marco Martin
5c25b8675a a very primitive dashboard
right now we have a single view, that gets brought to front and the wallpaper made translucent.
probably it will eventually need splitting the walppaper and the widgets in two separate views, but needs a more complex logic
2013-09-16 19:30:34 +02:00
Marco Martin
f654bf31eb action for dashboard toggle 2013-09-16 17:17:57 +02:00
Marco Martin
70cef22211 expose containmentInterface::actions
the toolbox will use it
2013-09-16 17:10:02 +02:00
Sebastian Kügler
2817591bee kcoreauthorized.h -> kauthorized.h 2013-09-16 16:16:52 +02:00
Marco Martin
e923afe0ee correctly restore popup size 2013-09-16 16:09:13 +02:00
Marco Martin
0ead10fe0b correctly save DialogHeight/DialogWidth
piece needed for Popupapplet features, still has to correctly restore it
2013-09-16 13:05:42 +02:00
l10n daemon script
cb69c812f5 SVN_SILENT made messages (.desktop file) 2013-09-15 04:18:15 +00:00
Marco Martin
786bd7b7af emit uiready also for empty containments 2013-09-13 20:03:25 +02:00
Marco Martin
1586c1b82a if size is empty don't do the compact check
with a null size none of the representations will work anyways. an empty
size may happen when the applet has just been loaded and the containment
still has to adjust it
2013-09-13 19:55:55 +02:00
Marco Martin
ee510e5fca add --windowed option
if passed the destop view is windowed no matter what. probably useful
only in the early stages of development
2013-09-13 18:34:21 +02:00
Marco Martin
cb1064fd32 the desktop view exposes a way to be desktop win
the desktop shell will set the window as a "desktop" window, always
behind. some other shells will have the desktop as a normal window
the api can still expand
2013-09-13 16:42:07 +02:00
Aaron Seigo
0c68fa35bc indentation is not rocket science, but without it we lose maintainability 2013-09-13 16:29:30 +02:00
Aaron Seigo
5903d97966 regexps are expensive to create, we ask for packages a lot, cache the re 2013-09-13 16:29:29 +02:00
Marco Martin
5735faec03 move setsource into desktopview 2013-09-13 15:20:36 +02:00
Marco Martin
9bc1c68fca remove the private init 2013-09-13 15:11:49 +02:00
Marco Martin
15d4de4b4a correctly load panels when the shell gets switched 2013-09-13 14:50:05 +02:00
Eike Hein
7c9ad840d1 Make panels default to spanning the screen axis. 2013-09-12 19:21:50 +02:00
Marco Martin
29d10cc4b5 add a todo where shellmanager panel management should be done 2013-09-12 18:58:16 +02:00
Ivan Čukić
fe58688e09 Desktop is now always willing 2013-09-12 18:41:10 +02:00
Giorgos Tsiapaliokas
443216a29b KF5::plasmaquick -> KF5::PlasmaQuick 2013-09-12 17:16:30 +03:00
l10n daemon script
7996972078 SVN_SILENT made messages (.desktop file) 2013-09-12 04:08:57 +00:00
Sebastian Kügler
2d46621818 Test for loading a dataengine 2013-09-12 02:29:33 +02:00
Sebastian Kügler
cd5be142ed Use KPluginTrader to load dataengine 2013-09-12 02:29:09 +02:00
Sebastian Kügler
5e845c7c4b Add more tests, esp for containment loading 2013-09-12 02:04:32 +02:00
Sebastian Kügler
e81b635406 Use KPluginTrader to locate the dataengine. 2013-09-12 02:03:52 +02:00
Sebastian Kügler
58a2a8d6bb Tests for Plasma::PluginLoader 2013-09-12 01:31:37 +02:00
Eike Hein
eaef6cfbcb Make KDeclarativeMouseEvent's button prop usable in QML.
Qt::MouseButton is not registered, so use int instead. This
matches QML's own MouseEvent.button property.

Ack'ed by Marco Martin.
2013-09-11 19:02:27 +02:00
Marco Martin
f4d222c9c4 very crude support for a string default in choices
still a long way to real enums
2013-09-11 18:52:05 +02:00
Eike Hein
e95c4b8550 ++sense; 2013-09-11 18:35:14 +02:00
Eike Hein
21c0f9e6df Fix build. 2013-09-11 18:25:00 +02:00
Marco Martin
cdc778f417 test applet for config uis 2013-09-11 17:39:09 +02:00
Marco Martin
6e3b20a3e6 some documentation 2013-09-11 15:26:16 +02:00
Marco Martin
5b5c1a5a1c move private stuff in private/ 2013-09-11 15:18:19 +02:00
Marco Martin
c33282e37f move configcategory in own file 2013-09-11 15:13:31 +02:00
Marco Martin
819bece755 ppendCategory with data to avoif exposin ConfigCategory 2013-09-11 14:55:10 +02:00
Marco Martin
2c108e0036 get rid of QQmlListProperty accessors in public clas 2013-09-11 14:44:28 +02:00
Marco Martin
6bf3f54783 configmodel in own file 2013-09-11 14:40:45 +02:00
Martin Gräßlin
52e96b41df Ensure that the WindowThumbnail is not trying to render a thumbnail of itself
Recursive window thumbnails would look awesome on the screen, but reality
is that X/OpenGL or $DEITY doesn't like it at all and decided to just
freeze the view.

So let's delay all the redirecting till the WindowThumbnail has been
added to its QQuickWindow and if the window id is the one of the own
window we just render the icon instead.
2013-09-11 13:57:40 +02:00
Marco Martin
452d39a98e add a desktop view 2013-09-11 12:18:51 +02:00
Marco Martin
5157958c00 reimplement showConfigurationInterface 2013-09-11 12:05:09 +02:00
Marco Martin
98a681a0e7 View -> PlasmaQuickView 2013-09-11 11:48:37 +02:00
Marco Martin
a94dd49b32 rename remaining plasmaview to plasmaquick 2013-09-11 11:23:56 +02:00
Marco Martin
a7e9b1261b just use c++0x for now
gcc 4.6 and msvc still don't have -std=c++11
2013-09-11 11:15:29 +02:00
Marco Martin
247c01170a libplasmaview -> libplsmaquick
this library will contain all the reusable qtquick and qml related bits necessary for plasma
2013-09-11 11:13:27 +02:00
Giorgos Tsiapaliokas
97ada33110 Merge branch 'plasmaview'
REVIEW: 112447
2013-09-11 11:51:39 +03:00
Martin Gräßlin
91d306d2e8 QQuick item for live updating window thumbnails
New qquick item in PlasmaCore to render a live updating window
thumbnail. The implementation uses XCB to redirect the specified
window using the composite extension. This means a running compositor
is not required. Through the damage extension the item tracks changes
to the window and triggers updates of the texture. Furthermore the
item tracks geometry changes of the window to recreate the window
pixmap.

If the pixmap of the window is valid, a texture is generated from it
using the glx texture from pixmap extension. For this a new optional
dependency for glx is added. On platform where glx is not available
(e.g. Windows, Linux with OpenGL ES) this will not get compiled and
the window's icon is used instead as a fallback.

REVIEW: 112142
2013-09-11 09:45:47 +02:00
Giorgos Tsiapaliokas
30c3e2cdc1 we don't have these headers anymore so don't install their FooBar 2013-09-11 09:21:17 +03:00
Giorgos Tsiapaliokas
ff7c854e30 remove the TODOs, they are done 2013-09-11 09:19:17 +03:00
l10n daemon script
eba2125d6e SVN_SILENT made messages (.desktop file) 2013-09-11 04:16:36 +00:00
Marco Martin
8b627f8c01 fix build 2013-09-10 21:15:09 +02:00
Marco Martin
eccf797920 Merge branch 'plasmaview2' into plasmaview3
Conflicts:
	src/plasmaview/shellpackage_p.cpp
	src/plasmaview/shellpackage_p.h
	src/plasmaview/view.cpp
	src/plasmaview/view.h
	src/shell/CMakeLists.txt
	src/shell/desktopcorona.cpp
	src/shell/shellcorona.cpp
	src/shell/shellpluginloader.cpp
2013-09-10 20:59:47 +02:00
Giorgos Tsiapaliokas
70ab0cfc48 KF5::plasmaview -> KF5::PlasmaView 2013-09-10 20:47:34 +02:00
Giorgos Tsiapaliokas
bf2619a79a move shellpluginloader back to shell
Conflicts:
	src/plasmaview/CMakeLists.txt
	src/shell/shellpluginloader.cpp
2013-09-10 20:47:25 +02:00
Giorgos Tsiapaliokas
0235eb82d5 add the missing include 2013-09-10 20:44:59 +02:00
Giorgos Tsiapaliokas
94806e9e2b don't export ConfigCategory 2013-09-10 20:44:42 +02:00
Giorgos Tsiapaliokas
768d0c07a8 KF5::plasmaview -> KF5::PlasmaView 2013-09-10 20:44:36 +02:00
Giorgos Tsiapaliokas
2bb94a1aa0 use variable names instead of KF5:: 2013-09-10 20:44:31 +02:00
Giorgos Tsiapaliokas
bae445f795 don't include the file, we don't need it
Conflicts:
	src/shell/shellcorona.cpp
2013-09-10 20:44:02 +02:00
Giorgos Tsiapaliokas
b6db500fef add includes/PlasmaView/ShellPluginLoader 2013-09-10 20:41:57 +02:00
Giorgos Tsiapaliokas
dc26a8a3da add some more apidocs in the configview 2013-09-10 20:41:53 +02:00
Giorgos Tsiapaliokas
9faa53540a add apidocs for the shellpluginloader 2013-09-10 20:41:49 +02:00
Giorgos Tsiapaliokas
ff34152432 use d_ptr in shellpluginloader 2013-09-10 20:41:44 +02:00
Giorgos Tsiapaliokas
52e57cfdd5 build the shellpackage again 2013-09-10 20:41:39 +02:00
Giorgos Tsiapaliokas
854b956fbc shell/shellpackage.cpp -> plasmaview/shellpackage_p.cpp
shell/shellpackage.h -> plasmaview/shellpackage_p.h
2013-09-10 20:41:36 +02:00
Giorgos Tsiapaliokas
5714b65883 shell/shellpluginloader.cpp -> plasmaview/shellpluginloader.cpp
shell/shellpluginloader.h -> plasmaview/shellpluginloader.h
2013-09-10 20:41:31 +02:00
Giorgos Tsiapaliokas
f4d6c14ebc src/plasmaview/containmentconfigview.cpp -> src/plasmaview/containmentconfigview_p.cpp
src/plasmaview/containmentconfigview.h -> src/plasmaview/containmentconfigview_p.h
2013-09-10 20:41:27 +02:00
Giorgos Tsiapaliokas
426d34e6e2 add some apidocs 2013-09-10 20:41:23 +02:00
Giorgos Tsiapaliokas
39d2575ce2 don't install containmentconfigview.h 2013-09-10 20:41:18 +02:00
Giorgos Tsiapaliokas
4f435ccf85 Revert "use d pointer in containmentconfigview"
This reverts commit 22fc5cebf449ec2a3d4f9ce8a40d11ffde1345f9.

There is no need to export it since only the View is using
it.

Conflicts:
	src/plasmaview/containmentconfigview.cpp
	src/plasmaview/containmentconfigview.h
2013-09-10 20:41:13 +02:00
Giorgos Tsiapaliokas
23ec4639c5 remove unneeded code 2013-09-10 20:41:09 +02:00
Giorgos Tsiapaliokas
ff79662287 add apidocs for the View 2013-09-10 20:41:05 +02:00
Giorgos Tsiapaliokas
e4810b9e95 make it protected again 2013-09-10 20:41:01 +02:00
Giorgos Tsiapaliokas
efc9356b71 include the right header 2013-09-10 20:40:56 +02:00
Giorgos Tsiapaliokas
59aaee1278 remove configview.cpp 2013-09-10 20:40:52 +02:00
Giorgos Tsiapaliokas
cba8948fa2 use d_ptr in configview 2013-09-10 20:40:47 +02:00
Giorgos Tsiapaliokas
ef865b9f45 shell/configview.cpp -> plasmaview/configview.cpp
shell/configview.h -> plasmaview/configview.h
2013-09-10 20:40:42 +02:00
Giorgos Tsiapaliokas
52fa3113e5 currentcontainmentactionsmodel.cpp -> currentcontainmentactionsmodel_p.cpp 2013-09-10 20:40:38 +02:00
Giorgos Tsiapaliokas
38afa72e8d use d pointer in containmentconfigview 2013-09-10 20:40:34 +02:00
Giorgos Tsiapaliokas
8c4bbf10c2 don't install currentcontainmentactionsmodel.h 2013-09-10 20:40:29 +02:00
Giorgos Tsiapaliokas
e58ee74ff9 use d pointer in view 2013-09-10 20:40:24 +02:00
Giorgos Tsiapaliokas
4fc23e7eb8 add plasmaview/includes/ 2013-09-10 20:40:20 +02:00
Giorgos Tsiapaliokas
2699ff1826 add plasmaview/PlasmaViewConfig.cmake.in 2013-09-10 20:40:16 +02:00
Giorgos Tsiapaliokas
0567075f9c add plasmaview/CMakeLists.txt 2013-09-10 20:39:33 +02:00
Giorgos Tsiapaliokas
ba5a92a132 add the plasmaview subdir 2013-09-10 20:39:27 +02:00
Giorgos Tsiapaliokas
caa2d738fa make use of the plasmaview 2013-09-10 20:39:15 +02:00
Giorgos Tsiapaliokas
9e4e6e2444 shell/containmentconfigview.cpp -> plasmaview/containmentconfigview.cpp
shell/containmentconfigview.h -> plasmaview/containmentconfigview.h
shell/currentcontainmentactionsmodel.cpp -> plasmaview/currentcontainmentactionsmodel_p.cpp
shell/currentcontainmentactionsmodel.h -> plasmaview/currentcontainmentactionsmodel_p.h
shell/view.cpp -> plasmaview/view.cpp
shell/view.h -> plasmaview/view.h
2013-09-10 20:39:10 +02:00
Marco Martin
33dae6b18c support for setting a wallpaper trough drag and drop 2013-09-10 17:57:51 +02:00