Commit Graph

904 Commits

Author SHA1 Message Date
Sebastian Kügler
a515edf387 Delete bare-bones toolbox
We can use the one in kde-workspace[frameworks-scratch] now
2013-05-02 23:49:46 +02:00
Marco Martin
1137b4ea5c remove associated items/widgets 2013-05-02 19:02:06 +02:00
Marco Martin
4692c941af add ServiceOperationStatus binding
this class is used to monitor the enabled status of service operations
2013-05-02 18:56:00 +02:00
Marco Martin
8f61ecbe49 remove operationsChanged signal 2013-05-02 18:13:05 +02:00
Marco Martin
4397a6c06d add operationEnabledChanged signal 2013-05-02 18:11:20 +02:00
Marco Martin
08ed91d7e0 Data is a QVariantmap again
this means that DataEngines and the Storage Service are directly usable from QML2 again
2013-05-02 18:02:38 +02:00
Marco Martin
465c202b9b remove dead code 2013-05-02 17:42:07 +02:00
Marco Martin
5b648e5a23 complete migration, storage test passes
results still have to be converted in qmaps
2013-05-02 15:33:57 +02:00
Marco Martin
b0530820ec use variant maps instead of configgroups
services operationdescriptions are now QVariantMaps
2013-05-02 14:46:29 +02:00
Marco Martin
aa8ed30fda ConfigLoaderHandlerMap that loads config in maps
ConfigLoaderHandlerMap populates a qvariantmap instead of a kconfigskeleton
will be used by service for operations
2013-05-02 13:31:18 +02:00
Marco Martin
e58ab0bc99 move ConfigLoaderHandler in own header 2013-05-02 11:33:23 +02:00
Marco Martin
1d7c6af919 remove Service::access() 2013-05-02 11:02:06 +02:00
Script Kiddy
fc3f25b2a7 SVN_SILENT made messages (.desktop file) 2013-05-02 09:19:42 +02:00
Sebastian Kügler
6a830d676b fix typos in i18n comments 2013-05-02 05:06:35 +02:00
Script Kiddy
b105c2a56c SVN_SILENT made messages (.desktop file) 2013-05-01 09:15:13 +02:00
Script Kiddy
f784cfb07f SVN_SILENT made messages (.desktop file) 2013-04-30 17:38:15 +02:00
Sebastian Kügler
47c63deb6f elegantly work around
the hack
2013-04-30 02:59:02 +02:00
Sebastian Kügler
b68317e930 Use QVariant for MenuItem::icon
This way, we can cover string and QIcon assignments transparently,
another backwards compatibility fix, and easier thing in Plasma2: Now
the user doesn't have to worry about creating QIcons, but can just
assign the icon name, and it will get loaded from the theme. Models that
provide QIcons (such as QStandardItems) now work correctly with
PlasmaCore.MenuItems.
2013-04-30 02:50:42 +02:00
Sebastian Kügler
cb5f8a3248 Clip the applet and prevent some mess on the screen 2013-04-30 02:34:48 +02:00
Sebastian Kügler
e4976005c6 Fix crasher with 0x0 windows
It can happen that the visualParent has no window attached, so don't
access it. In this case, use the visualParent's geometry.
2013-04-30 02:33:17 +02:00
Sebastian Kügler
20aa17dfe7 FrameSvgItem background for widgetexplorer window 2013-04-30 02:06:44 +02:00
Sebastian Kügler
c5bb3cecf5 Improve macro usage
Now that we have the improved macro, use the type name in the desktop
file name
2013-04-29 18:35:25 +02:00
Marco Martin
05667460e5 less friends 2013-04-29 12:45:40 +02:00
Sebastian Kügler
f5192aa1fe those cmake files aren't needed anymore 2013-04-27 03:45:03 +02:00
Sebastian Kügler
992587bb8c Move show package info after parsing -t flag
This makes showing the contents of all package types possible.
2013-04-27 03:38:47 +02:00
Sebastian Kügler
29d823cde7 Correct loginmanager mainscript 2013-04-27 03:38:25 +02:00
Sebastian Kügler
f4238d7cb2 Add mainscript so the packages are actually valid 2013-04-27 03:37:45 +02:00
Sebastian Kügler
5175188693 Skeleton for Look & Feel package
This is an empty package, with directories and zero-sized files set up
that can be filled in.
2013-04-27 03:36:32 +02:00
Sebastian Kügler
015b20e514 Correct Messages.sh
../lookandfeel/
2013-04-27 03:13:01 +02:00
Sebastian Kügler
1c73bf2e27 Use installPackage macro for shell/qmlpackages
This now installs the service types correctly, so they can be found
using KServiceTypeTrader (and thus using plasmapkg).
2013-04-27 03:07:39 +02:00
Sebastian Kügler
43812710d5 plasmapkg: Add type argument to --list-types output
It's a bit silly to list the types, but don't tell the user which
argument the -t flag expects, so add those to the --list-types output
2013-04-27 02:39:13 +02:00
Sebastian Kügler
fe71859688 Add Shell and Look and Feel package types to plasmapkg 2013-04-27 02:26:35 +02:00
Sebastian Kügler
a426264037 fix package root for wallpapers, makes it find the metadata, add debug 2013-04-26 23:48:50 +02:00
Marco Martin
31e39640ce correct kdeclarative includes 2013-04-26 17:36:45 +02:00
Marco Martin
304fdeff5d reorganize shell package 2013-04-26 17:10:39 +02:00
Marco Martin
36c25f085d make the "plasmoid" property work agaon 2013-04-26 13:42:23 +02:00
Marco Martin
5e906f24c7 Merge branch 'configdialog_in_shell' 2013-04-26 13:28:08 +02:00
Marco Martin
b0b03f4a8f create config uis always from the same point 2013-04-26 13:00:07 +02:00
Marco Martin
f6765fda8c bind the panel again to the config dialog 2013-04-26 10:46:42 +02:00
Script Kiddy
03a2990b9f SVN_SILENT made messages (.desktop file) 2013-04-26 08:58:42 +02:00
Marco Martin
7301f6d8b7 panelconfigview is a subclass of configview 2013-04-25 22:38:27 +02:00
Marco Martin
d44f0973d3 get rid of local qmlobject and config bindings
they're in kdeclarative now
2013-04-25 20:56:36 +02:00
Marco Martin
7be9da07b4 correctly load containment config ui 2013-04-25 15:07:02 +02:00
Marco Martin
5efb247935 correctly build the wallpaper model 2013-04-25 14:11:53 +02:00
Marco Martin
4feb02c329 config ui of applets should work again 2013-04-25 11:43:00 +02:00
Script Kiddy
6a2dbd38d6 SVN_SILENT made messages (.desktop file) 2013-04-25 09:27:27 +02:00
Sebastian Kügler
5b95a759c9 use qdebug 2013-04-25 03:24:28 +02:00
Sebastian Kügler
77f8d35ea9 Install wallpaper, shell and lookandfeel servicetypes 2013-04-25 03:23:53 +02:00
Sebastian Kügler
f9ec377f6e disable fs-based listing for wallpapers, works with kservice now 2013-04-25 03:23:35 +02:00
Sebastian Kügler
c73761689e Correct service type 2013-04-25 03:23:06 +02:00
Sebastian Kügler
7da43cfdc9 Use new service type and cmake macro for wallpapers 2013-04-25 02:13:02 +02:00
Marco Martin
e7ca00e534 move the config dialog in the shell
it still doesn't successfully load
2013-04-24 22:54:46 +02:00
Sebastian Kügler
db5ef57480 make sure we don't access an invalid config and crash 2013-04-23 18:17:08 +02:00
Script Kiddy
e1f17c63b6 SVN_SILENT made messages (.desktop file) 2013-04-23 17:19:30 +02:00
Script Kiddy
daea562789 SVN_SILENT made messages (.desktop file) 2013-04-22 09:05:22 +02:00
Sebastian Kügler
c835af2d06 Move image wallpaper to color, reflecting reality 2013-04-21 18:37:03 +02:00
Aaron Seigo
5806fa8077 make it all work for reals 2013-04-21 18:36:00 +02:00
Aaron Seigo
f1316f0ce2 add the runtime platform entry 2013-04-21 18:35:52 +02:00
Aaron Seigo
114de64ed4 correct the .desktop file 2013-04-21 18:16:50 +02:00
Aaron Seigo
dad03a43ce first draft of the platform status kded module 2013-04-21 18:04:29 +02:00
Sebastian Kügler
53a70b703d Add servicetypes for Wallpaper, Shell and LookAndFeel
CCMAIL:plasma-devel@kde.org
2013-04-21 18:02:37 +02:00
Sebastian Kügler
e055ad43db file definitions for LnF package 2013-04-21 17:55:55 +02:00
Sebastian Kügler
c2a1cfb95c Directory definitions for Look and Feel package structure 2013-04-21 16:27:54 +02:00
Sebastian Kügler
54bd825668 Start of look and feel package structure 2013-04-21 11:21:41 +02:00
Marco Martin
79d5724ef1 always emit Containment::requestConfiguration()
emit that signal when the configure action is treggered for each applet,
the applet pointer to the interested applet is passed

