Commit Graph

396 Commits

Author SHA1 Message Date
Aleix Pol
e6f1fec0c7 Install all plasma files in a prefix/share/plasma directory
At the moment, we could say that plasma is co-installable by chance,
it's only working because KF5 dropped the apps relative directory.
This change introduces a PLASMA_RELATIVE_DATA_INSTALL_DIR that will
be available to know where in share the components are and
PLASMA_DATA_INSTALL_DIR to know where data has to be installed to.

Reviewed by David Edmundson

CCMAIL: plasma-devel@kde.org
2014-04-27 17:14:22 +02:00
l10n daemon script
d149d719a9 SVN_SILENT made messages (.desktop file) 2014-04-27 05:19:59 +00:00
David Edmundson
4ce14a1654 Remove duplicated ConfigLoader
This moved to KConfigGui as KConfigLoader.

Use of private KConfig API in Service had to be ported to use only
public method.

REVIEW: 117784
2014-04-26 17:10:13 +02:00
Kevin Ottens
72ba7b4146 Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
Aurélien Gâteau
fcbb057dca Disable Python script engine for now, it requires bindings for libplasma
Approved by notmart
2014-04-25 21:18:07 +02:00
Aurélien Gâteau
0efc0572af Consolidate all plasma-framework catalogs 2014-04-25 10:40:12 +02:00
Davide Bettio
e1a2555278
QML appletinterface: add support for actionTrigered(name) method so we don't have to create an action_name method for each contextmenu action.
Signed-off-by: Davide Bettio <bettio@kde.org>
2014-04-22 20:08:20 +02:00
Marco Martin
1d5c6e5964 revert 0b4272fa56 2014-04-22 15:32:20 +02:00
Marco Martin
0b4272fa56 guard the pointer 2014-04-22 15:15:40 +02:00
l10n daemon script
16ea0c68f6 SVN_SILENT made messages (.desktop file) 2014-04-19 04:52:27 +00:00
l10n daemon script
709d60a737 SVN_SILENT made messages (.desktop file) 2014-04-18 05:16:48 +00:00
Marco Martin
18f54dff73 make possible for containments to run as applets
take into account the slightly different behaviour needed when containments such as folderview act as a normal plasmoid
BUG:333320
2014-04-14 14:03:49 +02:00
Aleix Pol
0e3978e22c Expose the activated signal into the plasmoid
This was a regression from Plasma 1.

Reviewed by David Edmundson
2014-04-12 21:21:35 +02:00
Marco Martin
d8731d7806 re-add Corona::createContainmentDelayed()
unfortunate, but necessary for on the fly containment plugin switch
2014-04-09 22:15:46 +02:00
Marco Martin
aeabbe9444 new AppletInterface in case of inexistent plugin
if the plugin name is wrong, create a fullfledged appletinterface for the error visualization.
This will make applet removal possible
BUG:332971
2014-04-02 18:59:47 +02:00
Marco Martin
c4e6f06f42 expose the plugin name 2014-03-25 15:13:22 +01:00
Marco Martin
900e0108e1 if no position was provided, negative pos
call the qml part with an invalid position if not supplied, will make new applets in the panels being put in the end instead of at the beginning
2014-03-24 18:15:50 +01:00
l10n daemon script
99900255bf SVN_SILENT made messages (.desktop file) 2014-03-23 04:47:33 +00:00
Marco Martin
69cac03a64 the icon is now called org.kde.plasma.icon 2014-03-21 17:33:26 +01:00
Aleix Pol
a3641aac25 Fix headers management in plasma-framework
Use generate headers instead of having them stored in the repository.
Figure out how relative paths are forwarded around, there were some weird
things.
Stop installing plasma header files in the KDE/ prefix.
2014-03-17 16:28:24 +01:00
Martin Klapetek
62d35541ed Add availableScreenRect(int id) to ContainmentInterface
Now plasmoids can simply get the available screen rect
2014-03-11 15:30:45 +01:00
David Edmundson
effb5e8ad1 Add temp workaround to avoid black squares in main context menu
BUG: 331809
2014-03-10 17:50:50 +01:00
David Edmundson
fb7451051e Expose globalShortcut in AppletInterface so it can be set from the config 2014-03-05 17:28:50 +01:00
Marco Martin
ccd8f8494d workaround a crash in qt during drop events
delay adding an applet with a queued connection.
this should be reverted once this is fixed:
https://bugreports.qt-project.org/browse/QTBUG-35702
2014-02-27 17:39:42 +01:00
Marco Martin
a7c6d3a79e Merge branch 'mart/plasmaquickNamespace' 2014-02-20 12:36:44 +01:00
Marco Martin
aaf7fa328d export plugin name
not super nice but the simplest way to avoid code duplication in the image plugin
2014-02-20 12:33:31 +01:00
Marco Martin
90c608f863 complete porting 2014-02-19 20:00:29 +01:00
Martin Klapetek
d3d7a6fd63 Return early if we failed to load valid Wallpaper package
Reviewed-by: Marco Martin
2014-02-19 13:28:15 +01:00
l10n daemon script
592a0db2ab SVN_SILENT made messages (.desktop file) 2014-02-18 05:13:41 +00:00
Michael Palimaka
c9c4e6c3b2 Remove unused system dependencies.
- plasma_appletscript_declarative includes QtUiTools but doesn't use it
- QtPrintSupport is not used anywhere
- Xss, Xext, and SM are not used anywhere
- OpenSSL is not used anywhere

