Commit Graph

2720 Commits

Author SHA1 Message Date
Aaron Seigo
6122c2d2d1 get rid of associated widgets -> one less QWidget usage!
was still being used for global shortcuts .. turns out that isn't
necessary
2013-02-25 16:19:16 +01:00
Marco Martin
23e5277dbf remove ContainmentPrivate::defaultWallpaperMode 2013-02-25 15:59:46 +01:00
Marco Martin
2f2039ed23 remove ContainmentPrivate::globalContainmentActionPlugins 2013-02-25 15:58:31 +01:00
Marco Martin
342146b2fc get rid of ContainmentActionsPluginConfig
expose directly the hash of default plugins from Corona for the default plugins to use as containmentActions, getting rid of this class that is in the end just a wrapper
2013-02-25 15:47:16 +01:00
Marco Martin
c3a536a7a4 replace name, pluginName and icon with pluginInfo()
add ContainmentAction::pluginInfo()
2013-02-25 14:49:42 +01:00
Marco Martin
f00987658b remove ContainmentActions::configAccepted() 2013-02-25 14:43:16 +01:00
Marco Martin
d68087f410 performNextAction/performPreviousAction 2013-02-25 14:42:02 +01:00
Marco Martin
4ab7b3d044 remove ContainmentActions::triggerableContextAction 2013-02-25 14:39:46 +01:00
Marco Martin
b704d0a33a ContainmentActions has no friends 2013-02-25 14:38:22 +01:00
Marco Martin
de57997384 remove ContainmentActions::init() 2013-02-25 14:35:06 +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
4052f596f9 remove properties and dataEngine
dataEngine() is no more present in ContainmentActions: DataEngineConsumer is public now
2013-02-25 14:28:05 +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
Sebastian Kügler
0faa120641 Convert alignment to Qt::AlignmentFlag
Also start a bit on the logic of setting location. Does nothing yet, but
build.
2013-02-22 16:45:08 +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
Albert Astals Cid
0b091ec503 Add missing " 2013-02-22 13:43:24 +01:00
Sebastian Kügler
46fcb0f402 remove visualParent for QUeryDialog 2013-02-22 12:43:32 +01:00
Marco Martin
b29ddd2f27 support for vertical panels 2013-02-22 11:51:55 +01:00
Marco Martin
06ca6e57aa correct sign for offset 2013-02-22 11:51:55 +01:00
Sebastian Kügler
7c9d0abc23 Use Qt::AligntmentFlag instead of int for popupPosition 2013-02-22 03:54:14 +01:00
Sebastian Kügler
f23ca788ee better dialog content in tca 2013-02-22 03:51:51 +01:00
Sebastian Kügler
00c93c186d Test code for placement 2013-02-22 03:43:09 +01:00
Sebastian Kügler
8f71cf9de7 Center in visualParent by default
If we have no visual parent, use the workArea's center. This is mostly
in line with Plasma1's behavior (modulo visualParent vs. parent).
2013-02-22 03:41:56 +01:00
Sebastian Kügler
16d42cc955 Add visualParent to dialogs, QueryDialog example 2013-02-22 02:18:16 +01:00
Sebastian Kügler
006eb99b55 Make dialog-in-separate-window kind of work
inlining is still broken, disabled right now. popupPosition has moved
into PlasmaCore.Dialog internally, so don't handle it in QML.
2013-02-22 02:18:16 +01:00
Sebastian Kügler
e96671be05 Add debugsels for popupPosition 2013-02-22 02:18:16 +01:00
Marco Martin
14da11551a support alignment 2013-02-21 21:12:12 +01:00
Marco Martin
36d5f25371 restore some values from config
panelviews can restore offset, minimum, maximum and size from the config
still needed alignment and
resize will need a bit of work since should be containment-controlled
2013-02-21 20:35:21 +01:00
Marco Martin
02aa67a990 add view config
experiment, for now has a slightly different way to find own config group compared to plasma1
2013-02-21 18:32:32 +01:00
Marco Martin
9804b223f2 iexplicitly link KF5::kwindowsystem 2013-02-21 18:02:12 +01:00
Marco Martin
f4a4bb55de sync panel position to containment location 2013-02-21 17:49:52 +01:00
Marco Martin
99d49220df panel is a Dock 2013-02-21 16:30:01 +01:00
Marco Martin
790036d5f8 blur behind panels 2013-02-21 16:22:42 +01:00
Marco Martin
73ab93e009 use the margins of the framesvg instead of own 2013-02-21 16:04:08 +01:00
Marco Martin
799a5989d9 enable blur behind 2013-02-21 14:58:09 +01:00
Marco Martin
31838228d4 add missing declaration 2013-02-21 14:49:28 +01:00
Marco Martin
efc725acec use a framesvgitem as background 2013-02-21 14:32:48 +01:00
Marco Martin
de81cdada3 implement popupPosition
call it only by setting a visualParent, don't expose it to qml for now
2013-02-20 20:39:15 +01:00
Marco Martin
a1507092a0 restore isactivewindow 2013-02-20 19:39:03 +01:00
Marco Martin
7ce2d0f7d6 sync sizes also on the other way 2013-02-20 19:31:06 +01:00
Marco Martin
f7e3a72d14 iremove unused properties
x,y,width,height are already in qquickwindow
2013-02-20 18:03:28 +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
059682af85 less dead code 2013-02-20 15:25:13 +01:00
Marco Martin
1928ecce74 make sure a transparent window 2013-02-20 15:18:58 +01:00
Sebastian Kügler
603c6e4a9b Use a PlasmaComponents.Dialog in tca 2013-02-20 06:57:39 +01:00
Sebastian Kügler
6461683f58 Some work on PlasmaComponents.Dialog
Still broken in all kinds of ways, buttons, geometry, etc.
2013-02-20 06:56:48 +01:00
Sebastian Kügler
0fe94f0dac try to make dialog transparent 2013-02-20 06:56:38 +01:00
Sebastian Kügler
a9092a7583 Three types of Dialogs on DialogsPage 2013-02-20 05:43:09 +01:00
Sebastian Kügler
877b8f03df Page with Dialogs in ComponentsApplet 2013-02-20 05:32:48 +01:00
Sebastian Kügler
ea508733d6 Rejig Dialog - starts working
It now inherits from QQuickWindow.