is the first step for moving config ui i the sell
2013-04-20 18:31:57 +02:00
Sebastian Kügler
0fbe46415c comment improvements 2013-04-18 17:29:57 +02:00
Stephen Kelly
268f44fc3b Remove use of qt4_automoc.
It is obsolete.
2013-04-12 11:09:43 +02:00
Sebastian Kügler
e660246b2b more output polishing 2013-04-12 02:59:31 +02:00
Sebastian Kügler
03472443ec Remove special handling for Plasma/PopupApplet
This servicetype has gone, since popups are entirely managed by the
applets compactRepresentation property and minimum size. The service
type has already gone, so don't look for them anymore.
2013-04-12 02:59:31 +02:00
Sebastian Kügler
2ece64af93 fix race, improve feedback
- return after starting the install job instead of exiting. This only
  works accidentally, since the start of the job happens inside this
  event loop cycle, it will leave installation in a random state for
  larger payloads. The fix is easy: only exit after installing.

- improve output: report installation, deinstallation and upgrade
  consistently to cout.

- Now all operations correctly exit with either 0 or 1,   so plasmapkg
  will work fine in scripts.
2013-04-12 02:59:31 +02:00
Sebastian Kügler
d8d9d2952d ws-- 2013-04-12 02:06:52 +02:00
Sebastian Kügler
74febc2219 test locale bindings 2013-04-12 02:06:42 +02:00
Anant Kamath
f66a3608c0 Fixed exporting flags to QML 2013-04-12 03:12:04 +05:30
Sebastian Kügler
39de2a637c Fix crash in SortFilterModel::mapRowFromSource()
It was not using the correct model to get the source index from the
row.

Patch by Aurélien Gâteau

CCMAIL:agateau@kde.org
REVIEW:109946
2013-04-10 16:19:34 +02:00
Sebastian Kügler
e01912d071 Improve plasma-shell app metadata 2013-04-10 02:25:32 +02:00
Sebastian Kügler
70b303fde6 support generic packages in plasmapkg 2013-04-10 02:22:25 +02:00
Sebastian Kügler
fe8be600c6 Don't crash when the containment or toolbox doesn't load
Check if the containment could be loaded (this includes the toolbox), if
not, don't poke into its rootObject.
2013-04-10 02:18:41 +02:00
Sebastian Kügler
788870fffc Don't crash when an engine failed to load
Prevents accessing an invalid KPluginInfo object, which is passed in
here for null engines.
2013-04-10 01:50:31 +02:00
Sebastian Kügler
63366d4218 a few more optimizations and better docs for tooltip 2013-04-09 04:38:06 +02:00
Sebastian Kügler
3859dbdd07 Improve API docs 2013-04-09 04:02:19 +02:00
Sebastian Kügler
e7887ee199 more removal of unnecessary stuff 2013-04-09 03:52:59 +02:00
Sebastian Kügler
3bd1d939e8 remove maincomponent and target properties from tooltipproxy 2013-04-09 03:50:43 +02:00
Sebastian Kügler
50a4abac6d ToolTip polishing
- manage mainComponent entirely in ToolTip.qml
- less resizing/setvisible makes it faster and smoother
- fix timer connects in dialog
- Kill dead code
2013-04-09 03:42:54 +02:00
Sebastian Kügler
98d432ebca Try a special component as tooltip: works 2013-04-09 03:42:41 +02:00
Sebastian Kügler
ea41410004 rename testplasma2 binary to plasma-shell
This also means that the config file is now
~/.config5/plasma-shell-appletsrc

CCMAIL:plasma-devel@kde.org
2013-04-09 03:00:10 +02:00
Sebastian Kügler
2cc96aac45 kill tooltipwindow implementation
We use a dialog subclass-singleton now.

I love the smell of dead code in the morning.
2013-04-09 01:27:25 +02:00
Sebastian Kügler
4c21d54980 add objectnames for easier debugging 2013-04-09 00:09:07 +02:00
Sebastian Kügler
9eda3882ca Make tooltip positioning work 2013-04-09 00:09:07 +02:00
Marco Martin
5a82aa9211 remove RunnerManager::execQuery() 2013-04-08 13:14:17 +02:00
Marco Martin
c3e2a6e671 smaller sectionscroller 2013-04-05 11:08:30 +02:00
Sebastian Kügler
e0c7eaafad dynamic object creation inside tooltip
The mainItem is now a Component, which gets created on demand and passed
to the tooltip dialog.