REVIEW: 115830
2014-02-18 03:12:12 +11:00
Marco Martin
7e8aa867b0 crash--
wait for the ui to be ready before connecting activated() to the expanding
2014-02-14 17:25:59 +01:00
Marco Martin
50a584d0bc rename Applet::activate() with Applet::activated()
activate() is a name that suggests a slot more than a signal
2014-02-14 14:40:53 +01:00
Marco Martin
54549d8312 set the applet as expanded on activate signal 2014-02-14 14:26:53 +01:00
Aleix Pol
18473c9e9e Remove KRunner from Plasma-Framework
Have it as a separate KRunner framework instead
2014-02-11 18:03:06 +01:00
Marco Martin
da36ebe0e4 remove unused signal 2014-02-11 13:31:44 +01:00
Marco Martin
6f256aa7e6 remove the legacy config machinery 2014-02-11 13:29:37 +01:00
Marco Martin
808eca4182 use QStringLiteral instead 2014-02-10 16:38:15 +01:00
Marco Martin
87730146db and make the previous one actually work 2014-02-10 16:23:13 +01:00
Marco Martin
e30a50f755 null string:fallback empty string: empty 2014-02-10 16:18:13 +01:00
David Faure
e76d11be9d Port to updated KActivities 2014-02-08 18:48:40 +01:00
David Edmundson
fb0728d40a Ammend last commit 2014-02-07 19:37:06 +01:00
David Edmundson
39ce54c0db Set paneltoolbox properties on construction
Also refactor the code to avoid creating and deleting an object if
containmentGraphicObject does not exist.
2014-02-07 19:35:31 +01:00
David Edmundson
233267f492 Fix spelling in comment 2014-02-07 19:35:31 +01:00
Marco Martin
ab140c8c1e add properties for tooltips metadata 2014-02-06 18:49:28 +01:00
Marco Martin
3858044d25 Merge branch 'mart/AppletAttached'
Conflicts:
	src/declarativeimports/core/dialog.cpp
	src/scriptengines/qml/plasmoid/containmentinterface.cpp