setting the mainItem is not reparenting it right now, this will probably
break, so needs fixing. For now, it works though as long as the mainItem
has the Dialog as parent already. WindowFlags and sizing seems to work.
2013-02-20 05:30:22 +01:00
Sebastian Kügler
305e711c8c Fix namespace of RangeModel in Slider and ProgressBar
Now those components work as well.
2013-02-20 05:27:11 +01:00
Sebastian Kügler
71e2114541 Fix RangeModel namespace 2013-02-20 05:24:03 +01:00
Sebastian Kügler
2566309c9a Start porting PlasmaCore.Dialog
This commit enables the build of PlasmaCore.Dialog. Most of the code is
disabled, as it's quite wired up with QGraphicsWidgets. The remaining
pieces are actually able to bring up a window, but don't display
anything.
2013-02-20 04:25:29 +01:00
Sebastian Kügler
226e61c432 module directive for runnermodel 2013-02-20 02:31:33 +01:00
Sebastian Kügler
0c2793718b shush 2013-02-20 02:27:41 +01:00
Sebastian Kügler
4375b61759 Add module identier to qmldirs 2013-02-20 02:09:23 +01:00
Sebastian Kügler
4683f10dcb Fix namespacing in Sheet 2013-02-20 01:36:22 +01:00
Sebastian Kügler
55a9091992 Use Item as type for ToolBar, apparently we can't use our own defined types here anymore 2013-02-20 01:36:08 +01:00
Sebastian Kügler
d3ce808a41 Fix namespacing in SectionScroller 2013-02-20 01:35:27 +01:00
Sebastian Kügler
af1ca41261 Fix namespacing in PageStack 2013-02-20 01:34:57 +01:00
Sebastian Kügler
614259cf69 Fix namespacing in Dialog 2013-02-20 01:34:26 +01:00
Sebastian Kügler
0900460842 Fix namespacing in SelectionDialog 2013-02-20 01:34:07 +01:00
Sebastian Kügler
bb842b64d2 Fix namespacing in QueryDialog 2013-02-20 01:33:57 +01:00
Sebastian Kügler
b8ccb0ded6 Fix namespacing in CommonDialog 2013-02-20 01:33:43 +01:00
Sebastian Kügler
59e65cbaee Fix import in ButtonColumn 2013-02-20 01:33:01 +01:00
Sebastian Kügler
13a0842115 add buttonspage
New page, holds buttons and text elements.
2013-02-20 01:10:29 +01:00
Sebastian Kügler
fec80c2c96 Remove activeFocus property, it's moved up into one of its parents 2013-02-20 01:09:08 +01:00
Sebastian Kügler
36564796d0 Fix namespacing for RangeModel in ScrollBar 2013-02-20 01:08:52 +01:00
Sebastian Kügler
f0e6ab494d don't show cropped text in toolbox 2013-02-20 00:50:14 +01:00
Sebastian Kügler
aa233c1055 exercise clearbutton and enabling in TextField 2013-02-20 00:26:57 +01:00
Sebastian Kügler
4e82cc5d3d TextField polishing
- remove call to closeSoftwareInputPanel before calling it, it's removed
  from TextInput in commit