Positioning is a bit off now, but it basically seems to work as we'd
like it to.
2013-04-05 04:27:55 +02:00
Sebastian Kügler
8eab0f20f2 tooltip now uses a dialog
A bit crude, and only half-working, but shows up
2013-04-05 01:10:53 +02:00
Sebastian Kügler
feda4f5013 make tooltipdialog a singleton 2013-04-05 00:30:17 +02:00
Sebastian Kügler
e48908eb70 add tooltipdialog class
Let's try to share more code with dialog -- especially sizing, frame
painting and positioning with dialog. This means a bit of rewiring, but
should result in more lazy-loaded, shared objects.

The idea is to have at most one window, which is recycled for all
tooltips, making it possible to animate transitions.
2013-04-04 23:50:44 +02:00
Sebastian Kügler
95dddcea35 split tooltip and tooltipwindow 2013-04-04 23:33:05 +02:00
Marco Martin
f9adc7a598 remove DataEngine::init()
with only one ctor is not necessary anymore
2013-04-04 18:07:18 +02:00
Marco Martin
4875658944 only one constructor remains
explicit DataEngine(const KPluginInfo &plugin, QObject *parent = 0);
2013-04-04 18:05:03 +02:00
Marco Martin
fe803e1c79 find solid 2013-04-04 17:51:01 +02:00
Marco Martin
3243e69334 link to Solid 2013-04-04 17:43:48 +02:00
Marco Martin
037a86530d add ctor with a KPluginInfo 2013-04-04 17:43:30 +02:00
Marco Martin
5af5da2687 move all loading function to PluginLoader 2013-04-04 17:34:27 +02:00
Marco Martin
efc1264592 use QHash<QString, QVariant> instead of Data
don't use extra typedefs in signatures
2013-04-04 17:34:27 +02:00
Marco Martin
41b3a17011 scheduleSourcesUpdated() is now private 2013-04-04 17:34:27 +02:00
Marco Martin
5c051f10eb SourceDict -> QHash<QString, DataContainer*>
the typedef is still there, but don't use anywhere in the code
2013-04-04 17:34:27 +02:00
Marco Martin
12b5b7639d remove DataEngine::query() 2013-04-04 17:34:27 +02:00
Sebastian Kügler
d207025d8f Blur behind for tooltips
Also clean up flags a bit.
2013-04-04 16:00:57 +02:00
Sebastian Kügler
010f471bc7 Restore API: ToolTip.visualParent becomes target 2013-04-04 05:11:31 +02:00
Sebastian Kügler
e4ee4d6dd0 basic tooltip featureset finished
This implementation deviates a bit from the Plasma 1 tooltips:
- image is now a string
- tooltips align to the parent by default, or the visualParent set
Otherwise, the changes should be fairly transparant.

A crude basic featureset works.
2013-04-04 05:02:51 +02:00
Sebastian Kügler
c2b868fa56 Add two test images, use them for tooltips 2013-04-04 05:01:57 +02:00
Sebastian Kügler
c739f3ae58 Increase margins a bit, wm hints 2013-04-04 02:02:10 +02:00
Sebastian Kügler
7e6d750f2a Window size synching with tooltip content 2013-04-04 01:46:02 +02:00
Sebastian Kügler
efd12a5ec1 Add components to default tooltip, fix layout 2013-04-04 01:27:14 +02:00
Marco Martin
f42192fb9b remove DataEngine::icon() 2013-04-03 20:48:55 +02:00
Marco Martin
16e69aafcd remove DataEngine::name() 2013-04-03 20:47:02 +02:00
Marco Martin
afe7a925d4 add DataEngine::pluginInfo() 2013-04-03 20:41:59 +02:00
Sebastian Kügler
20a4e6ca43 add ToolTip.qml 2013-04-03 20:23:51 +02:00
Sebastian Kügler
25a031efbe Add testing code for tooltips in testcomponentsapplet 2013-04-03 02:25:59 +02:00
Sebastian Kügler
a6526d7bbe Start rewrite of tooltip
ToolTipProxy is now a QQuickWindow and renamed to ToolTipWindow.
This is done in C++.
ToolTip itself is a QML file, which internally uses tooltipwindow to
display the attached item.

Basic showing / hiding and embedding an Item works, positioning,
margins, etc are not implemented yet. Neither are special windowmanager
hints and flags.
2013-04-03 02:23:22 +02:00
Sebastian Kügler
1c5faf9271 add fixme 2013-04-03 02:22:56 +02:00
Sebastian Kügler
0bac65e374 Strip down tooltip so it builds 2013-04-03 00:50:00 +02:00
Sebastian Kügler
76ced6ff80 Remove fixed FIXME 2013-04-03 00:49:36 +02:00
Sebastian Kügler
78b6fa2c81 service's associatedItem is a QQuickItem now 2013-04-03 00:10:04 +02:00
Script Kiddy
437f003387 SVN_SILENT made messages (.desktop file) 2013-04-02 17:21:30 +02:00
Sebastian Kügler
2c226f6023 Adjust to new ThreadWeaver API
This change is needed to build RunnerManager against an updated
ThreadWeaver. As this change is not backwards compatible, you'll need to
update your kdelibs[frameworks] to at least 4502362ad.

