Marco Martin
aba4dcb915
introduce setFallbackPackagePath
...
the fallback package would then be decided by the packagestructure
2014-09-01 14:00:06 +02:00
Nicolás Alvarez
51b77bcd59
Don't use QStringLiteral when concatenating string literals.
...
QStringLiteral("foo" "bar") is documented not to work on MSVC.
2014-08-30 14:46:36 -03:00
Nicolás Alvarez
8515d0ef09
Fix reference to Types::ImmutabilityType.
...
I don't know how Types::Types::ImmutabilityType even worked in gcc...
2014-08-30 14:45:50 -03:00
Aaron Seigo
faf75a95e5
ws for readability
...
REVIEW:119992
2014-08-29 17:24:43 +02:00
Aaron Seigo
cd87344d80
make PackageStructure plugins use the json method as with DataEngines
2014-08-29 17:24:43 +02:00
Aaron Seigo
aa99a4f15c
tidy up the data engine plugin loading code
2014-08-29 17:24:43 +02:00
Aaron Seigo
67cab00bf3
remove the unused ContainmentPackage
2014-08-29 17:24:43 +02:00
Marco Martin
f934b3b6d6
make sure to cleanup applet pointers on deletion
2014-08-29 14:53:56 +02:00
Aaron Seigo
d5f156e968
add an interactive console QML definition
2014-08-28 11:52:49 +02:00
l10n daemon script
ce814a5285
SVN_SILENT made messages (.desktop file)
2014-08-28 08:49:15 +00:00
Marco Martin
5b9bb128d8
ckeck for loops or too deep fallback chains
2014-08-27 17:39:32 +02:00
Aaron Seigo
0401da9ec8
give the applet alternatives QML file an entry
2014-08-26 16:26:07 +02:00
Marco Martin
11094417a3
delete the fallback
2014-08-22 19:27:09 +02:00
Marco Martin
e0db15c96d
crash--
...
use a pointer, so we don't do infinite stack recursion
create the fallback in the proper place
2014-08-22 19:25:49 +02:00
Marco Martin
d369782ae1
ntroduce the concept of package fallback
2014-08-22 18:48:26 +02:00
David Edmundson
f817168d02
Fix remaining doxygen exporting in Plasma.Core
2014-08-13 01:07:55 +02:00
Marco Martin
0ada27caa7
Merge branch 'mart/XPlasmaRootPath'
...
Revieved by: Eike Hein
2014-08-12 10:34:37 +02:00
Marco Martin
90cac04202
recompute actions text on sycoca change
...
it can update the app name it's opening it with
if the file association has been changed
2014-08-11 19:32:30 +02:00
Marco Martin
b5dfbdb0c8
fix build
2014-08-11 17:56:13 +02:00
Marco Martin
7f383b968b
use "open in"
2014-08-10 16:34:19 +02:00
Marco Martin
6a19de43fa
Merge branch 'mart/AssociatedApplicationFromMime'
...
reviewed by: Eike Hein
2014-08-08 16:11:25 +02:00
Marco Martin
52bc83a65a
action in containment as well
2014-08-08 16:09:36 +02:00
Marco Martin
2642fc3329
use open in
2014-08-08 15:45:04 +02:00
Aaron Seigo
928d5e63a5
bool Package::hasValidStructure() const
...
needed to differentiate between packages with structures and without
before path is set
2014-08-08 14:12:22 +02:00
Aaron Seigo
3e61b26178
better variable naming for clarity
2014-08-08 14:12:22 +02:00
Marco Martin
f608e85294
extract the app name and icon we'll be open with
2014-08-08 13:40:34 +02:00
Marco Martin
d266a9594b
valid package internalload even if just structure
...
consider a loaded package valid even if !isvalid() but does have some file
that indicates it has a valid packagestructure.
for how packages are loaded now, a package is never valid at first if has a required file:
because the path gets set only after the package is loaded
this fixes wallpaper loading
2014-08-08 11:29:23 +02:00
Aaron Seigo
b99001ace4
typos in comments
2014-08-08 08:25:27 +02:00
Aaron Seigo
b4f4515d2a
detach on file/directory definition add
2014-08-08 08:25:27 +02:00
Aaron Seigo
402825b301
after detaching, fetch the item from the collection again
...
fixes setting these values on a copy of the package
2014-08-08 08:25:26 +02:00
Marco Martin
2482eb193c
allow applets specify a different root than pluginname
...
introduce X-Plasma-RootPath: it would be used instead of
the plugin name for package root path if present
2014-08-07 16:26:51 +02:00
Marco Martin
546ffbc791
reintroduce containmentForScreen with defaultPlugin
...
reintroduces an api call from plasma1:
its the only way to solve
https://bugs.kde.org/show_bug.cgi?id=337200
basically to avoid a crash when plasma starts with missing containments in the appletsrc and a locked corona, or a screen added with locked widgets.
it's the only entry point that allows a creation of a containment when widgets are locked
REVIEW:119513
CCBUG:337200
2014-07-28 13:43:23 +02:00
Marco Martin
f6e4cb790e
Revert "support platformcontents for shell packages"
...
This reverts commit 9760601704
.
thinking about it, a shell package should be really device specific per se
2014-07-24 14:05:58 +02:00
Marco Martin
9760601704
support platformcontents for shell packages
...
reviewed by: Bhushan Shah
2014-07-24 13:58:26 +02:00
Marco Martin
80516dbef0
framework part of the applet alternatives chooser
...
this is the little part in plasma-framework for the applet alternatives chooser.
works together the branch mart/alternativesConfig of plasma-workspace and plsma-desktop.
for how it looks and why, see the vdg forum thread:
https://forum.kde.org/viewtopic.php?f=285&t=122067&p=315919#p315919
still possible problems:
I'm not sure about using a new desktop file entry X-Plasma-Provides, maybe Categories could be enough, but it may produce many false positives as well
REVIEW:119409
2014-07-23 12:25:32 +02:00
Aleix Pol
e613662ab5
Make framesvg unit test pass
...
Revert the changes in contentsRect, it was clearly not the best place to
put the code that contains the code that computes the content size.
Instead move the code in FrameSvgItem, duplicates data and code but works.
2014-07-22 03:14:26 +02:00
Aleix Pol
ab93d83890
Merge branch 'davidedmundson/framesvg_native'
...
Use FrameSVG as 9 tiles instead of uploading a big texture of the finished frame each time.
This also saves the cache being populated with full created frames in different sizes; which end up taking up space in the disk and shared memory cache as well as the GPU memory.
A code path falls back to the original uploading the entire texture if obscure settings are used, i.e overlay.
Benchmarks:
apitrace when resizing a frame goes from an average of 7.6ms per frame of CPU time just for the swizzling and uploading to 1.4ms
GPU time also drops from 40us to 10us
Themes will need to remove stretch-borders (when we gain nothing from stretching; i.e Breeze) to get the most out of it.
REVIEW: 119330
2014-07-21 18:38:11 +02:00
Aleix Pol
dca3958b44
Stop exposing that many things in FrameSvgItem
...
Move the shared code between FrameSvg and FrameSvgItem into a separate file
that both can link to.
Reviewed by David Edmundson
2014-07-21 18:01:26 +02:00
Aleix Pol
99586bc420
Add API documentation as it's public API now
...
Reviewed by David Edmundson
2014-07-21 15:49:10 +02:00
Aleix Pol
47c7688d02
Move some of the code and make some API public
...
It's unreasonable to use private API, so make everything public API so that
every user of FrameSvg have as much features exposed as possible.
Reviewed by David Edmundson
2014-07-21 15:44:25 +02:00
Lukáš Tinkl
cdce8e5445
don't replace ampersands for an underscore
...
in context menu actions
2014-07-18 22:36:13 +02:00
Aleix Pol
a1d7863f4f
Fix scrollbar display, polish sectionRect function
...
While debugging a glitch I found out a bug in the painting code that hide
behind QRect documentation. See comment in sectionRect. This never rendered
correctly.
2014-07-18 02:42:46 +02:00
David Edmundson
f2fb13ab3b
Merge branch 'master' into davidedmundson/framesvg_native
2014-07-17 22:43:08 +02:00
David Edmundson
31c1fcc50e
Do not leak containment actions
...
REVIEW: 119341
2014-07-17 18:49:50 +02:00
David Edmundson
09e23eb675
Merge branch 'master' into davidedmundson/framesvg_native
2014-07-17 12:39:55 +02:00
Marco Martin
9ba599e1b9
packages with Hidden=true metadata are invalid
...
This originates from the request of downstreams to hide packages that are still installed.
why should be easier than not installing them i don't know, *but* semantically I think it makes sense act as if the package was not existing when the metadata says it's hidden
REVIEW:119329
2014-07-17 12:30:43 +02:00
l10n daemon script
f7208d7d21
SVN_SILENT made messages (.desktop file)
2014-07-17 08:59:54 +00:00
Aleix Pol
a30afb9c34
Ensure we don't overlap the center with the right and bottom borders
2014-07-16 13:51:25 +02:00
Aleix Pol
0a94e1b1b8
Take composeOverBorder into accoun
2014-07-15 19:56:04 +02:00
Aleix Pol
c4d9bcb362
don't let the contentRect overlap the borders
2014-07-15 16:27:34 +02:00
Marco Martin
188d131d77
make the uiloaded tests pass
...
work in case of every order the various applets and containments emit uiready
REVIEW:119284
2014-07-15 10:16:10 +02:00
Marco Martin
427acdb373
Merge branch 'mart/coronaautotest'
...
REVIEW:119270
2014-07-14 20:48:31 +02:00
Aleix Pol
83895d8e26
Use proper sizes and positions
2014-07-14 20:02:47 +02:00
Aleix Pol
a8b37129d0
Refactor a contentGeometry method out of generateFrameBackground
...
Given the FrameData and the total size, we get to know where is the
contents going to be and gives us the information to extrapolate where to
put all the borders and corners.
Reviewed by David Edmundson
2014-07-14 18:13:40 +02:00
Aleix Pol
d574f51108
Move the central space painting into a separate function
...
Reviewed by David Edmundson
2014-07-14 17:00:39 +02:00
Aleix Pol
33aa8e406d
cleanups
...
Move variable declarations closer to its uses
Prefer using QSize than width and height separately, so we can pass it
around directly and use isEmpty
Remove duplicated code in the central piece drawing
2014-07-14 16:49:12 +02:00
Aleix Pol
ae56796cb9
Move corner painting into a paintCorner function
2014-07-14 16:47:56 +02:00
Aleix Pol
f62b357b62
Prefer passing a size rather than a width and height
2014-07-14 16:37:00 +02:00
Aleix Pol
df1d44407a
cleanup
...
Reduce type casts from QSizeF to QSize, we're always using it as a QSize,
so just make the cast once.
Remove redundant constructions like checking whether it's null and returning
null or unneeded arithmetics
2014-07-14 16:32:10 +02:00
Marco Martin
6666445af5
don't make failed applet block the corona
2014-07-14 14:22:36 +02:00
Aleix Pol
5b1fc96329
Small internal code refactoring
...
Create a paintBorder function that can generically paint framesvg borders.
This helps us reduce duplicated code as well as improving the readability
of the code.
Reviewed by David Edmundson
2014-07-14 14:16:16 +02:00
Aleix Pol
dac1d8f265
Figure out why my plasma wasn't notifying the startup
...
Make sure AppletPrivate::uiReady is set in applet_p.cpp when we report that
the ui is ready.
Make sure that if we loop through all the containments and they're all
ready, we emit that it's done.
So far, Corona::startupCompleted was never emitted.
REVIEW: 119220
2014-07-14 13:23:20 +02:00
Aleix Pol
054a38b9d0
--runtime warnings
2014-07-11 19:51:42 +02:00
Aleix Pol
e008a5d7d4
If a timer is active and we start it, it will restart
...
No need to check if it's active and stop it first, according to the
documentation.
2014-07-11 19:15:06 +02:00
Aleix Pol
804a0d34da
Fix cache implementation
...
It was weird.
Reviewed by the Handa-man.
2014-07-11 18:37:55 +02:00
Marco Martin
100b60a7fb
return the prefix that has ben set even if not avail
...
symmetricity++ between setelementprefix and prefix
2014-07-11 16:55:59 +02:00
Marco Martin
c77b2bf9a8
fix switch from a less complete to a more complete
...
if the old theme didn't have a prefix, but the new one has,
set the old (formerly nonexisting) prefix again
2014-07-11 16:42:55 +02:00
Aleix Pol
4b222c5ef6
--warning unused variable
2014-07-10 20:28:01 +02:00
Aleix Pol
92a8007489
Introduce TimeTracker debugging tool for plasma
...
TimeTracker is a small class that keeps track of an object the changes in
the properties of an object and relates them to a point in time. This way
we can see how things change and react to each other. Then, this information
is exported into a json file to analyze.
REVIEW: 119199
2014-07-10 19:20:59 +02:00
l10n daemon script
8afadc6410
SVN_SILENT made messages (.desktop file)
2014-07-10 04:23:58 +00:00
Aleix Pol
124dc4799a
fix build
2014-07-09 18:23:58 +02:00
Aleix Pol
f5f96c1390
Remove unneeded casts
...
They're all because we're accessing the d-pointer of the parent class (!),
we can access it without casting.
2014-07-09 18:20:32 +02:00
Aleix Pol
459f81814d
Only consider a containment as finished if it actually passes a "true".
...
So far, we were only considering the fact that teh signal was being
emitted, and that's doesn't seem correct.
REVIEW: 119191
2014-07-09 12:51:24 +02:00
Aleix Pol
8fb62cc0a4
Cleanup
...
Re-use containment variable instead of keep fetching it every time. It's
not a trivial function, so better reduce the calls.
2014-07-09 12:43:08 +02:00
Aleix Pol
ae996c6666
--deprecated call
2014-07-09 12:36:34 +02:00
Aleix Pol
5e0acaa443
--warning
2014-07-09 12:02:31 +02:00
l10n daemon script
ee230c4d21
SVN_SILENT made messages (.desktop file)
2014-07-09 03:37:24 +00:00
Aleix Pol
596dc7523d
Prefer inner scopes
...
Don't request data until we're going to use it.
Don't emit about config changes if config doesn't change
2014-07-08 01:47:43 +02:00
Marco Martin
573f48921e
don't escalate immutability on each save
...
Applet::immutability() is the maximum between internal applet immutability
and the immutability of its containment.
so not set higher immutability in the internal member of Applet
or the applet will not be able to be unlocked properly
Reviewed by: Sebastian Kügler <sebas@kde.org>
2014-07-03 14:12:21 +02:00
l10n daemon script
29908f145a
SVN_SILENT made messages (.desktop file)
2014-07-01 12:38:20 +00:00
l10n daemon script
601836ad7f
SVN_SILENT made messages (.desktop file)
2014-06-30 08:49:36 +00:00
l10n daemon script
b06bb52100
SVN_SILENT made messages (.desktop file)
2014-06-29 08:42:52 +00:00
Marco Martin
6c54fb596d
Don't expose color properties in c++ api
...
the color properties are remotely useful only when used from QML
and risk to explode in number in the future,
it's not a good thing for a public c++ api.
Also, they will become kinda deprecated as in largely replaced by
the ColorRole api. Too late to remove those properties completely,
but still last days to move them at least out of c++ api.
(and in qml they could be removed in the future in a 2.1 version
of the import while still being present in 2.0 if needed)
This moves the color properties is a theme subclass available only from QML
REVIEW:118972
2014-06-27 15:06:52 +02:00
Christoph Feck
fec57bdaa2
Use QElapsedTimer for data engines
...
forward port of http://commits.kde.org/kdelibs/ac5d3d2f916c0a461121d4d033642227bd743edb
CCBUG: 336551
REVIEW: 118869
2014-06-23 13:03:16 +02:00
l10n daemon script
ac4f519188
SVN_SILENT made messages (.desktop file)
2014-06-23 08:35:39 +00:00
Andre Woebbeking
35ee077ee3
warning: ignoring return value of function
...
CCMAIL:mart@kde.org
2014-06-22 20:37:18 +02:00
Marco Martin
3847be89fa
don't crash if no colors file is provided
...
Reviewed by: Martin Gräßlin <mgraesslin@kde.org>
2014-06-20 14:42:13 +02:00
Marco Martin
17741fbfae
prune ColorRole enum
...
all the former combinations are now obtained with
ColorRole + ColorGroup
2014-06-19 18:18:50 +02:00
Marco Martin
8eb1bc10f5
Introduce the ColorScope class
...
it's an import in core, and advertises itself as an "attached property"
with this we can:
say that all its chidren are of a certain context, like "button" or
"complementary"
then anywhere there will be available an attached property, as ColorScope,
so like:
PlasmaCore.ColorScope {
group: PlasmaCore.Theme.Complementary
PlasmaComponents.Label {
text: "foo"
color: ColorScope.textColor
}
}
2014-06-19 17:40:14 +02:00
Marco Martin
b755bd1e32
ColorGroup is part of Theme
2014-06-18 19:22:02 +02:00
Marco Martin
c54d3d5538
colors are not flags
2014-06-18 19:09:18 +02:00
Marco Martin
4ad2cc5196
new color group of "complementary" colors
...
for areas intended to have independent background and text color than
all the rest, like the Logout dialog
if Colors:Complementary is not present in the theme, it falls back to
normal colors
2014-06-18 19:02:08 +02:00
Aleix Pol
e1051994ad
Ensure that the containment's corona is properly calculated.
...
The used corona is either the containment's parent or, in case the parent
is an applet, it's containment's corona. With this change we ensure the
proper corona is always found.
This change requires screenContainment to be able to walk through the
object tree in case it's not a containment directly managed by it.
BUG: 334500
2014-06-17 16:02:08 +02:00
Marco Martin
c6e7961088
ensure mask and normal frame have the same borders
2014-06-13 17:15:06 +02:00
l10n daemon script
b092bbed31
SVN_SILENT made messages (.desktop file)
2014-06-12 08:31:04 +00:00
Martin Klapetek
a177696c6c
Update DataEngine sources only if they are used
...
REVIEW: 118669
2014-06-11 17:17:41 +02:00
Marco Martin
d3f73c59f3
apidoc
2014-06-09 19:44:52 +02:00
Marco Martin
fa95680a51
use color groups instead
...
the Text and Background colors can become buttonText or ButtonBackground
based on the svg property ColorGroup
2014-06-09 19:35:58 +02:00
Marco Martin
cac2704d50
prototype of more flexyble svg stylesheets
...
experiment in dynamic repacement of Text and Background
colors, in order to be able to generate icons of different colors
based on where they are (for instance if the normal background
is dark and the button background is light
at the moment supported an option to invert colors, one
to use the "highlight" color (if we want colored icons
on mouse over)
2014-06-09 17:35:46 +02:00
l10n daemon script
5ab5d89fea
SVN_SILENT made messages (.desktop file)
2014-06-07 08:25:46 +00:00
Giorgos Tsiapaliokas
35e5c46358
Unset the contentsPrefixPaths for the ThemePackages. The Theme Packages are not supposed to have a "contents/" directory.
...
REVIEWED-BY: Marco Martin
2014-06-06 18:48:49 +03:00
Aleix Pol
a06c1569a1
The screen size will be defined by the final Corona
...
It doesn't make sense to try to give hints at what it will be given that
we don't know.
For example, see how we're defining ::numScreens as 1 on the other method
as well.
2014-06-05 01:25:18 +02:00
David Edmundson
7ea8e24584
Remove more unused QApplication includes
2014-06-04 18:57:18 +02:00
David Edmundson
e8297e9a0f
QDesktopWidget -> QScreen
2014-06-04 18:55:05 +02:00
Marco Martin
b6ac8ded88
forcefully remove some entries
...
newly created containments may have some default entries like plugin
or formfactor written in the config group, but not in keyList()
they have to be explicitly removed because wouldn't be removed in
deleteGroup
BUG:335792
2014-06-04 17:28:11 +02:00
David Edmundson
23068fb2b0
Avoid references to QApplication
...
They cause problems when running in QGuiApplication
REVIEW: 118470
2014-06-02 17:44:47 +02:00
Marco Martin
4fd0af246d
make package::uninstall actually work
2014-06-02 16:38:50 +02:00
Marco Martin
0c127f1ce5
delete framedata when ThemePrivate dies
2014-05-28 20:34:25 +02:00
Marco Martin
3fdf999ba0
bit more complex bookeeping
...
since it is now possible to have different svg/framesvg with
different themes, s_sharedFrames must be indexed by theme first
what it's really the identifying thing is ThemePrivate, so it's indexed by that
this fixes a crash that occurs the second thime the theme gets changed
BUG:335472
2014-05-28 20:27:58 +02:00
Marco Martin
140d066021
check for slots existence before blindly connecting
2014-05-27 17:13:57 +02:00
Yuri Chornoivan
aab2c13164
Fix typos found by mvillarino
2014-05-27 07:02:32 +03:00
Marco Martin
0596cf176f
schedule a rect cache sync when stuff gets in
...
do a disc sync with a 2 minutes delay
2014-05-26 20:32:22 +02:00
Marco Martin
0b10a16113
try harder to avoid creating svg renderers
...
now is actually possible to obtain a startup with zero svg renderers
* svg::isValid will create a renderer only if really nevessary
* the rects cache is ensured to be written on disk
* fixed the check on the theme metadata age
* rect cache is shared between all applications
2014-05-26 20:14:57 +02:00
Aleix Pol
9d9c72630c
Simplify plasma theme startup
...
Don't emit themeChanged when constructing Plasma::Theme instances
Reviewed by David Edmundson
2014-05-26 19:03:46 +02:00
Marco Martin
819b42932d
accept file:// urls as absolute paths
2014-05-26 13:55:10 +02:00
Aleix Pol
efdf1ca917
Make QtGui a public dependency of KF5::Plasma
...
Many classes from QtGui are specified in the header files, this alone is
enough reason to make it a public dependency. (QGuiApplication, QFont,
QPixmap are some examples).
This also pulls QtCore (e.g. QString, QRect, QUrl), which also is, of
course.
CCMAIL: plasma-devel@kde.org
2014-05-26 04:16:57 +02:00
Aleix Pol
38b16d5149
Remove unneeded includes
...
QWidget!!
2014-05-26 04:11:35 +02:00
l10n daemon script
fd1674450e
SVN_SILENT made messages (.desktop file)
2014-05-25 08:47:48 +00:00
Sebastian Kügler
249c1e1c93
Less warnings at runtime
...
It's quite common to try loading a package in order to check if it's
valid. No need to litter the console with that.
2014-05-23 18:41:50 +02:00
l10n daemon script
2ba1a0c90f
SVN_SILENT made messages (.desktop file)
2014-05-23 08:16:11 +00:00
Marco Martin
409d340fba
if a name is passed in the ctor, never change
...
BUG:335005
2014-05-20 18:26:03 +02:00
l10n daemon script
db8da9ff8d
SVN_SILENT made messages (.desktop file)
2014-05-20 10:48:03 +00:00
David Edmundson
989dc5c07c
Remove pointless include
2014-05-19 22:13:30 +02:00
Marco Martin
1e7a8b60a1
clean
2014-05-19 19:18:52 +02:00
Marco Martin
f7e25fe696
don't link to xml and iconthemes
2014-05-19 19:09:09 +02:00
Marco Martin
8155f2d542
don't link to qtquick
2014-05-19 18:32:34 +02:00
Marco Martin
924818a0ca
don't link agains KConfigWidgets
...
not needed anymore
2014-05-19 16:58:37 +02:00
Marco Martin
d0816f1448
crash--
2014-05-19 15:35:04 +02:00
Marco Martin
72239e7f3c
apps can use more than one theme.
...
add the name in s_sharedFrames
CCBUG:335003
CCBUG:335004
2014-05-19 15:24:36 +02:00
Marco Martin
bbed0411b6
don't use another Thmeme copy
2014-05-19 14:58:19 +02:00
Marco Martin
682bf5f149
if containment gets destroyed, destroy all dialogs
...
BUG:334977
2014-05-19 11:15:51 +02:00
Marco Martin
9d3344d0a6
close the remove dialog if containment locks
...
BUG:334978
2014-05-19 11:11:19 +02:00
l10n daemon script
14ab84f5cc
SVN_SILENT made messages (.desktop file)
2014-05-18 08:22:25 +00:00
Marco Martin
2d29445164
set the shortcut to the action
...
BUG:334855
2014-05-16 10:03:45 +02:00
Patrick Spendrin
c68db518c8
remove unneeded header
...
REVIEW:118119
2014-05-15 16:54:31 +02:00
Marco Martin
7f4e72fb35
crash--
...
weird behavior:
qdeleteall crashes, deleting items one by one doesn't
2014-05-14 18:21:49 +02:00
l10n daemon script
1b3060649c
SVN_SILENT made messages (.desktop file)
2014-05-14 08:29:33 +00:00
Marco Martin
842d8a7ad5
don't onAppExitCleanup on theme destroy
...
Theme is not a singleton anymore
2014-05-07 13:58:09 +02:00
Marco Martin
2d94312f97
support config for applets children of applets
2014-05-07 13:09:35 +02:00
Eike Hein
1805bb7496
Make sure the args part of Containment::createApplet(..., args) ends up in the applet.
2014-05-06 20:52:42 +02:00
Aleix Pol
556c1e321a
Remove random qDebug output
...
Makes it easier to spot the actual problems on the output. If there's
something that's actually indicating a problem, we should make it a
qWarning.
2014-05-06 19:57:37 +02:00
David Edmundson
873106a7ca
Track screen in the containment when inside an applet
...
Make the system tray containment update which screen it is on when the
system tray applet is moved.
This fixes notifications if the panel is moved between screens.
REVIEW: 117946
2014-05-05 11:39:36 +02:00
l10n daemon script
5713f72542
SVN_SILENT made messages (.desktop file)
2014-05-03 08:34:24 +00:00
l10n daemon script
d55335d2a9
SVN_SILENT made messages (.desktop file)
2014-05-02 08:52:44 +00:00
Marco Martin
a6eca11b84
restore corona immutability
...
BUG:334141
2014-04-30 19:31:56 +02:00
l10n daemon script
238bc54c5b
SVN_SILENT made messages (.desktop file)
2014-04-29 10:13:52 +00:00
l10n daemon script
012b0681c9
SVN_SILENT made messages (.desktop file)
2014-04-29 04:51:45 +00:00
l10n daemon script
d2f752597f
SVN_SILENT made messages (.desktop file)
2014-04-28 15:59:04 +00:00
l10n daemon script
8fcd320f27
SVN_SILENT made messages (.desktop file)
2014-04-28 12:45:07 +00:00
l10n daemon script
b9130c7c24
SVN_SILENT made messages (.desktop file)
2014-04-28 09:02:00 +00:00
l10n daemon script
880da9b195
SVN_SILENT made messages (.desktop file)
2014-04-28 05:09:56 +00:00
Hrvoje Senjan
a4e2b38d51
unbreak dataengine loading after PLUGIN_INSTALL_DIR change in e-c-m
2014-04-28 02:42:02 +02:00
Aleix Pol
9cd8f9fbeb
Port plasma code to PLASMA_RELATIVE_DATA_INSTALL_DIR
2014-04-27 23:06:32 +02:00
l10n daemon script
dfd425ae82
SVN_SILENT made messages (.desktop file)
2014-04-27 21:04:10 +00:00
l10n daemon script
cbf1e988e9
SVN_SILENT made messages (.desktop file)
2014-04-27 16:44:26 +00:00
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
Aleix Pol
1294051eaf
Adapt to changes in KDEInstallDirs
...
kde5/services is kservices5
kde5/servicetypes is kservicestypes5
2014-04-26 19:50:53 +02: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
Alex Merry
2ef3b32dcd
Use KF5_INCLUDE_INSTALL_DIR and KF5_INSTALL_TARGETS_DEFAULT_ARGS
...
This is instead of INCLUDE_INSTALL_DIR and INSTALL_TARGETS_DEFAULT_ARGS,
which will lose the "KF5" suffix from the include path.
2014-04-26 12:14:03 +01:00
Kevin Ottens
72ba7b4146
Apply the astyle-kdelibs script
2014-04-26 01:48:37 +02:00
Marco Martin
38d06b784a
get rid of dummyGroup()
...
it was used only in extenders that don't exist anymore
2014-04-25 23:06:36 +02:00
Aurélien Gâteau
b3b95fa77d
Refresh doc to use README.md and markdown
2014-04-25 21:06:00 +02:00
Aurélien Gâteau
0efc0572af
Consolidate all plasma-framework catalogs
2014-04-25 10:40:12 +02:00
Aleix Pol
437962f2e8
Introduce a new plasmoid status
...
REVIEW: 117722
2014-04-24 16:56:51 +02:00
Marco Martin
47dfda75c0
introduce the signal Corona::startupCompleted()
...
when emitted we are sure all containments *graphics objects*
have been created
2014-04-22 14:58:12 +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
a2b436aef8
remove all references to runners
2014-04-16 18:56:22 +02: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
9a305de76d
Fix activationAction connection
...
It was connecting to a deprecated signal, use QAction::changed instead.
Since QAction::changed is more generic and modifying the shortcut seems
expensive, actually check that the property is different from the previous
value.
Reviewed by Vishesh Handa.
2014-04-12 20:09:08 +02:00
Marco Martin
767336e87e
isContainment() only true for proper containments
2014-04-10 20:53:19 +02:00
Marco Martin
7e3b2ae8af
move the applet configScheme to the new group
...
after migration
2014-04-10 20:41:34 +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
10f0dc51b9
don't emit activate on reactToScreenChange
...
this makes the delete dialog *not* freeze palsma
2014-04-08 19:47:50 +02:00
Marco Martin
857b0b8069
don't try to load dataengines with and empty name
2014-04-02 11:12:11 +02:00
Marco Martin
d597e07fd5
remove dead code
2014-03-31 20:37:52 +02:00
Marco Martin
a326f85cd8
a breeze-dark theme
...
this theme won't have any graphics, just colors that get applied with css on the default svgs
2014-03-31 20:36:37 +02:00
Martin Klapetek
461042a240
Use installEventFilter calls properly
...
Should fix some font-change related bugs
2014-03-31 18:49:45 +02:00
Martin Klapetek
ce878ee787
Use installEventFilter properly
...
BUG: 332501
2014-03-26 14:24:46 +01:00
Marco Martin
614af69f02
never show the dialog on destroy()
...
the remove action is now hooked to another slot, askDestroy()
it *MAY* solve the "Do you wish to remove this default desktop" bug, or may get it worse
CCBUG:332137
2014-03-20 19:22:27 +01:00
Aurélien Gâteau
43e2b0f670
Unbreak build of code using plasma-framework
...
plasma_export.h is now installed in include/plasma/, not in include/.
Code using plasma-framework does not have include/plasma in its include
directory list, so plasma-framework headers must refer to others using
</plasma/foo.h>, not "foo.h".
CCMAIL: aleixpol@kde.org
2014-03-18 12:01:36 +01:00
Aleix Pol
2ef12f1ee8
More headers tweaking
...
Don't install the camel-case headers twice
Look for the plasma_export.h in the current directory instead of jumping
around in the project.
2014-03-17 16:48:49 +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 Gräßlin
d2452e2917
EGL/X11 backend for WindowThumbnail QQuickItem
...
Introduces a new optional dependency to EGL. If EGL is found the
WindowThumbnail gets compiled with EGL support. The EGL support is
unlike Qt's XCB plugin not mutual exclusive to the GLX backend, thus
it's possible to compile with EGL and GLX at the same time.
By that this implementation is prepared for the case that Qt supports
EGL or GLX through runtime selection.
In practice EGL support is only useful if Qt is compiled with GLESv2.
In that case the corebindingsplugin gets linked against Qt5::Gui_GLESv2
to get the dependency to GLES.
The implementation makes use of the EGL_KHR_image extension
(or EGL_KHR_image_base and EGL_KHR_Image_pixmap) and
the GL_OES_EGL_image extension to bind the X pixmap to an EGLImageKHR.
REVIEW: 116627
2014-03-17 09:09:23 +01:00
Marco Martin
07637b7f34
remove dead code
2014-03-14 18:03:15 +01:00
Marco Martin
cc8de5a789
remove unused variable
2014-03-11 17:07:15 +01:00
Marco Martin
d397358346
Make the delete containment dialog async
...
a syncronous dialog brings crashes if something gets deleted while the dialog's event loop is in execution
BUG:332027
2014-03-11 17:04:31 +01:00
Martin Klapetek
6a1fa18986
Add availableScreenRect(int id) to Corona base class
...
This is already implemented in ShellCorona and is quite handy too
Reviewed-by: Marco Martin
2014-03-11 15:30:45 +01:00
Sebastian Kügler
a1dce4bb86
Update theme on KWindowSystem::compositingChanged
...
BUG:328651
2014-03-09 23:50:21 +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
a0aa88f00d
formFactorChanged, locationchanged signals
2014-03-04 18:13:19 +01:00
David Edmundson
66bac622b4
Merge branch 'davidedmundson/svgrendering'
...
Conflicts:
src/declarativeimports/core/svgitem.cpp
src/declarativeimports/core/svgitem.h
REVIEW: 115923
2014-02-28 16:22:49 +01:00
David Edmundson
8bdbc034d4
Add SVG::image(QSize size,QString elementId)
...
This allows SVGItem to fetch elements at various sizes without resizing
the SVG.
2014-02-28 15:24:08 +01:00
Marco Martin
7c14b22fc0
Qt5::Widgets not used anymore
2014-02-27 13:20:26 +01:00
Marco Martin
f5ce791246
Qt5::Network not used anymore
2014-02-27 13:19:00 +01:00
Marco Martin
9253bc1cf0
threadweaver not used anymore
2014-02-27 13:06:39 +01:00
Marco Martin
13bb3fa054
solid isn't used
2014-02-27 12:59:37 +01:00
Marco Martin
4817e11441
don't depend from Auth
2014-02-27 12:51:24 +01:00
Marco Martin
88122c62a5
don't depend from DNNSD
...
it wasn't actually used anymore
2014-02-27 12:50:32 +01:00
Marco Martin
b2fec905b5
Merge branch 'mart/svgHiDpi'
...
REVIEW:116027
2014-02-26 16:39:52 +01:00
Sebastian Kügler
5f998abd7b
More usage of QStringLiteral in theme's hot pathes
2014-02-26 05:09:31 +01:00
Sebastian Kügler
7fde00f2f0
Use QStringLiterals for stylesheet processing
...
Speeds up the construction of all these strings a bit.
2014-02-26 00:50:10 +01:00
Marco Martin
3e966f29b1
typo
2014-02-25 19:42:04 +01:00
Marco Martin
53b2aba558
explain why we only consider integers right now
2014-02-25 19:39:12 +01:00
Marco Martin
6ab569e85e
add new needed keys to applet plugin definition
2014-02-25 14:32:00 +01:00
Marco Martin
c533153978
add a new color for svg stylesheets: Highlight
2014-02-25 11:21:19 +01:00
Marco Martin
a04a87bcec
use units to understand the devicePixelRatio
2014-02-24 16:55:19 +01:00
l10n daemon script
c802da22a5
SVN_SILENT made messages (.desktop file)
2014-02-23 04:51:11 +00:00
Marco Martin
c009c7f0cd
concept of fixedMargins
...
sometimes we need to know what the margins are of a framesvg, even if some of them are disabled
2014-02-21 21:13:12 +01:00
Marco Martin
372912d53e
fix elementSize()
2014-02-21 19:52:25 +01:00
Marco Martin
17332257d7
experimental devicePixelRatio in Plasma::Svg
...
Conflicts:
src/declarativeimports/core/framesvgitem.cpp
2014-02-21 19:24:14 +01:00
Sebastian Kügler
01d1509c7c
Speed up cache lookups
...
Use constFind and an iterator to save one hash key lookup.
CCMAIL:aleixpol@kde.org
2014-02-21 16:03:03 +01:00
David Edmundson
d7b8ba265b
Cleanup whitespace
2014-02-21 15:15:21 +01:00
David Edmundson
9459ed1f02
Add convenient QImage image() getter in SVG
2014-02-21 15:15:21 +01:00
Marco Martin
e27a2512af
make :screen() not crash if is child of an applet
2014-02-21 11:13:14 +01:00
Sebastian Kügler
29cf8e22d2
Faster theme changes
...
Don't wait too long after the file changed, makes theme changes be
picked up half a second faster -- noticeable for the user.
2014-02-21 01:20:27 +01:00
Sebastian Kügler
d8ea983d45
Slightly faster lookup of cached theme elements
2014-02-21 01:19:58 +01:00
Sebastian Kügler
7fcb1b7889
Merge branch 'sebas/themeswitch2'
...
Conflicts:
src/shell/panelconfigview.cpp
2014-02-17 17:59:32 +01: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
12a766795e
return the correct immutability
2014-02-17 12:00:24 +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
60565dafcb
get rid of elementAtPoint()
...
was a stub, never implemented because qtsvg doesn't support it (and never will)
2014-02-14 14:30:58 +01:00
Marco Martin
59dbfeeab6
ask confirmation to delete containments
2014-02-13 15:30:07 +01:00
Martin Gräßlin
bada0c97ba
Ensure that we can build without X11 or XCB
...
* X11 is optional dependency
* XCB is optional dependency
* Qt::X11Extras is only found if both X11 and XCB are found
* switch to HAVE_X11 instead of X11_FOUND in CMakeLists
* remove/fix custom added definitions
* use #if HAVE_X11 instead of #ifdef HAVE_X11 (that is always true)
REVIEW: 115698
2014-02-12 16:20:42 +01:00
Martin Gräßlin
31e301174a
Ensure to not call X11 specific calls if we are not on platform X11
...
This fixes a bunch of possible crashy code when trying to run
applications linking plasma-framework on platform Wayland.
REVIEW: 115641
2014-02-12 16:20:04 +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
David Faure
452413ef33
use version strings defined at toplevel - doesn't work though ?
2014-02-11 16:23:33 +01:00
Marco Martin
0573a47e06
tests and autotests in top level dir
2014-02-10 15:17:07 +01:00
Sebastian Kügler
eebfb64d0a
Merge branch 'master' into sebas/themeswitch2
2014-02-06 17:56: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
Marco Martin
3bb0e7d3d0
use the config of the applet parent of containment
...
that's the systray specific hack
2014-02-06 12:12:43 +01:00
l10n daemon script
34284e90eb
SVN_SILENT made messages (.desktop file)
2014-02-06 04:12:17 +00:00
Sebastian Kügler
585aa4998a
noise--
2014-02-06 04:00:39 +01:00
Sebastian Kügler
d9e43ff979
Be smarter about contrast effect reading
...
This commit allows the theme designer to just enable and disable the
effect (enable=true). If no color values are set, values are picked
based on the background color. This essentially restores the hardcoded
values in some other places, and makes them available as sensible
defaults to other themes.
Also, make sure colors are read before the effect is applied (as we need
the new bg color to decide whether it's light or dark).
2014-02-06 02:51:46 +01:00
Sebastian Kügler
5dd4b51151
Plasma::Theme gets API for KWS' background contrast effect
...
From its api docs:
This method allows Plasma to enable and disable the background
contrast effect for a given theme, improving readability. The
value is read from the "enabled" key in the "ContrastEffect"
group in the Theme's metadata file.
The configuration in the metadata.desktop file of the theme
could look like this (for a lighter background):
[ContrastEffect]
enabled=true
contrast=0.45
intensity=0.45
saturation=1.7
2014-02-06 00:56:50 +01:00
Marco Martin
3325f24992
appletLoader doesn't depend from Declarativeappletscript
2014-02-05 12:51:31 +01:00
Martin Gräßlin
91e9e401f0
Include config-plasma.h before checking for HAVE_X11
...
Fixes compile warning since kwindowsystem.h doesn't provide HAVE_X11
any more.
Reviewed-by: Marco Martin
2014-02-05 11:10:53 +01:00
Marco Martin
517403096d
port improve cache file dropping to plasma-framework
...
this ports revision c03052935b082 on kdelibs
improve cache file dropping
* fix regression: version the image cache file name
* version the svg elements
* drop old svg elements files
* respond to changes at runtime by watching the theme's metadata.desktop for changes
* move creation of the svg elements file into ThemePrivate::useCache()
REVIEW:115397
2014-02-04 12:06:09 +01:00
Sebastian Kügler
1bfbee809e
const-ref in foreach, clean up debugging
2014-02-04 02:18:28 +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
Sebastian Kügler
9e491920e5
Only search for metadata.desktop when necessary
2014-02-02 02:25:08 +01:00
Sebastian Kügler
fa7ae03867
Catch packages zipped into subdirectory
...
This is a pretty common thing, as most zipping tools put the contents
into a subdirectory by default.
Fixes theme package installation.
2014-02-02 02:18:54 +01:00
Sebastian Kügler
174eae6802
Merge branch 'master' into sebas/themeswitch
2014-02-01 22:38:55 +01:00
l10n daemon script
063366d681
SVN_SILENT made messages (.desktop file)
2014-02-01 04:10:47 +00:00
Sebastian Kügler
91a861e3ef
noise--
2014-01-31 03:39:10 +01:00
Sebastian Kügler
e0fbf3473f
Remove unused member
2014-01-31 02:25:25 +01:00
Sebastian Kügler
1c4f14c177
Remove some dead code
2014-01-31 02:06:09 +01:00
Sebastian Kügler
de7558e7f7
Use shared KDirWatch instance
2014-01-31 01:31:09 +01:00
Sebastian Kügler
ffeb585003
Rough version in which theme switching works
...
This aligns the config files and groups, and adds a KDirWatch in the
shared Plasma::Theme private object in order to nofity when the
configured theme changes.
It's a bit rough, doesn't cover all corner cases and needs polishing.
2014-01-31 01:06:43 +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
6ecbbd9129
SVN_SILENT made messages (.desktop file)
2014-01-29 04:19:24 +00:00
Sebastian Kügler
b3a5d65580
Complete apidocs for Plasma::Theme
2014-01-27 19:41:39 +01:00
Sebastian Kügler
a70dd8c299
theme.defaultIconSize moves to units.iconSizes.default
2014-01-23 01:47:42 +01:00
Sebastian Kügler
4da01ebce0
spacing hints move from theme to units
2014-01-23 01:26:19 +01:00
Sebastian Kügler
d4902e2df2
Remove icon sizes from Plasma::Theme
...
They've moved into Units
2014-01-23 00:43:21 +01:00
Sebastian Kügler
095469729a
update spacing on font change
...
Also explain the sizing trick in the comment.
2014-01-21 23:46:50 +01:00
Sebastian Kügler
e72b297e48
Use defaultFontChanged notifier for spacing
...
This makes the spacing update when the font changes. This will be handy
for a more dynamic DPI switching in the future.
2014-01-21 23:44:05 +01:00
Sebastian Kügler
ff1d062b47
Skeleton DPI test app
2014-01-21 00:28:40 +01:00
Sebastian Kügler
0a3a236dfb
Merge branch 'sebas/theme'
2014-01-15 12:49:42 +01:00
Marco Martin
85070fc276
Merge branch 'mart/kdeclarativeNamespace'
2014-01-14 22:27:59 +01:00
Alex Richardson
afe17f1dca
Use QExplicitlySharedDataPointer as the replacement of KSharedPtr
...
This should be slightly more efficient than the solution from e7e2eedd
which uses QWeakPointer and QSharedPointer
REVIEW: 114932
2014-01-14 19:41:04 +01:00
Marco Martin
92fe107329
put namespace around KDeclarative
2014-01-13 21:21:14 +01:00
Sebastian Kügler
374d230932
wallpaperForSize moves to Plasma::Theme
2014-01-13 02:11:37 +01:00
Sebastian Kügler
ea2a4db7ab
Move spacing, stylesheet and mSize into Plasma::Theme
2014-01-13 01:31:46 +01:00
Sebastian Kügler
a9b1f2c619
Most of iconSize moves to Plasma::Theme
...
The QQmlPropertyMap isn't moved with this commit, this needs a bit more
changing, so we do a separate one for that, once the more trivial stuff
is moved out.
2014-01-12 20:10:19 +01:00
Sebastian Kügler
25dcdd39a4
Color properties move into Plasma::Theme
...
They're now convenience API in Plasma:Theme, PlasmaCore.Theme is
becoming smaller and smaller. Another nail in its coffin.
2014-01-12 19:49:56 +01:00
Sebastian Kügler
13242c8a5f
Move smallestFont and defaultFont properties into Plasma::Theme
2014-01-12 19:33:56 +01:00
Sebastian Kügler
eba1a79b57
themeName, useGlobalSettings and wallpaperPath move into Plasma::Theme
2014-01-12 19:17:37 +01:00
l10n daemon script
e03580242e
SVN_SILENT made messages (.desktop file)
2014-01-12 04:11:43 +00:00
l10n daemon script
a12184e857
SVN_SILENT made messages (.desktop file)
2014-01-11 04:00:30 +00:00
Aurélien Gâteau
e7e2eeddc0
Plasma::Svg: Replace use of KSharedPtr with QWeakPointer and QSharedPointer
...
This removes the last dependency from plasma-framework on kde4support.
This change is a bit more involved than other kde4support removals because
QSharedPointer does not provide a count() method. I therefore reworked the code
to store the SharedSvgRenderer as a QWeakPointer in s_renderers, making it
possible to detect when the last one goes away by creating a QWeakPointer guard
in SvgPrivate::eraseRenderer().
REVIEW: 114912
2014-01-09 10:13:57 +01:00
Aleix Pol
eb83537f63
Not being able to load an applet is a problem important enough to be a warning
2014-01-07 13:48:00 +01:00
Martin Gräßlin
e50dbc413e
Port EffectWatcher to XCB
...
Saves quite a lot of roundtrips to the XServer. Most important we
fetch the atom only once which means we don't have to refetch when
checking the property notify events.
REVIEW: 112445
2014-01-07 10:39:44 +01:00
David Faure
8b5834c28c
Adapt to newer new ThreadWeaver includes (e3b4312fe9a2 in threadweaver)
2014-01-05 12:03:17 +01:00
Sebastian Kügler
160e97cbba
Adapt to API changes in ThreadWeaver
...
Reviewed-by: Mirko Böhm <mirko@kde.org>
2014-01-05 02:10:24 +01:00
David Faure
e577f4e588
adjust for new (= old) kdnssd header prefix
...
Make sure to update kdnssd-framework first.
2014-01-03 14:45:59 +01:00
Marco Martin
84df832f5c
Merge branch 'mart/modelsInDataEngine'
2014-01-02 11:05:20 +01:00
David Faure
9f6611b73d
remove unused include
2014-01-01 14:19:01 +01:00
Marco Martin
a7470063a0
model()->modelForSource()
2013-12-30 10:42:25 +01:00
Marco Martin
dea7942533
add DataEngine::setModel
2013-12-30 10:22:06 +01:00
Alex Merry
778bf0ac0b
Clean up target_link_libraries for KF5Plasma
...
It is now a single call using PUBLIC and PRIVATE keywords. This removes
a CMake warning about using LINK_INTERFACE_LIBRARIES.
REVIEW: 114683
2013-12-27 16:29:14 +00:00
Marco Martin
0d77298d1b
OR, not AND
...
a source is unused if there anre no relays OR nothing directly connected
2013-12-24 17:35:48 +01:00
Marco Martin
f692b5aa74
crash--
2013-12-24 17:11:27 +01:00
Marco Martin
e272c31300
OR, not AND
...
a source is unused if there anre no relays OR nothing directly connected
2013-12-24 16:58:08 +01:00
Marco Martin
124139c2bf
working models, add an example applet
2013-12-24 15:21:21 +01:00
Marco Martin
c318acb242
make use of the model embedding
2013-12-24 14:29:53 +01:00
Marco Martin
98d8bacf2b
Revert "remove unused typedefs"
...
This reverts commit 104e8d9e1f
.
2013-12-24 14:05:08 +01:00
Marco Martin
80d4ba326e
Revert "remove unused typedefs"
...
This reverts commit 104e8d9e1f
.
2013-12-24 14:02:20 +01:00
Marco Martin
eb47805d72
DataContainer can carry a QAbstractItemModel aroun
...
same rules of sharing and memory management apply.
The model will be shared between all visualizations and deleted when nobody is connected to the source anymore
2013-12-24 13:51:20 +01:00
Marco Martin
35b43f097e
remove some references to graphicsitems
2013-12-24 12:35:24 +01:00
Marco Martin
104e8d9e1f
remove unused typedefs
2013-12-24 11:28:49 +01:00
Aleix Pol
d2992acfa7
Fix QObject::connect() warnings
...
Adapt to changes in Plasma::Corona
2013-12-19 17:31:28 +01:00
Christophe Giboudeaux
09ccb8712b
Forgot to remove the line
...
GIT_SILENT
2013-12-19 15:39:25 +01:00
Christophe Giboudeaux
26948d0cea
Fix includes
2013-12-19 15:23:02 +01:00
Christophe Giboudeaux
d71f581115
Remove unneeded includes
2013-12-19 15:23:02 +01:00
Àlex Fiestas
cddee3cbf2
Use KActionCollection::addAction instead of add<T>
...
I'm not sure for what reason this was changed but it is clearly wrong,
we don't want to create a new action but rather re-add (as the hack says)
the action we took before.
Fixes "Empty action" in toolbox.
2013-12-18 21:36:28 +01:00
Aleix Pol
1e9322500f
Define DNSSD as a dependency
2013-12-18 18:30:54 +01:00
Aleix Pol
32868d73d2
Revert "KDNSSD framework was renamed to DNSSD"
...
This reverts commit 493d19f362
.
My bad, sorry guys
2013-12-18 18:26:00 +01:00
Aleix Pol
493d19f362
KDNSSD framework was renamed to DNSSD
...
Adapt to the change
2013-12-18 18:18:10 +01:00
Alex Merry
de868b6047
Fix build now DNSSD is KDNSSD
2013-12-18 00:05:04 +00:00
David Edmundson
37840b1490
Add default screenForContainment implementation
2013-12-17 15:46:57 +01:00
David Edmundson
a26913ccac
Move screen management logic in ShellCorona
...
Previously shells, activities, shellcorona and corona all tried to
manage
which screen a containment was on.
This version moves all screen management into ShellCorona so we have a
central place for keeping tracking of containments, activities and
screens.
2013-12-16 15:30:13 +01:00
Aurélien Gâteau
02d6b37976
Renames for the KF5 prefix
2013-12-11 21:40:54 +01:00
Aurélien Gâteau
175204c453
KF5 prefix fixes
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
David Edmundson
ef58fdbf6f
Remove Applet::Private::isContainment
...
Instead determine by introspecting if this inherits from Containment
REVIEW: 114405
2013-12-11 15:50:48 +01:00
David Edmundson
1f83fdcc3c
Reduce warnings starting the pixmap save timer from other threads
...
REVIEW: 114382
2013-12-11 14:05:40 +01:00
Martin Gräßlin
718251466a
Needs KGlobalAccel
2013-12-10 08:25:23 +01: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
David Edmundson
66094ef733
Remove X-Plasma-DefaultSize from applet service type
2013-11-27 17:04:17 +01:00
l10n daemon script
7726bc82e9
SVN_SILENT made messages (.desktop file)
2013-11-24 04:10:26 +00:00
Aleix Pol
f187db1e86
Remove KDE4Support dependency from plasma-frameworks (almost)
...
Stop using classes from kde4support:
- KComponentData is deprecated, it will be using QCoreApplication::
applicationName() and QCoreApplication::applicationVersion(). Of course,
this means that the existing shells will have to be ported. I have no
problem with doing that port myself, if I'm told where to look into.
- Drop usage of KLocale, ported to QLocale
- Drop usage of KStandardDirs, ported to QStandardPaths
- Drop usage of KIcon, ported to QIcon
Furthermore, there's a module in src/declarativeimports/locale that IIUC
exposes KLocale bindings to QML. A specific plan to port it should happen
as well.
REVIEW: 113920
2013-11-22 13:03:29 +01:00
Aleix Pol
f97f506acb
Remove unused variables from the cmake scripts
2013-11-15 17:00:56 +01:00
Aleix Pol
2cb4ebd6f5
Code cleanup
...
Remove unused includes
Remove void code logic (KCMUTILS_LIBS was always empty anyway)
2013-11-15 16:56:17 +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
Bhushan Shah
80cb807aaa
Make plasma-framework build without tests
...
REVIEW: 113831
2013-11-13 12:04:22 +05:30
Aleix Pol
392fa639b6
Only include QCA includes where needed
...
There's no need to make all the framework look for the QCA includes while
they're only being used by the remote part. It could possibly be made more
specific, but I don't think those are yet being used anyway.
2013-11-11 18:29:32 +01:00
Marco Martin
67f459609a
make apidocs reflect reality
2013-11-04 13:11:54 +01:00
l10n daemon script
130ccfb50d
SVN_SILENT made messages (.desktop file)
2013-11-02 03:45:23 +00:00
Christoph Feck
f114f7310d
Fix build with latest ThreadWeaver
...
REVIEW: 113535
2013-11-01 19:08:45 +01:00
Kevin Ottens
8507084d62
Use the target now that KDE4Support exports one
2013-10-28 12:56:13 +01:00
l10n daemon script
beb8322c3d
SVN_SILENT made messages (.desktop file)
2013-10-27 04:03:10 +00:00
Marco Martin
60e5a57c23
don't double signal containmentAdded
2013-10-23 22:38:41 +02:00
Martin Klapetek
17e95850fa
Use proper default containment name
...
Fixes the case when loading the default containment would fail because
the default one couldn't be found
Reviewed-by: Sebastian Kügler
2013-10-23 15:25:02 +02:00
Kevin Ottens
c61c65d8e7
Make it link
2013-10-22 21:56:11 +02:00
Kevin Ottens
ce00ca976e
KDE4Attic is gone
2013-10-22 18:02:39 +02:00
Marco Martin
d7aa34cc6c
implement uninstall()
2013-10-22 11:20:42 +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
Marco Martin
800e5ec91c
use the ctivity class and Kactivities
...
just building, issues with linking with kactivities, not used yet
2013-10-16 21:01:39 +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
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
53f12ccdde
Add the dir for the plasma_export.h file.
2013-10-12 15:55:19 +02:00
Stephen Kelly
383660433c
Try to fix the plasma include dirs failure on bko.
...
I can't reproduce it.
2013-10-12 15:49:47 +02:00
Stephen Kelly
bef789642e
Remove obsolete include_directories use.
2013-10-12 15:25:19 +02:00
Aleix Pol
a3c7a9690f
Make the runners API compile again
...
Recently there's been some big changes in the ThreadWeaver API.
So big that they break the source compatibility we were supposed to
maintain, big time.
This patch tries to port plasma-framework to that new API.
REVIEW: 113179
2013-10-10 20:28:46 +02:00
Stephen Kelly
badeec199d
Add the include/KDE dir to the needed incude directories.
2013-10-10 13:03:14 +02:00
Sebastian Kügler
bf03242380
Disable krunner-related code from the build
2013-10-08 17:37:15 +02:00
Sebastian Kügler
36dfe61309
Disable krunner-related classes from libplasma
...
They will be rethought, but would be blocking a threadweaver merge right
now
CCMAIL:me@vhanda.in
2013-10-08 13:47:16 +02:00
Ben Cooksley
1757ef8899
Reverse accidental change
2013-10-07 23:49:28 +13:00
Ben Cooksley
d2115ae938
Set an include path with the KF5::plasma target.
...
REVIEW: 113139
2013-10-07 23:48:05 +13: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
f83e8f421a
remove unneeded includes
2013-10-05 06:19:51 +02:00
Sebastian Kügler
c244c5a24a
Port theme away from KGlobalSettings
2013-10-05 06:19:51 +02:00
Sebastian Kügler
18c12fb520
Port Plasma::Svg away from KGlobalSettings
2013-10-05 06:19:51 +02:00
Sebastian Kügler
2ca0e0eff2
find KDELibs4
2013-10-05 04:30:19 +02:00
Sebastian Kügler
38fb14baaa
KGlobalSettings replaced by QFontDatabase for smallestReadableFont
2013-10-05 02:48:09 +02:00
Sebastian Kügler
1d42fdb7a0
use lowercase includes
2013-10-05 02:48:09 +02:00
Sebastian Kügler
0aa6247dd9
Use target instead of var for KF5::KI18n
2013-10-04 23:44:36 +02:00
Sebastian Kügler
47a38c5edd
Use target instead of var for KF5::KService and KCoreAddons
2013-10-04 23:42:16 +02:00
Sebastian Kügler
80a4e61a4e
Use target instead of var for KF5::Solid
2013-10-04 23:40:30 +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
Stephen Kelly
0e8f31644b
Add some missing links.
...
The
2013-10-01 14:12:29 +02:00
Martin Gräßlin
ea376016c0
Add notify signal for Svg::imagePath property
...
The missing notify signal was causing problems in QtQuick2:
"depends on non-NOTIFYable properties".
Reviewed-By: Marco Martin
2013-10-01 11:34:39 +02:00
Sebastian Kügler
8dcfa386d0
Fix test
2013-09-26 02:00:03 +02:00
Sebastian Kügler
c49c093573
Merge branch 'master' into sebas/pluginlocator
2013-09-26 01:38:16 +02:00
Sebastian Kügler
5b33844a0b
Look up dataengines in kf5/plasma/dataengines
...
This changes the path where to find dataengines to the
subdirectory-per-servicetype setup.
Note: You'll need to update and reinstall kde-workspace/plasma, to
install the dataengines into the new path.
CCMAIL:plasma-devel@kde.org
2013-09-26 01:34:27 +02:00
Sebastian Kügler
8c93578acf
Adjust to new API
2013-09-25 17:57:12 +02:00
Eike Hein
7f10a19acd
Fix build.
2013-09-25 09:36:33 +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
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
Sebastian Kügler
2817591bee
kcoreauthorized.h -> kauthorized.h
2013-09-16 16:16:52 +02:00
Marco Martin
786bd7b7af
emit uiready also for empty containments
2013-09-13 20:03:25 +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
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
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
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
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
Wojciech Kapuscinski
ea835ccdb1
remove all links to kdeqt5staging
...
QCommandLineParser is now in qt5
REVIEW: 112558
2013-09-10 10:13:05 +02:00
Sebastian Kügler
8915fd4004
Show package path in warning
2013-09-03 03:25:24 +02:00
Marco Martin
de6d0f12d0
Corona::packageChanged() signal
...
views listen to it to know when to reload theirview qml file
2013-09-02 21:06:35 +02:00
Marco Martin
03b812ea06
move ShellPackage in libplasma
...
the shell plugin loader only has the look and feel package now
2013-09-02 19:25:03 +02:00
Marco Martin
b32a42c8e8
Corona::setPackage(QString) uses a Package
...
* symmetrical api in Corona
* there is no default package
2013-09-02 18:04:22 +02:00
Ivan Čukić
f786c74020
Ported the broken branch to a new one
2013-08-31 17:47:29 +02:00
Marco Martin
68a693af67
adapt to api change
2013-08-28 21:08:23 +02:00
Sebastian Kügler
9b1b090159
Install header for dataengineconsumer
2013-08-28 03:52:14 +02:00
Marco Martin
39b49bf464
get rid of containmentActions::config()
2013-08-27 12:10:51 +02:00
Sebastian Kügler
bcbfea3576
Less debug
2013-08-27 04:27:48 +02:00
Marco Martin
9a9ac9f9e5
containment actions config ui fully working
2013-08-26 21:22:06 +02:00
Marco Martin
0a3eae6806
correctly show configuration ui
...
but kded5 goes berserk when it gets closed
2013-08-26 17:50:17 +02:00
Marco Martin
b768f17c14
get rid of paintInterface
2013-08-20 18:19:39 +02:00
Marco Martin
590cb7baa7
a property in Applet to tell if the user is configuring
...
pure model, doesn't actually carry the config dialog, but serves as bookkeeping
2013-08-20 18:17:20 +02:00
Martin Gräßlin
531e6c3db5
Fix linking
...
KDEUI is dead which caused quite some collateral damage in our
CMakeLists.
2013-08-20 07:47:09 +02:00
l10n daemon script
c3742a068c
SVN_SILENT made messages (.desktop file)
2013-08-20 04:24:25 +00:00
l10n daemon script
3880ffb13f
SVN_SILENT made messages (.desktop file)
2013-08-17 04:14:06 +00:00
Marco Martin
902f98ed6e
make sure the plugin config gets restored
2013-08-14 15:13:35 +02:00
Marco Martin
834f73a101
fix loading of containmentactions plugins
2013-08-14 14:09:01 +02:00
Aaron Seigo
55d6c78c9a
forward port of patch from master to fix crash due to non-existing theme
2013-08-14 14:07:19 +02:00
Marco Martin
6be0228694
export containmentactions plugins in the new way
2013-08-14 11:45:12 +02:00
Sebastian Kügler
0d909073c5
noise--
2013-08-14 05:48:03 +02:00
Sebastian Kügler
c76b5137e2
Fix empty group operations
...
There appears to be a subtle change in KConfig*, which means that if a
config group is empty, it won't be listed in groupsMap. Since operations
files can have empty groups, which are simply calls without arguments,
these would not be listed, and thus not be callable at all.
Fix: Add a dummy item per group, not beautiful, but effectively makes it
work.
2013-08-14 03:29:46 +02:00
Sebastian Kügler
61fc0fece0
replace testcontainment with real desktopcontainment
...
Delete the testcontainment package, which is only one file + metadata
anyway.
This means that in order to run the default plasma-shell, an
installation of kde-workspace[frameworks-scratch] is needed.
2013-08-12 22:59:21 +02:00
Marco Martin
0978d2f73a
Merge branch 'mart/prettyStartupSequence'
...
Conflicts:
src/scriptengines/qml/plasmoid/containmentinterface.cpp
2013-08-12 14:42:58 +02:00
Marco Martin
04650605e5
don't emit uireadychanged if not changed
2013-08-12 13:38:31 +02:00
Marco Martin
8750d01f40
move the tracking of uiReady into libplasma
...
doesn't still have nothing about ui, is completely bookkeeping, but is
easier to have it correct there
2013-08-09 21:51:13 +02:00
Sebastian Kügler
59ea65e859
Include QUrl instead of qurlpathinfo.h
...
Fixes build. Thanks to Teo for detective work! :)
CCMAIL:teo@kde.org
2013-08-09 17:06:41 +02:00
Sebastian Kügler
fd3f1eaa35
Reduce KDE4 usage in cmake setup
2013-08-09 05:22:20 +02:00
Sebastian Kügler
db9b0016d1
remove last remains of kdebug
2013-08-09 04:14:26 +02:00
Marco Martin
5d4f1b381f
load the wallpaper before setting the screen
...
we want the wallpaper showing before the plasmoids.
we still need to load the wallpaper only after a screen has been
assigned, but will be done after
2013-08-08 17:59:30 +02:00
Marco Martin
0ed6b09e85
remove relkeaseVisualFocus, was unused and not belonging to Applet
...
anymore
2013-08-08 13:37:36 +02:00
Sebastian Kügler
7554419e1d
Remove K_EXPORT_PLUGIN macro from plasma/scripting
2013-08-07 02:52:37 +02:00
Sebastian Kügler
606c565f4a
Remove deprecated K_EXPORT_PLUGIN from libplasma
2013-08-07 02:50:20 +02:00
Kevin Ottens
418bcfa75a
Add missing includes
...
The latest changes to KImageCache are slightly source incompatible, so
some types have to be included earlier.
2013-08-06 18:59:47 +02:00
Vishesh Handa
cf445d2cdb
Plasma QueryMatch: Fix documentation about non existing parameter
2013-08-06 18:50:27 +05:30
Marco Martin
d654c68713
don't call a ctor from another
...
this should work with stricter compiler options
2013-08-06 15:06:07 +02:00
Sebastian Kügler
03045bbfd1
Allow a bit more time for copying,
...
should fix spurious failures on our build slaves
2013-08-05 17:59:32 +02:00
Sebastian Kügler
b89451fb25
Merge branch 'master' into sebas/kplugins
2013-08-05 16:30:23 +02:00
Chusslove Illich (Часлав Илић)
2e7c58b987
Temporary fix for translations location binding.
...
insertCatalog calls will not be used either way.
2013-08-05 11:19:11 +02:00
l10n daemon script
07181e036c
SVN_SILENT made messages (.desktop file)
2013-08-02 04:25:21 +00:00
Sebastian Kügler
3e35fe8baa
Fix multiline qDebug
2013-08-01 12:20:29 +02:00
Sebastian Kügler
d9aa851e17
Fix fallout from qDebug -> kDebug porting
...
* Multi-line debug statements were essentially broken
* There's still a bunch of #include "QDebug" in there, which seems wrong
* It's not necessary to comment most occurrences in src/plasma, since
they're wrapped wiht #ifdef NDEBUG already.
CCMAIL:ervin@kde.org
2013-08-01 12:15:38 +02:00
Sebastian Kügler
767cd813ae
Fix qDebug/kDebug port
...
Kevin, this apparently wasn't caught by your script. Just so you know.
:)
CCMAIL:ervin@kde.org
2013-08-01 11:47:01 +02:00
Sebastian Kügler
f034b84daf
add ctor back in that got lost during the merge
2013-07-30 21:31:12 +02:00
Sebastian Kügler
b9dec2cd99
Use kservice test as well
2013-07-30 21:26:47 +02:00
Sebastian Kügler
fd65125a24
Change macro name according to change in kdelibs
2013-07-30 21:26:16 +02:00
Kevin Ottens
0e590217f8
Port away from kdebug
2013-07-30 08:05:09 +02:00
Sebastian Kügler
839c271535
Merge branch 'master' into sebas/kplugins
2013-07-30 01:09:40 +02:00
Sebastian Kügler
33e7bc3f90
QVL is not needed in private parts
2013-07-29 17:25:08 +02:00
Sebastian Kügler
bed3980eba
Add macro for metadata handling, clean up
2013-07-29 17:22:59 +02:00
Sebastian Kügler
8da8375802
brutally add KDE4Attic
2013-07-29 11:50:47 +02:00
Sebastian Kügler
66a0a5d4e7
Clean up some KDE4-specific calls
2013-07-29 00:39:32 +02:00
Sebastian Kügler
6aeac53535
Remove QVariantList from DataEngine ctor
2013-07-28 13:06:32 +02:00
Sebastian Kügler
d3b9cf5f35
merge
2013-07-25 14:45:49 +02:00
Kevin Ottens
c42406cabc
Pull in the KDE4Attic dependency
2013-07-25 11:54:15 +02:00
Martin Gräßlin
20b9d17e4c
Adjust RunnerManager to new ThreadWeaver API using JobPointer
...
ThreadWeaver does not use Job* anymore which made the code compile fail
and some connects being wrong.
This patch adjusts RunnerManager to also use QSharedPointer<FindMatchJob>
instead of FindMatchJob*. It simplifies a few things as we do no longer
have to call e.g. qDeleteAll and fixes the incorrect connects.
REVIEW: 111650
2013-07-25 06:58:21 +02:00
l10n daemon script
07df8225d8
SVN_SILENT made messages (.desktop file)
2013-07-23 04:05:37 +00:00
Sebastian Kügler
1ac357d06b
pimp plugintest -- all work
2013-07-23 03:28:37 +02:00
Sebastian Kügler
7a4a2c438f
Clean up dataengine ctor
2013-07-23 01:49:13 +02:00
Sebastian Kügler
20aab89cd7
test name has changed
2013-07-23 01:30:52 +02:00
Sebastian Kügler
58b0398089
test name streamlined
2013-07-23 00:33:22 +02:00
Sebastian Kügler
f1f2c0518b
Disable non-compiling line, add warning
2013-07-22 23:34:29 +02:00
Sebastian Kügler
c7927b907b
Merge branch 'master' into sebas/kplugins
2013-07-22 16:37:25 +02:00
Sebastian Kügler
3894e8989e
Adapt to new threadweaver API
...
dequeueRaw is not yet in threadweaver, so this commit goes from "doesn't
build" to "almost builds", it will fix itself once Mirko has committed
the dequeueRaw patch to threadweaver, however.
2013-07-22 14:13:45 +02:00
Sebastian Kügler
668a1bc05e
Merge branch 'master' into sebas/kplugins
2013-07-16 17:49:21 +02:00
Benjamin Port
ec8cb5662b
Remove include dirs for ki18n not needed anymore with Target
2013-07-16 11:05:03 +02:00
Benjamin Port
a730d47c3c
fix build (ki18n rename)
2013-07-15 16:01:59 +02:00
Benjamin Port
239d12360c
kprotocolinfo header not in kio/ anymore
2013-07-15 15:24:25 +02:00
l10n daemon script
f8c4a90b14
SVN_SILENT made messages (.desktop file)
2013-07-14 04:18:53 +00:00
Sebastian Kügler
84cd704368
Merge branch 'master' into sebas/kplugins
2013-07-12 10:35:09 +02:00
Alex Neundorf
454bf83be3
-adapt to current changes in kdelibs regarding kde4support: use ${KDE4Support_LIBRARIES} when using it
...
Search for KDE4Support, but after searching KDELibs4, this is hackish, but currentlx necessary due to
cyclic dependencies we still have
Alex
2013-07-11 22:57:04 +02:00
Sebastian Kügler
20e67f4db6
Merge branch 'master' into sebas/kplugins
...
Conflicts:
CMakeLists.txt
2013-07-10 03:48:15 +02:00
Sebastian Kügler
d56bf246de
Port PluginLoader from KStandardDirs to QStandardPaths
2013-07-10 03:27:19 +02:00
Sebastian Kügler
0822e4cb9e
Applet::globalShortcut becomes QKeySequence
...
- Port away from KShortcut
- Use QKeySequence instead of QShortcut (which might be the obvious
choice, for two reasons:
- QKeySequence doesn't require QWidgets
- It's really all we need
This reduces KShortcut and QShortcut usage in plasma-framework to zarro.
2013-07-10 02:33:28 +02:00
Sebastian Kügler
843ad0b429
Remove kmenu include -- reduces warnings
2013-07-10 02:32:30 +02:00
Sebastian Kügler
946a800a7a
Replace QAction with KAction in containment
...
With this commit, plasma-framework is free from (direct) usage of
KAction. \o/
Removes any left-over KAction includes and fw-declarations.
2013-07-10 01:59:39 +02:00
Sebastian Kügler
af46f93a57
Corona's lock action becomes a QAction
2013-07-10 01:49:59 +02:00
Sebastian Kügler
fc2afcb9a1
Port global applet shortcut from KAction to QAction
...
- use QAction instead of KAction
- use KGlobalAccel for global shortcut registration and query
2013-07-10 01:45:41 +02:00
Sebastian Kügler
e02925b7b5
Use QAction internally in defaultActions()
2013-07-10 00:15:55 +02:00
Sebastian Kügler
46cbf56226
Use module name in includes
2013-07-10 00:12:26 +02:00
Sebastian Kügler
aff9c00761
KMenu becomes QMenu throughout
2013-07-10 00:12:26 +02:00
Sebastian Kügler
6edfe46e56
Use QAction internally in defaultActions()
2013-07-10 00:11:58 +02:00
Sebastian Kügler
21c04fd3d3
Merge branch 'master' into sebas/kplugins
...
Conflicts:
CMakeLists.txt
2013-07-09 02:34:36 +02:00
Sebastian Kügler
ca3d78dd46
Use module name in includes
2013-07-09 01:50:34 +02:00
Sebastian Kügler
ca5c059ecf
KMenu becomes QMenu throughout
2013-07-09 00:55:03 +02:00
Sebastian Kügler
e9a459a262
Instantiate KPluginInfo from args
...
This uses the new ctor in KPluginInfo, which handles the args passed
from KPluginLoader nicely and constructs a KPluginInfo from them.
2013-07-04 02:58:26 +02:00
Sebastian Kügler
5d41347527
Experiment with loading the KPluginInfo from the plugin's metadata
2013-07-03 05:13:25 +02:00
Sebastian Kügler
8b2eae67c5
Add missing cmake file
2013-07-01 13:51:04 +02:00
Sebastian Kügler
07c17812ca
Merge branch 'master' into plugins
...
Conflicts:
CMakeLists.txt
2013-07-01 04:17:09 +02:00
Sebastian Kügler
a21400096a
Load the time engine from the KService
2013-06-29 05:50:59 +02:00
Sebastian Kügler
9035691567
Adjust test to new api
2013-06-29 05:50:59 +02:00
Sebastian Kügler
6c0a13f3b1
use create factory
2013-06-29 05:50:59 +02:00
Sebastian Kügler
849d0a2b17
header has changed
2013-06-29 05:50:59 +02:00
Sebastian Kügler
dac60f8ab8
Load the time engine and get data out of it.
2013-06-29 05:50:59 +02:00
Kevin Ottens
12b2cdd19a
Now this returns true
2013-06-27 18:36:20 +02:00
Kevin Ottens
c36c625d9c
Port away from KUrl
2013-06-27 16:39:03 +02:00
Sebastian Kügler
dc94c2c83b
Add pluginstest to build
2013-06-24 15:24:33 +02:00
Sebastian Kügler
7830cad43c
small test app for plugin loading
...
Loads a dataengine right now, for testing purposes of KPlugin*
2013-06-24 15:23:45 +02:00
Sebastian Kügler
6389825172
User Q_ macros for signals and slots
2013-06-21 02:22:02 +02:00
Sebastian Kügler
cd7f92e648
Port libplasma unit tests to ECM macros
2013-06-19 02:06:55 +02:00
Andrea Scarpino
0ea93fd3d3
MacroLogFeature has been removed. See ECM_SouceIncompatChanges
...
REVIEW:111074
2013-06-17 21:43:59 +02:00
Sebastian Kügler
22d261759b
Fix up library finding
...
* Generate and install and include PlasmaTargets.cmake file
* set Plasma_LIBRARIES to KF5::plasma
-> kde-workspace build works for me.
2013-06-13 16:01:06 +02:00
Marco Martin
50ee44b70d
Merge branch 'PlasmaTypesClass'
2013-06-12 11:24:03 +02:00
l10n daemon script
6b185d2ba4
SVN_SILENT made messages (.desktop file)
2013-06-08 03:48:30 +00:00
Gregor Tätzner
ad6f58a16c
Fix build error: convert qdatetime to uint
2013-06-05 19:41:58 +02:00
Aaron Seigo
3074728198
missing const
2013-06-05 16:03:54 +02:00
Aaron Seigo
57fc52b385
forward port the cache file versioning so it drops properly in all cases
2013-06-05 15:58:51 +02:00
Kevin Ottens
9d93cb7ccc
Those files are gone, don't try to install them
2013-05-22 11:06:21 +02:00
Marco Martin
e258111e68
remove some services of deleted stuff
...
such as wallpapers and toolboxes
2013-05-21 12:02:42 +02:00
Script Kiddy
8df122a0f6
SVN_SILENT made messages (.desktop file)
2013-05-20 09:04:00 +02:00
Marco Martin
f22e4be172
fix startupcompleted constraints
...
use the new panel toolbox
2013-05-16 13:08:05 +02:00
Alex Merry
98130b33fe
Add the "theme" directory to the plasmoid directory structure
...
This adds an extra step to the lookup of SVG images created with the
Svg() global function: after looking in images/ in the plasmoid and then
in the desktop theme, it looks in theme/$DESKTOP_THEME_NAME and then
theme/ in the plasmoid.
This allows plasmoid authors to add images that they want to allow theme
authors to override.
Forward-port of review request 109857.
2013-05-16 13:05:04 +02:00
Alex Merry
ba1a7d0d35
Fix debug build
...
Fix a pointer-dereference of a non-pointer variable.
2013-05-16 13:05:04 +02:00
Marco Martin
749d8d900c
add private ctor
2013-05-15 19:56:13 +02:00
Marco Martin
aa2c4a6595
add all Q_ENUMS in Plasma::Types
2013-05-15 19:48:44 +02:00
Marco Martin
40fd2f23ca
Rename BackgroundHints
2013-05-14 21:02:54 +02:00
Marco Martin
13045faffa
rename ItemStatus
2013-05-14 20:49:50 +02:00
Marco Martin
6e113e6176
rename MarginEdge
2013-05-14 20:37:16 +02:00
Marco Martin
8f2e5b2375
renamed ComponentType
2013-05-14 20:33:34 +02:00
Marco Martin
7761a995f2
rename ImmutabilityType
2013-05-14 20:27:32 +02:00
Marco Martin
aad4945cf8
rename PopupPlacement
2013-05-14 19:16:37 +02:00
Marco Martin
7b3c29ee07
rename Plasma::Position
2013-05-14 19:08:43 +02:00
Marco Martin
6b4d1f31d1
rename Plasma::Direction
2013-05-14 18:44:12 +02:00
Marco Martin
52b42a247e
rename Plasma::ActionType
2013-05-14 18:39:07 +02:00
Marco Martin
c90e6d23cf
rename Plasma::ContainmentType
2013-05-14 18:34:40 +02:00
Marco Martin
812b9a06ab
get rid of Plasma::Location
2013-05-14 18:27:27 +02:00
Marco Martin
9b9fbf6eb9
get rid of Plasma::FormFactor
2013-05-14 18:19:33 +02:00
Marco Martin
ad2fe77745
get rid of Plasma::Constraint
2013-05-14 18:08:58 +02:00
Marco Martin
bc5d14ddb1
fix startupcompleted constraints
...
use the new panel toolbox
2013-05-13 14:25:57 +02:00
Alex Merry
33d41aea3d
Add the "theme" directory to the plasmoid directory structure
...
This adds an extra step to the lookup of SVG images created with the
Svg() global function: after looking in images/ in the plasmoid and then
in the desktop theme, it looks in theme/$DESKTOP_THEME_NAME and then
theme/ in the plasmoid.
This allows plasmoid authors to add images that they want to allow theme
authors to override.
Forward-port of review request 109857.
2013-05-11 12:30:07 +01:00
Alex Merry
355a95fe92
Fix debug build
...
Fix a pointer-dereference of a non-pointer variable.
2013-05-11 12:24:24 +01:00
Marco Martin
e07600a83f
Put all Plasma emums in a Types class
...
This makes possible to use them directly frmo QML
as a minus, is not pretty and requires tons of search and replace in old
c++ code
2013-05-10 19:29:13 +02:00
Script Kiddy
efd78e230e
SVN_SILENT made messages (.desktop file)
2013-05-09 09:23:56 +02:00
Aaron Seigo
001d88a0a4
bump the v#
2013-05-07 12:32:05 +02:00
Script Kiddy
2160fa2c71
SVN_SILENT made messages (.desktop file)
2013-05-06 09:33:23 +02:00
Script Kiddy
051ed6c8ed
SVN_SILENT made messages (.desktop file)
2013-05-04 09:56:14 +02:00
Sebastian Kügler
a8ac6ab694
Add Plasma/Generic servicetype
...
This irons out an asymmetry: Plasma/Generic was never read from
KService, as the service type wasn't registered, we just looked it up in
the right directory.
This patch allows us to use KService to list packages, the
installPackage cmake macro installs the service files for us already.
Apps that look up the package in the "right path" still work.
2013-05-02 23:54:11 +02:00
Marco Martin
1137b4ea5c
remove associated items/widgets
2013-05-02 19:02:06 +02:00
Marco Martin
8f61ecbe49
remove operationsChanged signal
2013-05-02 18:13:05 +02:00
Marco Martin
4397a6c06d
add operationEnabledChanged signal
2013-05-02 18:11:20 +02:00
Marco Martin
08ed91d7e0
Data is a QVariantmap again
...
this means that DataEngines and the Storage Service are directly usable from QML2 again
2013-05-02 18:02:38 +02:00
Marco Martin
465c202b9b
remove dead code
2013-05-02 17:42:07 +02:00
Marco Martin
5b648e5a23
complete migration, storage test passes
...
results still have to be converted in qmaps
2013-05-02 15:33:57 +02:00
Marco Martin
b0530820ec
use variant maps instead of configgroups
...
services operationdescriptions are now QVariantMaps
2013-05-02 14:46:29 +02:00
Marco Martin
aa8ed30fda
ConfigLoaderHandlerMap that loads config in maps
...
ConfigLoaderHandlerMap populates a qvariantmap instead of a kconfigskeleton
will be used by service for operations
2013-05-02 13:31:18 +02:00
Marco Martin
e58ab0bc99
move ConfigLoaderHandler in own header
2013-05-02 11:33:23 +02:00
Marco Martin
1d7c6af919
remove Service::access()
2013-05-02 11:02:06 +02:00
Script Kiddy
fc3f25b2a7
SVN_SILENT made messages (.desktop file)
2013-05-02 09:19:42 +02:00
Script Kiddy
f784cfb07f
SVN_SILENT made messages (.desktop file)
2013-04-30 17:38:15 +02:00
Marco Martin
05667460e5
less friends
2013-04-29 12:45:40 +02:00
Sebastian Kügler
a426264037
fix package root for wallpapers, makes it find the metadata, add debug
2013-04-26 23:48:50 +02:00
Marco Martin
31e39640ce
correct kdeclarative includes
2013-04-26 17:36:45 +02:00
Marco Martin
5e906f24c7
Merge branch 'configdialog_in_shell'
2013-04-26 13:28:08 +02:00
Script Kiddy
03a2990b9f
SVN_SILENT made messages (.desktop file)
2013-04-26 08:58:42 +02:00
Marco Martin
4feb02c329
config ui of applets should work again
2013-04-25 11:43:00 +02:00
Sebastian Kügler
5b95a759c9
use qdebug
2013-04-25 03:24:28 +02:00
Sebastian Kügler
77f8d35ea9
Install wallpaper, shell and lookandfeel servicetypes
2013-04-25 03:23:53 +02:00
Marco Martin
e7ca00e534
move the config dialog in the shell
...
it still doesn't successfully load
2013-04-24 22:54:46 +02:00
Script Kiddy
e1f17c63b6
SVN_SILENT made messages (.desktop file)
2013-04-23 17:19:30 +02:00
Sebastian Kügler
53a70b703d
Add servicetypes for Wallpaper, Shell and LookAndFeel
...
CCMAIL:plasma-devel@kde.org
2013-04-21 18:02:37 +02:00
Marco Martin
79d5724ef1
always emit Containment::requestConfiguration()
...
emit that signal when the configure action is treggered for each applet,
the applet pointer to the interested applet is passed
is the first step for moving config ui i the sell
2013-04-20 18:31:57 +02:00
Sebastian Kügler
788870fffc
Don't crash when an engine failed to load
...
Prevents accessing an invalid KPluginInfo object, which is passed in
here for null engines.
2013-04-10 01:50:31 +02:00
Marco Martin
5a82aa9211
remove RunnerManager::execQuery()
2013-04-08 13:14:17 +02:00
Marco Martin
f9adc7a598
remove DataEngine::init()
...
with only one ctor is not necessary anymore
2013-04-04 18:07:18 +02:00
Marco Martin
4875658944
only one constructor remains
...
explicit DataEngine(const KPluginInfo &plugin, QObject *parent = 0);
2013-04-04 18:05:03 +02:00
Marco Martin
037a86530d
add ctor with a KPluginInfo
2013-04-04 17:43:30 +02:00
Marco Martin
5af5da2687
move all loading function to PluginLoader
2013-04-04 17:34:27 +02:00
Marco Martin
efc1264592
use QHash<QString, QVariant> instead of Data
...
don't use extra typedefs in signatures
2013-04-04 17:34:27 +02:00
Marco Martin
41b3a17011
scheduleSourcesUpdated() is now private
2013-04-04 17:34:27 +02:00
Marco Martin
5c051f10eb
SourceDict -> QHash<QString, DataContainer*>
...
the typedef is still there, but don't use anywhere in the code
2013-04-04 17:34:27 +02:00