Commit Graph

504 Commits

Author SHA1 Message Date
Eike Hein
e95c4b8550 ++sense; 2013-09-11 18:35:14 +02:00
Eike Hein
21c0f9e6df Fix build. 2013-09-11 18:25:00 +02:00
l10n daemon script
eba2125d6e SVN_SILENT made messages (.desktop file) 2013-09-11 04:16:36 +00:00
Marco Martin
33dae6b18c support for setting a wallpaper trough drag and drop 2013-09-10 17:57:51 +02:00
Marco Martin
d101966f91 use a dynamic property
so qml doesn't see it
2013-09-10 16:38:16 +02:00
Marco Martin
52c3a27e18 support for wallpaper actions 2013-09-10 15:51:22 +02:00
Marco Martin
bfbeae9969 propagate containmentTypeChanged 2013-09-10 12:43:25 +02:00
Marco Martin
6bbc8cb420 propagate drawWallpaperChanged 2013-09-10 12:38:41 +02:00
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
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
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
Marco Martin
9289405991 experiment with ConditionalLoader 2013-09-03 13:11:12 +02:00
Sebastian Kügler
5479b56d67 default to org.kde.desktoptoolbox
This package exists, org.kde.toolbox doesn't
2013-09-03 03:28:11 +02:00
Marco Martin
800298935f use a QmlWallpaper package type for wallpapers 2013-09-02 20:25:04 +02:00
Marco Martin
6b38c2c6af port all machinery for drag and drop on containments
still missing wallpaper support
2013-08-30 15:47:01 +02:00
Marco Martin
7bc3fbc589 appletAdded becomes AppletAdded(applet,x,y) 2013-08-30 14:15:48 +02:00
Marco Martin
087bc4d8fe adjust processMimeData to work with paste plugin 2013-08-30 12:50:35 +02:00
Marco Martin
e00070da7e hack to make possible to set the applet position
when a dnd operation is done, set the applet position before emitting the appletAdded signal
2013-08-28 15:21:33 +02:00
Marco Martin
d78fdf1e5d imple add applet mechanism 2013-08-28 13:50:53 +02:00
Marco Martin
04f11788ea stub for drag and drop and paste mechanism 2013-08-28 13:23:27 +02:00
Marco Martin
39b49bf464 get rid of containmentActions::config() 2013-08-27 12:10:51 +02:00
Marco Martin
5ecb5185f7 support wheel events 2013-08-27 11:56:37 +02:00
Marco Martin
7c139742a6 accept all buttons
so menus for all mouse events can be generated
2013-08-27 11:13:17 +02:00
Marco Martin
d58f1d0a17 revert last commit
create compactRepresentation in the compactrepresentation *component*
creation context

this way root is accessible by id
2013-08-22 15:04:56 +02:00
Marco Martin
dbc02cd44b root qml item accessible from plasmoid.rootItem
this way objects in compactRepresentation can access the root object
properties as plasmoid.rootItem.propertyName
2013-08-22 14:55:05 +02:00
Marco Martin
b690e612cc expose correctly useConfiguring 2013-08-20 18:34:52 +02:00
Marco Martin
98612b983d use the global type for ContainmentType 2013-08-20 17:21:05 +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
Marco Martin
d68e452545 correctly pass fillWidth and hints to outer layers 2013-08-19 18:29:14 +02:00
Marco Martin
ea69577005 export fillWidth/fillHeight properties
with those should hopefully be possible to have widgets behaving like the taskbar
2013-08-19 17:44:40 +02:00
l10n daemon script
3880ffb13f SVN_SILENT made messages (.desktop file) 2013-08-17 04:14:06 +00:00
Sebastian Kügler
0b5d791e2b Add lockWidgets to containment interface 2013-08-13 04:19:13 +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
78978cd7e3 get rid of appletcreationtimer 2013-08-12 14:38:10 +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
Marco Martin
8ff1ace31c containment connection happens before 2013-08-09 20:17:11 +02:00
Marco Martin
ebdfbb2e25 containments emit uiready only when all applets did 2013-08-09 14:58:36 +02:00
Marco Martin
0d9bc6d7be fix delayed loading of containments 2013-08-09 11:56:58 +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
336055edc5 experiment in delaying the panel creation 2013-08-08 22:18:45 +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
ce13335f36 make really sure the wallpaper is loaded only once
and that an empty wallpaper is not loaded at all
2013-08-08 17:21:11 +02:00
Marco Martin
9b52bfad89 the scriptengine has an uiReady property
will be used for some experiments later: we can track if the ui
machinery has been correctly initialized.
we'll use that to ensure the applets gets initialized and prepared only
after their containment has been
2013-08-08 16:12:31 +02:00
Marco Martin
279c622b27 remove include() 2013-08-08 15:52:13 +02:00
Marco Martin
8c93e1f6cd remove loadui/loadservice 2013-08-08 15:51:29 +02:00
Marco Martin
f69f40c909 remove configChanged() 2013-08-08 15:38:40 +02:00
Marco Martin
484b7d9b55 port to new connect syntax 2013-08-08 15:37:13 +02:00
Marco Martin
980e482f4d convert a bunch of connects to new syntax
avoid future risks of connects silently failing
2013-08-08 13:50:03 +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
0368d7423c Merge branch 'sebas/kplugins'
This includes the ctor for dataengines, plus some more work on this topic.

