Antonis Tsiapaliokas
afcc19815e
Now we are able to search our effects based on their name
...
and their description
2014-04-03 07:23:14 +02:00
Antonis Tsiapaliokas
853c817c80
make it build
2014-04-03 07:23:14 +02:00
Antonis Tsiapaliokas
578f43292b
Fix copyright
2014-04-03 07:23:14 +02:00
Antonis Tsiapaliokas
932bd40cb6
rename id myCheckBox => effectStatusCheckBox
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
857182ebac
Make sure that our description will only be elide when there is not enough space
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
67144780bd
Create a new QAbstractItemModel for our CompoBox.
...
In the feature we will need to hanlde some Wayland stuff
so we need our model to be smarter.
Also remove some left overs from the graphics system
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
ff08041bed
We don't need the findImage anymore.
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
11098706ce
Fix qml runtime errors
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
fcae304dac
Fix layout
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
c0a188b3f2
Remove Graphics System.
...
Graphics System is deprecated on Qt5 and it has been removed from KWin.
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
973a2e8f22
Remove deprecated ctor
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
fcff62c4b6
We don't neeed to reload our model anymore
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
081d1fc7c9
Don't load all the effects from the kwinrc.
...
Let KWin to handle that.
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
517e248c1c
Fix the coding style
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
4534cd03b9
EffectFilterModel::findImage should always return a QString
...
Also translate the rowIndex from the EffectFilterModel to the EffectModel
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
1f509b7c30
EffectModel is no more being exposed to the QML
...
Instead of the EffectModel we are using the FilterProxyModel
2014-04-03 07:23:13 +02:00
Martin Gräßlin
d9fcc9f9d5
Drop useless assignement
...
That's already in the property binding.
2014-04-03 07:23:13 +02:00
Martin Gräßlin
7d816f8198
Rename effectModel property to model
...
More consistant with other namings in QML.
2014-04-03 07:23:13 +02:00
Martin Gräßlin
81510d7e47
Make EffectModel a toplevel element in EffectView
...
The id is referenced all over the document which makes it nicer to
read if it is not a nested element.
2014-04-03 07:23:13 +02:00
Martin Gräßlin
5eb11849d4
Do not use a VisualDataModel
...
No need for this additional wrapper around the model.
2014-04-03 07:23:13 +02:00
Martin Gräßlin
934d675b73
Add missing Q_UNUSED
2014-04-03 07:23:13 +02:00
Martin Gräßlin
46c395e8ac
Specify override on overriden methods in model.h
...
Let's use C++11 - the good parts ;-)
2014-04-03 07:23:13 +02:00
Martin Gräßlin
cf5ba0378a
setRoleNames is deprecated
...
Instead implementing roleNames().
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
c32758c458
Add ComboBox for Compositing Type and for Graphics System
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
ed2cf5a8b5
Add Improved Window Management Support
...
When we click into the CheckBox the following effects are being enabled:
*kwin4_effect_desktopgrid
*kwin4_effect_presntwindows
*kwin4_effect_dialogparent
If one of the above effects gets disabled, then the checkbox is unchecked.
Our CheckBox can detect if our effects are enable at the start time.
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
cc375dab36
remove deprecated ctor
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
609c4c5470
Add ExclusiveGroup support to the checkboxes of the ListView.
...
Only ONE of the following effects can be active at the same
time.
*kwin4_effect_slideEnabled
*kwin4_effect_cubeslideEnabled
*kwin4_effect_fadedesktopEnabled
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
3ab4e1a84a
make it build and fix linking
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
025f3eba5a
KWidgets are gone. Make it build
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
16a066db78
Check if OpenGLisBroken
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
52fd2c12a2
Make all of our unit test to pass
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
e5da335fcf
Add unit test for our model
...
Add a QSortFilterProxyModel in order to search our effects
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
dac370fc61
Move effectStatus and syncConfig from EffectView class to EffectModel
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
f9706e0734
Make our dbus call async
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
34cccc91ed
Make our model able to be reloaded.
...
Also fix the coding style and make krazy happy.
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
f44691b61c
Move findImage method from EffectView to EffectModel
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
2f30411106
Make our QAbstractListModel smarter, give better names to
...
the enumenators.
Rename struct Effect to EffectData
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
abaf03c1d0
We should have only 1 proxy, not 2
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
8081e2eb53
Add buttons to the effect config dialog
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
fc662d175d
Add method findImage
...
Qt QuickControls require an abosolute path to the image
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
2431da8222
Buttons are enable only when they have something to do
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
837c44434d
Load the configuration UI for the Effects
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
51549d3ec9
Make our effects able to be enable and disable
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
32ee949a8d
Add an about button for the author and the license of the effect
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
738f730a62
Load the real effects from the system
2014-04-03 07:23:13 +02:00
Antonis Tsiapaliokas
e816a0823c
Replace -std=c++11 with -std=c++0x
...
c++0x is being supported for gcc < 4.6
2014-04-03 07:23:12 +02:00
Antonis Tsiapaliokas
4305fb79b8
Add support for c++11 and fix building issues
2014-04-03 07:23:12 +02:00
Antonis Tsiapaliokas
52326ac892
Fix license
2014-04-03 07:23:12 +02:00
Antonis Tsiapaliokas
1d6dee92fc
Initial commit
2014-04-03 07:23:12 +02:00
l10n daemon script
eef56c98b2
SVN_SILENT made messages (.desktop file)
2014-04-03 05:10:09 +00:00
Alex Richardson
5977545ee6
Fix invalid escape sequence
2014-03-25 22:17:15 +01:00
l10n daemon script
10f89d6019
SVN_SILENT made messages (.desktop file)
2014-03-24 04:35:26 +00:00
Martin Gräßlin
b274fb9297
InputRedirection emits a signal when the modifiers change
...
Used by Cursor to properly emit the mouseChanged signal which for
historic reasons includes the keyboard modifiers.
Again some fiddling around with the autotests and kcmrules needed to
make it compile. This needs improvement!
2014-03-19 14:14:56 +01:00
Martin Gräßlin
704e42163d
[kwin] Add missing includes
...
Were missing if built stand-alone.
2014-03-18 14:37:01 +01:00
Martin Gräßlin
18a37d7ee8
[kwin] Fix includes of kde4support headers
...
* drop unused headers
* use QExplicitlySharedDataPointer instead of KSharedPointer
* drop KDE/ from includes
2014-03-18 14:34:36 +01:00
Martin Gräßlin
9874187099
[kwin] Add a KWIN_SOURCE_DIR to the CMakeLists.txt
...
This is used to get to KWin's sources instead of
KDEBASE_WORKSPACE_SOURCE_DIR.
2014-03-18 12:08:14 +01:00
Martin Gräßlin
642f643dff
[kwin/kcmtabbox] Port away from kde4_add_ui_files
2014-03-18 11:51:35 +01:00
Martin Gräßlin
dbf2218338
[kwin] kde4_add_ui_files -> qt5_wrap_ui
...
Less deprecated CMake usage.
2014-03-18 11:06:56 +01:00
Martin Gräßlin
dc58fc2c32
[kwin/kcms] Another round of kdialog removals
2014-03-18 09:11:07 +01:00
Martin Gräßlin
7523c1e7d7
Integrate KWin::Cursor with InputRedirection
...
New inheriting class which uses the InputRedirection to track the cursor
position. It doesn't support warping of cursor.
This introduces a slight dependency loop in the startup. Cursor needs to
be created after the WaylandBackend to ensure that the operation mode is
set correctly. But the WaylandBackend itself is accessing Cursor. It
should be safe as inside the WaylandBackend it's only accessed after
callbacks.
2014-03-18 09:00:49 +01:00
Martin Gräßlin
8e4f8f0d9c
[kwin/kcms] Only link KCMUtils where needed
...
In some KCMs we don't use anything from KCMUtils but just KCModule
which is in ConfigWidgets.
2014-03-18 07:41:30 +01:00
Martin Gräßlin
2fad6dbf46
[kwin/kcmkwinoption] Remove unused kdialog.h include
...
It's kde4support and we don't have that.
2014-03-18 07:34:33 +01:00
Martin Gräßlin
74a4a1cd42
[kwin/kcmkwinoption] Remove not needed config-workspace.h include
...
There are no ifdefs taken from that code.
2014-03-18 07:32:45 +01:00
Aleix Pol
c72e519d9c
Remove KDE/ prefix in include directories
...
It's unneeded and deprecated since KF5.
2014-03-17 16:24:10 +01:00
Martin Gräßlin
abecbf2369
[kwin] Port away from deprecated functionality in KWindowSystem
...
Less warnings and more type safety.
2014-03-17 10:22:20 +01:00
Martin Gräßlin
b38722dc04
[kwin] Adjust to changes in NETRootInfo ctor
...
Takes flag types.
2014-03-17 08:30:58 +01:00
Martin Gräßlin
f74df28450
[kwin] Use KPluginTrader and json metadata to find KDecorations
...
* A KDecoration needs to include json metadata
* A KDecoration needs to be installed to kwin/kdecorations
* Aurorae and Oxygen adjusted
* kcmdeco locates all decorations through the KPluginTrader
* libkdecoration uses KPluginTrader to find the plugin
* config plugins also need to include json metadata with
X-KDE-PluginInfo-Name being the same as the decoration
* config plugins need to get installed to kwin/kdecorations/config
* kcmdeco locates the config plugin for a deco through the name
and KPluginTrader
REVIEW: 116765
2014-03-17 07:41:14 +01:00
l10n daemon script
4d9c6af719
SVN_SILENT made messages (.desktop file)
2014-03-14 07:37:21 +00:00
Martin Gräßlin
a51cbf7b9e
[kwin/kcmdeco] Show an information if close window by dbl click gets activated
...
The option changes the behavior of the menu button, thus we should point
out to the user that the behavior changes.
This is only done for Auroae configurations as other decorations have to
take care about it themselves.
CCBUG: 331462
REVIEW: 116715
2014-03-12 07:33:47 +01:00
Martin Gräßlin
9fc3aabc66
[kwin/aurorae] Default to no close on double click menu button
...
To increase consistency with other decorations and because it changes
the behavior of the menu button in an unexpected way we default to
double click menu button doesn't close the window.
BUG: 331462
FIXED-IN: 5.0
REVIEW: 116716
2014-03-11 15:46:21 +01:00
Martin Gräßlin
2675b5d4e7
Merge branch 'KDE/4.11'
...
Conflicts:
CMakeLists.txt
kcontrol/screensaver/screensaver.desktop
kdm/kfrontend/themes/elarun/KdmGreeterTheme.desktop
khotkeys/kcm_hotkeys/kcm_hotkeys.cpp
kinfocenter/main.cpp
kscreensaver/kblank_screensaver/blankscrn.cpp
kscreensaver/krandom_screensaver/random.cpp
kstyles/oxygen/config/main.cpp
kstyles/oxygen/demo/main.cpp
ksysguard/gui/ksysguard.cpp
kwin/clients/oxygen/demo/main.cpp
kwin/kcmkwin/kwincompositing/kwincompositing.desktop
kwin/tabbox/qml/clients/text/metadata.desktop
kwin/tabbox/qml/clients/window_strip/metadata.desktop
libs/plasmagenericshell/widgetsexplorer/package/metadata.desktop
plasma/desktop/applets/pager/package/metadata.desktop
plasma/desktop/shell/activitymanager/package/metadata.desktop
plasma/desktop/shell/data/layouts/org.kde.plasma-desktop.defaultPanel/contents/layout.js
plasma/desktop/shell/desktopcorona.cpp
plasma/desktop/shell/main.cpp
plasma/desktop/toolboxes/plasma-toolbox-desktoptoolbox.desktop
plasma/desktop/toolboxes/plasma-toolbox-paneltoolbox.desktop
plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml
plasma/generic/applets/systemtray/protocols/fdo/fdographicswidget.cpp
plasma/generic/applets/systemtray/protocols/fdo/fdographicswidget.h
plasma/generic/applets/systemtray/protocols/fdo/x11embeddelegate.cpp
plasma/generic/runners/nepomuksearch/plasma-runner-nepomuksearch.desktop
plasma/generic/wallpapers/color/plasma-wallpaper-color.desktop
plasma/generic/wallpapers/image/plasma-wallpaper-image.desktop
plasma/netbook/shell/nettoolbox/plasma-toolbox-nettoolbox.desktop
statusnotifierwatcher/statusnotifierwatcher.cpp
systemsettings/app/main.cpp
2014-03-10 21:21:16 +01:00
l10n daemon script
fbd985ae3d
SVN_SILENT made messages (.desktop file)
2014-03-10 07:33:17 +00:00
Martin Gräßlin
aee20b4a5a
Hide the OnAllDesktops button if there is only one virtual desktop
...
In KCommonDecoration the OnAllDesktops button gets hidden or shown
depending on the number of desktops. For that KDecoration is extended
by a new property which delegates to the bridge to return whether
onAllDesktops is available. In KWin Core this is implemented using
the number of desktops.
FEATURE: 321611
FIXED-IN: 5.0.0
REVIEW: 116076
2014-03-05 13:02:32 +01:00
Martin Gräßlin
4dff7888e3
[kwin] Drop build option to build without scripting
...
Scripting has proved it's point of being useful so it's time to turn it
into a mandatory part of KWin.
Also I start to use features provided by Scripting in more and more
parts of KWin core (e.g. sharing QQmlEngine) which makes it in the
long to complicated to have a build option and ifdefs for it.
REVIEW: 116587
2014-03-04 08:19:55 +01:00
Martin Gräßlin
59d91b9fd3
Use KPluginLoader to load the decoration config dialog
...
Straight forward update from KLibrary to KPluginLoader.
REVIEW: 115931
2014-03-03 14:20:08 +01:00
Martin Gräßlin
b3d3c45149
Use KPluginLoader to load our decoration plugins
...
This simplifies the plugin loading. Decorations just have to use
K_PLUGIN_FACTORY to specify how the KDecorationFactory needs to be
created. The KWIN_DECORATION macro is adjusted to generate the
boiler plate code, but it now needs to specify the name for the
pluginfactory and the KDecorationFactory.
This also transits the decoration abi version check to use
K_EXPORT_PLUGIN_VERSION which also simplifies the loading.
As a result the complete canLoad handling in DecorationPlugins is
removed.
REVIEW: 115930
2014-03-03 13:55:52 +01:00
Martin Gräßlin
3d6a77cdd7
[kwin/kcmdeco] Fix layout of button config dialog
2014-02-27 11:48:16 +01:00
Martin Gräßlin
4586767db8
[kwin] Use imported targets for all XCB libs
...
Requires 04f78489265b6e52cabd2980dfc417abeee3a695 from ECM
2014-02-25 15:48:39 +01:00
l10n daemon script
170c5a50bd
SVN_SILENT made messages (.desktop file)
2014-02-24 07:26:52 +00:00
Martin Gräßlin
b8f9fb254f
Fix config dialog of Aurorae decorations
...
Install the layout on the dialog not on the KCM.
2014-02-21 12:12:05 +01:00
Martin Gräßlin
b901928801
Fix position of buttons in decoration config dialog
...
Add after the main item, not before.
2014-02-21 12:08:31 +01:00
l10n daemon script
fab5def5e9
SVN_SILENT made messages (.desktop file)
2014-02-18 09:04:31 +00:00
l10n daemon script
6f8c3dd771
SVN_SILENT made messages (.desktop file)
2014-02-18 05:12:30 +00:00
Bhushan Shah
be8920d76c
kwin is now free of KDE4Support
...
REVIEW: 115760
2014-02-16 00:31:01 +05:30
Hrvoje Senjan
814ff851b4
Use correct Activities, they are now a proper framework
2014-02-13 20:06:33 +01:00
Martin Gräßlin
3ea8f0c217
[kwin/kcmdesktop] Don't crash if run on platform Wayland
...
Not much use currently as we don't have any desktops to configure,
but not crashing is nevertheless quite nice.
2014-02-11 15:27:28 +01:00
Martin Gräßlin
fdee4ea8c8
Adjust kde-workspace to introduction of flags in NET classes
2014-02-05 17:40:19 +01:00
Martin Gräßlin
9414d8f7f1
[kwin] Re-enable KActivities support
...
* KWin lists the activities in the Alt+F3 menu
* Kcmrules though looks wrong
2014-02-03 13:40:47 +01:00
Martin Gräßlin
a6c47e0314
[kwin] Add ProvidersUrl to *.knsrc
...
That at least inits the GHNS download dialog.
2014-02-03 13:04:12 +01:00
Martin Gräßlin
16c44810cb
[kwin] Drop more unused includes
...
--warnings
2014-02-03 11:45:35 +01:00
Martin Gräßlin
fcebfa799f
[kwin] Fix ordering
...
--warnings
2014-02-03 11:37:04 +01:00
Martin Gräßlin
014cdf9267
[kwin] Mark unused variables as unused
...
--warnings
2014-02-03 11:36:21 +01:00
Martin Gräßlin
981e7afa96
[kwin/kcmrules] Call setupUi before accessing the ui widgets
...
This caused a crash with Qt 5.3 dev branch as the widgets are null
before setupUi is called. Might be a bug in Qt but still it makes
sense to first call setupUi and then do further changes to the Ui.
2014-01-30 10:39:40 +01:00
Martin Gräßlin
823222567e
[kwin/kcmrules] Use a pointer for the KWindowInfo member variable
...
The reason for this change is that the default ctor of KWindowInfo
creates a broken object. Calling any method in it will result in a
crush. Thus it is scheduled for removal in kwindowsystem framework
causing this code to no longer compile.
The solution is to use a pointer and set it to null as long as the
window has not been detected yet. To ensure that this doesn't fail
badly an assert is added to the getter in DetectWidget.
2014-01-30 10:35:35 +01:00
Laurent Navet
d246518b9f
KWin: kwinoptions: port to KF5
...
CMakelist ui port to KF5
clean unneeded #include
Signed-off-by: Laurent Navet <laurent.navet@gmail.com>
REVIEW: 115272
2014-01-24 14:15:34 +01:00
Laurent Navet
2fe4d47c15
KF5 port KButtonGroup -> QGroupBox
...
Replace deprecated KButtonGroup by QGroupBox
Signed-off-by: Laurent Navet <laurent.navet@gmail.com>
REVIEW: 114423
2014-01-22 08:27:44 +01:00
l10n daemon script
551c0c49e6
SVN_SILENT made messages (.desktop file)
2014-01-20 04:05:30 +00:00
l10n daemon script
588ad2be66
SVN_SILENT made messages (.desktop file)
2014-01-19 06:36:32 +00:00
l10n daemon script
22a5e1109f
SVN_SILENT made messages (.desktop file)
2014-01-19 04:06:03 +00:00
Martin Gräßlin
544820793e
And another KNS3 build fix
2014-01-15 21:21:31 +01:00