3721de405e
I suppose it now "just works", but will test. The API is not there,
anyway, so it's safe to remove.
- clearbutton only shows when enabled
- clearbutton rightmargin
2013-02-20 00:26:33 +01:00
Sebastian Kügler
5d1717fcfa Focus textfield with radiobutton -- works fine. 2013-02-19 22:37:03 +01:00
Sebastian Kügler
48cd938931 do not override TextField.activeFocus property
In QtQuick2, we cannot override a property anymore. In the case of
TextField, this means we'll have to rely on Qt for focus handling.
2013-02-19 22:32:41 +01:00
Sebastian Kügler
58f719d9aa Shuffle widgets a bit to make space for a TextFiel 2013-02-19 22:31:57 +01:00
Marco Martin
30f1612982 the view qml is Back in Black 2013-02-19 20:44:24 +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
97d8362774 fix isValid() 2013-02-19 17:50:38 +01:00
Sebastian Kügler
9a3fb52e78 test theme.iconSizes -- works fine 2013-02-19 17:48:13 +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
Sebastian Kügler
f4f22df3a3 Split out testcomponents applet into several files 2013-02-19 17:12:24 +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
0a587eae5e compare only applet ids, because geometries are not here anymore 2013-02-19 14:19:08 +01:00
Marco Martin
3ce3048ad1 Containment::ToolType -> Plasma::ActionType
actions categories are no more Toolbox-specific, but generic properties for actions
2013-02-19 14:04:20 +01:00
Marco Martin
f5b51c7c54 Containment::Type -> Plasma::ContainmentType 2013-02-19 13:52:32 +01:00
Marco Martin
444d49709b move in PluginLoader metadata-related methods
listContainments
listContainmentsOfType
listContainmentTypes
listContainmentsForMimeType
2013-02-19 13:09:33 +01:00
Marco Martin
2686bed090 remove unused includes 2013-02-19 13:00:57 +01:00
Marco Martin
959103e004 ean removed friends and memebers 2013-02-19 12:41:31 +01:00
Marco Martin
32cbdac6e2 separe containmentactions and containment
most of containmentactions related stuff is now out of containment. some entanglement still exists
2013-02-19 12:03:53 +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
6941264229 remove toolBox related signals 2013-02-18 20:14:26 +01:00
Marco Martin
206c5cfb5e make containmentActionsConfig private
it will eventually have to be removed but for now the config needs to exist before the containmentactions instance, therefore still has to be out of ContainmentActions
2013-02-18 20:12:31 +01:00
Marco Martin
5b8ee2a834 remove add and remove ToolBoxAction 2013-02-18 19:09:57 +01:00
Marco Martin
79ebeb0a37 Applet::destroy() no more virtual 2013-02-18 19:01:50 +01:00
Marco Martin
d3448c01d6 remove Containment::destroy() 2013-02-18 18:59:47 +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
Marco Martin
bb005f1cc5 remove perVirtualdesktop views
remove any desktop reference from setScreen and containmentForScreen
along with lastScreen and lastDesktop
2013-02-18 18:05:45 +01:00
Marco Martin
0e8115b697 get rid of desktop and lastScreen accessors
remove Containment::desktop() lastDesktop(), lastScreen()
2013-02-18 17:57:05 +01:00
Marco Martin
94720b0cb4 get rid of Containment::clearApplets() 2013-02-18 17:50:15 +01:00
Marco Martin
87cbad5565 get rif of showDropZone 2013-02-18 17:41:34 +01:00
Marco Martin
38145bedba get rid of context menu and wheel events 2013-02-18 17:37:47 +01:00
Marco Martin
2d845a4c91 get rid of position in addApplet() 2013-02-18 17:28:29 +01:00
Aaron Seigo
1303008ee6 clearContainments is unused and ACTUALLY remove the containments when init'ing 2013-02-18 13:17:48 +01:00
Aaron Seigo
dcc4c58bf7 keep the trailing slash as long as the package is a dir
also, use chop :)
2013-02-18 12:22:35 +01:00
Sebastian Kügler
c662f09a7c Create the service directory, in case it doesn't exist.
Fixes package installation with non-existing local directories.
2013-02-18 04:09:50 +01:00
Sebastian Kügler
bbf7e910ec Fix loading plugininfo from file
Remove trailing slash from the path as it might point to a file, in
which case the file info lookup will fail.
2013-02-18 04:08:00 +01:00
Sebastian Kügler
b15f6baebd Port, make build and enable KRunnerModel plugin 2013-02-18 01:15:01 +01:00
Sebastian Kügler
6aa3947cd8 clean up linker targets in PlasmaExtras 2013-02-18 01:14:23 +01:00
Sebastian Kügler
1425583f4c correct margins inside tabgroup 2013-02-18 01:04:41 +01:00
Sebastian Kügler
e7034a50cb remove traces from dataengineconsumer and declarativeitemcontainer
dataengineconsumer is now used from kdelibs
declarativeitemcontainer is not needed with QtQuick2
2013-02-18 01:03:42 +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
Script Kiddy
a2efe7fb54 SVN_SILENT made messages (.desktop file) 2013-02-17 08:30:09 +01:00
Sebastian Kügler
1e13f5718e Fix off-by-one in RunnerModel
Forward-ported from RB