CCMAIL:plasma-devel@kde.org
2013-04-02 16:24:03 +02:00
Marco Martin
6083840313 clearer menaning for id parameters
marchId and RunnerId vs just id
2013-04-02 13:48:10 +02:00
Sebastian Kügler
b1ce94159d KDE::icon becomes QIcon::fromTheme 2013-04-02 12:55:37 +02:00
Script Kiddy
9e9b080392 SVN_SILENT made messages (.desktop file) 2013-03-29 09:20:10 +01:00
Script Kiddy
a7e48aae80 SVN_SILENT made messages (.desktop file) 2013-03-28 09:07:44 +01:00
Sebastian Kügler
f17e903d7c More predictable behaviour of wallpaper chooser 2013-03-28 04:29:33 +01:00
Sebastian Kügler
41aaa5a904 Make it possible to choose wallpapers without config
Wallpapers don't necessarily have config UIs, so we need to take a bit
of care that we don't try to load them. Just hide the pagestack instead.
2013-03-28 03:52:15 +01:00
Sebastian Kügler
40ac6a5f0c Make upgrading wallpapers work
We were previously accessing an invalid metadata, because wallpapers
aren't necessarily found as plugins: Take care of this case.
2013-03-28 03:50:06 +01:00
Sebastian Kügler
98b4ceb3a2 Watch out for invalid wallpaper packages 2013-03-28 01:58:52 +01:00
Sebastian Kügler
2ac12c5fe6 Fix typo in var name 2013-03-28 01:50:19 +01:00
Sebastian Kügler
b19f4fe01d also consider KServices in plasmapkg wallpaper listing 2013-03-28 01:38:43 +01:00
Sebastian Kügler
1dfab488e0 const&ness 2013-03-28 01:16:42 +01:00
Sebastian Kügler
ce6919b424 tighten up a bit 2013-03-28 01:12:42 +01:00
Sebastian Kügler
c12ecd0f51 plasmapkg: make listing wallpapers work 2013-03-28 01:11:44 +01:00
Sebastian Kügler
cbe0d39b99 add spacing in buttonrow and column 2013-03-27 22:27:22 +01:00
Sebastian Kügler
f2008a14e2 small cleanup 2013-03-27 02:52:57 +01:00
Sebastian Kügler
2bb2852906 improve dragdroppage 2013-03-27 02:52:44 +01:00
Sebastian Kügler
ad1311ddd3 Attach an image to the drag
it now works with delegate, color and image, urls in the form of icons
tbd.
2013-03-27 02:50:45 +01:00
Sebastian Kügler
c965edb741 Enable category filtering in widgetexplorer 2013-03-27 00:24:11 +01:00
Sebastian Kügler
b1a42929a5 Make listing categories and filtering work 2013-03-27 00:23:47 +01:00
Sebastian Kügler
498dcb30b6 enable a few more things 2013-03-26 22:54:37 +01:00
Sebastian Kügler
a0fb4356dc Positioning of Menu on screen
Actually quite a bit more lightweight than its QGV predecessor.
2013-03-26 22:34:35 +01:00
Sebastian Kügler
0ef4080e4f positioning for context menu 2013-03-26 22:17:25 +01:00
Sebastian Kügler
aedfc3a580 test code for menu in testcomponentsplasmoid 2013-03-26 20:19:42 +01:00
Sebastian Kügler
335e0b6d9d Port Menu and MenuItem to QtQuick2
In MenuItem, we can't inherit QAction anymore (our MenuItem has to be a
QQuickItem), so we need to aggregate, which means adding glue API.

Positioning code is disabled, icons broken, but a QMenu with our items
inside shows up and is works.
2013-03-26 20:15:56 +01:00
Sebastian Kügler
b2e2cff847 various improvements and fixes to widgetexplorer 2013-03-26 03:54:35 +01:00
Sebastian Kügler
f9b52427e7 Move widgetexplorerview into its own class 2013-03-26 02:41:58 +01:00
Sebastian Kügler
9bc347006d Connect closeClicked signal 2013-03-26 02:06:40 +01:00
Sebastian Kügler
243e8d23e3 make widgetexplorer show up
it lists widgets, allows to add them now.

Categories and download new widgets are disabled for now.

It seems PlasmaComponents.MenuItem is broken (it inherits its API from QAction,
but in QtQuick, it has to be a QQuickItem to be accepted as Delegate.
This might need glue-api. :/)
2013-03-26 01:55:17 +01:00
Sebastian Kügler
9684d17e9a Change imports to Plasma2 2013-03-26 01:12:25 +01:00
Sebastian Kügler
9c6b7539bc fix namespacing in ContextMenu 2013-03-26 01:12:04 +01:00
Sebastian Kügler
827a4d1c7e pristine copies of widget explorer QML files from package in kde-workspace 2013-03-26 00:48:37 +01:00
Marco Martin
5796ed1527 expose thickness 2013-03-22 16:13:12 +01:00
Marco Martin
a2c5a76eff add more properties to views
control them with the panel controller
probably will change architecture: seems safer to put the panel controller in an "expanded" panelview instead?
2013-03-22 14:39:33 +01:00
Sebastian Kügler
843bd1c1e9 revert last change 2013-03-21 23:30:40 +01:00
Marco Martin
395dc9b381 manage the case a containment behaves as an applet
however loading mechanism should be changed to make applets in containments always be an Applet*
2013-03-21 19:05:53 +01:00
Marco Martin
b8b3c0a89c make the view transparent
fixes rendering on nvidia
2013-03-21 16:58:06 +01:00
Sebastian Kügler
7e9b152acf init applet after it's added 2013-03-21 16:48:13 +01:00
Sebastian Kügler
60fda41cfe add widgetexplorer button in testcontainment 2013-03-21 05:44:38 +01:00
Sebastian Kügler
12f481e50a header cleanup, copyrights, runtime warnings-- 2013-03-21 05:22:46 +01:00
Sebastian Kügler
64b3812c05 logic to load Plasmoids
- add a mousearea to the delegate that calls
  widgetExplorer.addApplet(pluginName)
- in widgetsexplorer, locate the plasmoid, load it via
  Applet::loadPlasmoid(), then add it to the containment
- In showWidgetExplorer, we set the widgetExplorer's containment to the
  sender(), if there's no containment set, we can't add the applet. This
  way, the widgetexplorer knows which containment the applet should go to

This makes it possible to add Plasmoids via the GUI :-)
2013-03-21 05:04:17 +01:00
Sebastian Kügler
1619430697 add WidgetExplorer object to the rootContext
- WidgetExplorer is parented to the view, and deleted / init'ed along
  with it
- the model is populated before the QML UI is loaded

The explorer now shows a list of widgets, no interaction atm.
2013-03-21 04:03:05 +01:00
Sebastian Kügler
bc2b5bd9fc Initialize the model 2013-03-21 04:02:44 +01:00
Sebastian Kügler
6d511c0f6a Listview showing pluginnames 2013-03-21 03:57:37 +01:00
Sebastian Kügler
c210adaf20 make-it-build 2013-03-21 03:25:26 +01:00
Sebastian Kügler
253e7b2c60 add widgetexplorer to the build 2013-03-21 03:21:36 +01:00
Sebastian Kügler
2c622914af Make widgetsexplorer almost build
Lots of slaughtering going on here, as we're ripping out
QGraphics*-based UIs. The widgetExplorer object won't have UI in it
anymore, as that is done in the desktop shell package (rather than its
own package).

Lots of features are disabled right now (install, uninstall, download),
the idea is to first just get the model working, and then re-enable
features one at a time.
2013-03-21 03:19:01 +01:00
Sebastian Kügler
8f04230c5e pristine copies of widgetexplorer.{h,cpp}
from kde-workspace/libs/plasmagenericshell/widgetsexplorer
2013-03-21 03:17:57 +01:00
Sebastian Kügler
9da71194c8 port away from KIcon 2013-03-21 03:13:30 +01:00
Sebastian Kügler
7bea46d23c Port model to Qt5/Frameworks5 2013-03-21 01:49:35 +01:00
Sebastian Kügler
d099b7e2c6 Pristine copies of applet model from
from: kde-workspace/libs/plasmagenericshell/widgetsexplorer
2013-03-21 01:33:57 +01:00
Sebastian Kügler
d4d9b70721 window title for add widgets 2013-03-21 01:06:43 +01:00
Sebastian Kügler
1db566ee2b Add widget explorer qml file -- pretty bare. 2013-03-21 01:03:44 +01:00
Sebastian Kügler
94d14ac5da Widgetexplorer - wiring up
- add explorer subdirectory to shellpackge, add widgetexplorer filedefinition
- hook up containment added with a connection to showing the widget
  explorer