2014-02-06 13:16:11 +01:00
l10n daemon script
34284e90eb SVN_SILENT made messages (.desktop file) 2014-02-06 04:12:17 +00:00
Marco Martin
f8b649fba9 move AppletQuickItem in libplasmaquick 2014-02-05 17:23:52 +01:00
Marco Martin
c363b33b43 don't assume containment() exists 2014-02-05 16:39:06 +01:00
Marco Martin
2f17e371d5 comments++ 2014-02-05 16:31:47 +01:00
Marco Martin
0f16569daa move more stuff in private 2014-02-05 16:23:57 +01:00
Marco Martin
c86a956c28 move private methods and slots in private 2014-02-05 16:02:28 +01:00
Marco Martin
7e53c7276a move private members in AppletQuickItemPrivate 2014-02-05 14:54:22 +01:00
Marco Martin
c196f8b748 AppletLoader->AppletquickItem 2014-02-05 14:19:39 +01:00
Marco Martin
b8a41a88f3 get rid of compactrepresentationexpander property 2014-02-05 14:07:23 +01:00
Marco Martin
4a5c20f954 getters and setters for packages 2014-02-05 13:51:41 +01:00
Marco Martin
74515ee2f5 use "_plasma_graphicObject" in applet*
to avoid possible collisions, use the private looking name "_plasma_graphicObject" for the dynamic property of Applet that represents the AppletInterface* pointer
2014-02-05 12:59:33 +01:00
Marco Martin
3325f24992 appletLoader doesn't depend from Declarativeappletscript 2014-02-05 12:51:31 +01:00
Marco Martin
e2ee69bf08 note about subclass property at left hand 2014-02-05 12:09:56 +01:00
Marco Martin
9275e84a99 add a Wallpaper attached property for wallpapers 2014-02-04 17:23:22 +01:00
Marco Martin
be4c13e627 call the import org.kde.plasma.plasmoid 2014-02-04 17:01:28 +01:00
Marco Martin
2a0384c3c7 keep locally applet and corona packages
less references to the corona()
2014-02-04 16:43:47 +01:00
Marco Martin
68f2de9ec3 correctly export containment properties 2014-02-04 16:18:45 +01:00
Marco Martin
362a5017b6 support a corona child of an applet
this is an ad-hoc thing for the systray, would be better not having something like that
2014-02-03 18:47:51 +01:00
l10n daemon script
063366d681 SVN_SILENT made messages (.desktop file) 2014-02-01 04:10:47 +00:00
Marco Martin
856e16e803 safer sizehint propagation 2014-01-31 16:56:16 +01:00
l10n daemon script
cef95ccc63 SVN_SILENT made messages (.desktop file) 2014-01-31 04:30:37 +00:00
Marco Martin
9e65dbc789 export compactRepresentationExpander
still have to decide if this is a really bad idea
2014-01-30 22:38:44 +01:00
David Edmundson
f5618db949 Remove unused property drawWallpaper
As suggested here: http://community.kde.org/Plasma/libplasma2/API_Review/Containment
kde-workspace doesn't use it.

REVIEW: 115224
2014-01-30 15:34:45 +01:00
l10n daemon script
d3ae687cd7 SVN_SILENT made messages (.desktop file) 2014-01-30 04:16:54 +00:00
Marco Martin
bf648ceeb6 default full component as the root component
if a fullrepresentation wasn't specified, use the root as fullrepresentation: item and component
2014-01-29 20:07:29 +01:00
Marco Martin
428c10e24c fullrepresentation and the expander are created on demand 2014-01-29 17:09:43 +01:00
Marco Martin
2a37efbdb7 cleanups
move qmlobject initialization in appletloader
2014-01-29 16:20:39 +01:00
Marco Martin
012554d8d9 get rid of the old sizehint mechanism 2014-01-29 11:11:43 +01:00
l10n daemon script
6ecbbd9129 SVN_SILENT made messages (.desktop file) 2014-01-29 04:19:24 +00:00
Marco Martin
075d55c842 entation switching done by appletloader 2014-01-28 22:55:02 +01:00
Marco Martin
866fe43120 experiment with AppletInterface to be attached
Plasmoid.title etc would be attached properties to the root object instead of being a component itself
2014-01-28 18:26:46 +01:00
l10n daemon script
831357d98f SVN_SILENT made messages (.desktop file) 2014-01-28 04:22:11 +00:00
David Edmundson
3abddd8d99 Move python and ruby dataengine bindings from kde-workspace 2014-01-27 19:48:08 +01:00
Marco Martin
2f4867bf0c get rid of the old QtScript bindings 2014-01-27 19:27:59 +01:00
Marco Martin
92fe107329 put namespace around KDeclarative 2014-01-13 21:21:14 +01:00
l10n daemon script
e03580242e SVN_SILENT made messages (.desktop file) 2014-01-12 04:11:43 +00:00
Sebastian Kügler
a50398f433 Use QQuickItem::implicit{Width,Height}
... instead of overriding the property.