REVIEW:111691
2013-08-05 18:37:41 +02:00
Marco Martin
d49956e458 delay collapse of the applet in popup
is expensive, so event-compress
also, since the creation of qml objects is async (and the event loop will continue to go) it may cause race conditions instead
2013-08-05 17:43:27 +02:00
Sebastian Kügler
b89451fb25 Merge branch 'master' into sebas/kplugins 2013-08-05 16:30:23 +02:00
Marco Martin
ea42678895 make minimumWidth/maximum/implicit exportable
both the applet and its compact representation can now export minimumWidth,implicitWidth etc and those are exported to the root graphics item.

the minimum width of the applet is used to collapse in popup
2013-08-05 15:37:21 +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
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
f034b84daf add ctor back in that got lost during the merge 2013-07-30 21:31:12 +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
89d886ddf9 Port away from KDE4* macros 2013-07-29 00:40:41 +02:00
Sebastian Kügler
8d21b76595 Reinstate K_EXPORT_PLUGIN 2013-07-26 00:54:12 +02: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
aff9c00761 KMenu becomes QMenu throughout 2013-07-10 00:12:26 +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
ca5c059ecf KMenu becomes QMenu throughout 2013-07-09 00:55:03 +02:00
Sebastian Kügler
de78cb0b95 Port away from KService usage 2013-07-03 17:22:39 +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
13e7584eea Port to new macro 2013-07-01 03:58:25 +02:00
Kevin Ottens
be417bd8b3 Just in case we'd have just a local path 2013-06-27 22:58:24 +02:00
Kevin Ottens
c36c625d9c Port away from KUrl 2013-06-27 16:39:03 +02:00
Sebastian Kügler
6389825172 User Q_ macros for signals and slots 2013-06-21 02:22:02 +02:00
Marco Martin
50ee44b70d Merge branch 'PlasmaTypesClass' 2013-06-12 11:24:03 +02:00
Script Kiddy
8df122a0f6 SVN_SILENT made messages (.desktop file) 2013-05-20 09:04:00 +02:00
Marco Martin
13045faffa rename ItemStatus 2013-05-14 20:49:50 +02:00
Marco Martin
7761a995f2 rename ImmutabilityType 2013-05-14 20:27:32 +02:00
Marco Martin
c90e6d23cf rename Plasma::ContainmentType 2013-05-14 18:34:40 +02:00
Marco Martin
ad2fe77745 get rid of Plasma::Constraint 2013-05-14 18:08:58 +02: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
Marco Martin
f9436999d9 fix the wallpaper configuration
still pretty hacky, makes a lot of assumptions about the scriptengine
object hyerarchy and for some reason digging  a ConfigPropertyMap out of
a qvariant doesn't work properly
2013-05-07 11:57:08 +02:00
Marco Martin
d44f0973d3 get rid of local qmlobject and config bindings
they're in kdeclarative now
2013-04-25 20:56:36 +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
Sebastian Kügler
db5ef57480 make sure we don't access an invalid config and crash 2013-04-23 18:17:08 +02:00
Sebastian Kügler
d8d9d2952d ws-- 2013-04-12 02:06:52 +02:00
Sebastian Kügler
fe8be600c6 Don't crash when the containment or toolbox doesn't load
Check if the containment could be loaded (this includes the toolbox), if
not, don't poke into its rootObject.
2013-04-10 02:18:41 +02:00
Sebastian Kügler
98b4ceb3a2 Watch out for invalid wallpaper packages 2013-03-28 01:58:52 +01:00
Sebastian Kügler
2ac12c5fe6 Fix typo in var name 2013-03-28 01:50:19 +01:00
Marco Martin
395dc9b381 manage the case a containment behaves as an applet
however loading mechanism should be changed to make applets in containments always be an Applet*
2013-03-21 19:05:53 +01:00
Marco Martin
5e3723cd7c a very simple panel controller
dummy, but setting the offset already works
2013-03-19 22:07:27 +01:00
Sebastian Kügler
729c3fed2d expose Applet::id() in the plasmoid object
We need this in the containment to do our book-keeping, if we just guess
the applet id, we don't know which containment is passed into
addApplet(), so we can't know where to restore it. So we use applet.id
to match a geometry saved to the config with the applet that is being
loaded.
2013-03-19 00:29:48 +01:00
Sebastian Kügler
0d3f204acb add debug for toolbox 2013-03-18 21:43:56 +01:00
Sebastian Kügler
682ac73078 qmlRegisterType QAction, needed for plasmoid actions 2013-03-18 19:48:16 +01:00
Marco Martin
056d45d197 fix version number 2013-03-14 15:36:38 +01:00
Script Kiddy
e331e06425 SVN_SILENT made messages (.desktop file) 2013-03-14 09:57:34 +01:00
Script Kiddy
edb2603012 SVN_SILENT made messages (.desktop file) 2013-03-12 17:26:19 +01:00
Script Kiddy
ca81fda6e7 SVN_SILENT made messages (.desktop file) 2013-03-10 08:58:07 +01:00
Marco Martin
af6e538fa4 make the desktop scripting finally work
completely migrate to X-Plasma-ContainmentType from the desktop file, use it to set the containment type as soon as possible (in Containment::init())
in this way the desktop script can recognize panels as what they are immediately
2013-03-07 21:25:30 +01:00
Marco Martin
5b7af5f117 make wallpaper configuration work after wallpaper switch 2013-03-07 16:59:32 +01:00
Marco Martin
18a663228f switch wallpaper plugins 2013-03-07 15:27:53 +01:00
Marco Martin
6cede145d5 configview exposes more stuff for containments: subclass 2013-03-06 17:53:03 +01:00
Marco Martin
132adc7f21 possible to configure wallpapers != from current 2013-03-06 14:20:20 +01:00
Marco Martin
3dee256411 get default containments and toolbox from package 2013-03-05 17:22:00 +01:00
Marco Martin
53c161fb58 packages without structure are invalid 2013-03-05 14:23:52 +01:00
Marco Martin
8646393758 shell package partly working 2013-03-05 13:58:18 +01:00
Aaron Seigo
e9c25137e3 add a configmodel item to the package 2013-03-02 00:05:50 +01:00
Marco Martin
7064d02e1a expose the wallpaper config to the config ui
there is still a serious problem: it is possible to configure only the currently loaded wallpaper plugin
2013-03-01 20:01:54 +01:00
Marco Martin
f5664e8b3f try to add a config 2013-03-01 16:39:47 +01:00
Marco Martin
6f5a593d91 WallpaperInterface for wallpapers
will be used to provide configuration access and a configuration UI
2013-03-01 15:11:08 +01:00
Marco Martin
c3924c75b7 remove createConfigurationInterface
configuration interface stuff is done right now in the ConfigView class, right now in the qml scriptengine (may be moved to the shell eventually)
2013-03-01 11:36:58 +01:00
Marco Martin
099319a911 preliminary list of wallpaper plugins 2013-02-28 21:24:30 +01:00
Marco Martin
b88339cb4a attempt to load different page set for containments 2013-02-28 16:33:44 +01:00
Marco Martin
53df27b8b7 config.qml is a pure model, search in config/ 2013-02-27 18:33:09 +01:00
Marco Martin
6458522bbc migrate page loading to ConfigModel 2013-02-27 18:33:09 +01:00
Marco Martin
872839ecf9 a simple model to parse config categories
ConfigModel will be used in the plasmoid config qml that defines a model for the categories of the config dialog
2013-02-27 17:41:31 +01:00
Marco Martin
7e96fe9000 resizing based on contents implicit sizes
still to be made a tad more reliable
2013-02-27 14:03:36 +01:00
Marco Martin
de8644af69 make the config.qml object a "model" 2013-02-26 21:48:36 +01:00
Marco Martin
fd9282d22f auto load first page 2013-02-26 13:58:37 +01:00
Marco Martin
3a5e5f931b close window on ok/cancel pressed
delete window on close
2013-02-26 12:47:08 +01:00
Aaron Seigo
c9ff91fb0f expose the KActionCollection instead of wrapping its API 2013-02-25 16:31:26 +01:00
Marco Martin
4a24e49317 remove ContainmentActions::configurationRequired
plugins will have to manage themselves wether they need to be configured
2013-02-25 14:31:36 +01:00
Marco Martin
75ddf58938 ConfigView::configPages() is a list of dialogs
returns a list of data to create the pages: a title, an icon and a component
2013-02-22 20:58:54 +01:00
Marco Martin
949d114eec move the config view in a separate file 2013-02-22 18:24:36 +01:00
Script Kiddy
459b49fff9 SVN_SILENT made messages (.desktop file) 2013-02-22 18:03:06 +01:00
Marco Martin
ff089521af actually load config ui files 2013-02-22 15:43:01 +01:00
Marco Martin
cfe6a40d3d ad a stub config ui
the config ui layout will be decided from the corona.
the desktop one will end up having desktop components