- memory management for widget explorer: create on demand, delete after
  close: Maybe we want to cache it? For now, go for reduced memory
  consumption rather than quick opening, and see how slow this might
  react.
- add QQuickView for widget explorer in desktopcorona

With this patch, I can open a widget explorer window from the QML
containment. Of course, the widget explorer is just a pink window right
now.
2013-03-21 01:03:44 +01:00
Sebastian Kügler
bbb1f590b3 different icon in testapplet 2013-03-21 01:03:44 +01:00
Marco Martin
ed36b6aab4 bigger clear button 2013-03-20 21:14:04 +01:00
Marco Martin
a1eda09446 sync the panel controller size with screen 2013-03-20 20:24:10 +01:00
Sebastian Kügler
195f76c85a clean up includes 2013-03-20 01:27:33 +01:00
Sebastian Kügler
395bb412eb Fix a few errors in the testplasmoids 2013-03-20 01:19:46 +01:00
Marco Martin
5e3723cd7c a very simple panel controller
dummy, but setting the offset already works
2013-03-19 22:07:27 +01:00
Sebastian Kügler
55c3eeacea radio buttons to choose backound 2013-03-19 05:08:39 +01:00
Sebastian Kügler
601f61ec39 layout improvements 2013-03-19 03:35:24 +01:00
Sebastian Kügler
80848e750b Colorshower as first page 2013-03-19 03:35:01 +01:00
Sebastian Kügler
f972925392 these signals have gone 2013-03-19 03:34:28 +01:00
Sebastian Kügler
58537d36ed setFocus has gone from Applet 2013-03-19 03:33:33 +01:00
Sebastian Kügler
729c3fed2d expose Applet::id() in the plasmoid object
We need this in the containment to do our book-keeping, if we just guess
the applet id, we don't know which containment is passed into
addApplet(), so we can't know where to restore it. So we use applet.id
to match a geometry saved to the config with the applet that is being
loaded.
2013-03-19 00:29:48 +01:00
Sebastian Kügler
fbf4ada101 remove hardcoded size 2013-03-19 00:29:37 +01:00
Sebastian Kügler
0d3f204acb add debug for toolbox 2013-03-18 21:43:56 +01:00
Sebastian Kügler
68987f0fa5 Default size 1024x768
Makes the initial size of the shell a bit bigger so we can test multiple applets
2013-03-18 21:43:13 +01:00
Sebastian Kügler
682ac73078 qmlRegisterType QAction, needed for plasmoid actions 2013-03-18 19:48:16 +01:00
Script Kiddy
f2d22f09a3 SVN_SILENT made messages (.desktop file) 2013-03-18 09:00:44 +01:00
Stephen Kelly
d8258866f4 Fix build in debug mode.
It seems some plasma API has changed, so I just commented it out. It
can be uncommented by someone who knows what to change it to.
2013-03-16 12:19:54 +01:00
Script Kiddy
de7289fe14 SVN_SILENT made messages (.desktop file) 2013-03-16 09:39:01 +01:00
Sebastian Kügler
6b3a49df98 Fix typos 2013-03-16 01:01:54 +01:00
Sebastian Kügler
b9942926ed Fix reference error 2013-03-15 00:45:12 +01:00
Marco Martin
056d45d197 fix version number 2013-03-14 15:36:38 +01:00
Script Kiddy
e331e06425 SVN_SILENT made messages (.desktop file) 2013-03-14 09:57:34 +01:00
Marco Martin
fbb766acd7 use only uniform vec2 2013-03-13 21:50:13 +01:00
Marco Martin
5494d40134 use a vec2 instead of two reals 2013-03-13 20:28:02 +01:00
Marco Martin
df1b259802 convert from 1 to 1.0
integers are not allowed there
2013-03-13 20:17:28 +01:00
Marco Martin
086d3e1e8f try an actual wobblywindows effect
it still has some serious problems:
-animation not smooth
-the deformation is linear, the applet appears broken
-unfortunately the ShaderEffect must be a lot bigger thanthe thing it deforms because it looks clipped now
2013-03-13 17:47:55 +01:00
Marco Martin
46b83aaced adapt to api change 2013-03-13 14:00:51 +01:00
Marco Martin
c8efa02fed use the package name instead of app name
plasma2 will have only one executable for different shells
(also, appears to fix a weird crash)
2013-03-13 13:56:53 +01:00
Marco Martin
8a8a9554e9 execute the update scripts, if any 2013-03-13 13:30:37 +01:00
Marco Martin
0223f929dd listen to print and printError 2013-03-13 13:18:49 +01:00
Marco Martin
1a6e9cd85d remove defaultLayoutScripts
this path is now taken from the corona package
2013-03-13 13:18:49 +01:00
David Faure
c82ff42e76 remove old include 2013-03-13 12:16:35 +01:00
Marco Martin
99bab1825e get rid of PaintUtils
the only one using it was PlasmaCore.IconItem, move the transition() function there
2013-03-13 12:05:06 +01:00
Marco Martin
8df5da1c50 group files by topic in the cmake file 2013-03-13 11:56:24 +01:00
Marco Martin
620478614a remove unused QGraphics* includes 2013-03-13 11:45:34 +01:00
Marco Martin
8eb21b7e21 remove deleted classes from doxygen index 2013-03-13 11:34:32 +01:00
Marco Martin
4219697fcb remove Corona::defaultContainmentActionsPlugins() 2013-03-13 11:32:00 +01:00
Marco Martin
7abd6d81d5 remove s_positioningContainments 2013-03-13 11:32:00 +01:00
Marco Martin
d884d396ec remove offscreenWidgets 2013-03-13 11:32:00 +01:00
Marco Martin
45c55b22b2 remove preferredToolBoxPlugin 2013-03-13 11:32:00 +01:00
Marco Martin
054f443469 remove defaultContainmentPlugin 2013-03-13 11:32:00 +01:00
Marco Martin
3bfbc31381 remove some not used includes 2013-03-13 11:32:00 +01:00
Sebastian Kügler
55952980b5 Move plasmapkg into src
It's not really a tool, and really belongs under src.
2013-03-13 02:44:37 +01:00
Sebastian Kügler
a3b39a8321 All imports are now 2.0
This patch changes the version numbers of the plugins to 2.0. This
includes the previously 0.1 plasmacomponents, extras and
qtextracomponents. DragandDrop, which was at 1.0 is now also at 2.0.