Removes a warning whenever the implicit width and height changes, and
reduces the API footprint of AppletInterface.
2013-12-28 03:43:22 +01:00
Marco Martin
86369030de extra whitelist of allowed paths 2013-12-27 14:59:37 +01:00
Marco Martin
10f412ca4a move toolbox stuff in containment 2013-12-27 13:58:16 +01:00
Marco Martin
92073445ce don't reparent before the applet is expanded or not 2013-12-27 13:26:30 +01:00
Marco Martin
21fde267fb activityName available again 2013-12-23 17:00:15 +01:00
Marco Martin
fba45d9360 remove dead code 2013-12-23 14:27:22 +01:00
Christophe Giboudeaux
d71f581115 Remove unneeded includes 2013-12-19 15:23:02 +01:00
Àlex Fiestas
47fe1f7497 We shouldn't take "lock widgets" from corona, but only from containment
It is up to the Containment to decide if the user is allowed or not
to lock/unluck the widgets, so corona should not add one when there is none
(user is not allow) and it shouldn't add another one when there is already
one.

Fixes duplicated action in toolbox.
2013-12-18 21:58:55 +01:00
David Edmundson
68d36e4e8c Don't pernamently block signals if creating applet fails 2013-12-17 16:43:01 +01:00
Sebastian Kügler
6b4ca35897 hideOnWindowDeactivate property for plasmoid object
This allows to control whether to automatically close panel popups when
they lose focus. Applets can set this to false in case they want to keep
the popup open (even temporarily).
2013-12-12 00:22:47 +01:00
Aurélien Gâteau
02d6b37976 Renames for the KF5 prefix 2013-12-11 21:40:54 +01:00
Martin Klapetek
3214bd8132 Add KF5 prefix to plasma framework
This changes the lib name and package names to follow other frameworks

libFoo -> libKF5Foo
find_package(KFoo) -> find_package(KF5Foo)

REVIEW: 114389
2013-12-11 21:40:54 +01:00
l10n daemon script
0dab746e5c SVN_SILENT made messages (.desktop file) 2013-12-10 04:06:05 +00:00
Aleix Pol
6c82a1ee86 Reduce compiler warnings
Remove unused and deprecated headers
Port some K_GLOBAL_STATIC to Q_GLOBAL_STATIC
2013-12-09 16:50:18 +01:00
l10n daemon script
dca0a1119b SVN_SILENT made messages (.desktop file) 2013-11-25 04:12:18 +00:00
Aleix Pol
f97f506acb Remove unused variables from the cmake scripts 2013-11-15 17:00:56 +01:00
Aleix Pol
0fa21b4af5 Iterate over the cmake scripts
Prefer using imported targets rather than cmake variables.
2013-11-15 16:46:59 +01:00
Aleix Pol
7088c9eb0d Deprecate plasma_add_plugin 2013-11-14 17:42:26 +01:00
Aleix Pol
3ef13c53dc Remove predicates on cmake end commands
http://techbase.kde.org/Policies/CMake_Coding_Style#End_commands
2013-11-14 17:25:10 +01:00
David Faure
b892f68e3e Fix compilation 2013-11-03 00:28:30 +01:00
l10n daemon script
130ccfb50d SVN_SILENT made messages (.desktop file) 2013-11-02 03:45:23 +00:00
l10n daemon script
beb8322c3d SVN_SILENT made messages (.desktop file) 2013-10-27 04:03:10 +00:00
Marco Martin
6ff8554ae7 manage plasmapackage:/ with the interceptor
not with the networkaccessmanager
2013-10-24 12:47:56 +02:00
Kevin Ottens
ce00ca976e KDE4Attic is gone 2013-10-22 18:02:39 +02:00
Aleix Pol
af8a7bad7d Stop using Qt5Transitional in Plasma Frameworks
Removes the find_package(Qt5Transitional) and does the proper
find_package(Qt5) with the list of modules.

