kwin/tabbox
Martin Gräßlin d536532f66 [kwin/tabbox] Use a QmlComponent instead of a QQuickView for TabBox
By not using a QQuickView it becomes possible to just use a
PlasmaCore.Dialog or a Quick.Window in the TabBox qml and thus it's
possible to simplify the qml code.

To support this a new SwitcherItem is introduced and exported to QML.
It's a simple QObject providing all the properties which used to be
exported to the root context. A declarative TabBox is expected to
use one of these items. The C++ side finds the Switcher and for that
supports the case that the SwitcherItem is the rootItem or a child
item.

A declarative TabBox has also to create a QQuickWindow, e.g. a
PlasmaCore.Dialog. The visibility of that window should be controlled
through the visible property on the SwitcherItem. The underlying C++
implementation assumes that a TabBox only uses one window (it needs to
get destroyed once it's hidden and included in highlight windows).

Thanks to this change it's no longer needed to reload the TabBox
whenever it gets shown or the alternative TabBox gets shown. Instead
the same QML script can get reused. Other created switchers are ignored
as the visible property won't be changed to true.
2013-12-12 09:37:29 +01:00
..
qml SVN_SILENT made messages (.desktop file) 2013-12-10 04:05:21 +00:00
tests Improve CMake usage 2013-11-15 13:37:47 +01:00
clientmodel.cpp [kwin] Export icon in ClientModel again 2013-12-06 16:26:20 +01:00
clientmodel.h [kwin/tabbox] Make ClientModel::longestClient() invokable 2013-12-12 09:37:29 +01:00
CMakeLists.txt Plasma Package support for desktop switcher layouts 2013-04-24 11:33:06 +02:00
declarative.cpp [kwin] Remove the image provider for the TabBox 2013-12-06 16:26:21 +01:00
declarative.h [kwin] Remove the image provider for the TabBox 2013-12-06 16:26:21 +01:00
desktopchain.cpp Move Desktop Chain management from Workspace into own class 2013-01-07 09:47:51 +01:00
desktopchain.h Use Q_SLOTS and Q_SIGNALS instead of slots and signals 2013-07-24 09:46:54 +02:00
desktopmodel.cpp Role names for Desktop Tabbox model 2013-04-24 11:47:15 +02:00
desktopmodel.h Use mgraesslin@kde.org for my mail address in Copyright and AboutData 2013-03-12 13:17:53 +01:00
kwindesktopswitcher.desktop SVN_SILENT made messages (.desktop file) 2013-11-23 03:52:00 +00:00
kwinwindowswitcher.desktop SVN_SILENT made messages (.desktop file) 2013-11-12 04:02:42 +00:00
switcheritem.cpp [kwin/tabbox] Use a QmlComponent instead of a QQuickView for TabBox 2013-12-12 09:37:29 +01:00
switcheritem.h [kwin/tabbox] Use a QmlComponent instead of a QQuickView for TabBox 2013-12-12 09:37:29 +01:00
tabbox.cpp [kwin] Remove KActionCollection usage in TabBox 2013-12-10 09:34:11 +01:00
tabbox.h [kwin] Remove KActionCollection usage in TabBox 2013-12-10 09:34:11 +01:00
tabboxconfig.cpp Remove show outline from TabBox 2013-04-24 10:02:57 +02:00
tabboxconfig.h Fix no cast to/from ASCII intrduced issues 2013-07-24 09:58:33 +02:00
tabboxhandler.cpp [kwin/tabbox] Use a QmlComponent instead of a QQuickView for TabBox 2013-12-12 09:37:29 +01:00
tabboxhandler.h [kwin] Use a QIcon in Client for the icons instead of Pixmaps 2013-12-06 14:41:23 +01:00