REVIEW:108922
2013-02-16 14:47:13 +01:00
Script Kiddy
72e2b9f1b6 SVN_SILENT made messages (.desktop file) 2013-02-16 09:56:02 +01:00
Marco Martin
a139247403 correctly emit appletRemoved
applet remove animation
At the moment is possible only to animate the disappearance of the background, the applet is immediately deleted.

how could be possible to animate the applet as well? (the graphic object should get to live more than Applet* and AppletScript* themselves)
2013-02-15 18:10:46 +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
Aaron Seigo
9a65f002ea move signing test into staging for now 2013-02-15 16:34:58 +01:00
Aaron Seigo
0842ae1b1a Revert "use Credentials in ServiceJob again"
This reverts commit 99088c6669.
2013-02-15 16:34:58 +01:00
Aaron Seigo
40c316e09c Revert "use Credentials in ServiceJob again"
This reverts commit 99088c6669.

	src/plasma/signing_p.h
2013-02-15 16:34:57 +01:00
Aaron Seigo
3bdef4ca2b testpackage completeness 2013-02-15 16:34:57 +01:00
Sebastian Kügler
cc0c171c18 print pressed in testapplet 2013-02-15 16:34:09 +01:00
Sebastian Kügler
bb32d5b080 Port eventFilter to Qt5/QtQuick2
Now all events already caught by children also propagate into the
MouseEventListener, making it work completely as it should (tested).
2013-02-15 16:34:09 +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
Sebastian Kügler
ac5a34dfe4 DeclarativeItemContainer goes the way of the Dino 2013-02-15 16:12:42 +01:00
Marco Martin
99088c6669 use Credentials in ServiceJob again 2013-02-15 15:44:17 +01:00
Marco Martin
7be75cab65 restore authentication-related files
authentication was removed by mistake together remote widgets
2013-02-15 15:37:33 +01:00
Aaron Seigo
8978db179f add the testing package 2013-02-15 15:17:32 +01:00
Aaron Seigo
aea5627ef4 fix packagestructure test 2013-02-15 15:16:54 +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
44699e7e0d make alpha blended panels work
unfortunately all windows must have alpha channel
2013-02-15 12:31:39 +01:00
Script Kiddy
102986ac28 SVN_SILENT made messages (.desktop file) 2013-02-15 09:09:26 +01:00
Sebastian Kügler
69dbc5a202 Finalize port of Locale bindings
Small, likely irrelevant API changes:

