Commit graph

59 commits

Author SHA1 Message Date
Martin Gräßlin
8aa8617ed4 Drop our custom KLocalizedTranslator
It's upstreamed to ki18n framework.
2014-06-18 15:02:58 +02:00
Martin Gräßlin
d0c83ddbf3 [kcmkwin/deco] Support loading translations for UI loaded configs
Qml based Aurorae themes can provided a ui file which gets loaded at
runtime. Obviously such a ui file is not translated. This introduces
quite a hack to load the translated strings.

First of all a new property is added to the service file for
specifying the translation domain to be used for the config UI. If
such a translation domain is set we extract all string properties of
the loaded UI and pass them through ki18nd.
2014-06-10 15:49:19 +02:00
Matteo De Carlo
aad36da80b Replace NULL with nullptr in kcmkwin
Replacing all NULL to nullptr in all the files in kcmkwin folder
(also substituting some "0" used as nullptr with nullptr)

REVIEW: 114803
2014-01-08 10:30:38 +01:00
Martin Gräßlin
07294b49f2 [kcmdeco] Use new DecorationButton types for describing the buttons
Rather heavy change to get the kcm to no longer use the string based
definition of the buttons on the left and right.
2013-11-14 09:41:52 +01:00
Martin Gräßlin
a98dbd7460 [kcmdeco] Drop the old preview code
All the rendering to QPixmap code in the Model and the Preview is
deleted as it's no longer used.

The model still has the plugin for the border size functionality.
This probably needs a change in the API to make it completely bound
to the decoration and not a global thing.
2013-11-14 09:41:52 +01:00
Martin Gräßlin
9013f4ac8f [kcmdeco] Use QtQuick2 for the decoration preview list
This introduces quite some changes. We cannot include a QQuickView
directly in the QWidget based UI as a replacement for the
QDeclarativeView used before.

Instead a QScrollArea is used as replacement for the view and a
QQuickView is embedded into a widget container in the scroll area's
view port. This allows us to keep the existing semantic of having a
native scroll bar synced with the list view. It might be an idea to
change this to QtQuickControls in future.

As the list view is now only inside the scroll area we do not need to
pass the slider width to the root context and can by that more easily
calculate the width of one decoration.
2013-10-01 14:05:59 +02:00
Martin Gräßlin
fe0493e63d [kcmdeco] Adjust includes 2013-10-01 14:05:58 +02:00
Martin Gräßlin
8681c69d60 [kcmdeco] slots/signals -> Q_SLOTS/Q_SIGNALS 2013-10-01 14:05:58 +02:00
Martin Gräßlin
98a04893a6 Use mgraesslin@kde.org for my mail address in Copyright and AboutData 2013-03-12 13:17:53 +01:00
Martin Gräßlin
bcfc0269ae Create the decoration listing after the KCModule has been shown
If the decoration listing gets initialized directly in the ctor as it
used to be, there is the chance of the list being not rendered in case
that there are multiple KCMs in one container and one has to switch to
the decoration KCM. This is the case for e.g. opening the KWin
configuration through the Alt+F3 menu. But that never happened when
going through Systemsettings as there (at least with English) it is
listed as the first module.

BUG: 310613
FIXED-IN: 4.10
2012-11-26 10:05:17 +01:00
Thomas Lübking
fd694c5bac Make decoration kcm more responsive
REVIEW: 105021
2012-06-07 12:37:43 +02:00
Thomas Lübking
52caeffe22 get rid of hardcoded qml ui elements
REVIEW: 105018
CCBUG: 291612
2012-06-07 12:37:32 +02:00
Martin Gräßlin
a1bee6f8a7 Proper button handling in Aurorae QML
Buttons are exported as a global "options" in the factory.
Additionally the theme's buttons are also exported. The thme decided
based on the custom button positions property which one to use.

In the kcm the button options are also exported.
2012-01-13 18:08:45 +01:00
Martin Gräßlin
5ce7381f15 Decoration KCM uses QML and loads QML based Aurorae themes
This allows to have the Aurorae themes interactive.
2012-01-13 18:08:44 +01:00
Martin Gräßlin
0a7e48f7aa KWin uses kdelibs coding style. 2011-01-31 20:07:03 +01:00
Martin Gräßlin
5a820681aa Remove the configure and about button next to the preview. The about information is presented directly in the preview and for configure a distinct button is added, which will open the configure dialog for current selected deco.
svn path=/trunk/KDE/kdebase/workspace/; revision=1118062
2010-04-23 19:44:50 +00:00
Martin Gräßlin
e92659acbf Replacing remaining tabs in kwindecoration.(h|cpp) by whitespaces to match KWin's coding style.
(Also removing indentation remark for kate)
SVN_SILENT

