Marco Martin
68f2de9ec3
correctly export containment properties
2014-02-04 16:18:45 +01:00
David Edmundson
27e5a2ab46
Fix multiscreen popup positioning
...
This patch makes two changes:
1) don't rely on window()->screen() it's rubbish.
2) if the dialog is parented to a desktop, we want to position
inside the parent, not outside the parent object
REVIEW: 115448
BUG: 330546
2014-02-04 14:55:48 +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
3647ee36ef
Add copyright also in .cpp file
2014-02-04 03:29:31 +01:00
Sebastian Kügler
52c489eee5
Units reads longDuration from config file.
...
This reads the global animation duration value from plasmarc, and gets
notified of changes: change the file, all animations are updated
automatically.
Put this into your plasmarc to disable animations globally:
[Units]
longDuration=0
As you might guess, other values will work as well.
shortDuration will always be 1/5 of this. (For now.)
2014-02-04 03:25:51 +01:00
Sebastian Kügler
09564783a3
Fix wrong property name
2014-02-04 03:15:01 +01:00
Sebastian Kügler
1bfbee809e
const-ref in foreach, clean up debugging
2014-02-04 02:18:28 +01:00
Sebastian Kügler
5f5716791a
Merge branch 'master' into sebas/themeswitch
2014-02-04 02:13:15 +01:00
Sebastian Kügler
e8413e2703
Set default animation duration back to 250
...
Both, 0 and 250 works fine now across our imports and applets.
2014-02-04 02:08:44 +01:00
Sebastian Kügler
1d0c41f936
Fix animations with animations disabled
...
This may sound a bit weird, but we can't just switch off everything, as
in some cases, the animation is not just eye-candy, but carries
important semantics of the UI -- examples are BusyIndicator and
ProgressBar. Behaviour for those is restored.
2014-02-04 01:32:12 +01:00
Sebastian Kügler
86e458cdd0
Normalize animations in PlasmaComponents
2014-02-04 00:16:55 +01:00
Sebastian Kügler
27eae008d6
250ms animations become units.longDuration
2014-02-03 18:56:32 +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
2ba6bd6cbc
PlasmaExtras' animations use units.*Duration
2014-02-03 16:41:57 +01:00
Sebastian Kügler
90d2afb722
Cleanups in units
2014-02-03 16:32:29 +01:00
Sebastian Kügler
30e98ba8f7
units.longDuration and units.shortDuration properties
...
These centralize the duration of animations, currently set to 250 and 50
milliseconds. They're notifiable since we want to be able to switch off
animations at runtime.
CCMAIL:plasma-devel@kde.org
2014-02-03 16:30:50 +01:00
Sebastian Kügler
f49c37a36c
use pluginName()
2014-02-02 02:55:25 +01:00
Sebastian Kügler
1fedbb587c
Allow package deinstallation from package file
...
Uninstall previously only took plugin names. This is unfortunate, since
it made uninstallation from a package file impossible, leaving it to the
user to figure out the plugin name before a package can be uninstalled.
So let's read the plugin name from the zip prior to uninstalling.
2014-02-02 02:33:47 +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
833c2f55dd
plasma-shell reads theming from LookAndFeel package
...
ShellCorona reads the theme from the LookAndFeel package, (defaults,
group "Theme", key name), looks into plasmarc if the LNF theme should be
overridden, and if either exists, it sets the new theme on startup of
plasma-shell.
2014-02-01 23:51:05 +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
Marco Martin
b68bbca6c8
check for validity
2014-01-31 20:03:33 +01:00
Marco Martin
89cb417e9f
propagate sizehints from mainItem
2014-01-31 19:59:45 +01: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
Sebastian Kügler
91a861e3ef
noise--
2014-01-31 03:39:10 +01:00
Sebastian Kügler
0f3c51e859
Fix theme listing and installation
2014-01-31 03:38:43 +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
ac1aba0f2a
Add -t shorthand to plasmapkg
...
This restores backwards compatibility in arguments for theme
installation.
2014-01-31 01:51:31 +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
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
David Edmundson
d7a3a10238
Align Dialog Popups to align to be outside the docks.
...
For the WidgetExplorer we want to show the tooltips to the right of the
scrollbar in the view, not to the right of the delegate the tooltip is
for.
This patch checks if the visualParent is in a dock. If so the popup is
positioned outside
I have also introduced a manual test for Dialog Positioning, and
includied some fixes in the original logic.
REVIEW: 115393
2014-01-30 15:03:28 +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
David Edmundson
60e0754f90
Reduce the number of times syncToMainItemSize is called in Dialog
...
syncToMainItemSize is rather expensive and gets called a lot in item
initalisation as various properties get set.
2014-01-29 18:49:06 +01:00
David Edmundson
9de921e34d
Warnings-- if modelData.seperator is not set
2014-01-29 18:39:20 +01:00
David Edmundson
d43fa35c42
Remove triple include of the same file
2014-01-29 17:22:44 +01:00
Marco Martin
428c10e24c
fullrepresentation and the expander are created on demand
2014-01-29 17:09:43 +01:00
David Edmundson
c9c79e7a42
Optimisation: Don't work out position based on visualParent if there isn't one
2014-01-29 16:54:56 +01:00
David Edmundson
a805af6e7d
Don't emit widthChanged ourselves. QWindow does it in resize()
2014-01-29 16:49:50 +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
Martin Klapetek
2ea398f5a6
Detect current QScreen manually in Dialog
...
QWindow::screen() never ever changes if the window is moved across
virtual screens (normal two screens with X), this seems to be
intentional as it's explicitly mentioned in the docs.
Until that's changed or some more proper way of howto get the current
QScreen for given QWindow is found, we simply iterate over the virtual
screens and pick the one our QWindow says it's at.
This also fixes the OSD having proper shadows in multiscreen environment
2014-01-28 18:19:30 +01:00
Martin Klapetek
203f4a5049
[OSD] Display "%1 Muted" for media players with volume down to 0
2014-01-28 17:07:50 +01:00
Martin Klapetek
a4c4fc05af
Add OSD API for media player's volume changes
...
Reviewed-by: Marco Martin
2014-01-28 15:08:09 +01:00
Martin Klapetek
605ab0f130
Add OSD notifications to plasma-shell
...
As we decided to make the OSD available only for certain things, the API
is intentionally limited to very particular set of things. The list is
not complete yet I believe, but it's definitely a finite and a small set
Also as it's not a public service, I left it under org.kde.plasma_shell
on D-Bus.
And we're still missing all the icons except volume, but Jens is on it.
REVIEW: 115301
2014-01-28 15:08:09 +01:00
Aleix Pol
87a7db3063
Create a MimeDatabase component that maps QMimeDatabase
...
Makes it possible to figure out mimetypes from QML.
REVIEW: 115348
2014-01-28 15:04:19 +01:00
Sebastian Kügler
6dfb4f240b
Make setDevicePixelRatio(qreal) a simple slot
2014-01-28 13:49:23 +01:00
l10n daemon script
831357d98f
SVN_SILENT made messages (.desktop file)
2014-01-28 04:22:11 +00:00
Sebastian Kügler
789a40f15f
Merge branch 'master' into sebas/hidpi
2014-01-28 01:17:19 +01:00
Sebastian Kügler
2a217dff0a
Remove unneeded API
...
- dpi(QQI*) and printScreenInfo(QQI*) goes away, they're mainly useful for
testing.
- setDevicePixelRatio goes private
- clarify DPI computation
2014-01-28 01:15:38 +01:00
Sebastian Kügler
b7fcea471c
Add comment why we read the DPI the way we do
2014-01-28 00:17:32 +01:00
Sebastian Kügler
b102ae5e45
Complete apidocs for Units.
2014-01-27 19:51:08 +01:00
David Edmundson
3abddd8d99
Move python and ruby dataengine bindings from kde-workspace
2014-01-27 19:48:08 +01:00
Sebastian Kügler
b3a5d65580
Complete apidocs for Plasma::Theme
2014-01-27 19:41:39 +01:00
Marco Martin
2f4867bf0c
get rid of the old QtScript bindings
2014-01-27 19:27:59 +01:00
Sebastian Kügler
f374d2880d
Merge branch 'master' into sebas/hidpi
2014-01-26 23:39:00 +01:00
Sebastian Kügler
94540a4262
Workaround seems to have been accidentally disabled
...
This workaround is needed for applet internal qmldirs to be loaded.
Fixes crasher in notifications applet.
2014-01-26 23:24:07 +01:00
Sebastian Kügler
b1bc20259a
units.dp and units.du be gone
...
- They're not used
- They're conceptually broken and arbitrary to our scaling concepts
- The implementation as Q_INVOKABLE isn't very useful
2014-01-25 03:35:00 +01:00
Sebastian Kügler
c8ba9746f2
iconSizes.default be gone
...
This is used nowhere, so better get rid of it before someone gets the
idea.
Leaves us with only one non-scaled icon size. Maybe worth considering to
get rid of this as well, and let Folderview decide?
2014-01-25 03:30:45 +01:00
Sebastian Kügler
11e3d687d9
Remove dialog and toolbar icon sizes
...
Add FIXME for small icon alignment
2014-01-25 03:25:07 +01:00
Sebastian Kügler
124ae423c1
Scale units.iconSizes with dpi
...
This is still pretty rough. It seems to work fine for larger icons, but
smaller ones get misaligned. This will need some corrections, such as
locking the smaller sizes to 16, 22, 32, 48, 64, which should take care
of this issue.
With this change, parts of Plasma scale depending on the DPI. This is
noticeable in Kickoff.
2014-01-25 02:40:52 +01:00
Sebastian Kügler
a2baa1c7c7
Merge branch 'master' into sebas/hidpi
2014-01-24 23:38:37 +01:00
Bhushan Shah
3c0007db22
Provide KFormat wrapper in PlasmaCore for unit conversion
...
REVIEW: 115284
2014-01-24 22:28:04 +05:30
Sebastian Kügler
6d9022dca2
Use int for units.gridUnit
...
It was an int already anyway, so let's be true about this and also
return an int. This reflects pixel-alignment in the API, not just in the
implementation.
2014-01-24 12:33:39 +01:00
Martin Klapetek
c0f53545eb
Provide look&feel package by ShellCorona
...
REVIEW: 115256
2014-01-23 16:23:28 +01:00
Martin Klapetek
fc30bc6b52
Add OSD to look&feel package definition
...
REVIEW: 115257
2014-01-23 15:40:31 +01:00
Marco Martin
e0676f7501
use the new backgroundcontrast effect
2014-01-23 15:17:41 +01:00
Martin Gräßlin
188e421956
Do not overwrite the window type by calling setFlags
...
QWindow::setFlags is manipulating the same X property as
KWindowSystem::setType. Thus our setType never succeeded as the
setFlags overwrote the window type again. In the same way we
have to call setFlags when reverting to the default Normal type.
REVIEW: 115258
2014-01-23 14:26:59 +01:00
Sebastian Kügler
e346c751ec
Allow to reset devicePixelRatio
...
Setting devicePixelRatio to 0 re-reads it and resets it to its default
value.
2014-01-23 04:05:45 +01:00
Sebastian Kügler
cca8a86f98
Rename units.dpiScale to units.devicePixelRatio
2014-01-23 02:18:06 +01:00
Sebastian Kügler
f305950a80
Fix tooltip spacing
2014-01-23 01:50:37 +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
cc7bd8e11e
Port from theme iconsize to units.iconSizes.*
2014-01-23 00:24:38 +01:00
Sebastian Kügler
e10b77f236
Move units from PlasmaComponents into PlasmaCore
2014-01-23 00:06:43 +01:00
Sebastian Kügler
7e5604cc56
icon sizes move into Units
...
They go into the propertymap, so are accessible now with
units.iconSizes.huge, units.iconSizes.large, etc.
2014-01-22 23:59:23 +01:00
Sebastian Kügler
d51711edc6
Add dpi function from theme
...
printScreenInfo() has the debugging prints for now, removes random crap
from the shell output.
2014-01-22 01:36:30 +01:00
Sebastian Kügler
847a61b3d8
Delete ThemeProxy
2014-01-22 01:34:56 +01:00
Sebastian Kügler
e81db11f05
Export Plasma::Theme as theme, remove proxy class
...
The last bits have moved out of ThemeProxy, units is used for iconSizes,
which means we can finally directly use Plasma::Theme, and don't need a
ThemeProxy class anymore.
2014-01-22 01:33:26 +01:00
Sebastian Kügler
0c3e49866a
Add dpiScale property to dynamically scale the whole ui
2014-01-22 01:18:54 +01:00
Sebastian Kügler
60950e8333
Correct api docs
2014-01-22 00:39:54 +01:00
Sebastian Kügler
416029ec4f
Default tooltip uses units.iconSizes -- works fine
2014-01-22 00:30:04 +01:00
Sebastian Kügler
0dc8a7ee53
Move iconSizes from theme here
...
This is means two things:
- icon sizes have moved from theme.iconSizes.* to units.iconSizes.*,
will provide porting script and update docs
- we can kill PlasmaCore's ThemeProxy now. Icon sizing and dpi handling
is kept outside of Plasma::Theme for now, as it pulls in too many
deps.
2014-01-22 00:28:09 +01:00
Sebastian Kügler
c84e549715
Use msize.height, not width for gridUnit
...
This change does two things:
- it increases the gridUnit to 11 pixel on 102DPI, 18 on 170DPI. This
means on the one hand larger sizing, but aligns gridUnit and
theme.largeSpacing consistently, and thus makes these types work
together better.
- it scales the gridUnit with the DPI. The width of the font's bounding
box doesn't change on the displays I've tried, the height does.
As a result, gridUnit now scales linearly with the DPI setting.
2014-01-21 23:47:32 +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
13a6a38628
Some debugging for gridUnit
2014-01-21 17:55:47 +01:00
Sebastian Kügler
af691a9897
Merge branch 'master' into sebas/hidpi
2014-01-21 16:47:52 +01:00
Sebastian Kügler
18c4fc7c60
Improve tooltip spacing, increase allowance for text
2014-01-21 02:47:41 +01:00
Sebastian Kügler
22c12b8424
Temporarily add an invokable to read dpi value
2014-01-21 00:28:40 +01:00
Sebastian Kügler
ff1d062b47
Skeleton DPI test app
2014-01-21 00:28:40 +01:00
Martin Gräßlin
bdc2ad2a84
Add outputOnly property to PlasmaCore.Dialog
...
The outputOnly property allows to specify that the dialog should not
accept any input. Thus it's an output only window which supports click
through. This is obviously platform specific and so far it is only
implemented for the X11 platform using the shape extension.
The input shape needs to be set once the window is visible and thus
the functionality is bound to the visible changed signal. The code
ensures that the required shape extension version is present and only
fetches it once.
REVIEW: 115139
2014-01-20 15:57:44 +01:00
Martin Gräßlin
e4d4f5fc1c
Allow dialogs to be Notifications
...
Extending the WindowType enum by NET::Notification.
REVIEW: 115138
2014-01-20 15:57:10 +01:00
Aleix Pol
db3dd7a994
Improve clipboard types support
...
Try to be more accurate about the translations mimetype <-> variant.
2014-01-18 16:21:57 +01:00
Marco Martin
9e25b45c04
panels in multiscreen is broken, add a todo
...
panel views should be created/deleted according to screen attach/detach
2014-01-17 19:04:03 +01:00
Marco Martin
da6df37de5
fix some crashes
...
- check some guards as qobject_cast may fail.
- destroyed() is emitted too late, the slot managing it can only access a QObject, Containment members aren't valid anymore
2014-01-17 18:59:54 +01:00
Aleix Pol
6b86584dd0
Make it possible to fetch data for a said format
2014-01-17 17:24:04 +01:00
Sebastian Kügler
f517765bd0
Fixed types for plugin recognition in shell
2014-01-16 20:14:19 +01:00
Aleix Pol
1a68e9aabf
--debug
2014-01-16 19:16:08 +01:00
Aleix Pol
2ad7b38392
Create a new Clipboard component
...
Can be used to keep track of the clipboard by setting and fetching
information from it.
2014-01-16 19:15:51 +01:00
l10n daemon script
8e38e619d4
SVN_SILENT made messages (.desktop file)
2014-01-16 04:05:24 +00:00
Sebastian Kügler
ca76aa29f8
Fix some TypeErrors in DefaultToolTip
2014-01-15 12:50:18 +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
cf049f28cb
Merge branch 'master' into sebas/theme
2014-01-13 02:05:44 +01:00
Marco Martin
4235ec4842
export the location as tooltip property
2014-01-13 02:00:45 +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
563035a1fa
themeName is already gone
2014-01-12 23:05:55 +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
Marco Martin
69efa8d941
simplify the qml of the default tooltip
2014-01-12 19:10:06 +01:00
Marco Martin
331b6c5d0d
resize and move the tooltip in one move
2014-01-12 17:29:49 +01:00
l10n daemon script
e03580242e
SVN_SILENT made messages (.desktop file)
2014-01-12 04:11:43 +00:00
Aleix Pol
5c88e300bd
Small changes
...
Fix typo on API documentation
Remove pointless debug output
Remove unneeded loop
2014-01-11 11:17:53 +01:00
l10n daemon script
a12184e857
SVN_SILENT made messages (.desktop file)
2014-01-11 04:00:30 +00:00
Sebastian Kügler
b54b42fcc0
Merge branch 'master' into mart/ToolTipArea
2014-01-10 18:57:58 +01:00
Sebastian Kügler
30d1e6bdba
Fix reference error
2014-01-10 18:57:42 +01:00
David Edmundson
d200bd0d16
Add a new component ModelMenu
...
This is a wrapper round ContextMenu that allows one to populate
the menu items from a model
REVIEW: 114925
2014-01-10 12:28:29 +01:00
Marco Martin
b233c6e735
simplify
2014-01-09 16:36:59 +01:00
Marco Martin
1f2f706c10
bit better with animations
2014-01-09 16:10:17 +01:00
Marco Martin
c53a00ce4b
first crude direction support for tooltips
...
it still needs support for diagonal movements
2014-01-09 15:09:53 +01:00
Aleix Pol
9e46c82733
Remove duplicated calls
...
setPosition will call setGeometry internally, no need to do both.
Only call setEnabledBorder once, with the enabled borders
2014-01-09 13:35:07 +01:00
Marco Martin
3f094d59a5
tooltips always have all the borders
2014-01-09 13:13:29 +01:00
Marco Martin
5836128789
animated tooltips are back
2014-01-09 12:10:22 +01:00
Marco Martin
bb7157a59e
reposition when resize if there is a visualparent
2014-01-09 11:39:18 +01: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
Sebastian Kügler
fb52783c48
Experiment with size limits in tooltip
2014-01-09 05:26:49 +01:00
Sebastian Kügler
62580bc331
Port calendar to ToolTipArea
2014-01-09 05:26:20 +01:00
Sebastian Kügler
f21ad15ed6
Fix up showing and hiding of the dialog
...
ToolTipArea.containsMouse allows the use to update the tooltip way
before it's shown, or when the contents of the tooltip should change
within an open dialog.
dismiss() and keepalive() allow handing over the tooltip dialog to
another item, in order to allow for a smoother handover when a new item
recycles the tooltipdialog. This avoids flickering when the tooltip
moves from one item to another.
2014-01-09 04:09:03 +01:00
Sebastian Kügler
b8fc3aea7f
Merge branch 'master' into mart/ToolTipArea
2014-01-09 02:33:11 +01:00
Hrvoje Senjan
18def6e560
Fix accessdenied's install location
...
CCMAIL: notmart@gmail.com
2014-01-08 23:28:59 +01:00
David Edmundson
3e599d30b4
Move WidgetExplorer to be a private QML plugin
...
Instead of registering WidgetExplorer inside the shell, create a new qml
plugin in the org.kde.plasma.private namespace.
This is useful for running widgetexplorer in qmlscene.
This makes testing, debugging and profiling considerably easier.
REVIEW: 114914
2014-01-08 20:44:33 +01:00
Marco Martin
6a0525c1c3
ToolTip->ToolTipArea
2014-01-08 18:13:07 +01:00
Aurélien Gâteau
3b7fe5f2e6
K_GLOBAL_STATIC => Q_GLOBAL_STATIC
...
One less use of kde4support
2014-01-08 13:18:19 +01:00
Aurélien Gâteau
c6e0b56d79
sortfiltermodeltest: qtest_kde.h => QtTest
2014-01-08 13:18:19 +01:00
Marco Martin
798b7665d4
work around a bug in url resolution of qmldir files
2014-01-08 13:06:23 +01:00
Marco Martin
9f3af64dac
new way to do tooltips
...
manage it in c++
it still steals hover events from their target and not all features are there.
better than before tough
2014-01-07 21:44:50 +01:00
Aleix Pol
e1a868e4f6
Fix QMenuItem connections
...
Don't emit twice textChanged when changed.
checkableChanged signal doesn't exist anymore. Use changed instead as
suggested by the Q_PROPERTY
2014-01-07 16:45:27 +01:00
Marco Martin
3feb6ac3ae
use a QQmlPropertyMap instead of a variantmap
...
this way when a source is updated, only that will be updated, and not the whole data
so whould be way more efficient.
it remains API compatible
2014-01-07 14:33:20 +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
Marco Martin
f9f89eda56
qmldir is like anybody else
2014-01-07 12:30:21 +01:00
Marco Martin
569ad6a41d
applets can only import from their own private
...
importing from the private imports of another applet makes the applet fail to load
2014-01-07 11:16:11 +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
8c797fce42
Improve PlasmaCore.ToolTip
...
- Derive from MouseEventListener as to let input through
- react to target changes: reparent the MEL accordingly
- kill a bunch of warnings
This "helps" a bit, but still filters out input events since the MEL
only passes events down to children, but the tooltip's target becomes
its parent.
Reparenting the target crashes, and it seems a pretty ugly thing to do,
anyway, since we don't want to mess with the scenegraph structure just
to filter events out for tooltips. Grmblz.
2014-01-05 04:26:29 +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 Edmundson
6b02b02dcc
Restore attaching qml debugger
2014-01-03 19:38:55 +01:00
David Edmundson
0bf60ad1b4
Add missing license
2014-01-03 19:27:55 +01:00
David Edmundson
919954ab90
Add a simple manual test for MouseEventListener
2014-01-03 19:24:39 +01:00
David Edmundson
04f2f8bd8d
Fix memory issues in MouseEventListener
...
Delete KDeclarativeMouseEvent when emitted
Do not leak KDeclarativeMouseEvent press and hold events when the mouse
moves.
Do not create KDeclarativeMouseEvent when the mouse is hovered. It's
pointless.
2014-01-03 19:24:39 +01:00
David Edmundson
635d02e7c2
Add documentation for MouseEventListener
2014-01-03 19:24:39 +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
2eaf80456f
till sync the item size even without visualparent
2014-01-03 12:40:10 +01:00
Marco Martin
ad4fecf426
don't autoposition if there is no visualParent
2014-01-03 12:32:19 +01:00
Marco Martin
692c436960
get rid of toolbar-icons
...
simplify svg icon management: all svg icons are in icons/ and have the same style
2014-01-02 18:35:29 +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
Sebastian Kügler
e9a43b165b
Quicker animation in pagestack
2013-12-28 06:57:57 +01:00
Sebastian Kügler
682affabf8
Allow to switch off pagestack transitions
2013-12-28 06:44:58 +01: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
Sebastian Kügler
e5ad29dabf
Adjustments to theme.textColor changes
...
The larger headings are a bit softened, to make their stick out less,
the font is meant to take care of this. Result: visually more consistent
colouring, strangely. Human eyes are beautifully complex things.
2013-12-28 01:07:06 +01:00
Sebastian Kügler
781ba8b4c7
Make theme.smallSpacing useful
...
On normal dpi displays, this will give two pixels, but will scale up for
higher DPI.
2013-12-28 01:06:07 +01:00
Sebastian Kügler
84b6e6a245
Adjustments for theme.textColor
...
textColor is now used from the theme, there it is made grey, similar
effect, less code, more consistency.
2013-12-28 01:05:09 +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
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
4f3228ab44
fix rendering issues
2013-12-27 11:23:16 +01: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
3184551ddb
install the example in the proper place
2013-12-24 16:58:47 +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
4e2db852dc
apidocs++
2013-12-24 15:46:22 +01:00
Marco Martin
a721878fda
use q QQmlPropertyMap, crash-- and more efficient
2013-12-24 15:42:44 +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
l10n daemon script
2c181c5819
SVN_SILENT made messages (.desktop file)
2013-12-24 03:52:26 +00:00
Marco Martin
21fde267fb
activityName available again
2013-12-23 17:00:15 +01:00
Marco Martin
3b24340cc8
manage the case loading is not immediate
2013-12-23 16:00:40 +01:00
Marco Martin
fba45d9360
remove dead code
2013-12-23 14:27:22 +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
Martin Klapetek
3e659dd29e
Simply subtract the width from the edge
2013-12-19 12:53:37 +01:00
Bhushan Shah
c244f181af
Fix typo
2013-12-19 17:14:27 +05:30
Àlex Fiestas
094303ee3f
[popup] Use QWindow::width instead of item.boundingRect to fix X
...
Since we are checking if the width() is out of bounds we should also use
width() to correct the position.
Other cases might need change as well, but I think we better go in a case
by case bases to fix all possible issues.
2013-12-19 12:20:22 +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
À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
Sebastian Kügler
1c0f221ac5
One pixel offset needed for Fitt
...
The panel would be one pixel above the bottom edge, which prevents us
from using the invisible space beyond the panel. This makes the panel
flush with the bottom edge.
2013-12-18 01:38:21 +01:00
Aleix Pol
e5b435f53d
Use the availableGeometry to calculate the struts
...
The virtualGeometry comprises all the screens and it's not what we're aiming
for in this case.
2013-12-18 01:11:30 +01:00
Aleix Pol
653d044292
Consistency
...
Use the thickness() method to query the thickness instead of querying
KConfig directly
2013-12-18 01:11:30 +01:00
Aleix Pol
d988b6f5da
Consistency change
...
Deal with length like we deal with thickness
2013-12-18 01:11:30 +01:00
Alex Merry
de868b6047
Fix build now DNSSD is KDNSSD
2013-12-18 00:05:04 +00:00
Sebastian Kügler
79b7a3b271
Fix borders in dialog depending on location
...
- We would only check for the available screen, but not for the location
when applying borders. Fix that.
- Cache dialog geometry when going fullscreen, so we can restore it when
we're not fullscreen anymore.
- Remove temporary var l, we have m_location for that.
2013-12-18 00:47:09 +01:00
Sebastian Kügler
c0624d27e7
constness++
2013-12-17 23:31:49 +01:00
Àlex Fiestas
dfcfad1182
[plasma-shell] Mute all debug output when started from autostart
...
This enables other developers to use journalctl/~.xsession-errors and
do not drown on warnings.
CCMAIL: plasma-devel@kde.org
2013-12-17 19:44:47 +01:00
Àlex Fiestas
c047dd5f68
[plasma-shell] Add an option to suppress any output (--shut-up)
...
The amount of warnings that plasma-shell has, makes it super hard to
make use of tools like journalctl or to grep ~/.xsession-errors.
We need these tools to diagnose possible bugs in the session start or
any other software that redirects stderr or those places.
We can remove this option once all the Warnings are fixed, specially
the one in Qt: https://codereview.qt-project.org/#change,73943
CCMAIL: plasma-devel@kde.org
2013-12-17 19:41:16 +01:00
Aleix Pol
8c80c1f96c
Make sure we're not quitting when all screens are closed
2013-12-17 17:54:20 +01:00
David Edmundson
8c8bdbdca5
Remove debug
2013-12-17 16:54:27 +01:00
David Edmundson
a36c2787b9
Merge branch 'davidedmundson/containmentcleanup2'
2013-12-17 16:44:54 +01:00
David Edmundson
6fface8cd0
Move panels and containments to the relevant screen on screen add/remove
2013-12-17 16:43:52 +01:00
David Edmundson
68d36e4e8c
Don't pernamently block signals if creating applet fails
2013-12-17 16:43:01 +01:00
David Edmundson
37840b1490
Add default screenForContainment implementation
2013-12-17 15:46:57 +01:00
Àlex Fiestas
bdbab34e21
[plasma-shell] Set plasma-shell as a Unique kind of app.
...
Mostly makes KLauncher not to execute a new instance if one
is already running
2013-12-17 13:00:33 +01:00
Àlex Fiestas
a9adcd8c6f
[plasma-shell] Register org.kde.plasma_shell in the bus
...
This is needed to let KLauncher know that Plasma Shell has been
executed.
We are using plasma_shell because there is a bug in KDBusService
that prevents us from using plasma-shell. Fix is already done
but repositoiries at this very moment are frozen.
2013-12-17 13:00:33 +01:00
Sebastian Kügler
5c96de0c57
Minor cleanups in dialog.cpp
2013-12-17 05:11:50 +01:00
Sebastian Kügler
5ff0605529
Compile-time connection for dialog sizing
2013-12-17 03:54:37 +01:00
Sebastian Kügler
e352eb9157
Remove activeWindow property
...
This shadows and QWindow.active, so use that.
2013-12-17 03:37:32 +01:00
Sebastian Kügler
462cfdcdc7
Port from activateWindow to requestActivate
2013-12-17 03:05:16 +01:00
Sebastian Kügler
2edebc57c3
Remove windowFlags property
...
This is a needless duplication of the property, and it causes bugs.
Removing it, and porting all users to the flags property from QWindow
magically makes layering and resizability bugs vanish.
One problem is left: the dialog dismisses too easily, it should not
dismiss when being resized, moved or when a child dialog or QMenu opens
from it.
2013-12-17 02:39:26 +01:00
Sebastian Kügler
4c17887657
Remove hack, it does more harm than good. :/
...
CCMAIL:mgraesslin@kde.org
2013-12-17 02:39:10 +01:00
Sebastian Kügler
04fd5d719a
Use visible property from QQuickWindow
...
Don't override it anymore, but react to the changed signal to do our
magic.
2013-12-17 01:21:59 +01:00
Sebastian Kügler
714042904f
Abuse flags
...
Interestingly, this hack yields the correct behaviour in my system. We
quickly set the always on top hint once we're supposed to hide, so the
window stays on top for the duration of the animation -- without
apparent side effects on the positioning and resizability.
CCMAIL:mgraesslin@kde.org
2013-12-17 01:10:58 +01:00
David Edmundson
36e4a45377
Set the panel config to the same screen as the panel
2013-12-16 19:17:32 +01:00
David Edmundson
4336262d31
Connect to the right geometrychanged signal
2013-12-16 16:52:46 +01:00
David Edmundson
5baf0c8554
Use convenience method insertContainment in ShellCorona
2013-12-16 16:51:02 +01:00
David Edmundson
547f356edd
Return valid screenForContainment on panels
2013-12-16 15:30:13 +01:00
David Edmundson
e5ef979ba1
Simplify assigning panels to screens
2013-12-16 15:30:13 +01:00
David Edmundson
be021453a2
Make it possible to modify PanelView screen property
2013-12-16 15:30:13 +01:00
David Edmundson
906caec817
Expose screen to MouseEventListener events
2013-12-16 15:30:13 +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
David Edmundson
56b2e75b2b
Removed unused variable
2013-12-16 15:30:13 +01:00
David Edmundson
fb4d79e566
Remove unused signalWhenExists argument
...
It's unused and it's a hack.
2013-12-16 15:30:13 +01:00
David Edmundson
98e8731910
Remove unused "force" argument
...
force is always false. We don't need an argument
2013-12-16 15:30:12 +01:00
David Edmundson
1b9225491d
Remove unused commented code
2013-12-16 15:30:12 +01:00
David Edmundson
51890d1337
Check if shell needs updating when a handler is deregistered
2013-12-16 15:30:03 +01:00
David Edmundson
c95642caec
Add documentation on ShellManager
2013-12-16 15:30:02 +01:00
l10n daemon script
acd85836bd
SVN_SILENT made messages (.desktop file)
2013-12-13 04:39:08 +00: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
7c74c27a25
Add missing alias
2013-12-11 21:40:54 +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
Antonis Tsiapaliokas
4efb85e5d2
Replace tab with spaces
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
86d030efac
Add a hideOnWindowDeactivate property to PlasmaCore.Dialog
...
This property is meant to bring back the functionality provided by
PopupApplet. If the property is set to true the dialog gets hidden
when it loses focus.
REVIEW: 114378
2013-12-11 11:15:07 +01:00
l10n daemon script
358b834455
SVN_SILENT made messages (.desktop file)
2013-12-11 04:00:00 +00:00
Sebastian Kügler
6b56bfcd3e
Fix parsing of crashes commandlineoption
2013-12-11 04:03:58 +01:00
Antonis Tsiapaliokas
1ebb352a76
Replace tab with spaces
2013-12-10 18:36:30 +02:00
Martin Gräßlin
718251466a
Needs KGlobalAccel
2013-12-10 08:25:23 +01:00
l10n daemon script
0dab746e5c
SVN_SILENT made messages (.desktop file)
2013-12-10 04:06:05 +00:00
Aleix Pol
d79162b6d9
Make sure that panels are properly placed upon resize
...
Recalculate position when screen has changed or when the location changes.
Recalculate position when the thickness changes, otherwise it grows outside
of the window when a bottom panel thickness changes (we change it through
setHeight).
2013-12-09 19:29:11 +01:00
Àlex Fiestas
a18b1ee448
Add a plasma-shell.desktop file to autostart
...
This basically makes KLauncher execute plasma-shell on startup.
2013-12-09 18:08:27 +01:00
Àlex Fiestas
9afa18b8a6
Use org.kde.kded5 instead of org.kde.kded
2013-12-09 18:08:27 +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
Aleix Pol
51fa49f002
Properly place the panels in a multiscreen environment
...
Ues QScreen::geometry instead of QScreen::virtualGeometry. The virtual
geometry is, according to the documentation and empirical experience, the
geometry of all the virtualDesktop.
REVIEW: 114362
2013-12-09 16:41:19 +01:00
Sebastian Kügler
011fd24f57
Minor cleanup, add my copyright
2013-12-08 17:02:17 +01:00
Sebastian Kügler
ba1be673e1
Clean up command line options in plasma-shell
2013-12-08 17:02:17 +01:00
David Faure
d944a8f7fe
Use GenericConfigLocation instead of ConfigLocation.
...
They do the same on Unix, but on Windows ConfigLocation is erroneously
pointing to an app-specific directory. Fixed in qtbase 44d48862c0 by
adding GenericConfigLocation for this purpose. Available in Qt 5.2.0 rc1.
2013-12-08 13:30:56 +01:00
Sebastian Kügler
73e3c4a6ed
Don't crash
...
Apparently, q->rootObject() can be invalid here.
2013-12-08 05:50:50 +01:00
Martin Gräßlin
1d28b028b1
Use IconEffect for disabled state in QIconItem
...
Reason for this change: a QIcon might not contain the disabled pixmaps.
Using the icon effect allows to get also the disabled state for such
icons.
REVIEW: 114334
2013-12-06 16:24:41 +01:00
Aleix Pol
a6ee7bb8fe
Remove warning
2013-12-05 19:35:43 +01:00
Aleix Pol
fd3fe7d5f5
Try having code only verbose when there are problems
...
Random output on random components doesn't really help.
2013-12-05 19:34:12 +01:00
Aleix Pol
23eacffcb3
Add more information about interception warnings
...
It's good to know who is trying to be naughty
2013-12-05 19:32:14 +01:00
Aleix Pol
6d8d2fbde8
Remove unneeded check
...
it was already being done in setAlignment anyway
2013-12-05 19:31:46 +01:00
Andrea Scarpino
b8e34cffe2
Revert "Revert "QQmlAbstractUrlInterceptor is now public""
...
This reverts commit 4d38b136ad
.
Sorry for the mess.
2013-12-04 12:38:38 +01:00
Andrea Scarpino
4d38b136ad
Revert "QQmlAbstractUrlInterceptor is now public"
...
This reverts commit 5540fdeaa5
.
2013-12-04 08:21:45 +01:00
Sebastian Kügler
ff40813454
Crash recovery for plasma-shell
...
We restart plasma-shell after crashes. When it crashes subsequently on startup,
and more than two times in a row, we give up in order to not endlessly loop.
Once the shell process stays alive for at least 15 seconds, we reset the crash
counter, so a later crash, at runtime rather than on startup will still be
recovered from.
This logic is very similar as to how kwin handles it.
DIGEST:
2013-12-04 04:15:24 +01:00
Àlex Fiestas
5540fdeaa5
QQmlAbstractUrlInterceptor is now public
...
https://codereview.qt-project.org/#change,65626
2013-12-02 15:59:47 +01:00
Andrea Scarpino
2495df8b01
Allow builds with Qt 5.2
...
REVIEW:114239
2013-12-02 12:27:34 +01:00
David Edmundson
9462866755
Set geometry to fill each screen correctly
...
DesktopView incorrectly filled the geometry of screen()
screen() will be the screen of the parent shell, not the correct
screen.
As we are using QScreen, shellcorona is ported to use that instead
of QDesktopWidget.
REVIEW: 114149
2013-11-28 14:46:18 +01:00
David Edmundson
66094ef733
Remove X-Plasma-DefaultSize from applet service type
2013-11-27 17:04:17 +01:00
Martin Klapetek
13d1f5568f
Remove KLocale bindings
...
KLocale is now kde4support and we have QLocale QML bindings. This patch
removes the KLocale bindings from plasma-framework (they are not used
anywhere anyway).
If we miss something from KLocale in QLocale, we should upstream it.
REVIEW: 114150
2013-11-27 16:28:46 +01:00
Martin Klapetek
c29773656e
Make isToday compare actual dates
...
So we don't have to construct awkward strings everytime.
2013-11-27 00:23:41 +01:00
Martin Klapetek
6eea4da70d
Use proper index validity checking
2013-11-27 00:22:57 +01:00
Martin Klapetek
cb4d7e8b4c
Emit proper signals everywhere
2013-11-27 00:22:08 +01:00
Martin Klapetek
e80e2960c6
Shuffle the code around a bit
...
These methods are in the middle of other together-related methods, for
no reason. Looks like corn flakes in the middle of beer. Sure, you can
do that, but why would you. Actually I should try that.
2013-11-27 00:21:22 +01:00
Martin Klapetek
33f2670f07
Remove empty Q_SIGNALS & Q_SLOTS
2013-11-27 00:13:44 +01:00
Martin Klapetek
f9cca29bd1
Make MonthMenu items not hardcoded
...
That's just wrong.
2013-11-27 00:07:30 +01:00
Martin Klapetek
5c6b1c9251
Rename isTodayMonth() to today()
...
Whoever named the method like that should be slapped over his fingers.
2013-11-26 17:28:15 +01:00
Martin Klapetek
ab97884c00
Calculate days before current month properly
2013-11-26 16:24:04 +01:00
Martin Klapetek
d1dc311345
Reinstate the month name capitalization
...
Some CLDR (locale) data used by Qt have standalone month names
starting with lower-case letters. So if we want to provide consistent
look across locales, we need to capitalize it ourselves
See https://bugreports.qt-project.org/browse/QTBUG-35100
2013-11-25 17:00:19 +01:00
Martin Klapetek
580d7d198a
Revert capitalizing the month's name
...
That's a locale thing/bug.
2013-11-25 13:42:54 +01:00
Martin Klapetek
ff47006845
Add some docs to Calendar binginds
2013-11-25 13:24:49 +01:00
Martin Klapetek
224e1a620b
Make the calendar applet follow current locale with first day in week
...
Also rename startDay property to firstDayOfWeek property so it's more
clear what it does. Handling the first day of week is changed a bit too
as QML uses 0 for Sunday while QDate uses 7 for Sunday, so the
getter/setter is accomodated to that fact and converts from 0 to 7 on
setting and vice-versa in the getter.
REVIEW: 114099
2013-11-25 13:24:30 +01:00
l10n daemon script
dca0a1119b
SVN_SILENT made messages (.desktop file)
2013-11-25 04:12:18 +00: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
Sebastian Kügler
ccca440859
Default to BottomEdge in Dialog
...
Also add a little bit of debugging to check sizing.
2013-11-20 04:05:35 +01:00
Ivan Čukić
655769c8a4
Fixed the assertion
2013-11-18 14:23:58 +01:00
Ivan Čukić
3dbb992e61
Killing containments that do not belong to any activity
...
Removing the legacy migration code which guesses what to do with
containments that are not assigned to an activity.
REVIEW:113919
2013-11-18 12:54:19 +01:00
Ivan Čukić
0fb9549dea
Not NotRunning is not the same as Running
2013-11-18 11:08:10 +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
Mark Gaiser
d56f690fcf
Add license to calendar component classes.
2013-11-13 13:41:41 +01:00
Bhushan Shah
80cb807aaa
Make plasma-framework build without tests
...
REVIEW: 113831
2013-11-13 12:04:22 +05:30
Sebastian Kügler
085e232641
Export MonthMenu, calendar
2013-11-13 06:05:52 +01:00
Sebastian Kügler
4337daa38e
Various layout improvements
2013-11-13 05:28:42 +01:00
Sebastian Kügler
95dc36f0ee
large spacing is defaultFont.mSize().height
2013-11-13 05:26:18 +01:00
Sebastian Kügler
d248fe1955
clean up a bit
2013-11-12 05:56:10 +01:00
Sebastian Kügler
6f8d1b6ab2
correct initial date setting, theming improvement
2013-11-12 05:51:45 +01:00
Sebastian Kügler
6134503899
Navigation improvements
...
- fix today highlighting
- click on month name opens menu to switch month
- jump to today works
2013-11-12 04:53:50 +01:00
Sebastian Kügler
19db9c9663
Add calendar QML components to the Plugin
...
This allows us to keep minimal API, since the calendar view and import
really belong together. Also makes it a lot easier to provide a separate
Calendar Plasmoid.
2013-11-12 03:40:52 +01:00
Sebastian Kügler
859e2ce352
theme.smallSpacing and theme.largeSpacing
...
Accessors to allow centralized control of spacing in a DPI-friendly way.
Will be used to unify spacing across default widget to make them look
more consistent.
Currently, smallSpacing is font height / 10, large is font height / 2.
2013-11-11 22:53:42 +01:00
Aleix Pol
ed3e004a0d
Fix build on jenkins
...
Don't look for QCA, it hasn't been ported to Qt5 yet, apparently
No need to use Transitional packages anymore
2013-11-11 18:40:19 +01:00
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
Aleix Pol
1d3da96d88
Make sure that plasma-framework is not using anything from kdelibs4
...
Stop finding the packages
Remove KDE4_ includes
Remove unused LIBINTL finder, provided by kdelibs
2013-11-11 18:29:32 +01:00
David Faure
f4e6d019f6
Add missing include, after all-of-QtDBus-and-QtCore removal in kdelibs headers
2013-11-10 13:03:50 +01:00
Marco Martin
2b55808042
remove qmlpackages
...
belongs to kde-workspace
2013-11-08 22:25:13 +01:00
Martin Gräßlin
9e32090b50
Do not add dialog to DialogShadows before it became visible at least once
...
Calling DialogShadows::self()->addWindow(...) will create the low level window.
If this is called before the property windowFlags is evaluated the window flag
X11BypassWindowManagerHint has no effect as that one must be present when the
window is created through the low level xcb call.
This was breaking declarative KWin scripts as KWin's windows need to have the
X11BypassWindowManagerHint.
REVIEW: 113700
2013-11-07 10:33:56 +01:00
Sebastian Kügler
44a27ca40a
Update buttonDownPos in event filter
...
This basically fixes the clicked signal, probably a sutble change in Qt
between 4 and 5 revealed this bug.
2013-11-07 00:21:56 +01:00
Marco Martin
67f459609a
make apidocs reflect reality
2013-11-04 13:11:54 +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
Christoph Feck
f114f7310d
Fix build with latest ThreadWeaver
...
REVIEW: 113535
2013-11-01 19:08:45 +01:00
Sebastian Kügler
b771cc5cb7
Panel layout: kickoff, taskmanager, systemtray
...
Let's see how this works for other people. :)
2013-10-31 03:00:47 +01:00
Marco Martin
3530130b19
make sure is frameless
2013-10-30 18:39:42 +01:00
Marco Martin
512aecb803
removing panels works
2013-10-30 18:37:40 +01:00
Marco Martin
33e4c1cd44
add panel action is back
2013-10-30 17:43:43 +01:00
Sebastian Kügler
7b0faed939
Remove QIconItem
2013-10-30 17:20:57 +01:00
Sebastian Kügler
4806ff5a97
No QIcon in QML anymore
2013-10-30 17:18:39 +01:00
Sebastian Kügler
77acb3b971
Fix one more icon
2013-10-30 17:03:01 +01:00
Sebastian Kügler
f30193bdfc
Fix icons in ActivityManager
2013-10-30 16:51:28 +01:00
Marco Martin
b71f307ed6
hide remove action for desktop containments
...
they can only be removed by killing the activity itself
2013-10-30 15:33:56 +01:00
Marco Martin
1c435c56a4
ensure no borders
2013-10-30 15:18:14 +01:00
Marco Martin
ba5f74899a
be more insistent on the proper size
2013-10-30 14:42:29 +01:00
Marco Martin
eedde2c2f4
remove dead code
2013-10-30 14:29:17 +01:00
Marco Martin
26c8786e57
fix close button
2013-10-30 14:11:11 +01:00
Marco Martin
1898432387
better window management
2013-10-30 14:08:32 +01:00
Marco Martin
5ab1867657
try to expose containment directly
...
this is something that should not be done, still searching the least invasive way
2013-10-30 13:25:46 +01:00
Marco Martin
d20bc0ea1b
use a generic plasmaquickview
2013-10-30 12:46:25 +01:00
Marco Martin
b2b74b4eaa
the tooltip works again
2013-10-30 12:13:04 +01:00
Marco Martin
e3a6fce753
fix listing
2013-10-30 11:50:47 +01:00
Marco Martin
1129c99296
remove close() slot
2013-10-30 11:08:35 +01:00
Marco Martin
d713dc1c13
application property
2013-10-30 11:02:54 +01:00
Marco Martin
8fbc0a4493
widgetexplorer is a pure qobject
...
doesn't try to load qml
2013-10-30 10:51:27 +01:00
Marco Martin
10a1a422e9
make the c++ widget explorer a pure import
2013-10-30 10:45:24 +01:00
Marco Martin
d0fd982933
rework widget explorer models as component
2013-10-29 20:55:00 +01:00
Marco Martin
3b6c2c82e3
a very raw activity manager
...
it's just a port of the old qml code, will need more rework
2013-10-29 18:09:05 +01:00
Kevin Ottens
8507084d62
Use the target now that KDE4Support exports one
2013-10-28 12:56:13 +01:00
Sebastian Kügler
079863cb5c
show which shell is loaded in debug output
2013-10-28 04:23:55 +01:00
Sebastian Kügler
ee1ac62eb6
Fix theme font size calculation
2013-10-28 04:22:40 +01:00
Sebastian Kügler
79ad02c244
Out of bounds checking for array access
...
This fixes a crasher in v4, without backtrace. Trying to reproduce it
in a simpler case, but this at least makes PageStack work.
2013-10-28 04:20:52 +01:00
Sebastian Kügler
51de1b4a59
debug--
2013-10-28 04:19:58 +01:00
l10n daemon script
beb8322c3d
SVN_SILENT made messages (.desktop file)
2013-10-27 04:03:10 +00:00
Marco Martin
2d02ce8861
hide the config view at second trigger
2013-10-24 15:00:48 +02:00
Marco Martin
f14e0ee1e4
skip taskbar
2013-10-24 14:47:43 +02:00
Marco Martin
990fd3b860
get completely rid of the packageaccessmanager
2013-10-24 13:27:02 +02:00
Marco Martin
6ff8554ae7
manage plasmapackage:/ with the interceptor
...
not with the networkaccessmanager
2013-10-24 12:47:56 +02:00
Stephen Kelly
b071260d15
Use target name instead of variable.
2013-10-24 12:45:26 +02:00
Marco Martin
7edc668961
support close button for activity switcher
2013-10-24 12:00:35 +02:00
Marco Martin
177f000c66
rename to activitymanager
2013-10-24 11:47:18 +02:00
Marco Martin
d840f5ac69
make sure to destroy the page when closed
2013-10-24 11:39:13 +02:00
Marco Martin
52b95779ad
functionality for widget explorer is there
2013-10-23 22:49:17 +02:00
Marco Martin
60e5a57c23
don't double signal containmentAdded
2013-10-23 22:38:41 +02:00
Marco Martin
e495c7cde4
new procedure of widget explorer
...
similar to activity switcher
2013-10-23 18:42: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
Marco Martin
5e29c61fb7
use a Loader
2013-10-23 13:34:58 +02:00
Sebastian Kügler
3665e3b382
Add help option to plasmapkg
2013-10-23 13:08: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
Kevin Ottens
e79c58807a
KLocale moved in KDE4Support
2013-10-22 17:58:24 +02:00
Marco Martin
6747a13c21
stub for activitySwitcher component
2013-10-22 17:56:31 +02:00
Marco Martin
8ee1cecd81
an empty window for an activity switcher
...
still a stub
2013-10-22 17:35:54 +02:00
Marco Martin
e6151ac159
hide from taskbar
2013-10-22 16:36:41 +02:00
Marco Martin
c41a4f3761
smarter positioning when there is no visualparent
2013-10-22 16:19:09 +02:00
Marco Martin
82ef02217d
better delay of panel creation
...
it also avoids recursive checkLoadingDesktopsComplete that caused a crash
2013-10-22 14:55:46 +02:00
Marco Martin
b9382aefb2
ensure waitingPanels doesn't have duplicates
2013-10-22 13:22:25 +02:00
Marco Martin
973f4a08a3
use setParentItem
...
should crash less (or if it does produce more readable backtraces)
2013-10-22 13:10:58 +02:00
Marco Martin
d797985ffa
some fixes in the dialog
2013-10-22 13:05:13 +02:00
Marco Martin
d7aa34cc6c
implement uninstall()
2013-10-22 11:20:42 +02:00
Marco Martin
bf9aefb9ad
remove dead code
2013-10-22 10:51:31 +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
92847333a0
Merge branch 'mart/useActivities'
...
Conflicts:
src/shell/shellcorona.cpp
2013-10-21 22:27:13 +02:00
Marco Martin
876ade83a0
get rid of WidgetExplorerView
...
The widget explorer window is done by a Dialog, allowing for more flexibility in shell packages
2013-10-21 22:05:38 +02:00
Martin Klapetek
2f042a51f6
Add --help option to plasma-shell executable
...
Reviewed-by: Sebastian Kügler
2013-10-21 16:02:02 +02:00
Marco Martin
391d6ea70b
sliding popups are back
2013-10-18 17:46:57 +02:00
Marco Martin
17e133b77b
dead code --
2013-10-18 17:23:20 +02:00
Marco Martin
f81fbea365
simpler and more correct border calculation
2013-10-18 17:20:59 +02:00
Marco Martin
9423ad57f2
use Plasma::Types::Location
2013-10-18 16:50:56 +02:00
Marco Martin
0baecfcdb5
a toggleActivityManager action
...
still a stub, will be completely managed in qml
2013-10-18 15:56:24 +02:00
Marco Martin
9b002a8bea
activity switching animation
2013-10-18 13:07:28 +02:00
Marco Martin
76fcaeae69
link to KF5::KActivities
2013-10-17 21:00:07 +02:00
Marco Martin
76260be71f
make activity switching work
...
there is a problem in ownership of containment graphics objects, we can't reparent to 0 at the moment or it crashes
2013-10-17 20:03:44 +02:00
l10n daemon script
a709c7a64b
SVN_SILENT made messages (.desktop file)
2013-10-17 03:49:12 +00: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
Marco Martin
26c5d923fb
crash--
...
check if the corona package is valid
2013-10-16 16:59:31 +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
4f5aa5fab4
Disable debug output in hot path, more QString ctor improvements
2013-10-15 02:58:15 +02:00
Sebastian Kügler
0435cc8b47
Speed up interceptor
...
Using QStringLiterals and explicit QByteArray ctors makes it possible
for the compiler to skip the more expensive QString ctors and use very
cheap ones. This should give the interceptor a nice speedup.
2013-10-15 02:48:58 +02:00
Sebastian Kügler
9f85a7dc11
Add basic test for url interceptor
2013-10-15 02:37:06 +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
bb1c0b17de
Apparently the CMakeLists.txt file got lost during last commit
2013-10-12 22:18:59 +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
Marco Martin
63e0942ac2
visibilitymode property
...
doesn't do much, just disables struts
2013-10-09 18:41:08 +02:00
Marco Martin
8592875eac
set the struts
...
sets reserved space and is on all desktops: looks like a real panel now.
visibility modes it still have to be restored
2013-10-09 18:31:28 +02:00
Aurélien Gâteau
d53a7ff03c
Fix build failing to find Qt5DeclarativeConfig.cmake
2013-10-08 17:48:18 +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
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
Mirko Boehm (Endocode)
bbe4c3cb4a
Fix initialization order for WidgetExplorerView.
2013-10-07 00:57:32 +02:00
Mirko Boehm (Endocode)
a4af408b59
Fix initiaization order for Calendar.
2013-10-07 00:40:50 +02:00
Mirko Boehm (Endocode)
b590226a24
Fix initialization order for DialogProxy.
2013-10-07 00:40:41 +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
f83e8f421a
remove unneeded includes
2013-10-05 06:19:51 +02:00
Sebastian Kügler
6df4a21e8a
Port declarative theme away from KGlobalSettings`
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
5b17b0f082
Reenable tests in declarativeimports
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
dad1466757
lower case headers
2013-10-05 04:28:26 +02:00
Sebastian Kügler
62d5e96e00
lower case headers
2013-10-05 04:26:02 +02:00
Sebastian Kügler
b0b984ac62
Port away from KStandardDirs
2013-10-05 04:22:00 +02:00
Sebastian Kügler
e6ac1d4fc8
Make scriptengine build without kde4support
2013-10-05 02:48:09 +02:00
Sebastian Kügler
42e0eb7f7a
lower case includes
2013-10-05 02:48:09 +02:00
Sebastian Kügler
2c66324684
lower case includes
2013-10-05 02:48:09 +02:00
Sebastian Kügler
b036e790a2
build without kde4support
2013-10-05 02:48:09 +02:00
Sebastian Kügler
2ad8ff7c55
plasmacomponents builds without kde4support
2013-10-05 02:48:09 +02:00
Sebastian Kügler
3c81603a8b
Crudely make corebindings kde4support free
2013-10-05 02:48:09 +02:00
Sebastian Kügler
7ee3a698b0
No more kde4support for dirmodel plugin
2013-10-05 02:48:09 +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
041b11a80e
Put us a taskmanager in the default panel
...
remove testapplet and windowlist
2013-09-26 01:37:39 +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
Sebastian Kügler
8ba9ea0d59
Put us a taskmanager in the default panel
...
remove testapplet and windowlist
2013-09-25 17:42:37 +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
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
Marco Martin
9b3b387b0b
new install targe
2013-09-18 21:36:36 +02:00
Sebastian Kügler
6307275a33
Fix include
2013-09-18 18:09:33 +02:00
Marco Martin
5b0fcd8113
platform specific resolution of imports
2013-09-18 16:34:31 +02:00
Marco Martin
d567b3414b
catch file types by extension too
2013-09-18 15:41:21 +02:00
Marco Martin
6d65ece95a
more strict in package resolution
...
also resolve js files too
2013-09-18 14:11:16 +02:00
Marco Martin
b1c49c5d44
working package redirection for qml files
2013-09-18 12:49:09 +02:00
Marco Martin
930c8647e6
add a dummy url interceptor
...
will be used for device specific stuff
2013-09-18 12:10:03 +02:00
Marco Martin
8f20c41931
moved containmentconfigview out of libplasmaquick
2013-09-16 19:45:49 +02:00
Marco Martin
5c25b8675a
a very primitive dashboard
...
right now we have a single view, that gets brought to front and the wallpaper made translucent.
probably it will eventually need splitting the walppaper and the widgets in two separate views, but needs a more complex logic
2013-09-16 19:30:34 +02:00
Marco Martin
f654bf31eb
action for dashboard toggle
2013-09-16 17:17:57 +02:00
Marco Martin
70cef22211
expose containmentInterface::actions
...
the toolbox will use it
2013-09-16 17:10:02 +02:00
Sebastian Kügler
2817591bee
kcoreauthorized.h -> kauthorized.h
2013-09-16 16:16:52 +02:00
Marco Martin
e923afe0ee
correctly restore popup size
2013-09-16 16:09:13 +02:00
Marco Martin
0ead10fe0b
correctly save DialogHeight/DialogWidth
...
piece needed for Popupapplet features, still has to correctly restore it
2013-09-16 13:05:42 +02:00
l10n daemon script
cb69c812f5
SVN_SILENT made messages (.desktop file)
2013-09-15 04:18:15 +00:00
Marco Martin
786bd7b7af
emit uiready also for empty containments
2013-09-13 20:03:25 +02:00
Marco Martin
1586c1b82a
if size is empty don't do the compact check
...
with a null size none of the representations will work anyways. an empty
size may happen when the applet has just been loaded and the containment
still has to adjust it
2013-09-13 19:55:55 +02:00
Marco Martin
ee510e5fca
add --windowed option
...
if passed the destop view is windowed no matter what. probably useful
only in the early stages of development
2013-09-13 18:34:21 +02:00
Marco Martin
cb1064fd32
the desktop view exposes a way to be desktop win
...
the desktop shell will set the window as a "desktop" window, always
behind. some other shells will have the desktop as a normal window
the api can still expand
2013-09-13 16:42:07 +02:00
Aaron Seigo
0c68fa35bc
indentation is not rocket science, but without it we lose maintainability
2013-09-13 16:29:30 +02:00
Aaron Seigo
5903d97966
regexps are expensive to create, we ask for packages a lot, cache the re
2013-09-13 16:29:29 +02:00
Marco Martin
5735faec03
move setsource into desktopview
2013-09-13 15:20:36 +02:00
Marco Martin
9bc1c68fca
remove the private init
2013-09-13 15:11:49 +02:00
Marco Martin
15d4de4b4a
correctly load panels when the shell gets switched
2013-09-13 14:50:05 +02:00
Eike Hein
7c9ad840d1
Make panels default to spanning the screen axis.
2013-09-12 19:21:50 +02:00
Marco Martin
29d10cc4b5
add a todo where shellmanager panel management should be done
2013-09-12 18:58:16 +02:00
Ivan Čukić
fe58688e09
Desktop is now always willing
2013-09-12 18:41:10 +02:00
Giorgos Tsiapaliokas
443216a29b
KF5::plasmaquick -> KF5::PlasmaQuick
2013-09-12 17:16:30 +03:00
l10n daemon script
7996972078
SVN_SILENT made messages (.desktop file)
2013-09-12 04:08:57 +00:00
Sebastian Kügler
2d46621818
Test for loading a dataengine
2013-09-12 02:29:33 +02:00
Sebastian Kügler
cd5be142ed
Use KPluginTrader to load dataengine
2013-09-12 02:29:09 +02:00
Sebastian Kügler
5e845c7c4b
Add more tests, esp for containment loading
2013-09-12 02:04:32 +02:00
Sebastian Kügler
e81b635406
Use KPluginTrader to locate the dataengine.
2013-09-12 02:03:52 +02:00
Sebastian Kügler
58a2a8d6bb
Tests for Plasma::PluginLoader
2013-09-12 01:31:37 +02:00
Eike Hein
eaef6cfbcb
Make KDeclarativeMouseEvent's button prop usable in QML.
...
Qt::MouseButton is not registered, so use int instead. This
matches QML's own MouseEvent.button property.
Ack'ed by Marco Martin.
2013-09-11 19:02:27 +02:00
Marco Martin
f4d222c9c4
very crude support for a string default in choices
...
still a long way to real enums
2013-09-11 18:52:05 +02:00
Eike Hein
e95c4b8550
++sense;
2013-09-11 18:35:14 +02:00
Eike Hein
21c0f9e6df
Fix build.
2013-09-11 18:25:00 +02:00
Marco Martin
cdc778f417
test applet for config uis
2013-09-11 17:39:09 +02:00
Marco Martin
6e3b20a3e6
some documentation
2013-09-11 15:26:16 +02:00
Marco Martin
5b5c1a5a1c
move private stuff in private/
2013-09-11 15:18:19 +02:00
Marco Martin
c33282e37f
move configcategory in own file
2013-09-11 15:13:31 +02:00
Marco Martin
819bece755
ppendCategory with data to avoif exposin ConfigCategory
2013-09-11 14:55:10 +02:00
Marco Martin
2c108e0036
get rid of QQmlListProperty accessors in public clas
2013-09-11 14:44:28 +02:00
Marco Martin
6bf3f54783
configmodel in own file
2013-09-11 14:40:45 +02:00
Martin Gräßlin
52e96b41df
Ensure that the WindowThumbnail is not trying to render a thumbnail of itself
...
Recursive window thumbnails would look awesome on the screen, but reality
is that X/OpenGL or $DEITY doesn't like it at all and decided to just
freeze the view.
So let's delay all the redirecting till the WindowThumbnail has been
added to its QQuickWindow and if the window id is the one of the own
window we just render the icon instead.
2013-09-11 13:57:40 +02:00
Marco Martin
452d39a98e
add a desktop view
2013-09-11 12:18:51 +02:00
Marco Martin
5157958c00
reimplement showConfigurationInterface
2013-09-11 12:05:09 +02:00
Marco Martin
98a681a0e7
View -> PlasmaQuickView
2013-09-11 11:48:37 +02:00
Marco Martin
a94dd49b32
rename remaining plasmaview to plasmaquick
2013-09-11 11:23:56 +02:00
Marco Martin
a7e9b1261b
just use c++0x for now
...
gcc 4.6 and msvc still don't have -std=c++11
2013-09-11 11:15:29 +02:00
Marco Martin
247c01170a
libplasmaview -> libplsmaquick
...
this library will contain all the reusable qtquick and qml related bits necessary for plasma
2013-09-11 11:13:27 +02:00
Giorgos Tsiapaliokas
97ada33110
Merge branch 'plasmaview'
...
REVIEW: 112447
2013-09-11 11:51:39 +03:00
Martin Gräßlin
91d306d2e8
QQuick item for live updating window thumbnails
...
New qquick item in PlasmaCore to render a live updating window
thumbnail. The implementation uses XCB to redirect the specified
window using the composite extension. This means a running compositor
is not required. Through the damage extension the item tracks changes
to the window and triggers updates of the texture. Furthermore the
item tracks geometry changes of the window to recreate the window
pixmap.
If the pixmap of the window is valid, a texture is generated from it
using the glx texture from pixmap extension. For this a new optional
dependency for glx is added. On platform where glx is not available
(e.g. Windows, Linux with OpenGL ES) this will not get compiled and
the window's icon is used instead as a fallback.
REVIEW: 112142
2013-09-11 09:45:47 +02:00
Giorgos Tsiapaliokas
30c3e2cdc1
we don't have these headers anymore so don't install their FooBar
2013-09-11 09:21:17 +03:00
Giorgos Tsiapaliokas
ff7c854e30
remove the TODOs, they are done
2013-09-11 09:19:17 +03:00
l10n daemon script
eba2125d6e
SVN_SILENT made messages (.desktop file)
2013-09-11 04:16:36 +00:00
Marco Martin
8b627f8c01
fix build
2013-09-10 21:15:09 +02:00
Marco Martin
eccf797920
Merge branch 'plasmaview2' into plasmaview3
...
Conflicts:
src/plasmaview/shellpackage_p.cpp
src/plasmaview/shellpackage_p.h
src/plasmaview/view.cpp
src/plasmaview/view.h
src/shell/CMakeLists.txt
src/shell/desktopcorona.cpp
src/shell/shellcorona.cpp
src/shell/shellpluginloader.cpp
2013-09-10 20:59:47 +02:00
Giorgos Tsiapaliokas
70ab0cfc48
KF5::plasmaview -> KF5::PlasmaView
2013-09-10 20:47:34 +02:00
Giorgos Tsiapaliokas
bf2619a79a
move shellpluginloader back to shell
...
Conflicts:
src/plasmaview/CMakeLists.txt
src/shell/shellpluginloader.cpp
2013-09-10 20:47:25 +02:00
Giorgos Tsiapaliokas
0235eb82d5
add the missing include
2013-09-10 20:44:59 +02:00
Giorgos Tsiapaliokas
94806e9e2b
don't export ConfigCategory
2013-09-10 20:44:42 +02:00
Giorgos Tsiapaliokas
768d0c07a8
KF5::plasmaview -> KF5::PlasmaView
2013-09-10 20:44:36 +02:00
Giorgos Tsiapaliokas
2bb94a1aa0
use variable names instead of KF5::
2013-09-10 20:44:31 +02:00
Giorgos Tsiapaliokas
bae445f795
don't include the file, we don't need it
...
Conflicts:
src/shell/shellcorona.cpp
2013-09-10 20:44:02 +02:00
Giorgos Tsiapaliokas
b6db500fef
add includes/PlasmaView/ShellPluginLoader
2013-09-10 20:41:57 +02:00
Giorgos Tsiapaliokas
dc26a8a3da
add some more apidocs in the configview
2013-09-10 20:41:53 +02:00
Giorgos Tsiapaliokas
9faa53540a
add apidocs for the shellpluginloader
2013-09-10 20:41:49 +02:00
Giorgos Tsiapaliokas
ff34152432
use d_ptr in shellpluginloader
2013-09-10 20:41:44 +02:00
Giorgos Tsiapaliokas
52e57cfdd5
build the shellpackage again
2013-09-10 20:41:39 +02:00
Giorgos Tsiapaliokas
854b956fbc
shell/shellpackage.cpp -> plasmaview/shellpackage_p.cpp
...
shell/shellpackage.h -> plasmaview/shellpackage_p.h
2013-09-10 20:41:36 +02:00
Giorgos Tsiapaliokas
5714b65883
shell/shellpluginloader.cpp -> plasmaview/shellpluginloader.cpp
...
shell/shellpluginloader.h -> plasmaview/shellpluginloader.h
2013-09-10 20:41:31 +02:00
Giorgos Tsiapaliokas
f4d6c14ebc
src/plasmaview/containmentconfigview.cpp -> src/plasmaview/containmentconfigview_p.cpp
...
src/plasmaview/containmentconfigview.h -> src/plasmaview/containmentconfigview_p.h
2013-09-10 20:41:27 +02:00
Giorgos Tsiapaliokas
426d34e6e2
add some apidocs
2013-09-10 20:41:23 +02:00
Giorgos Tsiapaliokas
39d2575ce2
don't install containmentconfigview.h
2013-09-10 20:41:18 +02:00
Giorgos Tsiapaliokas
4f435ccf85
Revert "use d pointer in containmentconfigview"
...
This reverts commit 22fc5cebf449ec2a3d4f9ce8a40d11ffde1345f9.
There is no need to export it since only the View is using
it.
Conflicts:
src/plasmaview/containmentconfigview.cpp
src/plasmaview/containmentconfigview.h
2013-09-10 20:41:13 +02:00
Giorgos Tsiapaliokas
23ec4639c5
remove unneeded code
2013-09-10 20:41:09 +02:00
Giorgos Tsiapaliokas
ff79662287
add apidocs for the View
2013-09-10 20:41:05 +02:00
Giorgos Tsiapaliokas
e4810b9e95
make it protected again
2013-09-10 20:41:01 +02:00
Giorgos Tsiapaliokas
efc9356b71
include the right header
2013-09-10 20:40:56 +02:00
Giorgos Tsiapaliokas
59aaee1278
remove configview.cpp
2013-09-10 20:40:52 +02:00
Giorgos Tsiapaliokas
cba8948fa2
use d_ptr in configview
2013-09-10 20:40:47 +02:00
Giorgos Tsiapaliokas
ef865b9f45
shell/configview.cpp -> plasmaview/configview.cpp
...
shell/configview.h -> plasmaview/configview.h
2013-09-10 20:40:42 +02:00
Giorgos Tsiapaliokas
52fa3113e5
currentcontainmentactionsmodel.cpp -> currentcontainmentactionsmodel_p.cpp
2013-09-10 20:40:38 +02:00
Giorgos Tsiapaliokas
38afa72e8d
use d pointer in containmentconfigview
2013-09-10 20:40:34 +02:00
Giorgos Tsiapaliokas
8c4bbf10c2
don't install currentcontainmentactionsmodel.h
2013-09-10 20:40:29 +02:00
Giorgos Tsiapaliokas
e58ee74ff9
use d pointer in view
2013-09-10 20:40:24 +02:00
Giorgos Tsiapaliokas
4fc23e7eb8
add plasmaview/includes/
2013-09-10 20:40:20 +02:00
Giorgos Tsiapaliokas
2699ff1826
add plasmaview/PlasmaViewConfig.cmake.in
2013-09-10 20:40:16 +02:00
Giorgos Tsiapaliokas
0567075f9c
add plasmaview/CMakeLists.txt
2013-09-10 20:39:33 +02:00
Giorgos Tsiapaliokas
ba5a92a132
add the plasmaview subdir
2013-09-10 20:39:27 +02:00
Giorgos Tsiapaliokas
caa2d738fa
make use of the plasmaview
2013-09-10 20:39:15 +02:00
Giorgos Tsiapaliokas
9e4e6e2444
shell/containmentconfigview.cpp -> plasmaview/containmentconfigview.cpp
...
shell/containmentconfigview.h -> plasmaview/containmentconfigview.h
shell/currentcontainmentactionsmodel.cpp -> plasmaview/currentcontainmentactionsmodel_p.cpp
shell/currentcontainmentactionsmodel.h -> plasmaview/currentcontainmentactionsmodel_p.h
shell/view.cpp -> plasmaview/view.cpp
shell/view.h -> plasmaview/view.h
2013-09-10 20:39:10 +02:00
Marco Martin
33dae6b18c
support for setting a wallpaper trough drag and drop
2013-09-10 17:57:51 +02:00
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
Marco Martin
e5b2907b53
documentation in ContainmentInterface
2013-09-10 12:25:37 +02:00
Marco Martin
075395e6d1
more documentation
2013-09-10 11:58:55 +02:00
Marco Martin
bde39854d3
remove unused method
2013-09-10 11:48:34 +02:00
Marco Martin
27c9c859ef
documentation++
2013-09-10 11:45:02 +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
Martin Gräßlin
97ce3dc808
Rework finding of XCB
...
Uses the new components syntax of FindXCB. So far plasma frameworks
only need the XCB component and that one is optional just like XLib.
The find xcb is moved to the toplevel CMakeLists.txt together with
the find x11 and HAVE_X11 gets set only if both X11 and XCB are found.
REVIEW: 112499
2013-09-09 06:14:35 +02:00
l10n daemon script
45879b3d0b
SVN_SILENT made messages (.desktop file)
2013-09-07 04:15:43 +00:00
Marco Martin
0f86bd5b6e
fix size hints propagation
2013-09-06 19:22:14 +02:00
Marco Martin
1b9d6cbb13
experiment support for panel auto resize
2013-09-06 18:36:12 +02:00
Marco Martin
abbe19722f
use native text rendering
2013-09-06 13:43:19 +02:00
l10n daemon script
42f4f3059e
SVN_SILENT made messages (.desktop file)
2013-09-05 04:02:11 +00:00
Marco Martin
e4bfec918e
remove color wallpaper from this repo
2013-09-04 12:28:29 +02:00
Marco Martin
3781be8f71
example wallpaper
2013-09-04 11:57:46 +02:00
Marco Martin
8f74e67f9d
old test applets live now in examples
2013-09-04 11:57:46 +02:00
Marco Martin
4291b0d20e
Revert "remove test applets"
...
This reverts commit b983ab2c72
.
2013-09-04 11:57:46 +02:00
Eike Hein
c4075ddaed
Move the screen prop up into AppletInterface.
...
This makes 'plasmoid.screen' available not just for con-
tainments, but for all applets, as required by the Task
Manager applet. Unfortunately Qt's APIs don't expose any
screen numbering, so that route was off the table.
Ack'ed by Marco Martin.
2013-09-04 11:46:28 +02:00
l10n daemon script
47efcc2f03
SVN_SILENT made messages (.desktop file)
2013-09-04 04:08:55 +00:00
Marco Martin
75d9ea6a95
hardcoded enum values--
2013-09-03 15:54:11 +02:00
Marco Martin
89ae53097f
unbreak mouse release event
2013-09-03 15:51:25 +02:00
Marco Martin
55d973385e
convert location to Plasma::Types::Location
2013-09-03 15:44:13 +02:00
Marco Martin
b983ab2c72
remove test applets
2013-09-03 14:52:41 +02:00
Marco Martin
f6cdcd3a1c
config file is plasma-org.kde.desktop-appletsrc
...
or plasma-shellname-appletsrc whatever shellname is
2013-09-03 13:46:42 +02:00
Marco Martin
9289405991
experiment with ConditionalLoader
2013-09-03 13:11:12 +02:00