* removed: bool useTranscript(...)
* removed: QString translateQt(...)

has been removed in kdelibs as well, and is
removeAccelerator now uses KLocalizedString, and is expected to fully
work, so is isApplicationTranslatedInto().

Another module fully ported. :)
2013-02-15 05:32:47 +01:00
Sebastian Kügler
19d9a2b88b Port, build Locale bindings
This enables 90% of the Locale bindings. Some translation-related things
need changing.
2013-02-15 05:13:53 +01:00
Sebastian Kügler
e071a0fdd0 small cleanup 2013-02-15 04:05:58 +01:00
Sebastian Kügler
7a2828c7b3 Enable dataenginebindings: QScriptValues for engines 2013-02-15 04:04:51 +01:00
Sebastian Kügler
6c6acb9944 A whole bunch of types in PlasmaCore
This enables, ports where necessary, the rest of the DataEngine classes,
ServiceJob handling, and RunnerManager.

Now, more or less only Dialog and ToolTip are unported. Those will need
reimplementations for QtQuick2.
2013-02-15 04:01:53 +01:00
Sebastian Kügler
8fa8e6675b registerType SortFilterModel 2013-02-15 03:48:53 +01:00
Sebastian Kügler
879c0d68bf Load a DataSource - works 2013-02-15 03:47:07 +01:00
Sebastian Kügler
2ef90c4a12 Port, build and register DataModel 2013-02-15 03:46:49 +01:00
Sebastian Kügler
1c3ee1168a registerType DataSource 2013-02-15 03:36:00 +01:00
Sebastian Kügler
d8f9f8be9b Port Core.DataSource to Plasma2 2013-02-15 03:33:22 +01:00
Sebastian Kügler
3781fb6f6d elide title 2013-02-15 03:07:37 +01:00
Sebastian Kügler
d7ac446c43 Enable build of PlasmaExtras 2013-02-15 02:44:21 +01:00
Sebastian Kügler
64a396be18 Use some PlasmaExtras, Title, Heading, animations, appbackground
All seem to behave correctly. Huzzah. :)
2013-02-15 02:43:17 +01:00
Sebastian Kügler
e41d77f142 Don't jump around 2013-02-15 02:42:46 +01:00
Sebastian Kügler
b8ac0c045c Port PlasmaExtras to Qt5
The only thing missing is ResourceInstance, which needs KActivities
ported to Qt5 first. Otherwise, seems to work.
2013-02-15 02:41:31 +01:00
Sebastian Kügler
72ebf77b53 PlasmaExtras: switch imports to QtQuick 2.0 2013-02-15 02:11:38 +01:00
Sebastian Kügler
9ce105e692 Add a test page for MouseEventListener 2013-02-15 01:40:33 +01:00
Sebastian Kügler
cf04f4591b Port MouseEventListener to QtQuick2
All those signals work, I'm not quite sure what the eventFilter is used
for, the Item seems to work just fine without it. I've left it disabled
for now, maybe we can kill this code?

CCMAIL:mart@kde.org
2013-02-15 01:38:40 +01:00
Sebastian Kügler
57bac0cdaa register types for {QImage|QPixmap}Item 2013-02-15 00:24:30 +01:00
Sebastian Kügler
a283134b3e Port QtExtras.QImageItem to Qt5, enable build 2013-02-15 00:20:01 +01:00
Sebastian Kügler
49dee59515 Port QtExtras.QPixmapItem to Qt5, enable build 2013-02-15 00:16:21 +01:00
Marco Martin
9089947ace use a different qml file for the panel view 2013-02-14 21:14:04 +01:00
Marco Martin
dc5ccd2d76 be quiet 2013-02-14 19:56:36 +01:00
Marco Martin
8b5ea692b3 add another include dir 2013-02-14 19:47:08 +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
fe528a6fea Fix up include dirs 2013-02-14 17:32:41 +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