still missing:
* binding to plasmoid object
* way close the dialog
* use ok/apply/cancel
* how to implement difference between ok to apply and instant apply?
2013-02-22 15:10:55 +01:00
Marco Martin
8ba734f05b correct item resize
comment out more old api

will be reenable one by one only when needed
2013-02-20 15:51:28 +01:00
Marco Martin
18a050c1b3 delay creation of containments as well 2013-02-19 20:33:25 +01:00
Marco Martin
222e132ecd use the function QmlObject::createObjectFromSource 2013-02-19 20:20:32 +01:00
Marco Martin
31c442f39a QmlObject::setQmlPath -> setSource
to be consistent with QQuickView
2013-02-19 19:27:10 +01:00
Marco Martin
08f9417c32 move object creations inside appletInterface 2013-02-19 19:27:10 +01:00
Marco Martin
26b5b98e0a start to delay a bit objects creation.
use a component incubator to create objects whuile the event loop is running

load applets ui only when they get a view

it will have to be cleaned out a lot, by moving the loading logic into AppletInterface
2013-02-19 17:27:32 +01:00
Marco Martin
22918af6b4 better organization of DeclarativeAppletScript::init( 2013-02-19 14:47:11 +01:00
Marco Martin
82930e7226 try to use a simple incubator to make loading appear smooter 2013-02-19 14:40:03 +01:00
Marco Martin
f5b51c7c54 Containment::Type -> Plasma::ContainmentType 2013-02-19 13:52:32 +01:00
Marco Martin
ca799b08bf containmentActions logic is in ContainmentInterface
a copy is still in Containment, will be cleaned in next commit
2013-02-19 11:52:51 +01:00
Marco Martin
86d89bf634 port more to new connect syntax to catch more errors 2013-02-18 18:54:44 +01:00
Marco Martin
57add3903f tore containment loading
use new connect syntax to catch signature mismatch of appletAdded
2013-02-18 18:46:29 +01:00
Burkhard Lück
dbc845f0a6 fix message extraction
use find for all the .cpp files, does not break when subdirs are renamed/moved
2013-02-17 22:39:56 +01:00
Burkhard Lück
5305774fbd fix message extraction
use find for all the .cpp files, does not break when subdirs are renamed/moved
2013-02-17 14:31:34 +01:00
Marco Martin
44b92bec42 make the destroy action work 2013-02-15 18:10:46 +01:00
Marco Martin
4c92755e8b correctly popuplate Applet contextmenu
the containment one is still a stub
2013-02-15 18:10:46 +01:00
Marco Martin
672b0bdfc1 experiment for a declarative config skeleton
maps a KConfigSkeleton to a QQmlPropertyMap, allowing a "declarative" use of configs

not sure will be an efficient approach enough but it seems to work correctly
2013-02-15 16:21:58 +01:00
Marco Martin
7cabcaa9ac use the actual Applet* cor contextualActions() 2013-02-15 14:30:43 +01:00
Marco Martin
962eaa98ab with what is the applet we want actions of
for the contextmenu
2013-02-15 14:16:49 +01:00
Marco Martin
065078b9c3 applets property as a list of plasmoid objects 2013-02-15 14:07:35 +01:00
Marco Martin
4049c092be create a simple context menu
It will have to use containment action plugins
2013-02-15 14:01:53 +01:00
Marco Martin
4e44bc4c31 support for containment type in the desktop file
add a test panel containment
2013-02-14 19:12:11 +01:00
Sebastian Kügler
7dfe957e66 The Big Move
All cpp code moves into the src/ subdirectory, as the Frameworks policy
suggests.

Directory structure should now be in line with other, future frameworks.
2013-02-14 17:17:12 +01:00