Also, all the QML code has been changed to import the 2.0 plugins.

As a side-effect, we now share a version number with QtQuick 2.0 now.
2013-03-13 02:34:53 +01:00
Sebastian Kügler
4cfc6863af change all 0.1 imports to 2.0 in qml files 2013-03-13 01:56:19 +01:00
Marco Martin
aa3652ec86 make svg stylesheet private
there isn't anymore the "SVG" magic parameter in Theme:: styleSheet()
2013-03-12 21:45:14 +01:00
Script Kiddy
edb2603012 SVN_SILENT made messages (.desktop file) 2013-03-12 17:26:19 +01:00
Marco Martin
dd0cc2464d ThmemeProxy is a subclass of Theme 2013-03-12 16:49:33 +01:00
Marco Martin
fd97160327 remove the singleton usage from everywhere 2013-03-12 16:29:04 +01:00
Marco Martin
fe9ebd86a8 remove the ThemePrivate singleton 2013-03-12 13:03:06 +01:00
Marco Martin
2006df44cc make sure we connect themeChanged 2013-03-11 22:39:15 +01:00
Marco Martin
0ca0934370 themePrivate instances are kept in statics
as a static pointer with refcount if "global" and internal refcounted hash if created with name
2013-03-11 22:26:15 +01:00
Marco Martin
3edbe10c8c make ThmemePrivate a QObject
and remove every reference of ThemePrivate::q, this is needed for
sharing the same ThemePrivate between Thme einstances (there would be more then one q)
2013-03-11 20:20:50 +01:00
Marco Martin
4d71b527dc move ThmemePrivate in own file
it will make easier making it implicitly shared
2013-03-11 19:24:07 +01:00
Marco Martin
ed84d47425 removed connection to removed slot 2013-03-11 18:58:58 +01:00
Marco Martin
44781d4b35 make settingsChanged() private 2013-03-11 18:08:03 +01:00
Marco Martin
b7a079f87d replace homepage() with pluginInfo()
a KPluginInfo will have the homepage from the desktop file but also the other data as well such as author and description
2013-03-11 18:01:22 +01:00
Marco Martin
ae120ba02d remove useNativeWidgetStyle 2013-03-11 17:44:00 +01:00
Marco Martin
62c8a7b500 don't expose windowTranslucencyEnabled 2013-03-11 17:39:42 +01:00
Marco Martin
2894eef3c4 add notify signal for font properties 2013-03-11 17:26:01 +01:00
Marco Martin
bf79616342 get rid of the FontRole enum 2013-03-11 17:15:25 +01:00
Marco Martin
83baa3691e theme.defaultFont.mSize api changed
QML2 has QFont directly binded, but doesn't have mSize, so move it to Theme
theme.defaultFont.mSize to theme.mSize(theme.defaultFont)
2013-03-11 17:06:05 +01:00
Marco Martin
74d1a62bdd remove fonts from Plasma::Thmeme
replace FontProxy with default QFont QML2 bindings
2013-03-11 16:59:39 +01:00
Marco Martin
f07387267a remove fontMetrics() 2013-03-11 16:08:37 +01:00
Marco Martin
d0b4b462f0 remove properties and invokables from Theme 2013-03-11 16:03:05 +01:00
Aaron Seigo
961dd4d6ce make setting a custom max cache size work
replaces the data member for tooltip, which API has been removed
2013-03-11 14:35:47 +01:00
Aaron Seigo
30589b391a double the size of the cache; i find that it gets fill on desktop too fast 2013-03-11 14:35:47 +01:00
Sebastian Kügler
f429f83153 typos-- 2013-03-11 13:07:54 +01:00
Aaron Seigo
224946e394 less jumping around and desktop assumptions 2013-03-11 12:49:59 +01:00
Script Kiddy
68a2d5a229 SVN_SILENT made messages (.desktop file) 2013-03-11 08:40:05 +01:00
Sebastian Kügler
958fb30760 a few touch-ups 2013-03-11 03:23:40 +01:00
Sebastian Kügler
bd452c7b92 New page in testshaderdemo showing Shadow effects 2013-03-11 03:12:06 +01:00
Sebastian Kügler
905080a416 Pages with various effects for the Demo applet
This demo shows very simple and slightly more complex shaders used with
Plasma Components.
2013-03-11 02:10:39 +01:00
Script Kiddy
ca81fda6e7 SVN_SILENT made messages (.desktop file) 2013-03-10 08:58:07 +01:00
Script Kiddy
06156f798f SVN_SILENT made messages (.desktop file) 2013-03-09 09:14:19 +01:00
Sebastian Kügler
39219a6567 a few more improvements to the shadertest 2013-03-09 06:00:25 +01:00
Sebastian Kügler
91339544ab editor now does fragment and vertex shaders 2013-03-09 04:15:17 +01:00
Sebastian Kügler
c536aa4006 kill useless files 2013-03-09 03:45:57 +01:00
Sebastian Kügler
365628c648 UI cleanup and reorg, one page per example 2013-03-09 03:44:02 +01:00
Sebastian Kügler
749e88af02 New test applet for shader experiments 2013-03-09 01:57:42 +01:00
Sebastian Kügler
64892e1c4e Use hideSource, Luke
And, dear Luke, don't implement the same in twenty eight lines that are
just one property away. RTFM, Luke.
2013-03-09 01:53:24 +01:00
Marco Martin
af6e538fa4 make the desktop scripting finally work
completely migrate to X-Plasma-ContainmentType from the desktop file, use it to set the containment type as soon as possible (in Containment::init())
in this way the desktop script can recognize panels as what they are immediately
2013-03-07 21:25:30 +01:00
Marco Martin
0830c5047b X-Plasma-ContainmentType is Desktop by default
so when searching for desktops also search those who don't have
2013-03-07 19:55:45 +01:00
Marco Martin
dc9075f157 ContainmentCategories -> X-Plasma-ContainmentType
containments can have one and only one type
2013-03-07 19:28:06 +01:00
Marco Martin
28a93f2c14 fully build panel.cpp except hiding 2013-03-07 17:56:57 +01:00
Marco Martin
cc142eddbc add desktop scripting files, use it
still partially stub
2013-03-07 17:39:10 +01:00
Marco Martin
5b7af5f117 make wallpaper configuration work after wallpaper switch 2013-03-07 16:59:32 +01:00
Marco Martin
f7e8fd5bcf reorganize and add config page for autumn 2013-03-07 15:40:49 +01:00
Marco Martin
18a663228f switch wallpaper plugins 2013-03-07 15:27:53 +01:00
Marco Martin
647e265b0e highlight current item 2013-03-07 12:47:34 +01:00
Marco Martin
5d05d06ae2 color picker collapsed by default 2013-03-07 12:01:29 +01:00
Marco Martin
4a5648edbc sync dialog size 2013-03-07 12:01:29 +01:00
Marco Martin
a4b22cc7d4 warnings-- 2013-03-07 12:01:29 +01:00
Marco Martin
e6eae78f06 propagate size hints 2013-03-07 12:01:29 +01:00
Marco Martin
7d79041e2a propagate size hints 2013-03-07 12:01:29 +01:00
Sebastian Kügler
b4fb6a0bde Falling leaves wallpaper plugin
Using QtQuick's particle shader to render a wallpaper.

