Commit Graph

10674 Commits

Author SHA1 Message Date
Sebastian Kügler
2032816118 Disable borders when we're hitting the screen's edge 2013-02-26 05:39:49 +01:00
Sebastian Kügler
d6b66ecb96 Switch enabledBorders based on popupPosition 2013-02-26 04:50:00 +01:00
Sebastian Kügler
6a73133da4 positioning for popups
- default top TopEdge
- Swap edges if specified
- shift on non-specified edges
- all borders, edge-cases (ha!) are confirmed working
- cleaned up some cruft

Not taken care of yet:
- framesvg border disabling
- sliding effect w/ kwin
- smarter resolution of visualParent
2013-02-26 03:58:55 +01:00
Sebastian Kügler
c10b33a0a0 smallish improvements in testapplet 2013-02-26 02:17:40 +01:00
Sebastian Kügler
9b4db5a7b4 Basic edge locations working inside PlasmaCore.Dialog 2013-02-26 02:17:21 +01:00
Sebastian Kügler
a32b63d297 Set edge from test applet 2013-02-26 01:14:05 +01:00
Sebastian Kügler
8131ad0abc Add PlasmaNamespace as PlasmaCore.Plasma
This is not beautiful, so we'll change it later on, for now, this allows
us to test enum settings.
2013-02-26 01:10:28 +01:00
Marco Martin
aa1940b246 partly working configuration
still writes in the wrong config file
2013-02-25 20:58:01 +01:00
Aaron Seigo
9ab4acd23a get rid of constructors which take QVariantList args as much as possible
was used to pass in URLs to construct the applet with ... which is
not the nicest of APIs as it is entirely undocumentable
2013-02-25 18:08:12 +01:00
Sebastian Kügler
14e42206b0 test code for dialog location 2013-02-25 17:55:06 +01:00
Sebastian Kügler
e2a2a9f6d2 revert int -> Qt::AlignmentFlag for location 2013-02-25 17:55:06 +01:00
Marco Martin
e00f0b10bb remove ContainmentActions::ContainmentActionsSource
all containmentactions are global separed by containment type
2013-02-25 16:55:28 +01:00
Sebastian Kügler
9e8f112be0 a few lingering bits of dialog layout code, not enabled 2013-02-25 16:48:04 +01:00
Aaron Seigo
1649761e0d remove enableAction API; just use the KActionCollection 2013-02-25 16:43:06 +01:00
Aaron Seigo
a674a7b894 expose the KActionCollection rather than wrap its API 2013-02-25 16:36:27 +01:00
Aaron Seigo
c9ff91fb0f expose the KActionCollection instead of wrapping its API 2013-02-25 16:31:26 +01:00
Aaron Seigo
0db4b9b870 don't add actions from the corona -> keyboard shortcuts aren't handled here anyways 2013-02-25 16:19:16 +01:00
Aaron Seigo
f2f96c507e remove actions related to focus; that belongs in script engine 2013-02-25 16:19:16 +01:00
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