svn path=/trunk/KDE/kdebase/workspace/; revision=1077152
2010-01-19 13:56:57 +00:00
Martin Gräßlin
c9df18ab98 New decoration kcm:
* Displays list with previews instead of a dropdown with just the name.
* Configuration is moved into an own dialog accessible via a configure button for each decoration
* Button configuration is moved into a dialog, by that the tabs are removed
* Aurorae themes are listed just like normal decorations
* GHNS support to download Aurorae themes
* Semi-live preview of changed: when configure dialog is closed the preview is updated
* About Dialog added for each decoration (needs updates in desktop files - the information is missing)

svn path=/trunk/KDE/kdebase/workspace/; revision=1077141
2010-01-19 13:44:22 +00:00
Urs Wolfer
32b64df71b Fix issues (and port away from {QT,KDE}3SUPPORT (makes more sense IMHO than fixing Qt 3 support code, even when we are in freeze)):
* re-add icons in list widget
* fix broken coloring of text and icon in list widget when button is unsupported
* fix icon alpha channel issues (list widget and drag icon)
* use more suitable colors (btw, nice comment: // KDE 2 titlebar default colour)

* Q3StoredDrag -> QMimeData
* K3ListView -> QListWidget

svn path=/trunk/KDE/kdebase/workspace/; revision=1066614
2009-12-27 14:59:39 +00:00
Lucas Murray
424d358fd2 Less Krazy warnings please.
svn path=/trunk/KDE/kdebase/workspace/; revision=1042583
2009-10-30 08:10:35 +00:00
Lucas Murray
3fd898cbf7 Less warnings please.
svn path=/trunk/KDE/kdebase/workspace/; revision=1031445
2009-10-05 07:58:12 +00:00
Laurent Montel
e484ffff66 Show label "Options" when we don't have options
svn path=/trunk/KDE/kdebase/workspace/; revision=777389
2008-02-20 12:50:39 +00:00
Matthias Kretz
cec2557b3d port to KPluginFactory
svn path=/trunk/KDE/kdebase/workspace/; revision=705719
2007-08-28 12:42:05 +00:00
Matthias Kretz
8cb674aa75 compile using KDE3_SUPPORT for KCModule; fix forward decl.
svn path=/trunk/KDE/kdebase/workspace/; revision=705387
2007-08-27 20:48:55 +00:00
Laurent Montel
f32b3e8d92 Remove not necessary "class classname;"
svn path=/trunk/KDE/kdebase/workspace/; revision=671233
2007-06-04 08:24:29 +00:00
Luboš Luňák
f52b8e48cd branches/work/kwin_composite becomes new trunk kwin.
svn path=/trunk/KDE/kdebase/workspace/; revision=659202
2007-04-29 17:35:43 +00:00
Luboš Luňák
2b7e1f4993 Remove kwin, kwin_composite will become new trunk kwin, missing merges
from trunk will be merged in.


svn path=/trunk/KDE/kdebase/workspace/; revision=659200
2007-04-29 17:34:49 +00:00
Stephan Kulow
ab1fe691d8 merged kconfiggroup_port branch
svn path=/trunk/KDE/kdebase/workspace/; revision=635490
2007-02-20 07:00:30 +00:00
Matthias Kretz
3003c4ecf8 merge the kinstance-redesign branch back to trunk.
svn path=/trunk/KDE/kdebase/workspace/; revision=628276
2007-01-29 17:14:20 +00:00
Luboš Luňák
04c9d42dfd DBUS changes - make it compile. The DBUS HOWTO is pretty lacking
in some areas and I wonder how many things will be broken by
people not quite knowing what they're doing :-/.


svn path=/trunk/KDE/kdebase/workspace/; revision=549400
2006-06-08 13:43:23 +00:00
Laurent Montel
e8bcbc84d3 Start to port to new dbus
svn path=/trunk/KDE/kdebase/workspace/; revision=549040
2006-06-07 08:43:34 +00:00
Laurent Montel
366d1ee7cf Adapt to new kdelibs
svn path=/trunk/KDE/kdebase/workspace/; revision=538512
2006-05-08 08:28:37 +00:00
Laurent Montel
dca6e7fc4b Fix compile
svn path=/trunk/KDE/kdebase/workspace/; revision=522639
2006-03-26 11:27:40 +00:00
Laurent Montel
a48328e5bc QString::null->QString()
.clear()
etc

svn path=/trunk/KDE/kdebase/workspace/; revision=493536
2006-01-02 16:27:55 +00:00
Script Kiddy
19e65c92dc Fix FSF address
(mainly s/Steet/Street/;s/Cambridge/Boston/ )

svn path=/trunk/KDE/kdebase/workspace/; revision=490222
2005-12-21 06:45:09 +00:00
Dirk Mueller
e20f2bd6b2 SVN_SILENT: fix typo
svn path=/trunk/KDE/kdebase/kdm/; revision=467416
2005-10-05 08:44:32 +00:00
Laurent Montel
fef1c0b279 Byebye qvhbox
svn path=/trunk/KDE/kdebase/workspace/; revision=461727
2005-09-18 14:52:14 +00:00
Laurent Montel
db7d074ad1 Byebye q3valuelist
svn path=/trunk/KDE/kdebase/workspace/; revision=461499
2005-09-17 20:02:02 +00:00
Stephan Kulow
b464518b3c svn merge svn+ssh://coolo@svn.kde.org/home/kde/trunk/KDE/kdebase@438057
svn+ssh://coolo@svn.kde.org/home/kde/branches/work/kde4/kdebase
          .

I couldn't resolve one kicker conflict that results from different
development directions, so I rely on Aaron to sort it out - the file
is commited with conflicts

svn path=/trunk/KDE/kdebase/kwin/; revision=439627
2005-07-28 14:59:42 +00:00
Dirk Mueller
da212229af SVN_SILENT update FSF address
svn path=/trunk/KDE/kdebase/kwin/; revision=433335
2005-07-10 13:44:16 +00:00
Sandro Giessl
a43c9b585c move a few things from KWinDecorationModule into the new class ButtonPositionWidget in preparation for a few improvements on the widget I'm planing...
svn path=/trunk/kdebase/kwin/; revision=368215
2004-12-03 22:23:20 +00:00
Sandro Giessl
db5bbc67ee Replace the border size slider with a combobox.
svn path=/trunk/kdebase/kwin/; revision=368162
2004-12-03 19:32:35 +00:00
Sandro Giessl
1d44e0c519 Update the layout of the window decoration dialog based on Aaron's feedback
on kde-usability:
- Move the combobox back into the tab
- Move the preview below the tabbar
- Move the border size slider into the first tab to the Decoration Options
- Remove the groupbox around the custom button position widgets.

svn path=/trunk/kdebase/kwin/; revision=367949
2004-12-02 23:02:03 +00:00
Sandro Giessl
e8565670ec remove the pluginSettingsGrp groupbox
svn path=/trunk/kdebase/kwin/; revision=364650
2004-11-20 23:53:54 +00:00
Sandro Giessl
fafe39943f - Update the preview on button position/border size setting changes. Preview of
settings in the decoration's config dialogs isn't available yet.
- Move the decoration combobox and the preview out of the tab widget to be visible
  from all tabs - makes the new preview update more useful.

CCBUG:70349

svn path=/trunk/kdebase/kwin/; revision=364647
2004-11-20 23:43:16 +00:00
Albert Astals Cid
46fb958961 More KCModule that now use setAboutData so we avoid leaking of mem
svn path=/trunk/kdebase/kwin/; revision=330728
2004-07-18 23:40:42 +00:00
Frans Englich
4b522c51cb Remove all CVS Id tags from kdebase, if I haven't missed one.
Of course, this will multifold break compile as well as a dozen of people
will now object that they actually wanted the Id tags.

svn path=/trunk/kdebase/ksysguard/; revision=290873
2004-02-24 11:30:21 +00:00
Nadeem Hasan
5bf63947d9 Layout and whitespace update.
svn path=/trunk/kdebase/kwin/; revision=261305
2003-10-23 14:56:44 +00:00
Luboš Luňák
cefae8f1e4 Allows the decorations to specify which border sizes they support.
Also added GUI for the border size, not perfect, but it's there.

svn path=/trunk/kdebase/kwin/; revision=253572
2003-09-24 12:41:56 +00:00
Luboš Luňák
e102cc772b The headers didn't state the licence.
svn path=/trunk/kdebase/kwin/; revision=252352
2003-09-19 11:14:41 +00:00