change the wallpaperPlugin in your appletsrc to org.kde.autumn to try
it.

The code for the wallpaper has been borrowed from QtDeclarative
examples.
2013-03-07 05:50:01 +01:00
Sebastian Kügler
9bbb2f33f5 Use a shader to animate the applet's busy state
This is just an experiment to show how we can use shaders for our
animations within the containment. It seems to work nicely.

The shader code has been borrowed from the shadereffects example in Qt's
declarative module.
2013-03-07 05:37:48 +01:00
Sebastian Kügler
239fe72c47 Bigger buttons in Plasmoid Page
Easier to hit when the thing wobbles.
2013-03-07 05:28:44 +01:00
Sebastian Kügler
8856c16d1a show it's html 2013-03-07 02:43:51 +01:00
Sebastian Kügler
1a31c22e57 debug-- 2013-03-07 02:42:13 +01:00
Sebastian Kügler
5a30426e07 test mimedata attachment and transport from drag to drop area
Works for me.
2013-03-07 01:08:55 +01:00
Sebastian Kügler
37e3ef99f0 Make mouse interaction work
- events need to be accepted, otherwise they don't have effect on the
  drag, and it doesn't get released
- slightly more intelligent starting of drag, saves quite some cycles
  and is way more correct this way

The "attach pixmap of dragged item" is still disabled. This probably
needs to be rethought entirely. One option would be to ditch this class
in favour of QtQuick 2's Drag, DragEvent and DropArea. Food for API
discussion.
2013-03-07 00:26:39 +01:00
Marco Martin
d25ba46ae7 display a color picker for wallpaper color config 2013-03-06 21:19:19 +01:00
Kevin Ottens
424868cecd Use the target name directly for now
kde4support doesn't yet use the same CMake magic than the other more
stable frameworks. So refer to it by its target name as exported by the
KDELibs4 module.
2013-03-06 19:00:10 +01:00
Marco Martin
6cede145d5 configview exposes more stuff for containments: subclass 2013-03-06 17:53:03 +01:00
Marco Martin
132adc7f21 possible to configure wallpapers != from current 2013-03-06 14:20:20 +01:00
Sebastian Kügler
068dadc6d2 this has to be k4aboutdata, after all (for now) 2013-03-06 03:41:48 +01:00
Sebastian Kügler
c777215222 show dnd status in widget 2013-03-06 01:28:26 +01:00
Sebastian Kügler
adc838008b update KAboutData semantics in shell 2013-03-06 01:28:08 +01:00
Sebastian Kügler
48447f631b link shell against kio 2013-03-06 01:27:37 +01:00
Sebastian Kügler
987d8ffc9d fix typo in includes 2013-03-06 01:22:00 +01:00
Marco Martin
67ce7f706e add kdeui 2013-03-05 20:14:01 +01:00
Marco Martin
dcd9954815 enable build of desktop scripting
it still doesn't do anything and needs porting away from deprecated classes
2013-03-05 19:17:22 +01:00
Marco Martin
0af1a25b5e move scripting into the shell 2013-03-05 17:48:01 +01:00
Marco Martin
3dee256411 get default containments and toolbox from package 2013-03-05 17:22:00 +01:00
Marco Martin
9e2240bd8c get shell package from config 2013-03-05 16:44:13 +01:00
Marco Martin
0033cb5513 port away from kglobal 2013-03-05 16:10:45 +01:00
Marco Martin
8e7b77153e port away from kglobal 2013-03-05 16:08:09 +01:00
Marco Martin
313bdb7d5e adapt to api changes 2013-03-05 15:32:29 +01:00
Marco Martin
6043baef89 adapt to kaboutdata api changes 2013-03-05 14:43:14 +01:00
Marco Martin
53c161fb58 packages without structure are invalid 2013-03-05 14:23:52 +01:00
Marco Martin
8646393758 shell package partly working 2013-03-05 13:58:18 +01:00
Marco Martin
4746d9074e add apluginloader for a custom package structure
probably this package structure goes into libplasma
2013-03-05 13:34:18 +01:00
Marco Martin
90cf52e6c6 remove shortcutsChanged() 2013-03-04 16:50:01 +01:00
Marco Martin
e49b58c95d remove initializeLayout() 2013-03-04 16:48:17 +01:00
Marco Martin
759780ce3f remove releaseVisualFocus 2013-03-04 16:33:59 +01:00
Marco Martin
55add92bf8 remove actionCollections and shortcut config dlg 2013-03-04 16:28:51 +01:00
Marco Martin
9f6fbec2f3 remove updateShortcuts() and addShortcut() 2013-03-04 16:25:37 +01:00
Marco Martin
bc3c23187d remove containmentForScreen(int, QString, QVariantList)
this function is redundant, you can use containmentForScreen(int) then create a containment if returns 0
2013-03-04 16:18:06 +01:00
Marco Martin
585c1ec21e remove appletMimeType()
addContainment becomes createContainment
2013-03-04 16:15:04 +01:00
Marco Martin
f4de55af67 use KAction from kde4support
it should buld again, usingkaction as type for kactioncollection
2013-03-04 15:46:47 +01:00
Marco Martin
79256d9931 remove AbstractDialogManager 2013-03-04 15:21:26 +01:00
Marco Martin
89d7cbd648 CoronaBase->Corona
Corona was renamed CoronaBase in early stages of plasma2 life, then back to Corona, remove all signs of CoronaBase
2013-03-04 14:56:55 +01:00
Aaron Seigo
3edcbc51a3 better name for the method, and the setter will be replaced by package content 2013-03-04 13:51:13 +01:00
Sebastian Kügler
efb57d45b9 fix typos 2013-03-04 13:43:23 +01:00
Sebastian Kügler
a1afc6644b Fix typos in apidocs 2013-03-04 13:10:44 +01:00
Aaron Seigo
ec82e17b41 pretty? :) 2013-03-02 00:06:34 +01:00
Aaron Seigo
e9c25137e3 add a configmodel item to the package 2013-03-02 00:05:50 +01:00
Marco Martin
d1c4de17d8 animate color transition 2013-03-01 20:05:04 +01:00
Marco Martin
7064d02e1a expose the wallpaper config to the config ui
there is still a serious problem: it is possible to configure only the currently loaded wallpaper plugin
2013-03-01 20:01:54 +01:00
Marco Martin
f5664e8b3f try to add a config 2013-03-01 16:39:47 +01:00
Marco Martin
be06b06015 support for panel icon sizes 2013-03-01 16:11:08 +01:00
Marco Martin
6f5a593d91 WallpaperInterface for wallpapers
will be used to provide configuration access and a configuration UI
2013-03-01 15:11:08 +01:00
Marco Martin
fda16dee08 don't export AppletPrivate 2013-03-01 14:29:14 +01:00
Marco Martin
c3924c75b7 remove createConfigurationInterface
configuration interface stuff is done right now in the ConfigView class, right now in the qml scriptengine (may be moved to the shell eventually)
2013-03-01 11:36:58 +01:00
Marco Martin
099319a911 preliminary list of wallpaper plugins 2013-02-28 21:24:30 +01:00
Marco Martin
552437ca62 dummy pages for wallpaper and containment actions 2013-02-28 16:39:11 +01:00
Marco Martin
b88339cb4a attempt to load different page set for containments 2013-02-28 16:33:44 +01:00
Marco Martin
d2d4faaa3e hide choices when there is only one 2013-02-28 15:54:02 +01:00
Marco Martin
ea710003fc a prototype, not used here for instant apply
on a desktop we will probably continue to have ok/apply/cancel buttons, on a ctive we will have instant apply, this commented code is a way to achieve this in a way that require no adaptation from the config pages whatsoever
2013-02-28 15:03:42 +01:00
Marco Martin
0b6770e2b2 Containment::addApplet -> Containment::createApplet 2013-02-28 13:32:47 +01:00
Sebastian Kügler
8a386d065c add a bit of debugging info
which shows that we're getting wrong events right now. :/
2013-02-27 22:13:14 +01:00
Sebastian Kügler
3be712eacd new test page for Drag & Drop 2013-02-27 22:13:14 +01:00
Alex Neundorf
f07a425546 -fix build, find ThreadWeaver via KF5
I thin using the variables is safer, this way you are somewhat guarded against changes
in the names of targets, and a typo leads to an empty variable, instead to
"ld: cannot find -lkcoreaddons" which looks very much like a missing normal library

