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