Most of the porting is about using the Qt5:: targets.

REVIEW: 113345
2013-10-22 00:40:17 +02:00
Sebastian Kügler
0417906b60 Target names instead of vars 2013-10-16 01:40:50 +02:00
Sebastian Kügler
d5bef21f7b Rename target plasma to Plasma
This is in line with the frameworks naming policy, camelcasing. Up until
now, libplasma was the only library being KF5::plasma, that is now
KF5::Plasma.
2013-10-16 00:47:47 +02:00
Sebastian Kügler
cd5ee90d0e Clean up libplasma cmake 2013-10-16 00:28:02 +02:00
Sebastian Kügler
6f44a32c94 Clean up scriptengine's cmake 2013-10-16 00:17:34 +02:00
Sebastian Kügler
48d9bcb9f5 static QQmlNetworkAccessManagerFactory creator in urlinterceptor
Adding this one static to PackageUrlInterceptor allows us to hide it
otherwise from the API. Files can also move into private subdir, and the
factory header isn't installed anymore.
2013-10-15 02:15:54 +02:00
Sebastian Kügler
c42974f52e Move PackageUrlInterceptor and PackageAccessManager into PlasmaQuick 2013-10-15 01:08:47 +02:00
Alex Richardson
e597f66af2 fix some warnings
REVIEW: 113193
2013-10-13 15:44:08 +02:00
Sebastian Kügler
c7c9e8fefc Put steve's changes back in
CCMAIL:steveire@gmail.com
2013-10-13 02:00:32 +02:00
Sebastian Kügler
c2be5b6b12 Revert bef789642e
That commit breaks the build, not finding qtest_kde.h, and cascading
errors from there.

CCMAIL:steveire@gmail.com
2013-10-12 21:47:07 +02:00
Stephen Kelly
bef789642e Remove obsolete include_directories use. 2013-10-12 15:25:19 +02:00
l10n daemon script
bb47758956 SVN_SILENT made messages (.desktop file) 2013-10-07 04:11:22 +00:00
Mirko Boehm (Endocode)
03e79e5c86 Fix initialization order for WallpaperInterface. 2013-10-07 01:09:47 +02:00
David Faure
f432b46fbd script-ported with kde-dev-scripts/kf5/convert-kstandarddirs.pl 2013-10-05 12:49:18 +02:00
Sebastian Kügler
e6ac1d4fc8 Make scriptengine build without kde4support 2013-10-05 02:48:09 +02:00
Sebastian Kügler
b2121c1e06 cmake fixes
- finally remove KDE4_KIO_LIBS
- change KDeclarative to KF5::KDeclarative
- add KService where needed
2013-10-04 19:18:34 +02:00
Aleix Pol
1891066fc2 Adapt to kdelibs ab56e2f. 2013-10-04 18:40:47 +02:00
Marco Martin
fab4818c92 allow plasmoids to change icon
changing icon will change the icon of the default compact representation
2013-09-23 16:44:31 +02:00
Marco Martin
135d4039aa remove temp file hack and applets args 2013-09-23 11:56:49 +02:00
Marco Martin
14a3bced4a crash-- 2013-09-23 11:39:52 +02:00
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
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
70cef22211 expose containmentInterface::actions
the toolbox will use it
2013-09-16 17:10:02 +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
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
l10n daemon script
7996972078 SVN_SILENT made messages (.desktop file) 2013-09-12 04:08:57 +00: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
l10n daemon script
eba2125d6e SVN_SILENT made messages (.desktop file) 2013-09-11 04:16:36 +00:00
Marco Martin
33dae6b18c support for setting a wallpaper trough drag and drop 2013-09-10 17:57:51 +02:00
Marco Martin
d101966f91 use a dynamic property
so qml doesn't see it
2013-09-10 16:38:16 +02:00
Marco Martin
52c3a27e18 support for wallpaper actions 2013-09-10 15:51:22 +02:00
Marco Martin
bfbeae9969 propagate containmentTypeChanged 2013-09-10 12:43:25 +02:00
Marco Martin
6bbc8cb420 propagate drawWallpaperChanged 2013-09-10 12:38:41 +02:00