Alex
2013-02-27 21:45:35 +01:00
Sebastian Kügler
3ee1474c17 draganddrop: all classes build and are enabled 2013-02-27 19:24:44 +01:00
Sebastian Kügler
b60983ca1f Port DeclarativeDragDropEvent 2013-02-27 18:55:53 +01:00
Marco Martin
53df27b8b7 config.qml is a pure model, search in config/ 2013-02-27 18:33:09 +01:00
Marco Martin
6458522bbc migrate page loading to ConfigModel 2013-02-27 18:33:09 +01:00
Sebastian Kügler
4fc1dbef00 draganddrop: more porting, build some bits already 2013-02-27 17:59:03 +01:00
Marco Martin
872839ecf9 a simple model to parse config categories
ConfigModel will be used in the plasmoid config qml that defines a model for the categories of the config dialog
2013-02-27 17:41:31 +01:00
Sebastian Kügler
2168bdec75 no i18n right now 2013-02-27 14:54:55 +01:00
Sebastian Kügler
112fb3f78a Fix API 2013-02-27 14:54:55 +01:00
Sebastian Kügler
f79c3833bd Start port of drag and drop import 2013-02-27 14:54:55 +01:00
Marco Martin
6777a7dc56 call superclass event handlers 2013-02-27 14:51:12 +01:00
Marco Martin
854ecdcf5b make sure the dialog is resized before showing
crash--
probably there is a bug in scenegraph when one calls show() of a 0,0 size wondow
2013-02-27 14:35:34 +01:00
Marco Martin
7e96fe9000 resizing based on contents implicit sizes
still to be made a tad more reliable
2013-02-27 14:03:36 +01:00
Marco Martin
8ea0de9892 save and restore works again 2013-02-27 13:33:01 +01:00
Marco Martin
05bf0d344c another small layout improvement 2013-02-27 11:57:55 +01:00
Marco Martin
4608fc6012 comments++ 2013-02-27 11:15:33 +01:00
Marco Martin
528429b5ab load global module if the local is not provided 2013-02-27 11:09:25 +01:00
Marco Martin
6d194f02e3 support for shell-provided configuration uis 2013-02-27 11:02:30 +01:00
Sebastian Kügler
b14ab3f1b6 Improve error handling a bit, and clean up outdated FIXMEs 2013-02-27 06:48:57 +01:00
Sebastian Kügler
90b022435a Make validation of zipped packages possible
- move the unpack block into its own function
- unzip if necessary, and point validator and metadata loader at this
  function
- manually delete the tempdir, to keep it as long as the Package is
  alive

This patch makes it possible to upgrade packages from .plasmoid files.
2013-02-27 06:46:28 +01:00
Sebastian Kügler
c8202da160 update sycoca after uninstalling, debug-- 2013-02-27 03:36:53 +01:00
Sebastian Kügler
ff721cf8ae Respect packageRoot when uninstalling, not path() 2013-02-27 03:05:05 +01:00
Marco Martin
8170075d8d fix page title 2013-02-26 22:32:31 +01:00
Marco Martin
de8644af69 make the config.qml object a "model" 2013-02-26 21:48:36 +01:00
Aaron Seigo
56d73373ac when reseting the config loader, also make it re-read the config 2013-02-26 14:50:41 +01:00
Aaron Seigo
9478edaa05 lazy create the config loader on demand, reset when appropriate 2013-02-26 14:50:41 +01:00
Aaron Seigo
7ab77c4e6d don't parse xml if we are given nothing to parse 2013-02-26 14:50:41 +01:00
Aaron Seigo
9be56f7724 clear our data when we parse 2013-02-26 14:50:41 +01:00
Aaron Seigo
4cb892dd04 only create a new svg item if we don't already have one 2013-02-26 14:50:41 +01:00
Marco Martin
c7ade82561 some other layout fix 2013-02-26 14:49:46 +01:00
Marco Martin
e781a2bba2 slightly better layout 2013-02-26 14:30:51 +01:00
Marco Martin
fd9282d22f auto load first page 2013-02-26 13:58:37 +01:00
Marco Martin
3a5e5f931b close window on ok/cancel pressed
delete window on close
2013-02-26 12:47:08 +01:00
Sebastian Kügler
45147081e7 Fix comment 2013-02-26 05:47:12 +01:00
Sebastian Kügler
0ce418c311 Add Desktop, Floating and FullScreen dialog examples 2013-02-26 05:44:46 +01:00
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