summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Čukić <[email protected]>2017-02-15 20:53:33 +0100
committerIvan Čukić <[email protected]>2017-02-15 20:53:33 +0100
commit5a793c8ca9ba70cf26d572a17cd353491780901a (patch)
tree8999c596e467e34bafe18aacd12e75745abc6eb4
parent5e551e3284bb8f491942a0757f5a7011b92d4c34 (diff)
Removed lancelot from kdeplasma-addons :(
-rw-r--r--applets/lancelot/CHANGELOG13
-rw-r--r--applets/lancelot/CMakeLists.txt24
-rw-r--r--applets/lancelot/COPYING346
-rw-r--r--applets/lancelot/COPYING.DOC397
-rw-r--r--applets/lancelot/COPYING.LIB510
-rwxr-xr-xapplets/lancelot/Messages.sh4
-rw-r--r--applets/lancelot/TODO56
-rw-r--r--applets/lancelot/application/AboutData.cpp51
-rw-r--r--applets/lancelot/application/AboutData.h32
-rw-r--r--applets/lancelot/application/CMakeLists.txt98
-rw-r--r--applets/lancelot/application/LancelotApplication.cpp225
-rw-r--r--applets/lancelot/application/LancelotApplication.h90
-rw-r--r--applets/lancelot/application/LancelotConfig.cpp271
-rw-r--r--applets/lancelot/application/LancelotConfig.h99
-rw-r--r--applets/lancelot/application/LancelotWindow.cpp1183
-rw-r--r--applets/lancelot/application/LancelotWindow.h270
-rw-r--r--applets/lancelot/application/QtDisplay.cpp94
-rw-r--r--applets/lancelot/application/QtDisplay.h71
-rw-r--r--applets/lancelot/application/config-lancelot.h.cmake1
-rw-r--r--applets/lancelot/application/i18n_strings.cpp39
-rw-r--r--applets/lancelot/application/lancelot.desktop123
-rw-r--r--applets/lancelot/application/lancelot.notifyrc312
-rw-r--r--applets/lancelot/application/main.cpp25
-rw-r--r--applets/lancelot/application/org.kde.lancelot.xml65
-rw-r--r--applets/lancelot/application/ui/LancelotConfigBase.ui395
-rw-r--r--applets/lancelot/application/ui/LancelotWindowBase.xml258
-rw-r--r--applets/lancelot/application/ui_LancelotWindowBase.h185
-rw-r--r--applets/lancelot/cmake/CMakeLists.txt12
-rw-r--r--applets/lancelot/cmake/PlasmaUIMacros.cmake61
-rw-r--r--applets/lancelot/icons/CMakeLists.txt1
-rw-r--r--applets/lancelot/icons/hi128-app-lancelot-start.pngbin24783 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi128-app-lancelot.pngbin18089 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi128-app-plasmaapplet-shelf.pngbin14091 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi16-app-lancelot-start.pngbin942 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi16-app-lancelot.pngbin924 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi16-app-plasmaapplet-shelf.pngbin837 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi22-app-lancelot-start.pngbin1544 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi22-app-lancelot.pngbin1223 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi22-app-plasmaapplet-shelf.pngbin1239 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi32-app-lancelot-start.pngbin2804 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi32-app-lancelot.pngbin2132 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi32-app-plasmaapplet-shelf.pngbin2086 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi48-app-lancelot-start.pngbin5346 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi48-app-lancelot.pngbin4027 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi48-app-plasmaapplet-shelf.pngbin3542 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi64-app-lancelot-start.pngbin8442 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi64-app-lancelot.pngbin6226 -> 0 bytes
-rw-r--r--applets/lancelot/icons/hi64-app-plasmaapplet-shelf.pngbin5352 -> 0 bytes
-rw-r--r--applets/lancelot/icons/lancelot-start.svgzbin42037 -> 0 bytes
-rw-r--r--applets/lancelot/icons/lancelot.svgzbin14962 -> 0 bytes
-rw-r--r--applets/lancelot/launcher/CMakeLists.txt56
-rw-r--r--applets/lancelot/launcher/LancelotApplet.cpp487
-rw-r--r--applets/lancelot/launcher/LancelotApplet.h78
-rw-r--r--applets/lancelot/launcher/LancelotAppletConfig.cpp217
-rw-r--r--applets/lancelot/launcher/LancelotAppletConfig.h61
-rw-r--r--applets/lancelot/launcher/LancelotAppletConfigBase.ui229
-rw-r--r--applets/lancelot/launcher/plasma-applet-lancelot-launcher.desktop132
-rw-r--r--applets/lancelot/parts/CMakeLists.txt52
-rw-r--r--applets/lancelot/parts/LancelotPart.cpp698
-rw-r--r--applets/lancelot/parts/LancelotPart.h118
-rw-r--r--applets/lancelot/parts/LancelotPartConfig.cpp259
-rw-r--r--applets/lancelot/parts/LancelotPartConfig.h80
-rw-r--r--applets/lancelot/parts/LancelotPartConfigBase.ui223
-rw-r--r--applets/lancelot/parts/PartsMergedModel.cpp404
-rw-r--r--applets/lancelot/parts/PartsMergedModel.h78
-rw-r--r--applets/lancelot/parts/lancelotpart-mime.xml7
-rw-r--r--applets/lancelot/parts/plasma-applet-lancelot-part.desktop72
-rw-r--r--applets/lancelot/themes/Androbit/CMakeLists.txt6
-rw-r--r--applets/lancelot/themes/Androbit/action-list-view-headers.svgzbin3071 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/category-triangle.svgzbin985 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/inner-background.svgzbin1849 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/lancelot-context-extender.svgzbin7525 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/lancelot-context.svgzbin7539 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/passageway-view-buttons-extender.svgzbin5767 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/passageway-view-buttons.svgzbin3475 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/passageway-view-inactivebuttons.svgzbin3039 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/passageway-view-spacer.svgzbin3277 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/section-buttons.svgzbin4177 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/system-buttons-extender.svgzbin7523 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/system-buttons.svgzbin4698 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Androbit/theme.config157
-rw-r--r--applets/lancelot/themes/Aya/CMakeLists.txt6
-rw-r--r--applets/lancelot/themes/Aya/action-list-view-headers.svgzbin3140 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/category-triangle.svgzbin985 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/inner-background.svgzbin2182 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/passageway-view-buttons-extender.svgzbin3199 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/passageway-view-buttons.svgzbin3704 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/passageway-view-inactivebuttons.svgzbin3163 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/passageway-view-spacer.svgzbin3413 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/section-buttons.svgzbin5183 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/system-buttons-extender.svgzbin6990 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/system-buttons.svgzbin4687 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Aya/theme.config152
-rw-r--r--applets/lancelot/themes/CMakeLists.txt9
-rw-r--r--applets/lancelot/themes/Produkt/CMakeLists.txt6
-rw-r--r--applets/lancelot/themes/Produkt/action-list-view-headers.svgzbin3071 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/category-triangle.svgzbin985 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/inner-background.svgzbin1849 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/lancelot-context-extender.svgzbin7525 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/lancelot-context.svgzbin7539 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/passageway-view-buttons-extender.svgzbin5767 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/passageway-view-buttons.svgzbin3475 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/passageway-view-inactivebuttons.svgzbin3039 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/passageway-view-spacer.svgzbin3277 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/section-buttons.svgzbin4177 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/system-buttons-extender.svgzbin7523 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/system-buttons.svgzbin4698 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Produkt/theme.config157
-rw-r--r--applets/lancelot/themes/Tibanna/CMakeLists.txt6
-rw-r--r--applets/lancelot/themes/Tibanna/action-list-view-drop-indicator.svgzbin1479 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/action-list-view-headers.svgzbin3225 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/category-triangle.svgzbin985 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/extender-button-icon.svgzbin3765 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/inner-background.svgzbin1880 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/passageway-view-buttons-extender.svgzbin3199 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/passageway-view-buttons.svgzbin3835 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/passageway-view-inactivebuttons.svgzbin3244 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/passageway-view-spacer.svgzbin3413 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/section-buttons.svgzbin5183 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/system-buttons-extender.svgzbin6990 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/system-buttons.svgzbin4687 -> 0 bytes
-rw-r--r--applets/lancelot/themes/Tibanna/theme.config159
-rw-r--r--applets/lancelot/themes/air/CMakeLists.txt6
-rw-r--r--applets/lancelot/themes/air/action-list-view-drop-indicator.svgzbin1479 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/action-list-view-headers.svgzbin3225 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/category-triangle.svgzbin985 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/extender-button-icon.svgzbin3765 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/inner-background.svgzbin1880 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/passageway-view-buttons-extender.svgzbin3199 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/passageway-view-buttons.svgzbin3835 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/passageway-view-inactivebuttons.svgzbin3244 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/passageway-view-spacer.svgzbin3413 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/section-buttons.svgzbin5183 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/system-buttons-extender.svgzbin6990 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/system-buttons.svgzbin4687 -> 0 bytes
-rw-r--r--applets/lancelot/themes/air/theme.config159
-rw-r--r--applets/lancelot/themes/oxygen/CMakeLists.txt6
-rw-r--r--applets/lancelot/themes/oxygen/action-list-view-headers.svgzbin3071 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/category-triangle.svgzbin985 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/inner-background.svgzbin1849 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/lancelot-context-extender.svgzbin7525 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/lancelot-context.svgzbin7539 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/passageway-view-buttons-extender.svgzbin5767 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/passageway-view-buttons.svgzbin3475 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/passageway-view-inactivebuttons.svgzbin3039 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/passageway-view-spacer.svgzbin3277 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/section-buttons.svgzbin4177 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/system-buttons-extender.svgzbin7523 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/system-buttons.svgzbin7544 -> 0 bytes
-rw-r--r--applets/lancelot/themes/oxygen/theme.config156
-rw-r--r--applets/lancelot/themes/slim-glow/CMakeLists.txt6
-rw-r--r--applets/lancelot/themes/slim-glow/action-list-view-headers.svgzbin3071 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/category-triangle.svgzbin985 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/inner-background.svgzbin1849 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/lancelot-context-extender.svgzbin7525 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/lancelot-context.svgzbin7539 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/passageway-view-buttons-extender.svgzbin5767 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/passageway-view-buttons.svgzbin3475 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/passageway-view-inactivebuttons.svgzbin3039 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/passageway-view-spacer.svgzbin3277 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/section-buttons.svgzbin4177 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/system-buttons-extender.svgzbin7523 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/system-buttons.svgzbin4698 -> 0 bytes
-rw-r--r--applets/lancelot/themes/slim-glow/theme.config157
-rw-r--r--applets/lancelot/tools/CMakeLists.txt2
-rw-r--r--applets/lancelot/tools/puck/CMakeLists.txt3
-rw-r--r--applets/lancelot/tools/puck/Modules/AbstractItem.py83
-rw-r--r--applets/lancelot/tools/puck/Modules/LayoutHandlerManager.py31
-rw-r--r--applets/lancelot/tools/puck/Modules/Layouts/AbstractLayout.py19
-rw-r--r--applets/lancelot/tools/puck/Modules/Layouts/BorderLayout.py37
-rw-r--r--applets/lancelot/tools/puck/Modules/Layouts/CardLayout.py28
-rw-r--r--applets/lancelot/tools/puck/Modules/Layouts/FlipLayout.py30
-rw-r--r--applets/lancelot/tools/puck/Modules/Layouts/Lancelot__FullBorderLayout.py37
-rw-r--r--applets/lancelot/tools/puck/Modules/Layouts/NodeLayout.py26
-rw-r--r--applets/lancelot/tools/puck/Modules/Layouts/__init__.py8
-rw-r--r--applets/lancelot/tools/puck/Modules/WidgetHandlerManager.py41
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ActionListView.py39
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__BasicWidget.py47
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__CustomList.py27
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__CustomListView.py27
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ExtenderButton.py43
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__HoverIcon.py31
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__Panel.py54
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PassagewayView.py31
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PopupList.py35
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PopupMenu.py27
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ResizeBordersPanel.py27
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollBar.py31
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollButton.py27
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollPane.py31
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__TabBar.py43
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Lancelot__Widget.py35
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/Plasma__ScrollBar.py39
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/QGraphicsLayout.py27
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/QGraphicsLayoutItem.py63
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/QGraphicsProxyWidget.py27
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/QGraphicsWidget.py68
-rw-r--r--applets/lancelot/tools/puck/Modules/Widgets/__init__.py16
-rw-r--r--applets/lancelot/tools/puck/Modules/__init__.py1
-rw-r--r--applets/lancelot/tools/puck/Modules/debug.py30
-rwxr-xr-xapplets/lancelot/tools/puck/clean.sh2
-rwxr-xr-xapplets/lancelot/tools/puck/debug.sh3
-rwxr-xr-xapplets/lancelot/tools/puck/generator/generator.py204
-rw-r--r--applets/lancelot/tools/puck/generator/hacks/plasma_ScrollBar.h18
-rw-r--r--applets/lancelot/tools/puck/generator/hacks/qgraphicslayout.h6
-rw-r--r--applets/lancelot/tools/puck/generator/hacks/qgraphicslayoutitem.h17
-rw-r--r--applets/lancelot/tools/puck/generator/hacks/qgraphicsproxywidget.h6
-rw-r--r--applets/lancelot/tools/puck/generator/hacks/qgraphicswidget.h15
-rw-r--r--applets/lancelot/tools/puck/generator/template/widget.py30
-rwxr-xr-xapplets/lancelot/tools/puck/puck.py166
-rw-r--r--applets/lancelot/tools/puck/template/cpp.h36
-rw-r--r--cmake/CMakeLists.txt8
-rw-r--r--cmake/FindLancelot-Datamodels.cmake78
-rw-r--r--cmake/FindLancelot.cmake78
-rw-r--r--libs/CMakeLists.txt8
-rw-r--r--libs/lancelot-datamodels/Applications.cpp320
-rw-r--r--libs/lancelot-datamodels/Applications.h82
-rw-r--r--libs/lancelot-datamodels/Applications_p.h73
-rw-r--r--libs/lancelot-datamodels/AvailableModels.cpp195
-rw-r--r--libs/lancelot-datamodels/AvailableModels.h57
-rw-r--r--libs/lancelot-datamodels/BaseMergedModel.cpp83
-rw-r--r--libs/lancelot-datamodels/BaseMergedModel.h75
-rw-r--r--libs/lancelot-datamodels/BaseModel.cpp463
-rw-r--r--libs/lancelot-datamodels/BaseModel.h271
-rw-r--r--libs/lancelot-datamodels/CMakeLists.txt175
-rw-r--r--libs/lancelot-datamodels/ContactsKopete.cpp307
-rw-r--r--libs/lancelot-datamodels/ContactsKopete.h89
-rw-r--r--libs/lancelot-datamodels/Devices.cpp479
-rw-r--r--libs/lancelot-datamodels/Devices.h62
-rw-r--r--libs/lancelot-datamodels/Devices_p.h72
-rw-r--r--libs/lancelot-datamodels/DummyModel_p.cpp51
-rw-r--r--libs/lancelot-datamodels/FavoriteApplications.cpp206
-rw-r--r--libs/lancelot-datamodels/FavoriteApplications.h72
-rw-r--r--libs/lancelot-datamodels/FolderModel.cpp266
-rw-r--r--libs/lancelot-datamodels/FolderModel.h65
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/Applications1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/AvailableModels1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/BaseMergedModel1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/BaseModel1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/ContactsKopete1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/Devices1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/FavoriteApplications1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/FolderModel1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/Logger1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/MessagesKmail1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/NewDocuments1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/OpenDocuments1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/Places1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/RecentDocuments1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/Runner1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/Serializator1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/SystemActions1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/SystemServices1
-rw-r--r--libs/lancelot-datamodels/Lancelot/Models/XbelModel1
-rw-r--r--libs/lancelot-datamodels/Logger.cpp180
-rw-r--r--libs/lancelot-datamodels/Logger.h92
-rwxr-xr-xlibs/lancelot-datamodels/Messages.sh2
-rw-r--r--libs/lancelot-datamodels/MessagesKmail.cpp270
-rw-r--r--libs/lancelot-datamodels/MessagesKmail.h71
-rw-r--r--libs/lancelot-datamodels/MessagesKmail_p.h62
-rw-r--r--libs/lancelot-datamodels/NewDocuments.cpp93
-rw-r--r--libs/lancelot-datamodels/NewDocuments.h49
-rw-r--r--libs/lancelot-datamodels/OpenDocuments.cpp186
-rw-r--r--libs/lancelot-datamodels/OpenDocuments.h50
-rw-r--r--libs/lancelot-datamodels/OpenDocuments_p.h66
-rw-r--r--libs/lancelot-datamodels/Places.cpp43
-rw-r--r--libs/lancelot-datamodels/Places.h43
-rw-r--r--libs/lancelot-datamodels/RecentDocuments.cpp89
-rw-r--r--libs/lancelot-datamodels/RecentDocuments.h49
-rw-r--r--libs/lancelot-datamodels/Runner.cpp298
-rw-r--r--libs/lancelot-datamodels/Runner.h117
-rw-r--r--libs/lancelot-datamodels/Serializator.cpp67
-rw-r--r--libs/lancelot-datamodels/Serializator.h51
-rw-r--r--libs/lancelot-datamodels/SystemActions.cpp442
-rw-r--r--libs/lancelot-datamodels/SystemActions.h94
-rw-r--r--libs/lancelot-datamodels/SystemActions_p.h54
-rw-r--r--libs/lancelot-datamodels/SystemServices.cpp90
-rw-r--r--libs/lancelot-datamodels/SystemServices.h51
-rw-r--r--libs/lancelot-datamodels/XbelModel.cpp162
-rw-r--r--libs/lancelot-datamodels/XbelModel.h57
-rw-r--r--libs/lancelot-datamodels/config-lancelot-datamodels.h.cmake1
-rw-r--r--libs/lancelot-datamodels/external/README6
-rw-r--r--libs/lancelot-datamodels/external/org.freedesktop.ScreenSaver.xml41
-rw-r--r--libs/lancelot-datamodels/external/org.kde.Kopete.xml119
-rw-r--r--libs/lancelot-datamodels/i18n_strings.cpp27
-rw-r--r--libs/lancelot/CMakeLists.txt175
-rw-r--r--libs/lancelot/Global.cpp525
-rw-r--r--libs/lancelot/Global.h282
-rw-r--r--libs/lancelot/Global_p.h86
-rw-r--r--libs/lancelot/Lancelot/ActionListModel1
-rw-r--r--libs/lancelot/Lancelot/ActionListView1
-rw-r--r--libs/lancelot/Lancelot/ActionTreeModel1
-rw-r--r--libs/lancelot/Lancelot/ActionTreeModelProxy1
-rw-r--r--libs/lancelot/Lancelot/BasicWidget1
-rw-r--r--libs/lancelot/Lancelot/CardLayout1
-rw-r--r--libs/lancelot/Lancelot/ColumnLayout1
-rw-r--r--libs/lancelot/Lancelot/CustomListView1
-rw-r--r--libs/lancelot/Lancelot/ExtenderButton1
-rw-r--r--libs/lancelot/Lancelot/FlipLayout1
-rw-r--r--libs/lancelot/Lancelot/FullBorderLayout1
-rw-r--r--libs/lancelot/Lancelot/Global1
-rw-r--r--libs/lancelot/Lancelot/HoverIcon1
-rw-r--r--libs/lancelot/Lancelot/Lancelot1
-rw-r--r--libs/lancelot/Lancelot/MergedActionListModel1
-rw-r--r--libs/lancelot/Lancelot/NodeLayout1
-rw-r--r--libs/lancelot/Lancelot/Panel1
-rw-r--r--libs/lancelot/Lancelot/PassagewayView1
-rw-r--r--libs/lancelot/Lancelot/PlasmaServiceListModel1
-rw-r--r--libs/lancelot/Lancelot/PopupList1
-rw-r--r--libs/lancelot/Lancelot/PopupMenu1
-rw-r--r--libs/lancelot/Lancelot/ResizeBordersPanel1
-rw-r--r--libs/lancelot/Lancelot/ScrollBar1
-rw-r--r--libs/lancelot/Lancelot/ScrollPane1
-rw-r--r--libs/lancelot/Lancelot/StandardActionListModel1
-rw-r--r--libs/lancelot/Lancelot/StandardActionTreeModel1
-rw-r--r--libs/lancelot/Lancelot/TabBar1
-rw-r--r--libs/lancelot/Lancelot/Widget1
-rw-r--r--libs/lancelot/Mainpage.dox20
-rw-r--r--libs/lancelot/README13
-rw-r--r--libs/lancelot/lancelot.h54
-rw-r--r--libs/lancelot/lancelot_export.h50
-rw-r--r--libs/lancelot/layouts/CardLayout.cpp171
-rw-r--r--libs/lancelot/layouts/CardLayout.h109
-rw-r--r--libs/lancelot/layouts/ColumnLayout.cpp335
-rw-r--r--libs/lancelot/layouts/ColumnLayout.h154
-rw-r--r--libs/lancelot/layouts/FlipLayout.cpp123
-rw-r--r--libs/lancelot/layouts/FlipLayout.h120
-rw-r--r--libs/lancelot/layouts/FullBorderLayout.cpp299
-rw-r--r--libs/lancelot/layouts/FullBorderLayout.h134
-rw-r--r--libs/lancelot/layouts/NodeLayout.cpp267
-rw-r--r--libs/lancelot/layouts/NodeLayout.h120
-rw-r--r--libs/lancelot/models/ActionListModel.cpp135
-rw-r--r--libs/lancelot/models/ActionListModel.h190
-rw-r--r--libs/lancelot/models/ActionTreeModel.cpp34
-rw-r--r--libs/lancelot/models/ActionTreeModel.h40
-rw-r--r--libs/lancelot/models/ActionTreeModelProxy.cpp151
-rw-r--r--libs/lancelot/models/ActionTreeModelProxy.h80
-rw-r--r--libs/lancelot/models/MergedActionListModel.cpp397
-rw-r--r--libs/lancelot/models/MergedActionListModel.h187
-rw-r--r--libs/lancelot/models/PlasmaServiceListModel.cpp154
-rw-r--r--libs/lancelot/models/PlasmaServiceListModel.h70
-rw-r--r--libs/lancelot/models/StandardActionListModel.cpp147
-rw-r--r--libs/lancelot/models/StandardActionListModel.h161
-rw-r--r--libs/lancelot/models/StandardActionTreeModel.cpp210
-rw-r--r--libs/lancelot/models/StandardActionTreeModel.h138
-rw-r--r--libs/lancelot/widgets/ActionListView.cpp1232
-rw-r--r--libs/lancelot/widgets/ActionListView.h131
-rw-r--r--libs/lancelot/widgets/ActionListView_p.h192
-rw-r--r--libs/lancelot/widgets/BasicWidget.cpp653
-rw-r--r--libs/lancelot/widgets/BasicWidget.h206
-rw-r--r--libs/lancelot/widgets/CustomItemBackground_p.cpp81
-rw-r--r--libs/lancelot/widgets/CustomItemBackground_p.h59
-rw-r--r--libs/lancelot/widgets/CustomListView.cpp367
-rw-r--r--libs/lancelot/widgets/CustomListView.h174
-rw-r--r--libs/lancelot/widgets/ExtenderButton.cpp507
-rw-r--r--libs/lancelot/widgets/ExtenderButton.h186
-rw-r--r--libs/lancelot/widgets/HoverIcon.cpp123
-rw-r--r--libs/lancelot/widgets/HoverIcon.h102
-rw-r--r--libs/lancelot/widgets/Panel.cpp233
-rw-r--r--libs/lancelot/widgets/Panel.h155
-rw-r--r--libs/lancelot/widgets/PassagewayView.cpp599
-rw-r--r--libs/lancelot/widgets/PassagewayView.h97
-rw-r--r--libs/lancelot/widgets/PopupList.cpp454
-rw-r--r--libs/lancelot/widgets/PopupList.h152
-rw-r--r--libs/lancelot/widgets/PopupList_p.h93
-rw-r--r--libs/lancelot/widgets/PopupMenu.cpp154
-rw-r--r--libs/lancelot/widgets/PopupMenu.h69
-rw-r--r--libs/lancelot/widgets/ResizeBordersPanel.cpp173
-rw-r--r--libs/lancelot/widgets/ResizeBordersPanel.h62
-rw-r--r--libs/lancelot/widgets/ScrollBar.cpp132
-rw-r--r--libs/lancelot/widgets/ScrollBar.h84
-rw-r--r--libs/lancelot/widgets/ScrollPane.cpp371
-rw-r--r--libs/lancelot/widgets/ScrollPane.h226
-rw-r--r--libs/lancelot/widgets/TabBar.cpp337
-rw-r--r--libs/lancelot/widgets/TabBar.h161
-rw-r--r--libs/lancelot/widgets/Widget.cpp271
-rw-r--r--libs/lancelot/widgets/Widget.h172
-rw-r--r--libs/lancelot/widgets/kineticscroll.cpp484
-rw-r--r--libs/lancelot/widgets/kineticscroll_p.h73
379 files changed, 0 insertions, 31784 deletions
diff --git a/applets/lancelot/CHANGELOG b/applets/lancelot/CHANGELOG
deleted file mode 100644
index e5a1a4f..0000000
--- a/applets/lancelot/CHANGELOG
+++ /dev/null
@@ -1,13 +0,0 @@
-
-since 4.4 :)
-
-- collapsible sections
-- animations (and theme changes)
-- search history
-- changed icon
-- disk usage shown in the icon
-- runners configuration
-- akonadi integration
-- cascading popups option
-
-
diff --git a/applets/lancelot/CMakeLists.txt b/applets/lancelot/CMakeLists.txt
deleted file mode 100644
index 59bdf76..0000000
--- a/applets/lancelot/CMakeLists.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-find_package(KDE4 REQUIRED)
-
-set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
-
-SET(CMAKE_CXX_FLAGS_CODECHECK "${CMAKE_CXX_FLAGS} -save-temps")
-SET(CMAKE_C_FLAGS_CODECHECK "${CMAKE_C_FLAGS} -save-temps")
-message("Flags for CodeCheck are ${CMAKE_CXX_FLAGS_CODECHECK}")
-
-find_package(SharedMimeInfo REQUIRED)
-
-# Finding liblancelot
-find_package(Lancelot REQUIRED)
-find_package(Lancelot-Datamodels REQUIRED)
-
-add_subdirectory(tools)
-
-add_subdirectory(application)
-add_subdirectory(launcher)
-add_subdirectory(parts)
-
-add_subdirectory(themes)
-add_subdirectory(icons)
-add_subdirectory(cmake)
-
diff --git a/applets/lancelot/COPYING b/applets/lancelot/COPYING
deleted file mode 100644
index 5185fd3..0000000
--- a/applets/lancelot/COPYING
+++ /dev/null
@@ -1,346 +0,0 @@
-NOTE! The GPL below is copyrighted by the Free Software Foundation, but
-the instance of code that it refers to (the kde programs) are copyrighted
-by the authors who actually wrote it.
-
----------------------------------------------------------------------------
-
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) 19yy <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) 19yy name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/applets/lancelot/COPYING.DOC b/applets/lancelot/COPYING.DOC
deleted file mode 100644
index 4a0fe1c..0000000
--- a/applets/lancelot/COPYING.DOC
+++ /dev/null
@@ -1,397 +0,0 @@
- GNU Free Documentation License
- Version 1.2, November 2002
-
-
- Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-
-0. PREAMBLE
-
-The purpose of this License is to make a manual, textbook, or other
-functional and useful document "free" in the sense of freedom: to
-assure everyone the effective freedom to copy and redistribute it,
-with or without modifying it, either commercially or noncommercially.
-Secondarily, this License preserves for the author and publisher a way
-to get credit for their work, while not being considered responsible
-for modifications made by others.
-
-This License is a kind of "copyleft", which means that derivative
-works of the document must themselves be free in the same sense. It
-complements the GNU General Public License, which is a copyleft
-license designed for free software.
-
-We have designed this License in order to use it for manuals for free
-software, because free software needs free documentation: a free
-program should come with manuals providing the same freedoms that the
-software does. But this License is not limited to software manuals;
-it can be used for any textual work, regardless of subject matter or
-whether it is published as a printed book. We recommend this License
-principally for works whose purpose is instruction or reference.
-
-
-1. APPLICABILITY AND DEFINITIONS
-
-This License applies to any manual or other work, in any medium, that
-contains a notice placed by the copyright holder saying it can be
-distributed under the terms of this License. Such a notice grants a
-world-wide, royalty-free license, unlimited in duration, to use that
-work under the conditions stated herein. The "Document", below,
-refers to any such manual or work. Any member of the public is a
-licensee, and is addressed as "you". You accept the license if you
-copy, modify or distribute the work in a way requiring permission
-under copyright law.
-
-A "Modified Version" of the Document means any work containing the
-Document or a portion of it, either copied verbatim, or with
-modifications and/or translated into another language.
-
-A "Secondary Section" is a named appendix or a front-matter section of
-the Document that deals exclusively with the relationship of the
-publishers or authors of the Document to the Document's overall subject
-(or to related matters) and contains nothing that could fall directly
-within that overall subject. (Thus, if the Document is in part a
-textbook of mathematics, a Secondary Section may not explain any
-mathematics.) The relationship could be a matter of historical
-connection with the subject or with related matters, or of legal,
-commercial, philosophical, ethical or political position regarding
-them.
-
-The "Invariant Sections" are certain Secondary Sections whose titles
-are designated, as being those of Invariant Sections, in the notice
-that says that the Document is released under this License. If a
-section does not fit the above definition of Secondary then it is not
-allowed to be designated as Invariant. The Document may contain zero
-Invariant Sections. If the Document does not identify any Invariant
-Sections then there are none.
-
-The "Cover Texts" are certain short passages of text that are listed,
-as Front-Cover Texts or Back-Cover Texts, in the notice that says that
-the Document is released under this License. A Front-Cover Text may
-be at most 5 words, and a Back-Cover Text may be at most 25 words.
-
-A "Transparent" copy of the Document means a machine-readable copy,
-represented in a format whose specification is available to the
-general public, that is suitable for revising the document
-straightforwardly with generic text editors or (for images composed of
-pixels) generic paint programs or (for drawings) some widely available
-drawing editor, and that is suitable for input to text formatters or
-for automatic translation to a variety of formats suitable for input
-to text formatters. A copy made in an otherwise Transparent file
-format whose markup, or absence of markup, has been arranged to thwart
-or discourage subsequent modification by readers is not Transparent.
-An image format is not Transparent if used for any substantial amount
-of text. A copy that is not "Transparent" is called "Opaque".
-
-Examples of suitable formats for Transparent copies include plain
-ASCII without markup, Texinfo input format, LaTeX input format, SGML
-or XML using a publicly available DTD, and standard-conforming simple
-HTML, PostScript or PDF designed for human modification. Examples of
-transparent image formats include PNG, XCF and JPG. Opaque formats
-include proprietary formats that can be read and edited only by
-proprietary word processors, SGML or XML for which the DTD and/or
-processing tools are not generally available, and the
-machine-generated HTML, PostScript or PDF produced by some word
-processors for output purposes only.
-
-The "Title Page" means, for a printed book, the title page itself,
-plus such following pages as are needed to hold, legibly, the material
-this License requires to appear in the title page. For works in
-formats which do not have any title page as such, "Title Page" means
-the text near the most prominent appearance of the work's title,
-preceding the beginning of the body of the text.
-
-A section "Entitled XYZ" means a named subunit of the Document whose
-title either is precisely XYZ or contains XYZ in parentheses following
-text that translates XYZ in another language. (Here XYZ stands for a
-specific section name mentioned below, such as "Acknowledgements",
-"Dedications", "Endorsements", or "History".) To "Preserve the Title"
-of such a section when you modify the Document means that it remains a
-section "Entitled XYZ" according to this definition.
-
-The Document may include Warranty Disclaimers next to the notice which
-states that this License applies to the Document. These Warranty
-Disclaimers are considered to be included by reference in this
-License, but only as regards disclaiming warranties: any other
-implication that these Warranty Disclaimers may have is void and has
-no effect on the meaning of this License.
-
-
-2. VERBATIM COPYING
-
-You may copy and distribute the Document in any medium, either
-commercially or noncommercially, provided that this License, the
-copyright notices, and the license notice saying this License applies
-to the Document are reproduced in all copies, and that you add no other
-conditions whatsoever to those of this License. You may not use
-technical measures to obstruct or control the reading or further
-copying of the copies you make or distribute. However, you may accept
-compensation in exchange for copies. If you distribute a large enough
-number of copies you must also follow the conditions in section 3.
-
-You may also lend copies, under the same conditions stated above, and
-you may publicly display copies.
-
-
-3. COPYING IN QUANTITY
-
-If you publish printed copies (or copies in media that commonly have
-printed covers) of the Document, numbering more than 100, and the
-Document's license notice requires Cover Texts, you must enclose the
-copies in covers that carry, clearly and legibly, all these Cover
-Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
-the back cover. Both covers must also clearly and legibly identify
-you as the publisher of these copies. The front cover must present
-the full title with all words of the title equally prominent and
-visible. You may add other material on the covers in addition.
-Copying with changes limited to the covers, as long as they preserve
-the title of the Document and satisfy these conditions, can be treated
-as verbatim copying in other respects.
-
-If the required texts for either cover are too voluminous to fit
-legibly, you should put the first ones listed (as many as fit
-reasonably) on the actual cover, and continue the rest onto adjacent
-pages.
-
-If you publish or distribute Opaque copies of the Document numbering
-more than 100, you must either include a machine-readable Transparent
-copy along with each Opaque copy, or state in or with each Opaque copy
-a computer-network location from which the general network-using
-public has access to download using public-standard network protocols
-a complete Transparent copy of the Document, free of added material.
-If you use the latter option, you must take reasonably prudent steps,
-when you begin distribution of Opaque copies in quantity, to ensure
-that this Transparent copy will remain thus accessible at the stated
-location until at least one year after the last time you distribute an
-Opaque copy (directly or through your agents or retailers) of that
-edition to the public.
-
-It is requested, but not required, that you contact the authors of the
-Document well before redistributing any large number of copies, to give
-them a chance to provide you with an updated version of the Document.
-
-
-4. MODIFICATIONS
-
-You may copy and distribute a Modified Version of the Document under
-the conditions of sections 2 and 3 above, provided that you release
-the Modified Version under precisely this License, with the Modified
-Version filling the role of the Document, thus licensing distribution
-and modification of the Modified Version to whoever possesses a copy
-of it. In addition, you must do these things in the Modified Version:
-
-A. Use in the Title Page (and on the covers, if any) a title distinct
- from that of the Document, and from those of previous versions
- (which should, if there were any, be listed in the History section
- of the Document). You may use the same title as a previous version
- if the original publisher of that version gives permission.
-B. List on the Title Page, as authors, one or more persons or entities
- responsible for authorship of the modifications in the Modified
- Version, together with at least five of the principal authors of the
- Document (all of its principal authors, if it has fewer than five),
- unless they release you from this requirement.
-C. State on the Title page the name of the publisher of the
- Modified Version, as the publisher.
-D. Preserve all the copyright notices of the Document.
-E. Add an appropriate copyright notice for your modifications
- adjacent to the other copyright notices.
-F. Include, immediately after the copyright notices, a license notice
- giving the public permission to use the Modified Version under the
- terms of this License, in the form shown in the Addendum below.
-G. Preserve in that license notice the full lists of Invariant Sections
- and required Cover Texts given in the Document's license notice.
-H. Include an unaltered copy of this License.
-I. Preserve the section Entitled "History", Preserve its Title, and add
- to it an item stating at least the title, year, new authors, and
- publisher of the Modified Version as given on the Title Page. If
- there is no section Entitled "History" in the Document, create one
- stating the title, year, authors, and publisher of the Document as
- given on its Title Page, then add an item describing the Modified
- Version as stated in the previous sentence.
-J. Preserve the network location, if any, given in the Document for
- public access to a Transparent copy of the Document, and likewise
- the network locations given in the Document for previous versions
- it was based on. These may be placed in the "History" section.
- You may omit a network location for a work that was published at
- least four years before the Document itself, or if the original
- publisher of the version it refers to gives permission.
-K. For any section Entitled "Acknowledgements" or "Dedications",
- Preserve the Title of the section, and preserve in the section all
- the substance and tone of each of the contributor acknowledgements
- and/or dedications given therein.
-L. Preserve all the Invariant Sections of the Document,
- unaltered in their text and in their titles. Section numbers
- or the equivalent are not considered part of the section titles.
-M. Delete any section Entitled "Endorsements". Such a section
- may not be included in the Modified Version.
-N. Do not retitle any existing section to be Entitled "Endorsements"
- or to conflict in title with any Invariant Section.
-O. Preserve any Warranty Disclaimers.
-
-If the Modified Version includes new front-matter sections or
-appendices that qualify as Secondary Sections and contain no material
-copied from the Document, you may at your option designate some or all
-of these sections as invariant. To do this, add their titles to the
-list of Invariant Sections in the Modified Version's license notice.
-These titles must be distinct from any other section titles.
-
-You may add a section Entitled "Endorsements", provided it contains
-nothing but endorsements of your Modified Version by various
-parties--for example, statements of peer review or that the text has
-been approved by an organization as the authoritative definition of a
-standard.
-
-You may add a passage of up to five words as a Front-Cover Text, and a
-passage of up to 25 words as a Back-Cover Text, to the end of the list
-of Cover Texts in the Modified Version. Only one passage of
-Front-Cover Text and one of Back-Cover Text may be added by (or
-through arrangements made by) any one entity. If the Document already
-includes a cover text for the same cover, previously added by you or
-by arrangement made by the same entity you are acting on behalf of,
-you may not add another; but you may replace the old one, on explicit
-permission from the previous publisher that added the old one.
-
-The author(s) and publisher(s) of the Document do not by this License
-give permission to use their names for publicity for or to assert or
-imply endorsement of any Modified Version.
-
-
-5. COMBINING DOCUMENTS
-
-You may combine the Document with other documents released under this
-License, under the terms defined in section 4 above for modified
-versions, provided that you include in the combination all of the
-Invariant Sections of all of the original documents, unmodified, and
-list them all as Invariant Sections of your combined work in its
-license notice, and that you preserve all their Warranty Disclaimers.
-
-The combined work need only contain one copy of this License, and
-multiple identical Invariant Sections may be replaced with a single
-copy. If there are multiple Invariant Sections with the same name but
-different contents, make the title of each such section unique by
-adding at the end of it, in parentheses, the name of the original
-author or publisher of that section if known, or else a unique number.
-Make the same adjustment to the section titles in the list of
-Invariant Sections in the license notice of the combined work.
-
-In the combination, you must combine any sections Entitled "History"
-in the various original documents, forming one section Entitled
-"History"; likewise combine any sections Entitled "Acknowledgements",
-and any sections Entitled "Dedications". You must delete all sections
-Entitled "Endorsements".
-
-
-6. COLLECTIONS OF DOCUMENTS
-
-You may make a collection consisting of the Document and other documents
-released under this License, and replace the individual copies of this
-License in the various documents with a single copy that is included in
-the collection, provided that you follow the rules of this License for
-verbatim copying of each of the documents in all other respects.
-
-You may extract a single document from such a collection, and distribute
-it individually under this License, provided you insert a copy of this
-License into the extracted document, and follow this License in all
-other respects regarding verbatim copying of that document.
-
-
-7. AGGREGATION WITH INDEPENDENT WORKS
-
-A compilation of the Document or its derivatives with other separate
-and independent documents or works, in or on a volume of a storage or
-distribution medium, is called an "aggregate" if the copyright
-resulting from the compilation is not used to limit the legal rights
-of the compilation's users beyond what the individual works permit.
-When the Document is included in an aggregate, this License does not
-apply to the other works in the aggregate which are not themselves
-derivative works of the Document.
-
-If the Cover Text requirement of section 3 is applicable to these
-copies of the Document, then if the Document is less than one half of
-the entire aggregate, the Document's Cover Texts may be placed on
-covers that bracket the Document within the aggregate, or the
-electronic equivalent of covers if the Document is in electronic form.
-Otherwise they must appear on printed covers that bracket the whole
-aggregate.
-
-
-8. TRANSLATION
-
-Translation is considered a kind of modification, so you may
-distribute translations of the Document under the terms of section 4.
-Replacing Invariant Sections with translations requires special
-permission from their copyright holders, but you may include
-translations of some or all Invariant Sections in addition to the
-original versions of these Invariant Sections. You may include a
-translation of this License, and all the license notices in the
-Document, and any Warranty Disclaimers, provided that you also include
-the original English version of this License and the original versions
-of those notices and disclaimers. In case of a disagreement between
-the translation and the original version of this License or a notice
-or disclaimer, the original version will prevail.
-
-If a section in the Document is Entitled "Acknowledgements",
-"Dedications", or "History", the requirement (section 4) to Preserve
-its Title (section 1) will typically require changing the actual
-title.
-
-
-9. TERMINATION
-
-You may not copy, modify, sublicense, or distribute the Document except
-as expressly provided for under this License. Any other attempt to
-copy, modify, sublicense or distribute the Document is void, and will
-automatically terminate your rights under this License. However,
-parties who have received copies, or rights, from you under this
-License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-
-10. FUTURE REVISIONS OF THIS LICENSE
-
-The Free Software Foundation may publish new, revised versions
-of the GNU Free Documentation License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns. See
-http://www.gnu.org/copyleft/.
-
-Each version of the License is given a distinguishing version number.
-If the Document specifies that a particular numbered version of this
-License "or any later version" applies to it, you have the option of
-following the terms and conditions either of that specified version or
-of any later version that has been published (not as a draft) by the
-Free Software Foundation. If the Document does not specify a version
-number of this License, you may choose any version ever published (not
-as a draft) by the Free Software Foundation.
-
-
-ADDENDUM: How to use this License for your documents
-
-To use this License in a document you have written, include a copy of
-the License in the document and put the following copyright and
-license notices just after the title page:
-
- Copyright (c) YEAR YOUR NAME.
- Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.2
- or any later version published by the Free Software Foundation;
- with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
- A copy of the license is included in the section entitled "GNU
- Free Documentation License".
-
-If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
-replace the "with...Texts." line with this:
-
- with the Invariant Sections being LIST THEIR TITLES, with the
- Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
-
-If you have Invariant Sections without Cover Texts, or some other
-combination of the three, merge those two alternatives to suit the
-situation.
-
-If your document contains nontrivial examples of program code, we
-recommend releasing these examples in parallel under your choice of
-free software license, such as the GNU General Public License,
-to permit their use in free software.
diff --git a/applets/lancelot/COPYING.LIB b/applets/lancelot/COPYING.LIB
deleted file mode 100644
index 2d2d780..0000000
--- a/applets/lancelot/COPYING.LIB
+++ /dev/null
@@ -1,510 +0,0 @@
-
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL. It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
- This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it. You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations
-below.
-
- When we speak of free software, we are referring to freedom of use,
-not price. Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
- To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights. These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
- For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you. You must make sure that they, too, receive or can get the source
-code. If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it. And you must show them these terms so they know their rights.
-
- We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
- To protect each distributor, we want to make it very clear that
-there is no warranty for the free library. Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
- Finally, software patents pose a constant threat to the existence of
-any free program. We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder. Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
- Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License. This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License. We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
- When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library. The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom. The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
- We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License. It also provides other free software developers Less
-of an advantage over competing non-free programs. These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries. However, the Lesser license provides advantages in certain
-special circumstances.
-
- For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it
-becomes a de-facto standard. To achieve this, non-free programs must
-be allowed to use the library. A more frequent case is that a free
-library does the same job as widely used non-free libraries. In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
- In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software. For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
- Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
- The precise terms and conditions for copying, distribution and
-modification follow. Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library". The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
- GNU LESSER GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
- A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
- The "Library", below, refers to any such software library or work
-which has been distributed under these terms. A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language. (Hereinafter, translation is
-included without limitation in the term "modification".)
-
- "Source code" for a work means the preferred form of the work for
-making modifications to it. For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control
-compilation and installation of the library.
-
- Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it). Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-
- 1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
- You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
- 2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) The modified work must itself be a software library.
-
- b) You must cause the files modified to carry prominent notices
- stating that you changed the files and the date of any change.
-
- c) You must cause the whole of the work to be licensed at no
- charge to all third parties under the terms of this License.
-
- d) If a facility in the modified Library refers to a function or a
- table of data to be supplied by an application program that uses
- the facility, other than as an argument passed when the facility
- is invoked, then you must make a good faith effort to ensure that,
- in the event an application does not supply such function or
- table, the facility still operates, and performs whatever part of
- its purpose remains meaningful.
-
- (For example, a function in a library to compute square roots has
- a purpose that is entirely well-defined independent of the
- application. Therefore, Subsection 2d requires that any
- application-supplied function or table used by this function must
- be optional: if the application does not supply it, the square
- root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library. To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License. (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.) Do not make any other change in
-these notices.
-
- Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
- This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
- 4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
- If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library". Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
- However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library". The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
- When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library. The
-threshold for this to be true is not precisely defined by law.
-
- If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work. (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
- Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
- 6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
- You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License. You must supply a copy of this License. If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License. Also, you must do one
-of these things:
-
- a) Accompany the work with the complete corresponding
- machine-readable source code for the Library including whatever
- changes were used in the work (which must be distributed under
- Sections 1 and 2 above); and, if the work is an executable linked
- with the Library, with the complete machine-readable "work that
- uses the Library", as object code and/or source code, so that the
- user can modify the Library and then relink to produce a modified
- executable containing the modified Library. (It is understood
- that the user who changes the contents of definitions files in the
- Library will not necessarily be able to recompile the application
- to use the modified definitions.)
-
- b) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (1) uses at run time a
- copy of the library already present on the user's computer system,
- rather than copying library functions into the executable, and (2)
- will operate properly with a modified version of the library, if
- the user installs one, as long as the modified version is
- interface-compatible with the version that the work was made with.
-
- c) Accompany the work with a written offer, valid for at least
- three years, to give the same user the materials specified in
- Subsection 6a, above, for a charge no more than the cost of
- performing this distribution.
-
- d) If distribution of the work is made by offering access to copy
- from a designated place, offer equivalent access to copy the above
- specified materials from the same place.
-
- e) Verify that the user has already received a copy of these
- materials or that you have already sent this user a copy.
-
- For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it. However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
- It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system. Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
- 7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
- a) Accompany the combined library with a copy of the same work
- based on the Library, uncombined with any other library
- facilities. This must be distributed under the terms of the
- Sections above.
-
- b) Give prominent notice with the combined library of the fact
- that part of it is a work based on the Library, and explaining
- where to find the accompanying uncombined form of the same work.
-
- 8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License. Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License. However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
- 9. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Library or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
- 10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
- 11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all. For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply, and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License
-may add an explicit geographical distribution limitation excluding those
-countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
- 14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission. For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this. Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
- NO WARRANTY
-
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Libraries
-
- If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change. You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms
-of the ordinary General Public License).
-
- To apply these terms, attach the following notices to the library.
-It is safest to attach them to the start of each source file to most
-effectively convey the exclusion of warranty; and each file should
-have at least the "copyright" line and a pointer to where the full
-notice is found.
-
-
- <one line to give the library's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or
-your school, if any, to sign a "copyright disclaimer" for the library,
-if necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
- library `Frob' (a library for tweaking knobs) written by James
- Random Hacker.
-
- <signature of Ty Coon>, 1 April 1990
- Ty Coon, President of Vice
-
-That's all there is to it!
-
-
diff --git a/applets/lancelot/Messages.sh b/applets/lancelot/Messages.sh
deleted file mode 100755
index 65a9e22..0000000
--- a/applets/lancelot/Messages.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /usr/bin/env bash
-$EXTRACTRC `find . -name \*.ui` >> rc.cpp || exit 11
-$XGETTEXT `find . -name \*.cpp -o -name \*.h` -o $podir/lancelot.pot
-rm -f rc.cpp
diff --git a/applets/lancelot/TODO b/applets/lancelot/TODO
deleted file mode 100644
index 3bf4add..0000000
--- a/applets/lancelot/TODO
+++ /dev/null
@@ -1,56 +0,0 @@
-difficulty
-e - easy
-m - medium
-a - advanced
-h - hard
-
-priority:
-l - low
-m - medium
-h - high
-
-Format:
-TODO: <id> <priority> (<difficulty>)
-
-Menu:
-TODO: M02 l (m) Resize to work ... better
-TODO: M09 (a) Speed up
-TODO: M13 h (m) make configuration for plug-ins for contacts (maybe more?)
-TODO: M16 m (e) Run as administrator context menu
-TODO: M17 m (e) Save session http://forum.kde.org/viewtopic.php?f=67&t=82859
-TODO: M18 Unlock/Lock inside L https://bugs.kde.org/show_bug.cgi?id=251150
-
-Library:
-TODO: L01 (e) check for memory leaks related to Private
-TODO: L03 l (m) add margin features to layouts
-TODO: L04 l (m) add proper size hints to layouts and widgets
-TODO: L18 m (e) 'flick' scrolling in locked mode
-
-Launcher Applet:
-None
-
-Shelf Applet:
- - notification in the icon when model changes
- - number of items showed in the icon
-
-Feature requests:
- - web history - page titles - interesting
- - hover activation for categories that are not in the last list of
- the PassagewayView - probably
- - hover-activation feedback animation - yes
- - tooltips for items that are too long to display - yes
- - mail message titles/senders - probably
- - status of mails in the contacts icon - possibly
- - add to panel/desktop action - probably
- - additional sub-applets: keep-open (yes), ...
- - advanced Shelf widget: list mode, icons mode, ... - maybe
- - sticky Favourites section (https://bugs.kde.org/show_bug.cgi?id=191350) - maybe
- - configurable sizes for item heights - not likely
- - file actions move/delete for folder model - not likely
- - move right cols to the left when left col is empty - probably
- - rearange items in sections - maybe
- - option to set a custom icon for the Shelf applet - yes
- - DnD reordering of sections (inside the menu and inside the applet) - probably
- - reload for places and disks
-
-
diff --git a/applets/lancelot/application/AboutData.cpp b/applets/lancelot/application/AboutData.cpp
deleted file mode 100644
index d17944b..0000000
--- a/applets/lancelot/application/AboutData.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "AboutData.h"
-
-AboutData::AboutData()
- : KAboutData(
- QByteArray("lancelot"),
- QByteArray(""),
- ki18n("Lancelot"),
- QByteArray("1.9.5"),
- ki18n("Next-generation application launcher."),
- KAboutData::License_GPL,
- ki18n("(C) 2007, 2008, 2009, 2010 Ivan Čukić"),
- KLocalizedString()
- )
-{
- setHomepage("http://lancelot.fomentgroup.org/");
-
- addAuthor(
- ki18n("Ivan Čukić"),
- ki18n("Maintainer and lead developer"),
- "ivan.cukic(at)kde.org",
- "http://ivan.fomentgroup.org",
- "ivancukic"
- );
-
- addCredit(
- ki18n("Siraj Razick"),
- ki18n("Raptor compositing code"));
- addCredit(
- ki18n("Robert Knight"),
- ki18n("Kickoff data models"));
-}
-
diff --git a/applets/lancelot/application/AboutData.h b/applets/lancelot/application/AboutData.h
deleted file mode 100644
index 4a27019..0000000
--- a/applets/lancelot/application/AboutData.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTAPP_ABOUT_DATA_H
-#define LANCELOTAPP_ABOUT_DATA_H
-
-#include <KAboutData>
-
-class AboutData: public KAboutData {
-public:
- AboutData();
-};
-
-#endif // LANCELOTAPP_ABOUT_DATA_H
-
-
diff --git a/applets/lancelot/application/CMakeLists.txt b/applets/lancelot/application/CMakeLists.txt
deleted file mode 100644
index a4d801a..0000000
--- a/applets/lancelot/application/CMakeLists.txt
+++ /dev/null
@@ -1,98 +0,0 @@
-#########################################################
-# Checking for Composite Begin #
-#########################################################
-
-if(X11_Xrender_FOUND )
- set( LANCELOT_HAVE_COMPOSITING 1 )
-endif( X11_Xrender_FOUND )
-
-macro_log_feature(LANCELOT_HAVE_COMPOSITING
- "XRender"
- "Lancelot compositing support"
- "http://www.x.org/"
- FALSE
- ""
- "STRONGLY_RECOMMENDED: XRender extension is required for Lancelot compositing support"
-)
-
-configure_file(config-lancelot.h.cmake
- ${CMAKE_CURRENT_BINARY_DIR}/config-lancelot.h )
-
-#########################################################
-# Checking for Composite End #
-#########################################################
-
-# include(PlasmaUIMacros)
-
-include_directories(
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_BINARY_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR}
- ${KDE4_INCLUDES}
-
- ${LANCELOT_INCLUDE_DIR}
- ${LANCELOT_DATAMODELS_INCLUDE_DIR}
-)
-
-# Lancelot application files
-set(plasma_lancelot_application_SRCS
- LancelotApplication.cpp
- LancelotWindow.cpp
- LancelotConfig.cpp
- QtDisplay.cpp
- AboutData.cpp
-)
-
-# This is done manually now:
-# plasmaui_add_ui_files(plasma_lancelot_application_SRCS
-# "ui/LancelotWindowBase.xml"
-# )
-
-set(ksmserver_xml ${KDE4WORKSPACE_DBUS_INTERFACES_DIR}/org.kde.KSMServerInterface.xml)
-qt4_add_dbus_interface(plasma_lancelot_application_SRCS ${ksmserver_xml} ksmserver_interface)
-
-qt4_add_dbus_adaptor(plasma_lancelot_application_SRCS org.kde.lancelot.xml
- LancelotApplication.h LancelotApplication)
-
-# Lancelot Menu
-set(
- plasma_lancelot_SRCS
- main.cpp
-
- ${plasma_lancelot_application_SRCS}
-)
-
-kde4_add_ui_files(
- plasma_lancelot_SRCS
- ui/LancelotConfigBase.ui
-)
-
-kde4_add_executable(lancelot-menu ${plasma_lancelot_SRCS})
-
-target_link_libraries(
- lancelot-menu
- ${KDE4_KIO_LIBS}
- ${KDE4_PLASMA_LIBS}
- ${KDE4_KCMUTILS_LIBS}
- ${LANCELOT_LIBS}
- ${LANCELOT_DATAMODELS_LIBS}
- )
-
-if(LANCELOT_HAVE_COMPOSITING)
- target_link_libraries(lancelot-menu ${X11_Xrender_LIB} ${X11_X11_LIB})
-endif(LANCELOT_HAVE_COMPOSITING)
-
-set_target_properties(lancelot-menu PROPERTIES OUTPUT_NAME lancelot)
-
-########### install applicaiton ###############
-
-# To regenerate .xml file:
-# qdbuscpp2xml -M -s LancelotApplication.h -o org.kde.lancelot.xml.new
-
-install(TARGETS lancelot-menu ${INSTALL_TARGETS_DEFAULT_ARGS} )
-
-install(FILES lancelot.notifyrc DESTINATION ${DATA_INSTALL_DIR}/lancelot)
-
-install(FILES lancelot.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-
diff --git a/applets/lancelot/application/LancelotApplication.cpp b/applets/lancelot/application/LancelotApplication.cpp
deleted file mode 100644
index 72dd8a1..0000000
--- a/applets/lancelot/application/LancelotApplication.cpp
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "LancelotApplication.h"
-
-#include <QIcon>
-#include <QtDBus>
-
-#include <KAboutData>
-#include <KAction>
-#include <KCmdLineArgs>
-#include <KCrash>
-#include <KDebug>
-#include <KLocale>
-
-#include <Lancelot/Global>
-
-#include <Lancelot/Models/BaseModel>
-
-#include "AboutData.h"
-#include "LancelotWindow.h"
-#include "lancelotadaptor.h"
-
-#include "QtDisplay.h"
-
-LancelotApplication * LancelotApplication::m_application = NULL;
-
-LancelotApplication::LancelotApplication(int argc, char **argv)
- : KUniqueApplication(argc, argv), window(0),
- m_clientsNumber(0), m_lastID(-1)
-{
- init();
-}
-
-LancelotApplication::LancelotApplication (Display * display, Qt::HANDLE visual, Qt::HANDLE colormap, bool configUnique)
- : KUniqueApplication(display, visual, colormap, configUnique), window(0),
- m_clientsNumber(0), m_lastID(-1)
-{
- init();
-}
-
-bool LancelotApplication::event(QEvent * e)
-{
- if (e->type() == QEvent::ApplicationDeactivate) {
- hide(true);
- }
- return KUniqueApplication::event(e);
-}
-
-void LancelotApplication::init()
-{
- window = new LancelotWindow();
-
- setQuitOnLastWindowClosed(false);
- KCrash::setFlags(KCrash::AutoRestart);
-
- new AppAdaptor(this);
- QDBusConnection dbus = QDBusConnection::sessionBus();
- dbus.registerObject("/Lancelot", this);
-
- Lancelot::Models::ApplicationConnector * ac = Lancelot::Models::ApplicationConnector::self();
- connect(
- ac, SIGNAL(doSearch(QString)),
- this, SLOT(search(QString))
- );
- connect(
- ac, SIGNAL(doHide(bool)),
- this, SLOT(hide(bool))
- );
-
-}
-
-LancelotApplication::~LancelotApplication()
-{
-}
-
-int LancelotApplication::main(int argc, char **argv)
-{
- qDebug() << "load main catalog ###";
- KLocale::setMainCatalog("lancelot");
-
- KAboutData * about = new AboutData();
- KCmdLineArgs::init(argc, argv, about);
-
-#ifdef LANCELOT_HAVE_COMPOSITING
- QtDisplay * dpy = new QtDisplay();
- LancelotApplication::m_application =
- new LancelotApplication(
- dpy->display(),
- dpy->visual(),
- dpy->colormap());
-#else
- LancelotApplication::m_application =
- new LancelotApplication(argc, argv);
-#endif // LANCELOT_HAVE_COMPOSITING
-
- return LancelotApplication::m_application->exec();
-}
-
-bool LancelotApplication::showCentered()
-{
- if (!m_application) return false;
- LancelotApplication::m_application->window->lancelotShowCentered();
- return true;
-}
-
-bool LancelotApplication::isShowing()
-{
- if (!m_application) return false;
- return !(LancelotApplication::m_application->window->isHidden());
-}
-
-bool LancelotApplication::isShowing(const QString & section)
-{
- if (!m_application) return false;
- kDebug() << LancelotApplication::m_application->window->currentSection() << section;
- return (LancelotApplication::m_application->window->currentSection() == section);
-}
-
-bool LancelotApplication::show(int x, int y)
-{
- if (!m_application) return false;
- LancelotApplication::m_application->window->lancelotShow(x, y);
- return true;
-}
-
-bool LancelotApplication::hide(bool immediate)
-{
- if (!m_application || !(LancelotApplication::m_application->window)) return false;
- LancelotApplication::m_application->window->lancelotHide(immediate);
- return true;
-}
-
-bool LancelotApplication::showItem(int x, int y, const QString & name)
-{
- if (!LancelotApplication::m_application || !(LancelotApplication::m_application->window)) return false;
- LancelotApplication::m_application->window->lancelotShowItem(x, y, name);
- return true;
-}
-
-int LancelotApplication::addClient()
-{
- m_clientsNumber++;
- ++ m_lastID;
- m_clients.insert(m_lastID);
- return (m_lastID);
-}
-
-bool LancelotApplication::removeClient(int id)
-{
- if (!LancelotApplication::m_application || !(LancelotApplication::m_application->window)) return false;
- m_clientsNumber--;
- m_clients.remove(id);
- return true;
-}
-
-bool LancelotApplication::search(const QString & string)
-{
- if (!LancelotApplication::m_application || !(LancelotApplication::m_application->window)) return false;
- LancelotApplication::m_application->window->search(string);
- return true;
-}
-
-QStringList LancelotApplication::sectionIDs()
-{
- if (!window) return QStringList();
- return window->sectionIDs();
-}
-
-QStringList LancelotApplication::sectionNames()
-{
- if (!window) return QStringList();
- return window->sectionNames();
-}
-
-QStringList LancelotApplication::sectionIcons()
-{
- if (!window) return QStringList();
- return window->sectionIcons();
-}
-
-void LancelotApplication::configureShortcuts()
-{
- if (!window) return;
- window->configureShortcuts();
-}
-
-void LancelotApplication::configurationChanged()
-{
- if (!window) return;
- window->configurationChanged();
-}
-
-void LancelotApplication::showMenuEditor()
-{
- if (!window) return;
- window->showMenuEditor();
-}
-
-void LancelotApplication::setImmutability(int immutable)
-{
- Lancelot::Global::self()->setImmutability(
- (Plasma::ImmutabilityType) immutable);
-}
-
-int LancelotApplication::immutability() const
-{
- return Lancelot::Global::self()->immutability();
-}
diff --git a/applets/lancelot/application/LancelotApplication.h b/applets/lancelot/application/LancelotApplication.h
deleted file mode 100644
index 552a27a..0000000
--- a/applets/lancelot/application/LancelotApplication.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTAPPLICATION_H
-#define LANCELOTAPPLICATION_H
-
-#include <QTimer>
-#include <QSet>
-#include <QStringList>
-#include <QSignalMapper>
-
-#include <KUniqueApplication>
-
-#include <Plasma/Plasma>
-
-class LancelotWindow;
-class KActionCollection;
-
-class LancelotApplication: public KUniqueApplication
-{
- Q_OBJECT
- Q_CLASSINFO("D-Bus Interface", "org.kde.lancelot.App")
-
-public:
- static int main(int argc, char **argv);
- bool event(QEvent * e);
-
-public Q_SLOTS:
- static bool show(int x, int y);
- static bool showCentered();
- static bool showItem(int x, int y, const QString & name);
-
- static bool hide(bool immediate = false);
- static bool search(const QString & string);
-
- static bool isShowing();
- static bool isShowing(const QString & section);
-
- void configureShortcuts();
- void configurationChanged();
- void showMenuEditor();
-
- int addClient();
- bool removeClient(int id);
-
- QStringList sectionIDs();
- QStringList sectionNames();
- QStringList sectionIcons();
-
- void setImmutability(int immutable);
- int immutability() const;
-
-protected:
- LancelotWindow * window;
-
-private:
- static LancelotApplication * m_application;
-
- LancelotApplication(int argc, char **argv);
- LancelotApplication(Display * display,
- Qt::HANDLE visual = 0,
- Qt::HANDLE colormap = 0,
- bool configUnique = false);
- void init();
-
- virtual ~LancelotApplication();
-
- int m_clientsNumber;
- int m_lastID;
- QSet<int> m_clients;
-
-};
-
-#endif /*LANCELOTAPPLICATION_H*/
diff --git a/applets/lancelot/application/LancelotConfig.cpp b/applets/lancelot/application/LancelotConfig.cpp
deleted file mode 100644
index 3263eb1..0000000
--- a/applets/lancelot/application/LancelotConfig.cpp
+++ /dev/null
@@ -1,271 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "LancelotConfig.h"
-
-#include <KConfigGroup>
-#include <KRun>
-#include <KUrl>
-#include <KServiceTypeTrader>
-#include <KService>
-#include <KPluginInfo>
-
-#include <Lancelot/Models/NewDocuments>
-#include <Lancelot/Models/SystemActions>
-#include <Lancelot/Models/SystemServices>
-
-LancelotConfig::LancelotConfig()
- : systemButtonActionsMenu(NULL), clickedSystemButton(NULL),
- m_config("lancelotrc"), m_mainConfig(&m_config, "Main")
-{
-}
-
-void LancelotConfig::setupUi(QWidget * widget)
-{
- Ui::LancelotConfigBase::setupUi(widget);
-
- KService::List offers = KServiceTypeTrader::self()->query("Plasma/Runner");
- QList < KPluginInfo > runnerInfo = KPluginInfo::fromServices(offers);
-
- m_searchPlugins = new KPluginSelector(widget);
- m_searchPlugins->addPlugins(
- runnerInfo,
- KPluginSelector::ReadConfigFile,
- i18n("Available Features"),
- QString(),
- KSharedConfig::openConfig("lancelotrc")
- );
- tabWidget->addTab(m_searchPlugins, i18n("Search"));
-
- connect(m_searchPlugins, SIGNAL(changed(bool)), this, SIGNAL(searchPluginChanged()));
-
- tabWidget->setCurrentIndex(0);
-
- qbgActivationMethod = new QButtonGroup(widget);
- qbgActivationMethod->addButton(radioActivationClick);
- qbgActivationMethod->addButton(radioActivationClassic);
- qbgActivationMethod->addButton(radioActivationNoClick);
-
- qbgAppbrowserColumnLimit = new QButtonGroup(widget);
- qbgAppbrowserColumnLimit->addButton(radioAppBrowserNoColumnLimit);
- qbgAppbrowserColumnLimit->addButton(radioAppBrowserTwoColumnLimit);
- qbgAppbrowserColumnLimit->addButton(radioAppBrowserCascade);
-
- connect(buttonSystem1, SIGNAL(clicked()), this, SLOT(systemButtonClicked()));
- connect(buttonSystem2, SIGNAL(clicked()), this, SLOT(systemButtonClicked()));
- connect(buttonSystem3, SIGNAL(clicked()), this, SLOT(systemButtonClicked()));
-
- connect(buttonNewDocumentsEdit, SIGNAL(clicked()),
- this, SLOT(buttonNewDocumentsEditClicked()));
- connect(buttonSystemApplicationsEdit, SIGNAL(clicked()),
- this, SLOT(buttonSystemApplicationsEditClicked()));
-
- loadConfig();
-}
-
-void LancelotConfig::systemButtonClicked()
-{
- clickedSystemButton = static_cast < QPushButton * > (sender());
- if (!systemButtonActionsMenu) {
- systemButtonActionsMenu = new QMenu();
- Lancelot::Models::SystemActions * model = Lancelot::Models::SystemActions::self();
- foreach (const QString &id, model->actions()) {
- systemButtonActionsMenu->addAction(
- model->actionIcon(id),
- model->actionTitle(id),
- this, SLOT(systemButtonActionsMenuClicked()))
- ->setData(id);
- }
- }
-
- systemButtonActionsMenu->exec(QCursor::pos());
-}
-
-void LancelotConfig::systemButtonActionsMenuClicked()
-{
- QAction * action = static_cast < QAction * > (sender());
-
- systemButtonActions[clickedSystemButton] =
- action->data().toString();
- setButtonData(clickedSystemButton);
- emit(systemButtonChanged());
-}
-
-void LancelotConfig::setButtonData(QPushButton * button)
-{
- button->setText(Lancelot::Models::SystemActions::self()->actionTitle(
- systemButtonActions[button]));
- button->setIcon(Lancelot::Models::SystemActions::self()->actionIcon(
- systemButtonActions[button]));
-}
-
-void LancelotConfig::loadConfig()
-{
- m_config.reparseConfiguration();
- setActivationMethod(
- (LancelotConfig::ActivationMethod)
- m_mainConfig.readEntry("activationMethod", (int)NoClick));
- setAppbrowserColumnLimitted(m_mainConfig.readEntry("appbrowserColumnLimitted", false));
- setAppbrowserReset(m_mainConfig.readEntry("appbrowserReset", true));
- setAppbrowserPopupSubmenus(m_mainConfig.readEntry("appbrowserPopupSubmenus", false));
-
- // SystemButtons loading
- systemButtonActions[buttonSystem1] = m_mainConfig.readEntry("systemButton1Action", "lock-screen");
- systemButtonActions[buttonSystem2] = m_mainConfig.readEntry("systemButton2Action", "menu-leave");
- systemButtonActions[buttonSystem3] = m_mainConfig.readEntry("systemButton3Action", "menu-switch-user");
-
- setButtonData(buttonSystem1);
- setButtonData(buttonSystem2);
- setButtonData(buttonSystem3);
-
- checkKeepOpen->setChecked(m_mainConfig.readEntry("enableKeepOpen", false));
- setEnableUsageStatistics(m_mainConfig.readEntry("enableUsageStatistics", true));
- setAppNameFirst(m_mainConfig.readEntry("applicationNameFirst", true));
-
- m_searchPlugins->load();
-}
-
-void LancelotConfig::saveConfig()
-{
- m_mainConfig.writeEntry("activationMethod", (int)activationMethod());
- m_mainConfig.writeEntry("appbrowserColumnLimitted", appbrowserColumnLimitted());
- m_mainConfig.writeEntry("appbrowserPopupSubmenus", appbrowserPopupSubmenus());
- m_mainConfig.writeEntry("appbrowserReset", appbrowserReset());
-
- m_mainConfig.writeEntry("systemButton1Action", systemButtonActions[buttonSystem1]);
- m_mainConfig.writeEntry("systemButton2Action", systemButtonActions[buttonSystem2]);
- m_mainConfig.writeEntry("systemButton3Action", systemButtonActions[buttonSystem3]);
-
- m_mainConfig.writeEntry("enableUsageStatistics", enableUsageStatistics());
- m_mainConfig.writeEntry("enableKeepOpen", checkKeepOpen->isChecked());
- m_mainConfig.writeEntry("applicationNameFirst", appNameFirst());
-
- m_searchPlugins->save();
-
- m_mainConfig.sync();
-}
-
-LancelotConfig::ActivationMethod LancelotConfig::activationMethod() const
-{
- if (radioActivationClick->isChecked()) {
- return LancelotConfig::Click;
- } else if (radioActivationClassic->isChecked()) {
- return LancelotConfig::Classic;
- } else {
- return LancelotConfig::NoClick;
- }
-}
-
-void LancelotConfig::setActivationMethod(LancelotConfig::ActivationMethod method)
-{
- switch (method) {
- case Click:
- radioActivationClick->click();
- break;
- case Classic:
- radioActivationClassic->click();
- break;
- case NoClick:
- radioActivationNoClick->click();
- break;
- }
-}
-
-bool LancelotConfig::appbrowserReset() const
-{
- return (checkAppBrowserReset->isChecked());
-}
-
-void LancelotConfig::setAppbrowserReset(bool value)
-{
- checkAppBrowserReset->setChecked(value);
-}
-
-bool LancelotConfig::appbrowserColumnLimitted() const
-{
- return (radioAppBrowserTwoColumnLimit->isChecked());
-}
-
-void LancelotConfig::setAppbrowserColumnLimitted(bool value)
-{
- if (value) {
- radioAppBrowserTwoColumnLimit->click();
- } else {
- radioAppBrowserNoColumnLimit->click();
- }
-}
-
-bool LancelotConfig::appbrowserPopupSubmenus() const
-{
- return radioAppBrowserCascade->isChecked();
-}
-
-void LancelotConfig::setAppbrowserPopupSubmenus(bool value)
-{
- if (value) {
- radioAppBrowserCascade->click();
- }
-}
-
-bool LancelotConfig::appNameFirst() const
-{
- return checkAppNameFirst->isChecked();
-}
-
-void LancelotConfig::setAppNameFirst(bool value)
-{
- checkAppNameFirst->setChecked(value);
-}
-
-bool LancelotConfig::enableUsageStatistics() const
-{
- return checkUsageStatisticsEnable->isChecked();
-}
-
-void LancelotConfig::setEnableUsageStatistics(bool value)
-{
- checkUsageStatisticsEnable->setChecked(value);
-}
-
-QStringList LancelotConfig::searchHistory() const
-{
- return m_mainConfig.readEntry("searchHistory",
- QStringList());
-}
-
-void LancelotConfig::setSearchHistory(const QStringList & history)
-{
- m_mainConfig.writeEntry("searchHistory", history);
- m_mainConfig.sync();
-}
-
-void LancelotConfig::buttonNewDocumentsEditClicked()
-{
- new KRun(KUrl(
- Lancelot::Models::NewDocuments::path()
- ), 0);
-}
-
-void LancelotConfig::buttonSystemApplicationsEditClicked()
-{
- new KRun(KUrl(
- Lancelot::Models::SystemServices::path()
- ), 0);
-}
-
diff --git a/applets/lancelot/application/LancelotConfig.h b/applets/lancelot/application/LancelotConfig.h
deleted file mode 100644
index fb13d85..0000000
--- a/applets/lancelot/application/LancelotConfig.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTCONFIG_H
-#define LANCELOTCONFIG_H
-
-#include "ui_LancelotConfigBase.h"
-
-#include <QButtonGroup>
-#include <QHash>
-#include <QMenu>
-#include <QPushButton>
-
-#include <KConfig>
-#include <KConfigGroup>
-#include <KPluginSelector>
-
-class LancelotConfig: public QObject, public Ui::LancelotConfigBase {
- Q_OBJECT
-public:
- LancelotConfig();
-
- void setupUi(QWidget * widget);
-
- void loadConfig();
- void saveConfig();
-
- enum ActivationMethod {
- Click = 0,
- Classic = 1,
- NoClick = 2
- };
-
- ActivationMethod activationMethod() const;
- void setActivationMethod(ActivationMethod method);
-
- bool appbrowserColumnLimitted() const;
- void setAppbrowserColumnLimitted(bool value);
-
- bool appbrowserPopupSubmenus() const;
- void setAppbrowserPopupSubmenus(bool value);
-
- bool appbrowserReset() const;
- void setAppbrowserReset(bool value);
-
- bool enableUsageStatistics() const;
- void setEnableUsageStatistics(bool value);
-
- bool appNameFirst() const;
- void setAppNameFirst(bool value);
-
- QStringList searchHistory() const;
- void setSearchHistory(const QStringList & history);
-
- QButtonGroup * qbgActivationMethod;
- QButtonGroup * qbgAppbrowserColumnLimit;
-
- QHash < QPushButton *, QString > systemButtonActions;
- QMenu * systemButtonActionsMenu;
- QPushButton * clickedSystemButton;
-
- KConfig m_config;
- KConfigGroup m_mainConfig;
-
-signals:
- void systemButtonChanged();
- void searchPluginChanged();
-private Q_SLOTS:
- void systemButtonClicked();
- void systemButtonActionsMenuClicked();
-
- void buttonSystemApplicationsEditClicked();
- void buttonNewDocumentsEditClicked();
-
- void setButtonData(QPushButton * button);
-
-private:
- KPluginSelector * m_searchPlugins;
-};
-
-#endif // LANCELOTCONFIG_H
-
-
diff --git a/applets/lancelot/application/LancelotWindow.cpp b/applets/lancelot/application/LancelotWindow.cpp
deleted file mode 100644
index 2d76b57..0000000
--- a/applets/lancelot/application/LancelotWindow.cpp
+++ /dev/null
@@ -1,1183 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "LancelotWindow.h"
-
-#include <QDesktopWidget>
-#include <QGraphicsItem>
-#include <QGraphicsView>
-#include <QStyleOptionGraphicsItem>
-#include <QtDBus/QDBusInterface>
-#include <QtDBus/QDBusReply>
-
-#include <KAboutApplicationDialog>
-#include <KActionCollection>
-#include <KAuthorized>
-#include <KCmdLineArgs>
-#include <KConfigDialog>
-#include <KDebug>
-#include <KGlobalAccel>
-#include <KLineEdit>
-#include <KProcess>
-#include <KRecentDocument>
-#include <KShortcutsDialog>
-#include <KStandardAction>
-#include <KWindowSystem>
-
-#include <kworkspace/kworkspace.h>
-
-#include <Plasma/LineEdit>
-#include <Plasma/WindowEffects>
-
-#include <Lancelot/PlasmaServiceListModel>
-#include <Lancelot/PopupMenu>
-#include <Lancelot/TabBar>
-#include <Lancelot/ResizeBordersPanel>
-
-#include <Lancelot/Models/Serializator>
-#include <Lancelot/Models/Devices>
-#include <Lancelot/Models/Places>
-#include <Lancelot/Models/SystemServices>
-#include <Lancelot/Models/RecentDocuments>
-#include <Lancelot/Models/OpenDocuments>
-#include <Lancelot/Models/NewDocuments>
-#include <Lancelot/Models/FolderModel>
-#include <Lancelot/Models/FavoriteApplications>
-#include <Lancelot/Models/Applications>
-#include <Lancelot/Models/Runner>
-#include <Lancelot/Models/SystemActions>
-#include <Lancelot/Models/ContactsKopete>
-#include <Lancelot/Models/MessagesKmail>
-#include <Lancelot/Models/BaseMergedModel>
-#include <Lancelot/Models/Logger>
-
-#define sectionsWidth \
- (m_mainConfig.readEntry("collapseSections", false) ? 64 : 128)
-
-#define windowHeightDefault 500
-#define mainWidthDefault 422
-
-#define HIDE_TIMER_INTERVAL 1500
-#define SEARCH_TIMER_INTERVAL 300
-
-LancelotWindow::LancelotWindow()
- : m_root(NULL), m_corona(NULL),
- m_hovered(false), m_showingFull(true), m_sectionsSignalMapper(NULL),
- m_config("lancelotrc"), m_mainConfig(&m_config, "Main"),
- m_configWidget(NULL),
- m_resizeDirection(None),
- m_mainSize(mainWidthDefault, windowHeightDefault),
- m_skipEvent(false),
- menuSystemButton(NULL),
- menuLancelotContext(NULL),
- m_cachedOpenPosition(-1, -1),
- m_cachedWindowSize(-1, -1),
- m_cachedFlip(0),
- m_cachedOpenPositionCentered(false),
- m_cachedShowingFull(false),
- m_firstOpen(true)
-{
- setFocusPolicy(Qt::WheelFocus);
- setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);// | Qt::Popup);
- setFrameStyle(QFrame::NoFrame);
- setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
- setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
-
- KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | NET::KeepAbove | NET::Sticky);
-
- connect(& m_hideTimer, SIGNAL(timeout()), this, SLOT(hideImmediate()));
- m_hideTimer.setInterval(HIDE_TIMER_INTERVAL);
- m_hideTimer.setSingleShot(true);
-
- m_corona = new Plasma::Corona(this);
-
- setMinimumSize(400, 300);
- setScene(m_corona);
-
- m_root = new Lancelot::ResizeBordersPanel();
- installEventFilter(this);
-
- m_root->setGroupByName("RootPanel");
- m_corona->addItem(m_root);
-
- setupUi(m_root);
- m_root->setLayoutItem(layoutMain);
-
- setupModels();
-
- /* TODO: Convert this to PUCK generated code */
- editSearch = new Plasma::LineEdit();
- editSearch->setParentItem(m_root);
- editSearch->nativeWidget()->setClearButtonShown(true);
- editSearch->nativeWidget()->setClickMessage(i18nc("Enter the text to search for", "Search..."));
- editSearch->nativeWidget()->setContextMenuPolicy(Qt::NoContextMenu);
- editSearch->show();
- layoutSearch->addItem(editSearch,
- Lancelot::NodeLayout::NodeCoordinate(0.0, 0.5, 0, 0),
- Lancelot::NodeLayout::NodeCoordinate(1.0, 0.5, 0, QREAL_INFINITY)
- );
- editSearch->nativeWidget()->installEventFilter(this);
- editSearch->setFocusPolicy(Qt::WheelFocus);
- editSearch->nativeWidget()->setFocusPolicy(Qt::WheelFocus);
-
- m_completion = new KCompletion();
- editSearch->nativeWidget()->setCompletionObject(m_completion);
- editSearch->nativeWidget()->setCompletionMode(
- KGlobalSettings::CompletionMan);
- m_completion->insertItems(m_configUi.searchHistory());
-
- passagewayApplications->setEntranceTitle(i18n("Favorites"));
- passagewayApplications->setEntranceIcon(KIcon("favorites"));
- passagewayApplications->setAtlasTitle(i18n("Applications"));
- passagewayApplications->setAtlasIcon(KIcon("applications-other"));
-
- tabbarSections->installEventFilter(this);
- tabbarSections->setTabsGroupName("SectionButtons");
- tabbarSections->addTab("documents", KIcon("applications-office"), i18n("&Documents"), "text/x-lancelotpart",
- "model=NewDocuments&type=list&version=1.0\nmodel=OpenDocuments&type=list&version=1.0\nmodel=RecentDocuments&type=list&version=1.0");
- tabbarSections->addTab("contacts", KIcon("kontact"), i18n("&Contacts"),
- "text/x-lancelotpart", "model=Messages&type=list&version=1.0\nmodel=Contacts&type=list&version=1.0");
- tabbarSections->addTab("computer", KIcon("computer-laptop"), i18n("Co&mputer"), "text/x-lancelotpart",
- "model=Places&type=list&version=1.0\nmodel=System&type=list&version=1.0\nmodel=Devices%2FRemovable&type=list&version=1.0\nmodel=Devices%2FFixed&type=list&version=1.0");
- tabbarSections->addTab("applications", KIcon("applications-other"), i18n("&Applications"), "text/x-lancelotpart",
- "model=FavoriteApplications&type=list&version=1.0\nmodel=Folder%20applications%3A%2F&type=list&version=1.0");
- tabbarSections->setOrientation(Qt::Vertical);
- tabbarSections->setTextDirection(Qt::Vertical);
- /* End TODO */
-
- connect(tabbarSections, SIGNAL(currentTabChanged(QString)),
- layoutCenter, SLOT(showCard(QString)));
-
- m_sectionsSignalMapper = new QSignalMapper(this);
- connect (m_sectionsSignalMapper,
- SIGNAL(mapped(QString)),
- this,
- SLOT(sectionActivated(QString))
- );
-
- connect(buttonSystem1, SIGNAL(activated()), this, SLOT(systemButtonClicked()));
- connect(buttonSystem2, SIGNAL(activated()), this, SLOT(systemButtonClicked()));
- connect(buttonSystem3, SIGNAL(activated()), this, SLOT(systemButtonClicked()));
-
- connect(buttonLancelotContext, SIGNAL(activated()), this, SLOT(lancelotContext()));
-
- connect(editSearch->widget(),
- SIGNAL(textChanged(QString)),
- this, SLOT(search(QString))
- );
-
- loadConfig();
- setupActions();
-
- connect(QApplication::instance(), SIGNAL(focusChanged(QWidget*,QWidget*)),
- this, SLOT(focusChanged(QWidget*,QWidget*)));
-
- setStyleSheet("LancelotWindow { background: black }");
-}
-
-void LancelotWindow::drawBackground(QPainter * painter, const QRectF & rect)
-{
- painter->setCompositionMode(QPainter::CompositionMode_Clear);
- painter->fillRect(
- QRectF(rect.x() - 2, rect.y() - 2,
- rect.width() + 2, rect.height() + 2).toRect(),
- Qt::transparent);
- painter->setCompositionMode(QPainter::CompositionMode_Source);
-}
-
-void LancelotWindow::focusChanged(QWidget * old, QWidget * now)
-{
- Q_UNUSED(old);
-
- // We have to return the focus to the QGraphicsView
- // since it handles the keyboard, the universe
- // and everything
- if (now == this) {
- editSearch->nativeWidget()->setFocus();
- editSearch->setFocus();
- }
-}
-
-void LancelotWindow::toggleCollapsedSections()
-{
- updateCollapsedSections(true);
-}
-
-void LancelotWindow::updateCollapsedSections(bool toggle)
-{
- bool collapseSections = m_mainConfig.readEntry("collapseSections", false);
- if (toggle) {
- collapseSections = !collapseSections;
- m_mainConfig.writeEntry("collapseSections", collapseSections);
- m_mainConfig.sync();
- }
-
- layoutMain->setSize((m_showingFull ? sectionsWidth : 0), Lancelot::FullBorderLayout::LeftBorder);
-
- if (collapseSections) {
- tabbarSections->setTabIconSize(QSize(32, 32));
- tabbarSections->setTextDirection(Qt::Horizontal);
- } else {
- tabbarSections->setTabIconSize(QSize(48, 48));
- tabbarSections->setTextDirection(Qt::Vertical);
- }
-
- updateWindowSize();
-}
-
-LancelotWindow::~LancelotWindow()
-{
- m_configUi.setSearchHistory(m_completion->items());
- delete m_configWidget;
-}
-
-void LancelotWindow::lancelotShow(int x, int y)
-{
- m_showingFull = true;
- showWindow(x, y);
-}
-
-void LancelotWindow::lancelotToggleCentered()
-{
- if (isVisible()) {
- hide();
- } else lancelotShowCentered();
-}
-
-void LancelotWindow::lancelotShowCentered()
-{
- m_showingFull = true;
- showWindow(0, 0, true);
-}
-
-void LancelotWindow::lancelotShowItem(int x, int y, const QString & name)
-{
- sectionActivated(name);
- m_showingFull = false;
- showWindow(x, y);
-}
-
-void LancelotWindow::lancelotHide(bool immediate)
-{
- if (immediate) {
- QTimer::singleShot(100, editSearch->nativeWidget(), SLOT(clear()));
- // editSearch->setText(QString());
-
- if (m_configUi.appbrowserReset()) {
- passagewayApplications->reset();
- }
- hide();
-
- return;
- }
-
- if (m_hovered) return;
- m_hideTimer.start();
-}
-
-void LancelotWindow::showWindow(int x, int y, bool centered)
-{
- kDebug() << "=== showing the window";
-
- if (m_firstOpen || m_cachedShowingFull == m_showingFull) {
- m_cachedShowingFull = m_showingFull;
-
- kDebug() << "cache for m_showingFull not used";
- tabbarSections->setVisible(m_showingFull);
- layoutMain->setSize((m_showingFull ? sectionsWidth : 0), Lancelot::FullBorderLayout::LeftBorder);
-
- // in this case, we should really update everything...
- m_firstOpen = true;
- }
-
- updateCollapsedSections();
-
- m_resizeDirection = None;
- m_hideTimer.stop();
-
- if (isVisible()) {
- // We are exiting because we do not want to move already opened window
- // because most probably it is just invoked from the same applet and
- // needs to show only another category
- updateWindowSize();
- return;
- }
-
- if (centered) {
- x = QCursor::pos().x();
- y = QCursor::pos().y();
- }
-
- QRect screenRect = QApplication::desktop()->screenGeometry(QPoint(x, y));
-
- updateWindowSize();
-
- if (m_firstOpen ||
- (m_cachedOpenPosition != QPoint(x, y) || m_cachedOpenPositionCentered != centered)) {
- kDebug() << "cache for position not used";
-
- m_cachedOpenPosition = QPoint(x, y);
- m_cachedOpenPositionCentered = centered;
-
- Plasma::Flip flip;
-
- if (!centered) {
- flip = Plasma::VerticalFlip;
-
- if (x < screenRect.left()) {
- x = screenRect.left();
- }
-
- if (y < screenRect.top()) {
- y = screenRect.top();
- }
-
- if (x + width() > screenRect.right()) {
- x = x - width();
- flip |= Plasma::HorizontalFlip;
- }
-
- if (y + height() > screenRect.bottom()) {
- y = y - height();
- flip &= ~Plasma::VerticalFlip;
- }
-
- if (m_showingFull) {
- if (flip & Plasma::HorizontalFlip) {
- x += sectionsWidth / 2;
- } else {
- x -= sectionsWidth / 2;
- }
- }
- } else {
- flip = Plasma::NoFlip;
-
- x = screenRect.left()
- + (screenRect.width() - width()) / 2;
- y = screenRect.top()
- + (screenRect.height() - height()) / 2;
- }
-
- move(x, y);
-
- if (m_firstOpen || m_cachedFlip != flip) {
- kDebug() << "cache for flip not used";
- m_cachedFlip = flip;
-
- kDebug() << "Flip:" << flip;
- layoutMain->setFlip(flip);
- tabbarSections->setFlip(flip);
-
- if (m_configUi.activationMethod() == LancelotConfig::NoClick) {
- Lancelot::Global::self()->group("SystemButtons")->setProperty("extenderPosition", QVariant(
- (flip & Plasma::VerticalFlip)?(Lancelot::TopExtender):(Lancelot::BottomExtender)
- ));
- Lancelot::Global::self()->group("SystemButtons")
- ->setProperty("activationMethod", Lancelot::ExtenderActivate);
- } else {
- Lancelot::Global::self()->group("SystemButtons")
- ->setProperty("extenderPosition", QVariant(Lancelot::NoExtender));
- Lancelot::Global::self()->group("SystemButtons")
- ->setProperty("activationMethod", Lancelot::ClickActivate);
- }
- Lancelot::Global::self()->group("LancelotContext")->setProperty("extenderPosition",
- Lancelot::Global::self()->group("SystemButtons")->property("extenderPosition"));
- Lancelot::Global::self()->group("LancelotContext")->setProperty("activationMethod",
- Lancelot::Global::self()->group("SystemButtons")->property("activationMethod"));
- Lancelot::Global::self()->group("SystemButtons")->notifyUpdated();
- Lancelot::Global::self()->group("LancelotContext")->notifyUpdated();
- }
- }
-
- if (m_showingFull) {
- sectionActivated("applications");
- }
-
- if (KWindowSystem::compositingActive()) {
- if (m_cachedFlip & Plasma::VerticalFlip) {
- Plasma::WindowEffects::slideWindow(this, Plasma::TopEdge);
-
- } else {
- Plasma::WindowEffects::slideWindow(this, Plasma::BottomEdge);
- }
- }
-
- show();
-
- KWindowSystem::setState( winId(), NET::SkipTaskbar | NET::SkipPager | NET::KeepAbove );
- KWindowSystem::forceActiveWindow(winId());
-
- //editSearch->clearFocus();
- editSearch->nativeWidget()->setFocus();
- editSearch->setFocus();
-
- m_firstOpen = false;
-}
-
-bool LancelotWindow::updateWindowSize()
-{
- QSize newSize = m_mainSize;
- if (m_showingFull) {
- newSize.rwidth() += sectionsWidth;
- }
-
- if (!m_firstOpen && newSize == m_cachedWindowSize) {
- return false;
- }
-
- kDebug() << "cache for size not used" << newSize << m_cachedWindowSize;
- m_cachedWindowSize = newSize;
-
- resize(newSize);
- m_corona->
- setSceneRect(QRectF(QPointF(), newSize));
-
- m_root->
- setGeometry(QRect(QPoint(), newSize));
-
- resize(newSize);
- m_root->group()->backgroundSvg()->resizeFrame(newSize);
-
- const QRegion & mask = m_root->group()->backgroundSvg()->mask();
- // setMask(mask);
- Plasma::WindowEffects::enableBlurBehind(winId(), true, mask);
- Plasma::WindowEffects::overrideShadow(winId(), true);
-
- return true;
-}
-
-QStringList LancelotWindow::sectionIDs()
-{
- QStringList res;
- res << "applications" << "computer" << "contacts" << "documents";
- return res;
-}
-
-QStringList LancelotWindow::sectionNames()
-{
- QStringList res;
- res << i18n("Applications") << i18n("Computer") << i18n("Contacts") << i18n("Documents");
- return res;
-}
-
-QStringList LancelotWindow::sectionIcons()
-{
- QStringList res;
- res << "kde" << "computer-laptop" << "kontact" << "applications-office";
- // res << "applications-other" << "computer-laptop" << "kontact" << "applications-office";
- return res;
-}
-
-QString LancelotWindow::currentSection()
-{
- if (isHidden()) {
- return QString();
- }
-
- return tabbarSections->currentTab();
-}
-
-void LancelotWindow::sectionActivated(const QString & item)
-{
- kDebug() << item;
- tabbarSections->setCurrentTab(item);
-
- // TODO: m_activeSection should be examined
- // - since we have a tabbarSections, it is not really
- // used and it is not representing the active section
- if (item == m_activeSection) {
- return;
- }
-
- m_activeSection = item;
-
- if (m_focusIndex >= 0 && m_focusIndex < m_focusList.count()) {
- if (m_focusList.at(m_focusIndex) != passagewayApplications) {
- ((Lancelot::ActionListView *) m_focusList.at(m_focusIndex))->clearSelection();
- } else {
- ((Lancelot::PassagewayView *) m_focusList.at(m_focusIndex))->clearSelection();
- }
- }
-
- m_focusList.clear();
- m_focusIndex = 0;
-
- if (item == "search") {
- m_focusList << listSearchLeft;
- } else if (item == "applications") {
- m_focusList << passagewayApplications;
- } else if (item == "computer") {
- m_focusList << listComputerLeft;
- m_focusList << listComputerRight;
- } else if (item == "contacts") {
- m_focusList << listContactsLeft;
- m_focusList << listContactsRight;
- } else if (item == "documents") {
- m_focusList << listDocumentsLeft;
- m_focusList << listDocumentsRight;
- }
-
- layoutCenter->showCard(item);
-}
-
-void LancelotWindow::search(const QString & string)
-{
- if (editSearch->text() != string) {
- editSearch->setText(string);
- }
-
- m_searchString = string;
-
- ((Lancelot::Models::Runner *) m_models["Runner"])->setSearchString(m_searchString);
- if (m_searchString.isEmpty()) {
- sectionActivated("applications");
- } else {
- sectionActivated("search");
- }
-}
-
-void LancelotWindow::systemButtonClicked()
-{
- Lancelot::ExtenderButton * button =
- static_cast < Lancelot::ExtenderButton * > (sender());
-
- Lancelot::ActionTreeModel * model =
- Lancelot::Models::SystemActions::self()->action(systemButtonActions[button]);
-
- if (!model) return;
-
- if (!menuSystemButton) {
- menuSystemButton = new Lancelot::PopupList();
- menuSystemButton->resize(200, 200);
- Lancelot::Models::ApplicationConnector * ac = Lancelot::Models::ApplicationConnector::self();
- connect(
- ac, SIGNAL(doHide(bool)),
- menuSystemButton, SLOT(close())
- );
- }
-
- menuSystemButton->setModel(model);
- menuSystemButton->updateSize();
-
- QRect g = button->geometry().toRect();
- g.moveTopLeft(g.topLeft() + geometry().topLeft());
-
- if (layoutMain->flip() & Plasma::VerticalFlip) {
- menuSystemButton->move(g.bottomLeft());
- } else {
- menuSystemButton->move(g.topLeft() - QPoint(0, menuSystemButton->geometry().height()));
- }
-
- menuSystemButton->exec(menuSystemButton->pos());
-}
-
-void LancelotWindow::setupModels()
-{
- // Models:
- m_models["Places"] = new Lancelot::Models::Places();
- m_models["SystemServices"] = new Lancelot::Models::SystemServices();
- m_models["Devices/Removable"] = new Lancelot::Models::Devices(Lancelot::Models::Devices::Removable);
- m_models["Devices/Fixed"] = new Lancelot::Models::Devices(Lancelot::Models::Devices::Fixed);
-
- m_models["NewDocuments"] = new Lancelot::Models::NewDocuments();
- m_models["RecentDocuments"] = new Lancelot::Models::RecentDocuments();
- m_models["OpenDocuments"] = new Lancelot::Models::OpenDocuments();
-
- m_models["Runner"] = new Lancelot::Models::Runner(); //allowedRunners);
-
- // Groups:
-
- m_modelGroups["ComputerLeft"] = new Lancelot::Models::BaseMergedModel();
- m_modelGroups["DocumentsLeft"] = new Lancelot::Models::BaseMergedModel();
- m_modelGroups["ContactsLeft"] = new Lancelot::Models::BaseMergedModel();
-
- m_modelGroups["ComputerRight"] = new Lancelot::Models::BaseMergedModel();
- m_modelGroups["DocumentsRight"] = new Lancelot::Models::BaseMergedModel();
- m_modelGroups["ContactsRight"] = new Lancelot::Models::BaseMergedModel();
-
- // Assignments: Model - Group:
- #define MergedAddModel(MergedModel, ModelID, Model, Title) \
- ((Lancelot::Models::BaseMergedModel *)(MergedModel)) \
- ->addModel((ModelID), QIcon(), Title, Model);
-
- MergedAddModel(m_modelGroups["ComputerLeft"], "Places", m_models["Places"], i18n("Places"));
- MergedAddModel(m_modelGroups["ComputerLeft"], "System", m_models["SystemServices"], i18n("System"));
-
-
-
- MergedAddModel(m_modelGroups["ComputerRight"], "Devices/Removable", m_models["Devices/Removable"], i18nc("@title Removable devices", "Removable"));
- MergedAddModel(m_modelGroups["ComputerRight"], "Devices/Fixed", m_models["Devices/Fixed"], i18nc("@title Fixed devices", "Fixed"));
-
- MergedAddModel(m_modelGroups["DocumentsLeft"], "NewDocuments", m_models["NewDocuments"], i18nc("@title New documents", "New"));
-
- MergedAddModel(m_modelGroups["DocumentsRight"], "OpenDocuments", m_models["OpenDocuments"], i18nc("@title List of open documents", "Open"));
- MergedAddModel(m_modelGroups["DocumentsRight"], "RecentDocuments", m_models["RecentDocuments"], i18nc("@title Recent documents", "Recent"));
-
- QString plugins;
-
- // Contacts Mail
- plugins = m_mainConfig.readEntry("mailPlugins", QString());
- if (plugins.isEmpty()) {
- m_models["Messages"] = new Lancelot::Models::MessagesKmail();
- MergedAddModel(m_modelGroups["ContactsLeft"], "Messages", m_models["Messages"], i18n("Unread messages"));
- } else if (plugins != "disabled") {
- Lancelot::ActionListModel * model;
- foreach (const QString &plugin, plugins.split(',')) {
- model = new Lancelot::PlasmaServiceListModel(plugin);
- MergedAddModel(m_modelGroups["ContactsLeft"], model->selfTitle(), model, i18n("Unread messages"));
- }
- }
-
- // Contacts IM
- plugins = m_mainConfig.readEntry("imPlugins", QString());
- if (plugins.isEmpty()) {
- m_models["Contacts"] = new Lancelot::Models::ContactsKopete();
- MergedAddModel(m_modelGroups["ContactsRight"], "Contacts", m_models["Contacts"], i18n("Online contacts"));
- } else if (plugins != "disabled") {
- Lancelot::ActionListModel * model;
- foreach (const QString &plugin, plugins.split(',')) {
- model = new Lancelot::PlasmaServiceListModel(plugin);
- MergedAddModel(m_modelGroups["ContactsRight"], model->selfTitle(), model, i18n("Online contacts"));
- }
- }
-
- m_modelGroups["SearchLeft"] = m_models["Runner"];
-
- // Assignments: ListView - Group
-
- listComputerLeft->setModel(m_modelGroups["ComputerLeft"]);
- listDocumentsLeft->setModel(m_modelGroups["DocumentsLeft"]);
- listContactsLeft->setModel(m_modelGroups["ContactsLeft"]);
- listSearchLeft->setModel(m_modelGroups["SearchLeft"]);
-
- listComputerRight->setModel(m_modelGroups["ComputerRight"]);
- listDocumentsRight->setModel(m_modelGroups["DocumentsRight"]);
- listContactsRight->setModel(m_modelGroups["ContactsRight"]);
- //listSearchRight->setModel(m_modelGroups["SearchRight"]);
-
- // Applications passageview
- passagewayApplications->setEntranceModel(
- new Lancelot::Models::FavoriteApplications::PassagewayViewProxy()
- );
- passagewayApplications->setAtlasModel(new Lancelot::Models::Applications());
-
- #undef MergedAddModel
-}
-
-// Resizing:
-
-void LancelotWindow::mousePressEvent(QMouseEvent * e)
-{
- m_resizeDirection = None;
-
- if (e->x() >= width() - m_root->borderSize(Plasma::RightMargin)) m_resizeDirection |= Right;
- else if (e->x() <= m_root->borderSize(Plasma::LeftMargin)) m_resizeDirection |= Left;
-
- if (e->y() >= height() - m_root->borderSize(Plasma::BottomMargin)) m_resizeDirection |= Down;
- else if (e->y() <= m_root->borderSize(Plasma::TopMargin)) m_resizeDirection |= Up;
-
- if (m_resizeDirection != None) {
- m_originalMousePosition = e->globalPos();
- m_originalWindowPosition = pos();
- m_originalMainSize = m_mainSize;
- }
-
- QGraphicsView::mousePressEvent(e);
-}
-
-void LancelotWindow::mouseReleaseEvent(QMouseEvent * e)
-{
- if (m_resizeDirection != None) {
- m_mainConfig.writeEntry("width", m_mainSize.width());
- m_mainConfig.writeEntry("height", m_mainSize.height());
- m_mainConfig.sync();
- m_resizeDirection = None;
- }
- QGraphicsView::mouseReleaseEvent(e);
-}
-
-void LancelotWindow::mouseMoveEvent(QMouseEvent * e)
-{
- if (m_resizeDirection != None) {
- m_mainSize = m_originalMainSize;
-
- QPoint newWindowPosition = m_originalWindowPosition;
- QPoint diff = e->globalPos() - m_originalMousePosition;
-
- if (m_resizeDirection & Right) {
- m_mainSize.rwidth() += diff.x();
- } else if (m_resizeDirection & Left) {
- m_mainSize.rwidth() -= diff.x();
- newWindowPosition.rx() += diff.x();
- }
-
- if (m_resizeDirection & Down) {
- m_mainSize.rheight() += diff.y();
- } else if (m_resizeDirection & Up) {
- m_mainSize.rheight() -= diff.y();
- newWindowPosition.ry() += diff.y();
- }
-
- QSize newSize = m_mainSize;
- if (m_showingFull) {
- newSize.rwidth() += sectionsWidth;
- }
-
- newSize = newSize.expandedTo(minimumSize());
-
- setGeometry(QRect(newWindowPosition, newSize));
-
- const QRegion & mask = m_root->group()->backgroundSvg()->mask();
- // setMask(mask);
- Plasma::WindowEffects::enableBlurBehind(winId(), true, mask);
- Plasma::WindowEffects::overrideShadow(winId(), true);
- }
- QGraphicsView::mouseMoveEvent(e);
-}
-
-void LancelotWindow::sendKeyEvent(QKeyEvent * event)
-{
- // We get this twice for every keypress... ???
- m_skipEvent = !m_skipEvent;
- if (!m_skipEvent) {
- return;
- }
-
- if (passagewayApplications == m_focusList.at(m_focusIndex)) {
- ((Lancelot::PassagewayView *) m_focusList.at(m_focusIndex))->keyPressEvent(event);
- } else {
- ((Lancelot::ActionListView *) m_focusList.at(m_focusIndex))->keyPressEvent(event);
- }
-}
-
-bool LancelotWindow::eventFilter(QObject * object, QEvent * event)
-{
- // Right-click the tabbarSections
- if (event->type() == QEvent::GraphicsSceneMousePress &&
- object == tabbarSections) {
- QGraphicsSceneMouseEvent * mouseEvent = static_cast<QGraphicsSceneMouseEvent *>(event);
- if (mouseEvent->button() == Qt::RightButton) {
- Lancelot::PopupMenu * menu = new Lancelot::PopupMenu(this);
-
- QString text;
- if (m_mainConfig.readEntry("collapseSections", false)) {
- text = i18n("Make buttons wider");
- } else {
- text = i18n("Make buttons narrower");
- }
- connect(
- menu->addAction(KIcon(), text), SIGNAL(triggered(bool)),
- this, SLOT(toggleCollapsedSections())
- );
-
- menu->exec(QCursor::pos());
- }
- }
-
- // Catching key presses because no item has explicit
- // focus
- if (event->type() == QEvent::KeyPress) {
- bool pass = false;
- int oindex = m_focusIndex;
- QKeyEvent * keyEvent = static_cast<QKeyEvent *>(event);
- switch (keyEvent->key()) {
- case Qt::Key_Escape:
- lancelotHide(true);
- break;
-
- case Qt::Key_Tab:
- {
- QKeyEvent * endKeyEvent =
- new QKeyEvent(QEvent::KeyPress, Qt::Key_End,
- Qt::NoModifier);
- QCoreApplication::sendEvent(editSearch->nativeWidget(), endKeyEvent);
-
- endKeyEvent =
- new QKeyEvent(QEvent::KeyRelease, Qt::Key_End,
- Qt::NoModifier);
- QCoreApplication::sendEvent(editSearch->nativeWidget(), endKeyEvent);
-
- return true;
- }
-
- case Qt::Key_Return:
- case Qt::Key_Enter:
- if (m_activeSection == "search") {
- if (listSearchLeft->selectedIndex() == -1) {
- listSearchLeft->initialSelection();
- }
-
- if (!editSearch->text().isEmpty()) {
- m_completion->addItem(editSearch->text());
- m_configUi.setSearchHistory(m_completion->items());
- }
- }
-
- sendKeyEvent(keyEvent);
- break;
-
- case Qt::Key_Up:
- case Qt::Key_Down:
- case Qt::Key_Menu:
- sendKeyEvent(keyEvent);
- break;
-
- case Qt::Key_Left:
- m_focusIndex--;
- break;
-
- case Qt::Key_Right:
- m_focusIndex++;
- break;
-
- case Qt::Key_PageUp:
- nextSection(-1);
- return true;
-
- case Qt::Key_PageDown:
- nextSection(1);
- return true;
-
- default:
- pass = true;
- }
-
- if (m_focusIndex < 0) {
- m_focusIndex = 0;
- pass = true;
- } else if (m_focusIndex >= m_focusList.size()) {
- m_focusIndex = m_focusList.size() - 1;
- pass = true;
- }
-
- if (oindex != m_focusIndex) {
- if (m_focusList.at(oindex) != passagewayApplications) {
- ((Lancelot::ActionListView *) m_focusList.at(oindex))->clearSelection();
- }
- if (m_focusList.at(m_focusIndex) != passagewayApplications) {
- ((Lancelot::ActionListView *) m_focusList.at(m_focusIndex))->initialSelection();
- }
- }
-
- if (pass) {
- sendKeyEvent(keyEvent);
- }
-
- editSearch->nativeWidget()->setFocus();
- editSearch->setFocus();
- }
-
- return QWidget::eventFilter(object, event);
-}
-
-void LancelotWindow::setupActions()
-{
- m_actionCollection = new KActionCollection(this);
- KAction * a = 0;
-
- if (KAuthorized::authorizeKAction("show_lancelot")) {
- a = m_actionCollection->addAction(i18n("Lancelot"), this);
- a->setText(i18n("Open Lancelot menu"));
- a->setGlobalShortcut(KShortcut(Qt::ALT + Qt::Key_F5));
- a->setIcon(KIcon("lancelot"));
- connect(
- a, SIGNAL(triggered(bool)),
- this, SLOT(lancelotToggleCentered())
- );
- }
-
- QStringList sIDs = sectionIDs();
- QStringList sNames = sectionNames();
- QStringList sIcons = sectionIcons();
- for (int i = 0; i < sIDs.size(); i++) {
- a = m_actionCollection->addAction(sIDs.at(i), this);
- a->setText(sNames.at(i));
- a->setIcon(KIcon(sIcons.at(i)));
- a->setShortcut(Qt::ALT + Qt::Key_1 + i);
- connect(
- a, SIGNAL(triggered(bool)),
- m_sectionsSignalMapper, SLOT(map())
- );
- m_sectionsSignalMapper->setMapping(a, sIDs.at(i));
- }
- m_actionCollection->readSettings();
- m_actionCollection->associateWidget(this);
-}
-
-void LancelotWindow::configureShortcuts()
-{
- lancelotHide(true);
- KShortcutsDialog::configure(m_actionCollection);
-}
-
-void LancelotWindow::configurationChanged()
-{
- loadConfig();
-}
-
-void LancelotWindow::nextSection(int increment)
-{
- kDebug() << increment;
- if (! (layoutMain->flip() & Plasma::VerticalFlip)) {
- increment = - increment;
- }
-
- int currentIndex = sectionIDs().indexOf(m_activeSection);
- currentIndex += increment;
-
- if (currentIndex >= sectionIDs().size()) {
- currentIndex = 0;
- } else if (currentIndex < 0) {
- currentIndex = sectionIDs().size() - 1;
- }
-
- sectionActivated(sectionIDs()[currentIndex]);
-}
-
-void LancelotWindow::loadConfig()
-{
- // Non configurable options
- m_mainSize = QSize(
- m_mainConfig.readEntry("width", mainWidthDefault),
- m_mainConfig.readEntry("height", windowHeightDefault)
- );
-
- // Creating the config widget
- if (m_configWidget == NULL) {
- m_configWidget = new QWidget();
- m_configUi.setupUi(m_configWidget);
- }
- m_configUi.loadConfig();
-
- // Loading activation method for groups
- bool sectionNoClick = true;
- bool listsNoClick = true;
- bool systemNoClick = true;
-
- switch (m_configUi.activationMethod()) {
- case LancelotConfig::Click:
- sectionNoClick = false;
- listsNoClick = false;
- systemNoClick = false;
- break;
- case LancelotConfig::Classic:
- listsNoClick = false;
- systemNoClick = false;
- break;
- case LancelotConfig::NoClick:
- break;
- }
-
- if (systemNoClick) {
- Lancelot::Global::self()->group("SystemButtons")->setProperty("extenderPosition",
- (layoutMain->flip() & Plasma::VerticalFlip)
- ? (Lancelot::TopExtender) : (Lancelot::BottomExtender)
- );
- Lancelot::Global::self()->group("SystemButtons")
- ->setProperty("activationMethod", Lancelot::ExtenderActivate);
- } else {
- Lancelot::Global::self()->group("SystemButtons")
- ->setProperty("extenderPosition", QVariant(Lancelot::NoExtender));
- Lancelot::Global::self()->group("SystemButtons")
- ->setProperty("activationMethod", Lancelot::ClickActivate);
- }
-
- Lancelot::Global::self()->group("LancelotContext")->setProperty("extenderPosition",
- Lancelot::Global::self()->group("SystemButtons")->property("extenderPosition"));
- Lancelot::Global::self()->group("LancelotContext")->setProperty("activationMethod",
- Lancelot::Global::self()->group("SystemButtons")->property("activationMethod"));
- Lancelot::Global::self()->group("SystemButtons")->notifyUpdated();
- Lancelot::Global::self()->group("LancelotContext")->notifyUpdated();
-
- if (sectionNoClick) {
- Lancelot::Global::self()->group("SectionButtons")
- ->setProperty("activationMethod", Lancelot::HoverActivate);
- } else {
- Lancelot::Global::self()->group("SectionButtons")
- ->setProperty("activationMethod", Lancelot::ClickActivate);
- }
- Lancelot::Global::self()->group("SectionButtons")->notifyUpdated();
-
- if (listsNoClick) {
- Lancelot::Global::self()->group("ActionListView-Left")
- ->setProperty("extenderPosition", Lancelot::LeftExtender);
- Lancelot::Global::self()->group("ActionListView-Right")
- ->setProperty("extenderPosition", Lancelot::RightExtender);
- Lancelot::Global::self()->group("PassagewayView")
- ->setProperty("activationMethod", Lancelot::ExtenderActivate);
- Lancelot::Global::self()->group("PopupList")
- ->setProperty("extenderPosition", Lancelot::RightExtender);
- } else {
- Lancelot::Global::self()->group("ActionListView-Left")
- ->setProperty("extenderPosition", Lancelot::NoExtender);
- Lancelot::Global::self()->group("ActionListView-Right")
- ->setProperty("extenderPosition", Lancelot::NoExtender);
- Lancelot::Global::self()->group("PassagewayView")
- ->setProperty("activationMethod", Lancelot::ClickActivate);
- Lancelot::Global::self()->group("PopupList")
- ->setProperty("extenderPosition", Lancelot::NoExtender);
- }
- Lancelot::Global::self()->group("ActionListView-Left")->notifyUpdated();
- Lancelot::Global::self()->group("ActionListView-Right")->notifyUpdated();
- Lancelot::Global::self()->group("PassagewayView")->notifyUpdated();
-
- // PassagewayView settings
- if (m_configUi.appbrowserPopupSubmenus()) {
- passagewayApplications->setColumnLimit(-1);
- } else if (m_configUi.appbrowserColumnLimitted()) {
- passagewayApplications->setColumnLimit(2);
- } else {
- passagewayApplications->setColumnLimit(22); // TODO: Temp
- }
-
- // Loading system buttons actions
- systemButtonActions[buttonSystem1] = m_configUi.systemButtonActions[m_configUi.buttonSystem1];
- systemButtonActions[buttonSystem2] = m_configUi.systemButtonActions[m_configUi.buttonSystem2];
- systemButtonActions[buttonSystem3] = m_configUi.systemButtonActions[m_configUi.buttonSystem3];
-
- QHashIterator < Lancelot::ExtenderButton *, QString > i(systemButtonActions);
- while (i.hasNext()) {
- i.next();
-
- i.key()->setTitle(Lancelot::Models::SystemActions::self()->actionTitle(
- i.value()));
- i.key()->setIcon(Lancelot::Models::SystemActions::self()->actionIcon(
- i.value()));
- }
-
- // Logging
- Lancelot::Models::Logger::self()->setEnabled(m_configUi.enableUsageStatistics());
-
- // Keep open
- Lancelot::Models::ApplicationConnector::self()->setAutohideEnabled(!m_configUi.checkKeepOpen->isChecked());
-
- // Runners
- ((Lancelot::Models::Runner *) m_models["Runner"])->reloadConfiguration();
-}
-
-void LancelotWindow::lancelotContext()
-{
- if (!menuLancelotContext) {
- menuLancelotContext = new Lancelot::PopupMenu();
-
- connect(
- menuLancelotContext->addAction(KIcon("kmenuedit"),
- i18n("Menu Editor")), SIGNAL(triggered(bool)),
- this, SLOT(showMenuEditor()));
-
- connect(
- menuLancelotContext->addAction(KIcon("configure-shortcuts"),
- i18n("Configure Shortcuts...")), SIGNAL(triggered(bool)),
- this, SLOT(configureShortcuts()));
-
- connect(
- menuLancelotContext->addAction(KIcon("configure"),
- i18n("Configure Lancelot menu...")), SIGNAL(triggered(bool)),
- this, SLOT(configureMenu()));
-
- connect(
- menuLancelotContext->addAction(KIcon("lancelot"),
- i18n("About Lancelot")), SIGNAL(triggered(bool)),
- this, SLOT(showAboutDialog()));
- }
-
- // menuLancelotContext->show();
- // menuLancelotContext->exec(QCursor::pos());
-
- menuLancelotContext->updateSize();
-
- QRect g = buttonLancelotContext->geometry().toRect();
- g.moveTopLeft(g.topLeft() + geometry().topLeft());
-
- if (layoutMain->flip() & Plasma::VerticalFlip) {
- menuLancelotContext->move(g.bottomLeft());
- } else {
- menuLancelotContext->move(g.topLeft()
- - QPoint(0, menuLancelotContext->geometry().height()));
- }
-
- menuLancelotContext->exec(menuLancelotContext->pos());
-}
-
-void LancelotWindow::configureMenu()
-{
- lancelotHide(true);
- const QString dialogID = "LancelotMenuConfigurationDialog";
- KConfigDialog * dialog;
-
- if ((dialog = KConfigDialog::exists(dialogID))) {
- KWindowSystem::setOnDesktop(dialog->winId(), KWindowSystem::currentDesktop());
- dialog->show();
- KWindowSystem::activateWindow(dialog->winId());
- return;
- }
-
- KConfigSkeleton * nullManager = new KConfigSkeleton(0);
- dialog = new KConfigDialog(this, dialogID, nullManager);
- dialog->setFaceType(KPageDialog::Auto);
- dialog->setWindowTitle(i18n("Configure Lancelot menu"));
- dialog->setAttribute(Qt::WA_DeleteOnClose, false);
- dialog->addPage(m_configWidget, i18n("Configure Lancelot menu"), "lancelot");
- dialog->showButton(KDialog::Apply, false); // To follow the current Plasma applet style
- dialog->show();
- connect(dialog, SIGNAL(applyClicked()), this, SLOT(saveConfig()));
- connect(dialog, SIGNAL(okClicked()), this, SLOT(saveConfig()));
-}
-
-void LancelotWindow::saveConfig()
-{
- m_configUi.saveConfig();
- loadConfig();
-}
-
-void LancelotWindow::showAboutDialog()
-{
- lancelotHide(true);
-
- KAboutApplicationDialog * about = new KAboutApplicationDialog(
- KCmdLineArgs::aboutData()
- );
- about->setAttribute(Qt::WA_DeleteOnClose, true);
- about->show();
-}
-
-void LancelotWindow::showMenuEditor()
-{
- KProcess::execute("kmenuedit");
-}
-
-void LancelotWindow::hideImmediate()
-{
- lancelotHide(true);
-}
-
-void LancelotWindow::resizeEvent(QResizeEvent * event)
-{
- QWidget::resizeEvent(event);
-
- if (updateWindowSize()) {
- // m_corona->
- // setSceneRect(QRectF(QPointF(), event->size()));
-
- // m_root->
- // setGeometry(QRect(QPoint(), event->size()));
- }
-}
-
-
diff --git a/applets/lancelot/application/LancelotWindow.h b/applets/lancelot/application/LancelotWindow.h
deleted file mode 100644
index fa92055..0000000
--- a/applets/lancelot/application/LancelotWindow.h
+++ /dev/null
@@ -1,270 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTWINDOW_H
-#define LANCELOTWINDOW_H
-
-#include <QEvent>
-#include <QSignalMapper>
-#include <QTimer>
-
-#include <KConfig>
-#include <KConfigGroup>
-#include <KIcon>
-#include <KCompletion>
-
-#include <Plasma/Svg>
-#include <Plasma/Plasma>
-#include <Plasma/Corona>
-
-#include <Lancelot/PopupList>
-#include <Lancelot/PopupMenu>
-
-#include "LancelotConfig.h"
-#include "ui_LancelotWindowBase.h"
-
-namespace Lancelot {
- class ActionListModel;
- class ResizeBordersPanel;
-}
-
-namespace Plasma
-{
- class LineEdit;
-}
-
-class LancelotWindow: public QGraphicsView, public Ui::LancelotWindowBase
-{
- Q_OBJECT
-public:
- LancelotWindow();
- virtual ~LancelotWindow();
- bool eventFilter(QObject * object, QEvent * event);
-
-public Q_SLOTS:
- /**
- * Shows full window centered on the screen.
- */
- void lancelotShowCentered();
-
- /**
- * Shows full window centered on the screen.
- */
- void lancelotToggleCentered();
-
- /**
- * Shows full window.
- * @param x x coordinate of the mouse
- * @param y y coordinate of the mouse
- */
- void lancelotShow(int x, int y);
-
- /**
- * Shows window with only specified section
- * @param x x coordinate of the mouse
- * @param y y coordinate of the mouse
- * @param name the name of the section to be shown
- */
- void lancelotShowItem(int x, int y, const QString & name);
-
- /**
- * Hides window
- * @param immediate if not set, the window will start \
- * the auto-timer for hiding. If true, window will be \
- * hidden immediately
- */
- void lancelotHide(bool immediate = false);
-
- /**
- * Opens the search section and searches for
- * the specified string,
- * @param string search string
- */
- void search(const QString & string);
-
-protected Q_SLOTS:
- /**
- * Shows specified section
- * @param item section to be shown
- */
- void sectionActivated(const QString & item);
-
-private:
- void nextSection(int increment);
-
-private Q_SLOTS:
- void systemButtonClicked();
-
- void lancelotContext();
- void saveConfig();
- void showAboutDialog();
-
- void hideImmediate();
-
- void focusChanged(QWidget * old, QWidget * now);
- void toggleCollapsedSections();
- void updateCollapsedSections(bool toggle = false);
-
-public:
- /**
- * Returns a list of available sections - their IDs
- */
- QStringList sectionIDs();
-
- /**
- * Returns a list of available sections - their names
- */
- QStringList sectionNames();
-
- /**
- * Returns a list of available sections - their icons
- */
- QStringList sectionIcons();
-
- /**
- * @returns currently open section
- */
- QString currentSection();
-
-public Q_SLOTS:
- /**
- * Opens the configure shortcuts dialog
- */
- void configureShortcuts();
-
- /**
- * Opens the configure menu dialog
- */
- void configureMenu();
-
- /**
- * Call this when an external application changes
- * the configuration
- */
- void configurationChanged();
-
- /**
- * Starts the menu editor
- */
- void showMenuEditor();
-
-protected:
- /**
- * Resizes window and relayouts everything.
- * @returns if it was actually resized (false if
- * the old size is the new size)
- */
- bool updateWindowSize();
-
- /**
- * Shows window
- * @param x x coordinate of position to show at
- * @param y y coordinate of position to show at
- * @param centered override x and y and show window centered
- */
- void showWindow(int x, int y, bool centered = false);
-
- /**
- * Creates and sets up data models
- */
- void setupModels();
-
- /**
- * Loads configuration options
- */
- void loadConfig();
-
- /**
- * Sets up the actions
- */
- void setupActions();
-
- // void paintEvent(QPaintEvent * event);
- void drawBackground(QPainter * painter, const QRectF & rect);
-
-private:
- Lancelot::ResizeBordersPanel * m_root;
- Plasma::Corona * m_corona;
-
- Plasma::LineEdit * editSearch;
- KCompletion * m_completion;
-
- QHash < Lancelot::ExtenderButton *, QString > systemButtonActions;
-
- QTimer m_hideTimer;
- QString m_searchString;
-
- bool m_hovered;
- bool m_showingFull;
-
- QSignalMapper * m_sectionsSignalMapper;
- KActionCollection * m_actionCollection;
-
- QMap < QString, Lancelot::ActionListModel * > m_models;
- QMap < QString, Lancelot::ActionListModel * > m_modelGroups;
-
- KConfig m_config;
- KConfigGroup m_mainConfig;
- QString m_activeSection;
-
- LancelotConfig m_configUi;
- QWidget * m_configWidget;
-
-// Resize related code
-protected:
- void mousePressEvent (QMouseEvent * event);
- void mouseReleaseEvent (QMouseEvent * event);
- void mouseMoveEvent (QMouseEvent * event);
- void resizeEvent (QResizeEvent * event);
-
- void sendKeyEvent (QKeyEvent * event);
-
-private:
- enum BaseDirection {
- None = 0,
- Up = 1, Down = 2,
- Left = 4, Right = 8
- };
-
- Q_DECLARE_FLAGS(ResizeDirection, BaseDirection)
-
- ResizeDirection m_resizeDirection;
- QPoint m_originalMousePosition;
- QPoint m_originalWindowPosition;
- QSize m_originalMainSize;
- QSize m_mainSize;
-
- QList < QGraphicsWidget * > m_focusList;
- int m_focusIndex;
- bool m_skipEvent;
-
- // Additional widgets
- Lancelot::PopupList * menuSystemButton;
- Lancelot::PopupMenu * menuLancelotContext;
-
- // Caches
- QPoint m_cachedOpenPosition;
- QSize m_cachedWindowSize;
- Plasma::Flip m_cachedFlip;
- bool m_cachedOpenPositionCentered : 1;
- bool m_cachedShowingFull : 1;
- bool m_firstOpen : 1;
-};
-
-#endif /*LANCELOTWINDOW_H*/
diff --git a/applets/lancelot/application/QtDisplay.cpp b/applets/lancelot/application/QtDisplay.cpp
deleted file mode 100644
index cd08d59..0000000
--- a/applets/lancelot/application/QtDisplay.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * Copyright (C) 2005, 2006, 2007 by Siraj Razick <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "QtDisplay.h"
-
-#include <config-lancelot.h>
-
-#ifdef LANCELOT_HAVE_COMPOSITING
-
-QtDisplay::QtDisplay(char * display, int screen)
-{
- _displayPtr = display;
- _screen = screen;
- _alpha = 0;
- _colormap = 0;
- _visualPtr = 0;
-
- _dpyPtr = XOpenDisplay(_displayPtr);
- this->testDisplay();
- _screen = DefaultScreen(_dpyPtr);
- setupXRender();
-}
-
-void QtDisplay::testDisplay()
-{
- if (!_dpyPtr) {
- exit(1);
- }
-
-}
-
-QtDisplay::~QtDisplay()
-{
-
-}
-
-/*Manpage : function Proto types
- 1.) XVisualInfo *XGetVisualInfo ( Display *display , long vinfo_mask , XVisualInfo *vinfo_template , int *nitems_return );
-
- 2.)
- */
-
-void QtDisplay::setupXRender()
-{
- int tmp, tmp2;
- if (!XRenderQueryExtension(_dpyPtr, &tmp, &tmp2))
- return;
-
- XRenderPictFormat * m_xrender_pict_formatPtr;
-
- int m_xv_count = 0;
- XVisualInfo m_xvinfo;
- XVisualInfo * m_xvinfoAddr = &m_xvinfo;
-
- m_xvinfo.depth = 32;
- m_xvinfo.c_class = TrueColor;
- m_xvinfo.screen = _screen;
-
- long m_vinfo_mask = VisualScreenMask | VisualDepthMask | VisualClassMask;
-
- XVisualInfo * m_xvinfoPtr;
- m_xvinfoPtr = XGetVisualInfo(_dpyPtr, m_vinfo_mask, m_xvinfoAddr, &m_xv_count);
-
- for (int index = 0; index < m_xv_count ; index++) {
- m_xrender_pict_formatPtr = XRenderFindVisualFormat(_dpyPtr,
- m_xvinfoPtr[index].visual);
-
- if (m_xrender_pict_formatPtr->type == PictTypeDirect) {
- if (m_xrender_pict_formatPtr->direct.alphaMask) {
- _visualPtr = m_xvinfoPtr[index].visual;
- _colormap = XCreateColormap(_dpyPtr, RootWindow(_dpyPtr,_screen), _visualPtr, AllocNone);
- }
- }
- }
-
-}
-
-#endif // LANCELOT_HAVE_COMPOSITING
diff --git a/applets/lancelot/application/QtDisplay.h b/applets/lancelot/application/QtDisplay.h
deleted file mode 100644
index 1cb6d40..0000000
--- a/applets/lancelot/application/QtDisplay.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (C) 2005, 2006, 2007 by Siraj Razick <[email protected]>
- * Copyright (C) 2007, 2008, 2009, 2010 by Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef QT_DISPLAY
-#define QT_DISPLAY
-
-#include <config-lancelot.h>
-
-#ifdef LANCELOT_HAVE_COMPOSITING
-
-#include <QImage>
-#include <QLabel>
-#include <QMainWindow>
-#include <QPaintDevice>
-#include <QPixmap>
-#include <QTextStream>
-#include <QTimer>
-
-#include <X11/extensions/Xrender.h>
-
-/**
- About QtDisplay Class
- This is simple class to initialize a
- X session and open the display. The class
- has two member functions to find out
- the visuals and the color map of the
- display
- **/
-
-class QtDisplay {
-public:
- explicit QtDisplay(char * display = 0, int screen = 0);
- virtual ~QtDisplay();
- virtual void testDisplay();
- void setupXRender();
-
- Qt::HANDLE visual() {return Qt::HANDLE(_visualPtr); }
- Qt::HANDLE colormap() {return Qt::HANDLE(_colormap); }
- Display * display() {return _dpyPtr; }
-
-private:
- int _alpha;
- int _screen;
- char * _displayPtr;
- Colormap _colormap;
- Visual * _visualPtr;
- Display * _dpyPtr;
-
-};
-
-#endif // LANCELOT_HAVE_COMPOSITING
-
-#endif // QT_DISPLAY
-
diff --git a/applets/lancelot/application/config-lancelot.h.cmake b/applets/lancelot/application/config-lancelot.h.cmake
deleted file mode 100644
index 54c6def..0000000
--- a/applets/lancelot/application/config-lancelot.h.cmake
+++ /dev/null
@@ -1 +0,0 @@
-#cmakedefine LANCELOT_HAVE_COMPOSITING 1
diff --git a/applets/lancelot/application/i18n_strings.cpp b/applets/lancelot/application/i18n_strings.cpp
deleted file mode 100644
index 21b0831..0000000
--- a/applets/lancelot/application/i18n_strings.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-// This file only contains strings that need to be localized.
-
-// The strings are extracted from Plasma UI file
-
-I18N_NOOP("&Documents");
-I18N_NOOP("&Contacts");
-I18N_NOOP("Co&mputer");
-I18N_NOOP("&Applications");
-
-I18N_NOOP("Documents");
-I18N_NOOP("Contacts");
-I18N_NOOP("Computer");
-I18N_NOOP("Applications");
-
-// The strings that will be needed in the future
-I18N_NOOP2("needed program is not running", "%1 is not running");
-I18N_NOOP2("start a program", "start %1");
-I18N_NOOP("Online contacts");
-I18N_NOOP("e-Mail contacts");
-
diff --git a/applets/lancelot/application/lancelot.desktop b/applets/lancelot/application/lancelot.desktop
deleted file mode 100644
index c520475..0000000
--- a/applets/lancelot/application/lancelot.desktop
+++ /dev/null
@@ -1,123 +0,0 @@
-[Desktop Entry]
-Type=Service
-Icon=lancelot
-X-KDE-ServiceTypes=
-X-DBUS-StartupType=Unique
-X-KDE-StartupNotify=false
-Exec=lancelot
-
-Name=Lancelot Launcher
-Name[ar]=مطلق لانسلوت
-Name[bs]=Lancelot Launcher
-Name[ca]=Llançador Lancelot
-Name[[email protected]]=Llançador Lancelot
-Name[cs]=Spouštěč Lancelot
-Name[csb]=Zrëszôcz Lancelot
-Name[da]=Startmenuen Lancelot
-Name[de]=Lancelot-Programmstarter
-Name[el]=Εκτελεστής Lancelot
-Name[en_GB]=Lancelot Launcher
-Name[es]=Lanzador Lancelot
-Name[et]=Lanceloti käivitaja
-Name[eu]=Lancelot jaurtitzailea
-Name[fi]=Lancelot-käynnistin
-Name[fr]=Lanceur Lancelot
-Name[ga]=Tosaitheoir Lancelot
-Name[gl]=Iniciador Lancelot
-Name[he]=תפריט משגר Lancelot
-Name[hr]=Pokretač Lancelota
-Name[hu]=Lancelot indító
-Name[is]=Lancelot ræsing
-Name[it]=Menu di avvio applicazioni Lancelot
-Name[ja]=Lancelot アプリケーションランチャー
-Name[kk]=Lancelot жеккіші
-Name[km]=កម្មវិធី​ចាប់ផ្ដើម Lancelot
-Name[ko]=Lancelot 실행기
-Name[ku]=Destpêkerê Lancelot
-Name[lt]=Lancelot paleidiklis
-Name[lv]=Lancelot palaidējs
-Name[mr]=लान्सेलोट प्रक्षेपक
-Name[nb]=Lancelot-starter
-Name[nds]=Lancelot
-Name[nl]=Lancelot-starter
-Name[nn]=Lancelot programstartar
-Name[pa]=ਲਾਂਚਕੋਟ ਲਾਂਚਰ
-Name[pl]=Lancelot (program uruchamiający)
-Name[pt]=Lançador do Lancelot
-Name[pt_BR]=Lançador Lancelot
-Name[ro]=Lansatorul Lancelot
-Name[ru]=Меню Lancelot
-Name[sk]=Spúšťač Lancelot
-Name[sl]=Zaganjalnik Lancelot
-Name[sr]=Ланселот покретач
-Name[[email protected]]=Ланселот покретач
-Name[[email protected]]=Lancelot pokretač
-Name[[email protected]]=Lancelot pokretač
-Name[sv]=Lancelot-startprogram
-Name[th]=ลานเซล็อต - เรียกใช้งานโปรแกรม
-Name[tr]=Lancelot Uygulama Çağrıcı
-Name[uk]=Засіб для запуску Lancelot
-Name[wa]=Enondeu Lancelot
-Name[x-test]=xxLancelot Launcherxx
-Name[zh_CN]=Lancelot 启动器
-Name[zh_TW]=Lancelot 應用程式啟動器
-
-Comment=Launcher to start applications
-Comment[ar]=قائمة بدء التطبيقات
-Comment[bs]=Pokretač instaliranih programa
-Comment[ca]=Llançador per a iniciar aplicacions
-Comment[[email protected]]=Llançador per a iniciar aplicacions
-Comment[cs]=Spouštěč aplikací
-Comment[csb]=Zrëszocz programów
-Comment[da]=Menu til at starte programmer.
-Comment[de]=Programme starten
-Comment[el]=Εκτελεστής για την εκκίνηση εφαρμογών
-Comment[en_GB]=Launcher to start applications
-Comment[eo]=Aplikaĵolanĉilo
-Comment[es]=Lanzador para iniciar aplicaciones
-Comment[et]=Rakenduste käivitaja
-Comment[eu]=Aplikazioak abiarazteko jaurtitzailea
-Comment[fi]=Käynnistää sovelluksia
-Comment[fr]=Lanceur permettant de démarrer des applications
-Comment[ga]=Ríomhchlár a thosaíonn feidhmchláir
-Comment[gl]=Iniciador para iniciar aplicativos
-Comment[he]=משגר יישומים חדשני
-Comment[hr]=Pokretač aplikacija
-Comment[hu]=Alkalmazásindító
-Comment[ia]=Lanceator pro initiar applicationes
-Comment[is]=Flýtiræsing forrita
-Comment[it]=Menu per avviare applicazioni
-Comment[ja]=アプリケーションを起動します
-Comment[kk]=Қолданба жеккіші
-Comment[km]=កម្មវិធី​ចាប់ផ្ដើម ដើម្បី​ចាប់ផ្ដើម​កម្មវិធី
-Comment[ko]=프로그램을 실행하는 실행기
-Comment[ku]=Destpêker ji bo destpêkirina sepanan
-Comment[lt]=Programų paleidiklis
-Comment[lv]=Lietotņu palaidējs
-Comment[mr]=अनुप्रयोग सुरु करण्याकरिता प्रक्षेपक
-Comment[nb]=Programstarter
-Comment[nds]=Röppt Programmen op
-Comment[nl]=Applet voor het starten van programma's
-Comment[nn]=Meny for programstarting
-Comment[pa]=ਐਪਲੀਕੇਸ਼ਨ ਸਟਾਰਟ ਕਰਨ ਲਈ ਲਾਂਚਰ
-Comment[pl]=Uruchamia aplikacje
-Comment[pt]=Lançador para iniciar aplicações
-Comment[pt_BR]=Lançador para iniciar aplicativos
-Comment[ro]=Lansator de aplicații
-Comment[ru]=Альтернативное меню для запуска приложений
-Comment[sk]=Aplikácia na spúšťanie aplikácií
-Comment[sl]=Zaganjalnik za zagon programov
-Comment[sr]=Покретач инсталираних програма
-Comment[[email protected]]=Покретач инсталираних програма
-Comment[[email protected]]=Pokretač instaliranih programa
-Comment[[email protected]]=Pokretač instaliranih programa
-Comment[sv]=Startprogram för att köra program
-Comment[th]=เครื่องมือเรียกใช้งานโปรแกรมต่าง ๆ
-Comment[tr]=Uygulamalara hızlıca ulaşıp çalıştırmak için
-Comment[ug]=پروگراممىنى قوزغىتىدىغان ئىجراچى(Launcher)
-Comment[uk]=Програма для запуску програм
-Comment[wa]=Enondeu d' programes
-Comment[x-test]=xxLauncher to start applicationsxx
-Comment[zh_CN]=Launcher 可以启动应用程序
-Comment[zh_TW]=應用程式啟動器
-
diff --git a/applets/lancelot/application/lancelot.notifyrc b/applets/lancelot/application/lancelot.notifyrc
deleted file mode 100644
index e37108a..0000000
--- a/applets/lancelot/application/lancelot.notifyrc
+++ /dev/null
@@ -1,312 +0,0 @@
-[Global]
-Name=Lancelot
-Name[ar]=لانسلوت
-Name[bs]=Lancelot
-Name[ca]=Lancelot
-Name[[email protected]]=Lancelot
-Name[cs]=Lancelot
-Name[da]=Lancelot
-Name[de]=Lancelot
-Name[el]=Lancelot
-Name[en_GB]=Lancelot
-Name[eo]=Lancelot
-Name[es]=Lancelot
-Name[et]=Lancelot
-Name[eu]=Lancelot
-Name[fi]=Lancelot
-Name[fr]=Lancelot
-Name[ga]=Lancelot
-Name[gl]=Lancelot
-Name[hr]=Lancelot
-Name[hu]=Lancelot indító
-Name[ia]=Lancelot
-Name[is]=Lancelot
-Name[it]=Lancelot
-Name[ja]=Lancelot
-Name[kk]=Lancelot
-Name[km]=Lancelot
-Name[ko]=Lancelot
-Name[lt]=Lancelot
-Name[lv]=Lancelot
-Name[mr]=लान्सेलोट
-Name[nb]=Lancelot
-Name[nds]=Lancelot
-Name[nl]=Lancelot
-Name[nn]=Lancelot
-Name[pa]=ਲਾਂਚਕੋਟ
-Name[pl]=Lancelot
-Name[pt]=Lancelot
-Name[pt_BR]=Lancelot
-Name[ro]=Lancelot
-Name[ru]=Lancelot
-Name[sk]=Lancelot
-Name[sl]=Lancelot
-Name[sr]=Ланселот
-Name[[email protected]]=Ланселот
-Name[[email protected]]=Lancelot
-Name[[email protected]]=Lancelot
-Name[sv]=Lancelot
-Name[th]=ลานเซล็อต
-Name[tr]=Lancelot
-Name[ug]=Lancelot
-Name[uk]=Lancelot
-Name[wa]=Lancelot
-Name[x-test]=xxLancelotxx
-Name[zh_CN]=Lancelot
-Name[zh_TW]=Lancelot
-IconName=lancelot
-Comment=Lancelot Menu
-Comment[ar]=قائمة لانسلوت
-Comment[bs]=Lancelot meni
-Comment[ca]=Menú del Lancelot
-Comment[[email protected]]=Menú del Lancelot
-Comment[cs]=Nabídka Lancelotu
-Comment[da]=Lancelot-menu
-Comment[de]=Lancelot-Menü
-Comment[el]=Μενού Lancelot
-Comment[en_GB]=Lancelot Menu
-Comment[es]=Menú de Lancelot
-Comment[et]=Lanceloti menüü
-Comment[eu]=Lanceloten menua
-Comment[fi]=Lancelot-valikko
-Comment[fr]=Menu de Lancelot
-Comment[ga]=Roghchlár Lancelot
-Comment[gl]=Menú Lancelot
-Comment[hr]=Izbornik Lancelot
-Comment[hu]=Lancelot indító
-Comment[is]=Lancelot valmynd
-Comment[it]=Menu Lancelot
-Comment[ja]=Lancelot メニュー
-Comment[kk]=Lancelot мәзірі
-Comment[km]=ម៉ឺនុយ Lancelot
-Comment[ko]=Lancelot 메뉴
-Comment[lt]=Lancelot meniu
-Comment[lv]=Lancelot izvēlne
-Comment[mr]=लान्सेलोट मेन्यू
-Comment[nb]=Lancelot-meny
-Comment[nds]=Lancelot-Menü
-Comment[nl]=Lancelot-menu
-Comment[nn]=Lancelot-meny
-Comment[pa]=ਲਾਂਚਕੋਟ ਮੇਨੂ
-Comment[pl]=Menu Lancelota
-Comment[pt]=Menu do Lancelot
-Comment[pt_BR]=Menu do Lancelot
-Comment[ro]=Meniul Lancelot
-Comment[ru]=Меню Lancelot
-Comment[sk]=Ponuka Lancelot
-Comment[sl]=Meni Lancelot
-Comment[sr]=Ланселот мени
-Comment[[email protected]]=Ланселот мени
-Comment[[email protected]]=Lancelot meni
-Comment[[email protected]]=Lancelot meni
-Comment[sv]=Lancelot-meny
-Comment[th]=เมนูลานเซล็อต
-Comment[tr]=Lancelot Menüsü
-Comment[ug]=Lancelot تىزىملىكى
-Comment[uk]=Меню Lancelot
-Comment[wa]=Dressêye Lancelot
-Comment[x-test]=xxLancelot Menuxx
-Comment[zh_CN]=Lancelot 菜单
-Comment[zh_TW]=Lancelot 選單
-Version=1
-
-[Event/UsageLoggingOn]
-Name=Usage logging is activated
-Name[ar]=تستجيل الاستخدام نشط
-Name[bs]=Bilježenje upotrebe aktivirano
-Name[ca]=El registre d'ús està activat
-Name[[email protected]]=El registre d'ús està activat
-Name[cs]=Je aktivován záznam použití
-Name[da]=Logning af anvendelse er aktiveret.
-Name[de]=Benutzungsprotokoll ist aktiviert
-Name[el]=Η καταγραφή χρήσης είναι ενεργή
-Name[en_GB]=Usage logging is activated
-Name[es]=El registro de uso está activado
-Name[et]=Kasutamise logimine on sisse lülitatud
-Name[eu]=Erabilera erregistratzea aktibatuta dago
-Name[fi]=Käyttöloki on käytössä
-Name[fr]=La journalisation de l'utilisation est active
-Name[ga]=Logáil úsáide faoi shiúl
-Name[gl]=Activouse o rexistro de actualización
-Name[hu]=Használat naplózása bekapcsolva
-Name[is]=Skráning á notkun er virkjuð
-Name[it]=La registrazione di utilizzo è attivata.
-Name[kk]=Журналды жүргізуі қосылды
-Name[km]=បានធ្វើ​ឲ្យ​ការ​ប្រើ​ចុះ​កំណត់​ហេតុ​សកម្ម
-Name[ko]=사용 기록 활성화됨
-Name[lt]=Naudojimo žurnalas yra aktyvuotas
-Name[lv]=Ir ieslēgta lietošanas novērošana
-Name[mr]=वापर नोंद कार्यान्वित केलेले आहे
-Name[nb]=Brukslogging er slått på
-Name[nds]=Bruuk-Logbook is anmaakt
-Name[nl]=Loggen van gebruik is geactiveerd
-Name[nn]=Brukslogging er påslått
-Name[pl]=Rejestrowanie wykorzystania jest włączone
-Name[pt]=O registo de utilizações está activo
-Name[pt_BR]=O registro do uso está ativado
-Name[ro]=Jurnalizarea utilizării este activată
-Name[ru]=Ведение протокола включено
-Name[sk]=Záznam používania je aktivovaný
-Name[sl]=Vklopljeno je beleženje uporabe
-Name[sr]=Бележење употребе активирано
-Name[[email protected]]=Биљежење употребе активирано
-Name[[email protected]]=Bilježenje upotrebe aktivirano
-Name[[email protected]]=Beleženje upotrebe aktivirano
-Name[sv]=Användingsloggning är aktiverad
-Name[tr]=Günlük kaydı tutma işlevi etkinleştirildi
-Name[uk]=Задіяно використання журналу
-Name[wa]=L' edjistraedje e djournå di l' eployaedje est èn alaedje
-Name[x-test]=xxUsage logging is activatedxx
-Name[zh_CN]=已激活使用率记录
-Name[zh_TW]=使用紀錄已啟動
-Comment=Shown only on first launch. Notifies that the usage logging is turned 'on'.
-Comment[ar]=تظهر فقط عند الإطلاق الأول ، لتخبر بأن تسجيل الاستخدام 'يعمل'.
-Comment[bs]=Prikazuje se samo na prvom pokretanju. Obavještava da je bilježenje upotrebe uključeno.
-Comment[ca]=Només es mostra en el primer llançament. Notifica que el registre d'ús està «activat».
-Comment[[email protected]]=Només es mostra en el primer llançament. Notifica que el registre d'ús està «activat».
-Comment[cs]=Zobrazí se pouze při prvním spuštění. Oznámí, že používání záznamů je zapnuto.
-Comment[da]=Vises kun ved første start. Gør brugeren opmærksom på at anvendelseslogning er slået "til".
-Comment[de]=Wird nur beim ersten Start angezeigt. Benachrichtigung, dass die Benutzungsprotokollierung aktiviert ist.
-Comment[el]=Εμφάνιση μόνο στην πρώτη εκτέλεση. Ειδοποιεί ότι η καταγραφή χρήσης είναι 'ενεργή'.
-Comment[en_GB]=Shown only on first launch. Notifies that the usage logging is turned 'on'.
-Comment[es]=Se muestra solo en el primer lanzamiento. Notifica que el registro del uso está activado.
-Comment[et]=Näitamine ainult esmakäivitusel. Annab teada, et kasutamise logimine on sisse lülitatud.
-Comment[eu]=Lehenengo abioan erakusten da soilik. Erabilera erregistratzea 'piztuta' dagoela jakinarazten du.
-Comment[fi]=Näytetään vain ensikäynnistyksessä: ilmoittaa käyttölokin olevan käytössä.
-Comment[fr]=Cette information n'est affichée qu'à la première utilisation. Elle indique que la journalisation de l'utilisation est active.
-Comment[ga]=Taispeántar é seo ag an chéad tosú amháin. Cuireann sé in iúl go bhfuil logáil úsáide faoi shiúl.
-Comment[gl]=Só se mostra a primeira vez que se inicia. Notifica que se activou o rexistro de utilización.
-Comment[hu]=Megjelenítés csak első indításkor. Figyelmeztet, hogy a használat naplózása be van kapcsolva.
-Comment[is]=Sýnt í fyrstu ræsingu. Lætur vita ef skráning á notkun er virk.
-Comment[it]=Mostrato solo al primo avvio. Notifica che la registrazione di utilizzo è 'attiva'.
-Comment[kk]=Бастапқы жеккенде ғана көрсетілетін, журнал жүргізіледі деген құлақтандыру
-Comment[km]=បានបង្ហាញតែ​​នៅពេល​ចាប់ផ្ដើមដំបូង​តែ​ប៉ុណ្ណោះ ។ ជូនដំណឹង​ថា​ការ​ប្រើ​ចុះ​កំណត់ហេតុ​ត្រូវ​បាន​បើក ។
-Comment[ko]=첫 실행에만 표시합니다. 사용 기록이 활성화됨을 알려 줍니다.
-Comment[lt]=Rodyti tik pirmą kartą paleidžiant. Praneša, kad naudojimo žurnalavimas įjungtas.
-Comment[lv]=Rādīts tikai pirmajā reizē. Paziņo, ka ir ieslēgta lietošanas novērošana.
-Comment[mr]=फक्त पहिल्या प्रक्षेपणाच्या वेळी दर्शवितो. वापर नोंद चालू केल्याची सूचना देतो.
-Comment[nb]=Vis bare ved første oppstart. Varsler at brukslogging er slått «på».
-Comment[nds]=Bloots bi den eersten Oproop wiest. Bescheed dor över, dat Bruuk-Logbook is nu anmaakt.
-Comment[nl]=Wordt alleen bij de eerste start getoond. Geeft aan dat gebruik loggen is geactiveerd.
-Comment[nn]=Vis berre ved første start. Merk at brukslogginga er slått på.
-Comment[pl]=Pokazane tylko pierwsze uruchomienie. Powiadamia, że rejestrowanie wykorzystania jest włączone.
-Comment[pt]=Mostrar apenas no primeiro lançamento. Notifica que o registo de utilizações está activo.
-Comment[pt_BR]=Exibir somente na primeira inicialização. Notifica que o registro de uso está 'ligado'.
-Comment[ro]=Afișat numai la prima lansare. Notifică că jurnalizarea utilizării este activată.
-Comment[ru]=Это уведомление показывается только при первом запуске.
-Comment[sk]=Zobrazené iba pri prvom spustení. Upozorňuje, že záznam používania je 'zapnutý'.
-Comment[sl]=Prikazano samo pri prvem zagonu. Obvesti o vklopljenem beleženju uporabe.
-Comment[sr]=Приказује се само на првом покретању. Обавештава да је бележење употребе укључено.
-Comment[[email protected]]=Приказује се само на првом покретању. Обавјештава да је биљежење употребе укључено.
-Comment[[email protected]]=Prikazuje se samo na prvom pokretanju. Obavještava da je bilježenje upotrebe uključeno.
-Comment[[email protected]]=Prikazuje se samo na prvom pokretanju. Obaveštava da je beleženje upotrebe uključeno.
-Comment[sv]=Visas bara vid första start. Underrättar om att användningsloggning är aktiverad.
-Comment[tr]=Sadece ilk çalıştırmada gösterilir. Günlük kayıtları 'açıkken' bildirim yapar.
-Comment[uk]=Буде показано лише під час першого запуску. Сповіщає про те, що увімкнено запис до журналу.
-Comment[wa]=Mostré k' å prumî enondaedje. Notifeye ki l' edjistraedje e djournå di l' eployaedje est eclitchî.
-Comment[x-test]=xxShown only on first launch. Notifies that the usage logging is turned 'on'.xx
-Comment[zh_CN]=仅在首次启动时显示。通知您使用率记录已开启。
-Comment[zh_TW]=只在第一次啟動時顯示。通知使用紀錄已開啟。
-Action=Popup
-
-[Event/ErrorOpeningLog]
-Name=Error opening the log
-Name[ar]=خطأ أثناء فتح السجل
-Name[bs]=Greška pri otvaranju dnevnika
-Name[ca]=Hi ha hagut un error en obrir el registre
-Name[[email protected]]=Hi ha hagut un error en obrir el registre
-Name[cs]=Chyba při otevírání záznamu
-Name[da]=Fejl ved åbning af log
-Name[de]=Fehler beim Öffnen des Protokolls
-Name[el]=Σφάλμα ανοίγματος της καταγραφής
-Name[en_GB]=Error opening the log
-Name[es]=Error abriendo el registro
-Name[et]=Viga logi avamisel
-Name[eu]=Akatsa egunkaria zabaltzerakoan
-Name[fi]=Virhe avattaessa lokia
-Name[fr]=Impossible de lire le journal
-Name[gl]=Aconteceu un erro ao abrir o rexistro
-Name[he]=שגיאה בפתיחת היומן
-Name[hr]=Greška pri otvaranju dnevnika
-Name[hu]=Hiba a napló megnyitásakor
-Name[is]=Villa við að opna annál
-Name[it]=Errore durante l'apertura del registro
-Name[kk]=Журналды ашу қатесі
-Name[km]=កំហុស​ក្នុងការ​បើក​កំណត់​ហេតុ
-Name[ko]=로그를 여는 중 오류 발생
-Name[lt]=Klaida atveriant žurnalą
-Name[lv]=Kļūda atverot žurnālu
-Name[mr]=नोंदी उघडताना त्रुटी
-Name[nb]=Feil ved åpning av loggen
-Name[nds]=Fehler bi't Opmaken vun't Logbook
-Name[nl]=Fout bij openen van log
-Name[nn]=Feil ved opning av loggen
-Name[pa]=ਲਾਗ ਖੋਲ੍ਹਣ ਦੌਰਾਨ ਗਲਤੀ
-Name[pl]=Błąd podczas otwierania dziennika
-Name[pt]=Ocorreu um erro ao aceder ao registo
-Name[pt_BR]=Erro ao abri o log
-Name[ro]=Eroare la deschiderea jurnalului
-Name[ru]=Не удалось открыть файл протокола
-Name[sk]=Chyba pri otváraní záznamu
-Name[sl]=Napaka med odpiranjem dnevnika
-Name[sr]=Грешка при отварању дневника
-Name[[email protected]]=Грешка при отварању дневника
-Name[[email protected]]=Greška pri otvaranju dnevnika
-Name[[email protected]]=Greška pri otvaranju dnevnika
-Name[sv]=Fel när loggen skulle öppnas
-Name[tr]=Günlük kaydı dosyası açılırken bir hata oluştu
-Name[uk]=Помилка під час відкриття журналу
-Name[wa]=Åk n' a nén stî come dji droveu l' djournå
-Name[x-test]=xxError opening the logxx
-Name[zh_CN]=打开日志出错
-Name[zh_TW]=開啟紀錄時發生錯誤
-Comment=Failed to open the log file.
-Comment[ar]=فشل في فتح السجل.
-Comment[bs]=Neuspjelo otvaranje dnevničke datoteke.
-Comment[ca]=No s'ha pogut obrir el fitxer de registre.
-Comment[[email protected]]=No s'ha pogut obrir el fitxer de registre.
-Comment[cs]=Nepovedlo se otevřít soubor záznamu.
-Comment[da]=Åbning af logfilen mislykkedes.
-Comment[de]=Die Protokolldatei kann nicht geöffnet werden.
-Comment[el]=Αποτυχία ανοίγματος του αρχείου καταγραφής.
-Comment[en_GB]=Failed to open the log file.
-Comment[es]=Fallo al abrir el archivo de registro.
-Comment[et]=Logifaili avamine nurjus.
-Comment[eu]=Egunkari fitxategia irekitzean huts egin du.
-Comment[fi]=Lokitiedoston avaus epäonnistui.
-Comment[fr]=Impossible d'ouvrir le fichier de journal.
-Comment[gl]=Non se conseguiu abrir o ficheiro de rexistro.
-Comment[hr]=Neuspjelo otvaranje datoteke dnevnika.
-Comment[hu]=A naplófájl megnyitása nem sikerült.
-Comment[is]=Mistókst að opna annál.
-Comment[it]=Apertura del file di registro non riuscita.
-Comment[kk]=Журнал файлын ашу жаңылысы.
-Comment[km]=បានបរាជ័យ​ក្នុងកា​របើក​ឯកសារ​កំណត់​ហេតុ ។
-Comment[ko]=로그 파일을 열 수 없습니다.
-Comment[lt]=Nepavyko atidaryti žurnalo failo.
-Comment[lv]=Neizdevās atvērt žurnāla failu.
-Comment[mr]=नोंद फाईल उघडण्यास अपयश.
-Comment[nb]=Klarte ikke å åpne loggfila.
-Comment[nds]=De Logbookdatei lett sik nich opmaken.
-Comment[nl]=Het openen van het logbestand is mislukt.
-Comment[nn]=Klarte ikkje opna loggfila.
-Comment[pa]=ਲਾਗ ਫਾਇਲ ਖੋਲ੍ਹਣ ਲਈ ਫੇਲ੍ਹ ਹੈ।
-Comment[pl]=Nieudane otwieranie dziennika.
-Comment[pt]=Não foi possível aceder ao ficheiro de registo.
-Comment[pt_BR]=Falha ao abrir o arquivo de log.
-Comment[ro]=Eșec la deschiderea fișierului-jurnal.
-Comment[ru]=Не удалось открыть файл протокола.
-Comment[sk]=Nepodarilo sa otvoriť súbor so záznamom.
-Comment[sl]=Odpiranje datoteke z dnevnikom ni uspelo.
-Comment[sr]=Неуспело отварање дневничког фајла.
-Comment[[email protected]]=Неуспјело отварање дневничког фајла.
-Comment[[email protected]]=Neuspjelo otvaranje dnevničkog fajla.
-Comment[[email protected]]=Neuspelo otvaranje dnevničkog fajla.
-Comment[sv]=Misslyckades öppna loggfilen.
-Comment[tr]=Günlük kaydı dosyası açılamadı.
-Comment[uk]=Не вдалося відкрити файл журналу.
-Comment[wa]=Li drovaedje do fitchî djournå a fwait berwete.
-Comment[x-test]=xxFailed to open the log file.xx
-Comment[zh_CN]=打开日志文件失败。
-Comment[zh_TW]=開啟紀錄檔時失敗。
-Action=Popup
diff --git a/applets/lancelot/application/main.cpp b/applets/lancelot/application/main.cpp
deleted file mode 100644
index a98cba5..0000000
--- a/applets/lancelot/application/main.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "LancelotApplication.h"
-
-int main(int argc, char **argv)
-{
- return LancelotApplication::main(argc, argv);
-}
diff --git a/applets/lancelot/application/org.kde.lancelot.xml b/applets/lancelot/application/org.kde.lancelot.xml
deleted file mode 100644
index 26507db..0000000
--- a/applets/lancelot/application/org.kde.lancelot.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
-<node>
- <interface name="org.kde.lancelot.App">
- <method name="show">
- <arg type="b" direction="out"/>
- <arg name="x" type="i" direction="in"/>
- <arg name="y" type="i" direction="in"/>
- </method>
- <method name="showCentered">
- <arg type="b" direction="out"/>
- </method>
- <method name="showItem">
- <arg type="b" direction="out"/>
- <arg name="x" type="i" direction="in"/>
- <arg name="y" type="i" direction="in"/>
- <arg name="name" type="s" direction="in"/>
- </method>
- <method name="hide">
- <arg type="b" direction="out"/>
- <arg name="immediate" type="b" direction="in"/>
- </method>
- <method name="hide">
- <arg type="b" direction="out"/>
- </method>
- <method name="search">
- <arg type="b" direction="out"/>
- <arg name="string" type="s" direction="in"/>
- </method>
- <method name="isShowing">
- <arg type="b" direction="out"/>
- </method>
- <method name="isShowing">
- <arg type="b" direction="out"/>
- <arg name="section" type="s" direction="in"/>
- </method>
- <method name="configureShortcuts">
- </method>
- <method name="configurationChanged">
- </method>
- <method name="showMenuEditor">
- </method>
- <method name="addClient">
- <arg type="i" direction="out"/>
- </method>
- <method name="removeClient">
- <arg type="b" direction="out"/>
- <arg name="id" type="i" direction="in"/>
- </method>
- <method name="sectionIDs">
- <arg type="as" direction="out"/>
- </method>
- <method name="sectionNames">
- <arg type="as" direction="out"/>
- </method>
- <method name="sectionIcons">
- <arg type="as" direction="out"/>
- </method>
- <method name="setImmutability">
- <arg name="immutable" type="i" direction="in"/>
- </method>
- <method name="immutability">
- <arg type="i" direction="out"/>
- </method>
- </interface>
-</node>
diff --git a/applets/lancelot/application/ui/LancelotConfigBase.ui b/applets/lancelot/application/ui/LancelotConfigBase.ui
deleted file mode 100644
index db856bb..0000000
--- a/applets/lancelot/application/ui/LancelotConfigBase.ui
+++ /dev/null
@@ -1,395 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>LancelotConfigBase</class>
- <widget class="QWidget" name="LancelotConfigBase">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>495</width>
- <height>439</height>
- </rect>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <property name="margin">
- <number>0</number>
- </property>
- <item>
- <widget class="KTabWidget" name="tabWidget">
- <property name="currentIndex">
- <number>1</number>
- </property>
- <widget class="QWidget" name="tabGeneral">
- <attribute name="title">
- <string>&amp;General</string>
- </attribute>
- <layout class="QVBoxLayout" name="verticalLayout_4">
- <item>
- <widget class="QGroupBox" name="groupActivation">
- <property name="title">
- <string>Activation Method</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <item>
- <widget class="QRadioButton" name="radioActivationClick">
- <property name="toolTip">
- <string>Choose this option if you like to click. Every interface item will be activated only by clicking it.</string>
- </property>
- <property name="text">
- <string>&amp;Click on everything</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioActivationClassic">
- <property name="toolTip">
- <string>Choose this option if you want the menu to behave like the standard application launchers. In order to launch applications, you should click on them. Section buttons are activated by hovering.</string>
- </property>
- <property name="text">
- <string>Cla&amp;ssic menu</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioActivationNoClick">
- <property name="toolTip">
- <string>Choose this option if you want to avoid clicking. Section buttons are activated by hovering. Applications are launched by hovering the button extenders.</string>
- </property>
- <property name="text">
- <string>&amp;No-click activation</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="Line" name="line">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="checkKeepOpen">
- <property name="toolTip">
- <string>Do not close the menu until it loses focus.</string>
- </property>
- <property name="text">
- <string>&amp;Keep menu open</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <widget class="QGroupBox" name="groupSystemActions">
- <property name="title">
- <string>System Actions</string>
- </property>
- <layout class="QGridLayout" name="gridLayout">
- <item row="2" column="0">
- <widget class="QPushButton" name="buttonSystem1">
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item row="2" column="1">
- <widget class="QPushButton" name="buttonSystem2">
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item row="2" column="2">
- <widget class="QPushButton" name="buttonSystem3">
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item row="1" column="0" colspan="3">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>Choose which actions you want to be assigned to the system buttons:</string>
- </property>
- <property name="wordWrap">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>238</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="tabApplications">
- <attribute name="title">
- <string>&amp;Applications</string>
- </attribute>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QGroupBox" name="groupAppBrowser">
- <property name="title">
- <string>Application Browser</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <item>
- <widget class="QCheckBox" name="checkAppBrowserReset">
- <property name="text">
- <string>Reset the browser to show Favorites on menu open</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="Line" name="lineAppBrowser">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="labelAppBrowserColumnNumber">
- <property name="text">
- <string>Columns behavior:</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioAppBrowserNoColumnLimit">
- <property name="text">
- <string>No column number limit</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioAppBrowserTwoColumnLimit">
- <property name="text">
- <string>Limit to two columns</string>
- </property>
- </widget>
- </item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <widget class="QRadioButton" name="radioAppBrowserCascade">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>1</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Open popups for subcategories</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label">
- <property name="text">
- <string>EXPERIMENTAL FEATURE</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <widget class="QGroupBox" name="groupBox">
- <property name="minimumSize">
- <size>
- <width>0</width>
- <height>100</height>
- </size>
- </property>
- <property name="title">
- <string>Applications</string>
- </property>
- <layout class="QGridLayout" name="gridLayout_3">
- <item row="3" column="1">
- <widget class="QPushButton" name="buttonSystemApplicationsEdit">
- <property name="text">
- <string>Edit...</string>
- </property>
- </widget>
- </item>
- <item row="1" column="2" rowspan="3">
- <spacer name="horizontalSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>195</width>
- <height>55</height>
- </size>
- </property>
- </spacer>
- </item>
- <item row="1" column="1" rowspan="2">
- <widget class="QPushButton" name="buttonNewDocumentsEdit">
- <property name="text">
- <string>Edit...</string>
- </property>
- </widget>
- </item>
- <item row="3" column="0">
- <widget class="QLabel" name="labelSystemApplications">
- <property name="text">
- <string>System applications:</string>
- </property>
- </widget>
- </item>
- <item row="1" column="0" rowspan="2">
- <widget class="QLabel" name="labelNewDocuments">
- <property name="text">
- <string>New documents applications:</string>
- </property>
- </widget>
- </item>
- <item row="0" column="0" colspan="3">
- <widget class="QCheckBox" name="checkAppNameFirst">
- <property name="text">
- <string>Show the application name first, and then the description
-(requires restart)</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <spacer name="verticalSpacer_2">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="tabUsageStatistics">
- <attribute name="title">
- <string>&amp;Usage Statistics</string>
- </attribute>
- <layout class="QGridLayout" name="gridLayout_2">
- <item row="0" column="0" colspan="2">
- <widget class="KTextBrowser" name="textUsageStatistics">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="maximumSize">
- <size>
- <width>16777215</width>
- <height>150</height>
- </size>
- </property>
- <property name="autoFillBackground">
- <bool>false</bool>
- </property>
- <property name="styleSheet">
- <string>.QTextBrowser {
- background: rgba(0,0,0,0);
-}</string>
- </property>
- <property name="html">
- <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
-&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
-p, li { white-space: pre-wrap; }
-&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Oxygen'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Bitstream Vera Sans'; font-size:10pt;&quot;&gt;The usage statistics are intended to track applications you start, in order to provide a better user experience.&lt;/span&gt;&lt;/p&gt;
-&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Bitstream Vera Sans'; font-size:10pt;&quot;&gt;The collected data is considered private and is not shared with the outside world.&lt;/span&gt;&lt;/p&gt;
-&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Bitstream Vera Sans'; font-size:10pt;&quot;&gt;Note: The collected data is not used by Lancelot at the moment, but will be in the future. Leaving this option &amp;quot;on&amp;quot; will ensure that, once the features that depend on usage statistics are implemented, you will not need to train them.&lt;/span&gt;&lt;/p&gt;
-&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Bitstream Vera Sans'; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QCheckBox" name="checkUsageStatisticsEnable">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>4</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Enable usage statistics</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QPushButton" name="buttonUsageStatisticsClear">
- <property name="text">
- <string>Clear Gathered Data</string>
- </property>
- </widget>
- </item>
- <item row="2" column="0" colspan="2">
- <spacer name="verticalSpacer_3">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>476</width>
- <height>124</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- </widget>
- </item>
- </layout>
- </widget>
- <customwidgets>
- <customwidget>
- <class>KTextBrowser</class>
- <extends>QTextBrowser</extends>
- <header>ktextbrowser.h</header>
- </customwidget>
- <customwidget>
- <class>KTabWidget</class>
- <extends>QTabWidget</extends>
- <header>ktabwidget.h</header>
- <container>1</container>
- </customwidget>
- </customwidgets>
- <resources/>
- <connections/>
-</ui>
diff --git a/applets/lancelot/application/ui/LancelotWindowBase.xml b/applets/lancelot/application/ui/LancelotWindowBase.xml
deleted file mode 100644
index e93fa28..0000000
--- a/applets/lancelot/application/ui/LancelotWindowBase.xml
+++ /dev/null
@@ -1,258 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
--->
-<pui
- xmlns:item = "http://nonexistant"
- xmlns:code = "http://nonexistant"
-
- xmlns:Lancelot__FullBorderLayout = "http://nonexistant"
- xmlns:Lancelot__NodeLayout = "http://nonexistant"
- xmlns:Lancelot__CardLayout = "http://nonexistant"
->
- <defines>
- <!-- These values will be converted to #define statements -->
- <define name="SYSTEM_HEIGHT" value="28" />
- <define name="SYSTEM_PADDING" value="8" />
- <define name="SEARCH_HEIGHT" value="30" />
- <define name="SECTIONS_WIDTH" value="128" />
- </defines>
- <ui
- className="LancelotWindowBase"
- rootObjectType="QGraphicsWidget"
- >
- <item:layout
- name="layoutMain" type="Lancelot::FlipLayout"
- realLayout="Lancelot::FullBorderLayout"
- margin="0" spacing="0"
- leftSize="SECTIONS_WIDTH"
- topSize="SEARCH_HEIGHT"
- bottomSize="SYSTEM_HEIGHT + 2 * SYSTEM_PADDING"
- rightSize="0"
- >
- <item:widget
- name="tabbarSections" type="Lancelot::TabBar"
- tabIconSize="48, 48"
-
- Lancelot__FullBorderLayout:position="Left">
- </item:widget>
- <item:layout
- name="layoutSearch" type="Lancelot::NodeLayout"
- margin="0" spacing="0"
-
- Lancelot__FullBorderLayout:position="Top"
- >
- </item:layout>
- <item:layout
- name="layoutCenter" type="Lancelot::CardLayout"
- margin="0" spacing="0"
-
- Lancelot__FullBorderLayout:position="Center"
- >
- <item:widget
- name="passagewayApplications" type="Lancelot::PassagewayView"
-
- entranceTitle="Favorite"
- entranceIcon="favorite"
- atlasTitle="Applications"
- atlasIcon="applications-other"
-
- Lancelot__CardLayout:cardName="applications"
- >
- </item:widget>
- <item:widget
- name="panelComputer" type="Lancelot::Panel"
-
- title="Computer"
- icon="computer-laptop"
- iconSize="22, 22"
- group="InnerPanel"
- showingTitle="false"
-
- Lancelot__CardLayout:cardName="computer"
- >
- <item:layout name="layoutPanelComputer" type="Lancelot::NodeLayout">
- <item:widget
- name="listComputerLeft" type="Lancelot::ActionListView"
- extenderPosition="Lancelot::LeftExtender"
- group="ActionListView-Left"
- itemsGroup="ActionListView-Items"
-
- Lancelot__NodeLayout:topLeft = "0, 0"
- Lancelot__NodeLayout:bottomRight = "0.5, 1, -2, 0"
- />
- <item:widget
- name="listComputerRight" type="Lancelot::ActionListView"
- extenderPosition="Lancelot::RightExtender"
- group="ActionListView-Right"
- itemsGroup="ActionListView-Items"
-
- Lancelot__NodeLayout:topLeft = "0.5, 0"
- Lancelot__NodeLayout:bottomRight = "1, 1, 2, 0"
- />
- </item:layout>
- </item:widget>
- <item:widget
- name="panelContacts" type="Lancelot::Panel"
-
- title="Contacts"
- icon="kontact"
- iconSize="22, 22"
- group="InnerPanel"
- showingTitle="false"
-
- Lancelot__CardLayout:cardName="contacts"
- >
- <item:layout name="layoutPanelContacts" type="Lancelot::NodeLayout">
- <item:widget
- name="listContactsLeft" type="Lancelot::ActionListView"
- extenderPosition="Lancelot::LeftExtender"
- group="ActionListView-Left"
- itemsGroup="ActionListView-Items"
-
- Lancelot__NodeLayout:topLeft = "0, 0"
- Lancelot__NodeLayout:bottomRight = "0.5, 1, -2, 0"
- />
- <item:widget
- name="listContactsRight" type="Lancelot::ActionListView"
- extenderPosition="Lancelot::RightExtender"
- group="ActionListView-Right"
- itemsGroup="ActionListView-Items"
-
- Lancelot__NodeLayout:topLeft = "0.5, 0"
- Lancelot__NodeLayout:bottomRight = "1, 1, 2, 0"
- />
- </item:layout>
- </item:widget>
- <item:widget
- name="panelDocuments" type="Lancelot::Panel"
-
- title="Documents"
- icon="applications-office"
- iconSize="22, 22"
- group="InnerPanel"
- showingTitle="false"
-
- Lancelot__CardLayout:cardName="documents"
- >
- <item:layout name="layoutPanelDocuments" type="Lancelot::NodeLayout">
- <item:widget
- name="listDocumentsLeft" type="Lancelot::ActionListView"
- extenderPosition="Lancelot::LeftExtender"
- group="ActionListView-Left"
- itemsGroup="ActionListView-Items"
-
- Lancelot__NodeLayout:topLeft = "0, 0"
- Lancelot__NodeLayout:bottomRight = "0.5, 1, -2, 0"
- />
- <item:widget
- name="listDocumentsRight" type="Lancelot::ActionListView"
- extenderPosition="Lancelot::RightExtender"
- group="ActionListView-Right"
- itemsGroup="ActionListView-Items"
-
- Lancelot__NodeLayout:topLeft = "0.5, 0"
- Lancelot__NodeLayout:bottomRight = "1, 1, 2, 0"
- />
- </item:layout>
- </item:widget>
- <item:widget
- name="panelSearch" type="Lancelot::Panel"
-
- title="Search"
- icon="edit-find"
- iconSize="22, 22"
- group="InnerPanel"
- showingTitle="false"
-
- Lancelot__CardLayout:cardName="search"
- >
- <item:layout name="layoutPanelSearch" type="Lancelot::NodeLayout">
- <item:widget
- name="listSearchLeft" type="Lancelot::ActionListView"
- extenderPosition="Lancelot::LeftExtender"
- group="ActionListView-Left"
- itemsGroup="ActionListView-Items"
-
- Lancelot__NodeLayout:topLeft = "0, 0"
- Lancelot__NodeLayout:bottomRight = "1.0, 1, 0, 0"
- />
- </item:layout>
- </item:widget>
- </item:layout>
- <item:layout
- name="layoutSystem" type="Lancelot::NodeLayout"
- margin="0" spacing="0"
-
- Lancelot__FullBorderLayout:position="Bottom"
- >
- <item:widget
- name="buttonSystem1" type="Lancelot::ExtenderButton"
-
- title="Lock Session"
- icon="system-lock-screen"
- group="SystemButtons"
- activationMethod="Lancelot::ExtenderActivate"
- extenderPosition="Lancelot::BottomExtender"
- iconSize="24, 24"
-
- Lancelot__NodeLayout:topLeft = "0, 0, 0, SYSTEM_PADDING / 2"
- Lancelot__NodeLayout:bottomRight = "1.0 / 3.0, 1, - SYSTEM_HEIGHT * (1.0 / 3.0), - SYSTEM_PADDING"
- />
- <item:widget
- name="buttonSystem2" type="Lancelot::ExtenderButton"
-
- title="Log Out"
- icon="system-log-out"
- group="SystemButtons"
- activationMethod="Lancelot::ExtenderActivate"
- extenderPosition="Lancelot::BottomExtender"
- iconSize="24, 24"
-
- Lancelot__NodeLayout:topLeft = "1.0 / 3.0, 0, - SYSTEM_HEIGHT * (1.0 / 3.0), SYSTEM_PADDING / 2"
- Lancelot__NodeLayout:bottomRight = "2.0 / 3.0, 1, - SYSTEM_HEIGHT * (2.0 / 3.0), - SYSTEM_PADDING"
- />
- <item:widget
- name="buttonSystem3" type="Lancelot::ExtenderButton"
-
- title="Switch User"
- icon="system-switch-user"
- group="SystemButtons"
- activationMethod="Lancelot::ExtenderActivate"
- extenderPosition="Lancelot::BottomExtender"
- iconSize="24, 24"
-
- Lancelot__NodeLayout:topLeft = "2.0 / 3.0, 0, - SYSTEM_HEIGHT * (2.0 / 3.0), SYSTEM_PADDING / 2"
- Lancelot__NodeLayout:bottomRight = "1, 1, - SYSTEM_HEIGHT, - SYSTEM_PADDING"
- />
- <item:widget
- name="buttonLancelotContext" type="Lancelot::ExtenderButton"
-
- icon="lancelot"
- group="LancelotContext"
- activationMethod="Lancelot::ExtenderActivate"
- extenderPosition="Lancelot::BottomExtender"
- iconSize="24, 24"
-
- Lancelot__NodeLayout:topLeft = "1, 0, 2 - SYSTEM_HEIGHT - SYSTEM_PADDING, SYSTEM_PADDING / 2"
- Lancelot__NodeLayout:bottomRight = "1, 1, 0, - SYSTEM_PADDING"
- />
- </item:layout>
- </item:layout>
- </ui>
-</pui>
diff --git a/applets/lancelot/application/ui_LancelotWindowBase.h b/applets/lancelot/application/ui_LancelotWindowBase.h
deleted file mode 100644
index f828912..0000000
--- a/applets/lancelot/application/ui_LancelotWindowBase.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- * This file is automatically generated by Plasma UI Compiler
- * DO NOT CHANGE THE CONTENTS, IT IS AUTOMATICALLY REGENERATED
- */
-
-#ifndef PUI_LANCELOTWINDOWBASE_H
-#define PUI_LANCELOTWINDOWBASE_H
-
-/* Includes */
-
-#include<QSize>
-#include <lancelot/layouts/NodeLayout.h>
-#include <lancelot/layouts/CardLayout.h>
-#include<QIcon>
-#include<lancelot/widgets/Panel.h>
-#include<lancelot/widgets/ExtenderButton.h>
-#include<lancelot/widgets/TabBar.h>
-#include<QString>
-#include<lancelot/lancelot.h>
-#include <lancelot/layouts/FlipLayout.h>
-#include<lancelot/widgets/ActionListView.h>
-#include <lancelot/layouts/FullBorderLayout.h>
-#include<lancelot/widgets/PassagewayView.h>
-
-/* Defines */
-#define SYSTEM_HEIGHT 28
-#define SYSTEM_PADDING 8
-#define SEARCH_HEIGHT 30
-#define SECTIONS_WIDTH 128
-
-
-namespace Ui {
-
-class LancelotWindowBase
-{
-
-protected:
-
- Lancelot::FlipLayout < Lancelot::FullBorderLayout > * layoutMain;
-Lancelot::TabBar * tabbarSections;
-Lancelot::NodeLayout * layoutSearch;
-Lancelot::CardLayout * layoutCenter;
-Lancelot::PassagewayView * passagewayApplications;
-Lancelot::Panel * panelComputer;
-Lancelot::NodeLayout * layoutPanelComputer;
-Lancelot::ActionListView * listComputerLeft;
-Lancelot::ActionListView * listComputerRight;
-Lancelot::Panel * panelContacts;
-Lancelot::NodeLayout * layoutPanelContacts;
-Lancelot::ActionListView * listContactsLeft;
-Lancelot::ActionListView * listContactsRight;
-Lancelot::Panel * panelDocuments;
-Lancelot::NodeLayout * layoutPanelDocuments;
-Lancelot::ActionListView * listDocumentsLeft;
-Lancelot::ActionListView * listDocumentsRight;
-Lancelot::Panel * panelSearch;
-Lancelot::NodeLayout * layoutPanelSearch;
-Lancelot::ActionListView * listSearchLeft;
-Lancelot::NodeLayout * layoutSystem;
-Lancelot::ExtenderButton * buttonSystem1;
-Lancelot::ExtenderButton * buttonSystem2;
-Lancelot::ExtenderButton * buttonSystem3;
-Lancelot::ExtenderButton * buttonLancelotContext;
-
-
- void setupUi(QGraphicsWidget * root)
- {
- /* Initialization */
- layoutMain = new Lancelot::FlipLayout < Lancelot::FullBorderLayout > ();
-tabbarSections = new Lancelot::TabBar();tabbarSections->setParentItem(root);
-layoutSearch = new Lancelot::NodeLayout();
-layoutCenter = new Lancelot::CardLayout();
-passagewayApplications = new Lancelot::PassagewayView();passagewayApplications->setParentItem(root);
-panelComputer = new Lancelot::Panel();panelComputer->setParentItem(root);
-layoutPanelComputer = new Lancelot::NodeLayout();
-listComputerLeft = new Lancelot::ActionListView();listComputerLeft->setParentItem(panelComputer);
-listComputerRight = new Lancelot::ActionListView();listComputerRight->setParentItem(panelComputer);
-panelContacts = new Lancelot::Panel();panelContacts->setParentItem(root);
-layoutPanelContacts = new Lancelot::NodeLayout();
-listContactsLeft = new Lancelot::ActionListView();listContactsLeft->setParentItem(panelContacts);
-listContactsRight = new Lancelot::ActionListView();listContactsRight->setParentItem(panelContacts);
-panelDocuments = new Lancelot::Panel();panelDocuments->setParentItem(root);
-layoutPanelDocuments = new Lancelot::NodeLayout();
-listDocumentsLeft = new Lancelot::ActionListView();listDocumentsLeft->setParentItem(panelDocuments);
-listDocumentsRight = new Lancelot::ActionListView();listDocumentsRight->setParentItem(panelDocuments);
-panelSearch = new Lancelot::Panel();panelSearch->setParentItem(root);
-layoutPanelSearch = new Lancelot::NodeLayout();
-listSearchLeft = new Lancelot::ActionListView();listSearchLeft->setParentItem(panelSearch);
-layoutSystem = new Lancelot::NodeLayout();
-buttonSystem1 = new Lancelot::ExtenderButton();buttonSystem1->setParentItem(root);
-buttonSystem2 = new Lancelot::ExtenderButton();buttonSystem2->setParentItem(root);
-buttonSystem3 = new Lancelot::ExtenderButton();buttonSystem3->setParentItem(root);
-buttonLancelotContext = new Lancelot::ExtenderButton();buttonLancelotContext->setParentItem(root);
-
-
- /* Setup */
- layoutMain->setSize(SECTIONS_WIDTH, Lancelot::FullBorderLayout::LeftBorder);
-layoutMain->setSize(0, Lancelot::FullBorderLayout::RightBorder);
-layoutMain->setSize(SEARCH_HEIGHT, Lancelot::FullBorderLayout::TopBorder);
-layoutMain->setSize(SYSTEM_HEIGHT + 2 * SYSTEM_PADDING, Lancelot::FullBorderLayout::BottomBorder);
-layoutMain->addItem(tabbarSections, Lancelot::FullBorderLayout::Left);
-layoutMain->addItem(layoutSearch, Lancelot::FullBorderLayout::Top);
-layoutMain->addItem(layoutCenter, Lancelot::FullBorderLayout::Center);
-layoutMain->addItem(layoutSystem, Lancelot::FullBorderLayout::Bottom);
-
-tabbarSections->setTabIconSize(QSize(48, 48));
-
-layoutCenter->addItem(passagewayApplications, "applications");layoutCenter->addItem(panelComputer, "computer");layoutCenter->addItem(panelContacts, "contacts");layoutCenter->addItem(panelDocuments, "documents");layoutCenter->addItem(panelSearch, "search");
-
-panelComputer->setGroupByName("InnerPanel");panelComputer->setIcon(KIcon("computer-laptop"));panelComputer->setIconSize(QSize(22, 22));panelComputer->setTitle(i18n("Computer"));panelComputer->setShowingTitle(false);panelComputer->setLayoutItem(layoutPanelComputer);
-
-layoutPanelComputer->addItem(listComputerLeft,
- Lancelot::NodeLayout::NodeCoordinate(0, 0),
- Lancelot::NodeLayout::NodeCoordinate(0.5, 1, -2, 0)
-);
-layoutPanelComputer->addItem(listComputerRight,
- Lancelot::NodeLayout::NodeCoordinate(0.5, 0),
- Lancelot::NodeLayout::NodeCoordinate(1, 1, 2, 0)
-);
-
-listComputerLeft->setGroupByName("ActionListView-Left");listComputerLeft->setExtenderPosition(Lancelot::LeftExtender);
-listComputerRight->setGroupByName("ActionListView-Right");listComputerRight->setExtenderPosition(Lancelot::RightExtender);
-panelContacts->setGroupByName("InnerPanel");panelContacts->setIcon(KIcon("kontact"));panelContacts->setIconSize(QSize(22, 22));panelContacts->setTitle(i18n("Contacts"));panelContacts->setShowingTitle(false);panelContacts->setLayoutItem(layoutPanelContacts);
-
-layoutPanelContacts->addItem(listContactsLeft,
- Lancelot::NodeLayout::NodeCoordinate(0, 0),
- Lancelot::NodeLayout::NodeCoordinate(0.5, 1, -2, 0)
-);
-layoutPanelContacts->addItem(listContactsRight,
- Lancelot::NodeLayout::NodeCoordinate(0.5, 0),
- Lancelot::NodeLayout::NodeCoordinate(1, 1, 2, 0)
-);
-
-listContactsLeft->setGroupByName("ActionListView-Left");listContactsLeft->setExtenderPosition(Lancelot::LeftExtender);
-listContactsRight->setGroupByName("ActionListView-Right");listContactsRight->setExtenderPosition(Lancelot::RightExtender);
-panelDocuments->setGroupByName("InnerPanel");panelDocuments->setIcon(KIcon("applications-office"));panelDocuments->setIconSize(QSize(22, 22));panelDocuments->setTitle(i18n("Documents"));panelDocuments->setShowingTitle(false);panelDocuments->setLayoutItem(layoutPanelDocuments);
-
-layoutPanelDocuments->addItem(listDocumentsLeft,
- Lancelot::NodeLayout::NodeCoordinate(0, 0),
- Lancelot::NodeLayout::NodeCoordinate(0.5, 1, -2, 0)
-);
-layoutPanelDocuments->addItem(listDocumentsRight,
- Lancelot::NodeLayout::NodeCoordinate(0.5, 0),
- Lancelot::NodeLayout::NodeCoordinate(1, 1, 2, 0)
-);
-
-listDocumentsLeft->setGroupByName("ActionListView-Left");listDocumentsLeft->setExtenderPosition(Lancelot::LeftExtender);
-listDocumentsRight->setGroupByName("ActionListView-Right");listDocumentsRight->setExtenderPosition(Lancelot::RightExtender);
-panelSearch->setGroupByName("InnerPanel");panelSearch->setIcon(KIcon("edit-find"));panelSearch->setIconSize(QSize(22, 22));panelSearch->setTitle(i18n("Search"));panelSearch->setShowingTitle(false);panelSearch->setLayoutItem(layoutPanelSearch);
-
-layoutPanelSearch->addItem(listSearchLeft,
- Lancelot::NodeLayout::NodeCoordinate(0, 0),
- Lancelot::NodeLayout::NodeCoordinate(1.0, 1, 0, 0)
-);
-
-listSearchLeft->setGroupByName("ActionListView-Left");listSearchLeft->setExtenderPosition(Lancelot::LeftExtender);
-layoutSystem->addItem(buttonSystem1,
- Lancelot::NodeLayout::NodeCoordinate(0, 0, 0, SYSTEM_PADDING / 2),
- Lancelot::NodeLayout::NodeCoordinate(1.0 / 3.0, 1, - SYSTEM_HEIGHT * (1.0 / 3.0), - SYSTEM_PADDING)
-);
-layoutSystem->addItem(buttonSystem2,
- Lancelot::NodeLayout::NodeCoordinate(1.0 / 3.0, 0, - SYSTEM_HEIGHT * (1.0 / 3.0), SYSTEM_PADDING / 2),
- Lancelot::NodeLayout::NodeCoordinate(2.0 / 3.0, 1, - SYSTEM_HEIGHT * (2.0 / 3.0), - SYSTEM_PADDING)
-);
-layoutSystem->addItem(buttonSystem3,
- Lancelot::NodeLayout::NodeCoordinate(2.0 / 3.0, 0, - SYSTEM_HEIGHT * (2.0 / 3.0), SYSTEM_PADDING / 2),
- Lancelot::NodeLayout::NodeCoordinate(1, 1, - SYSTEM_HEIGHT, - SYSTEM_PADDING)
-);
-layoutSystem->addItem(buttonLancelotContext,
- Lancelot::NodeLayout::NodeCoordinate(1, 0, 2 - SYSTEM_HEIGHT - SYSTEM_PADDING, SYSTEM_PADDING / 2),
- Lancelot::NodeLayout::NodeCoordinate(1, 1, 0, - SYSTEM_PADDING)
-);
-
-buttonSystem1->setGroupByName("SystemButtons");buttonSystem1->setIcon(KIcon("system-lock-screen"));buttonSystem1->setIconSize(QSize(24, 24));buttonSystem1->setTitle(i18n("Lock Session"));buttonSystem1->setExtenderPosition(Lancelot::BottomExtender);buttonSystem1->setActivationMethod(Lancelot::ExtenderActivate);
-buttonSystem2->setGroupByName("SystemButtons");buttonSystem2->setIcon(KIcon("system-log-out"));buttonSystem2->setIconSize(QSize(24, 24));buttonSystem2->setTitle(i18n("Log Out"));buttonSystem2->setExtenderPosition(Lancelot::BottomExtender);buttonSystem2->setActivationMethod(Lancelot::ExtenderActivate);
-buttonSystem3->setGroupByName("SystemButtons");buttonSystem3->setIcon(KIcon("system-switch-user"));buttonSystem3->setIconSize(QSize(24, 24));buttonSystem3->setTitle(i18n("Switch User"));buttonSystem3->setExtenderPosition(Lancelot::BottomExtender);buttonSystem3->setActivationMethod(Lancelot::ExtenderActivate);
-buttonLancelotContext->setGroupByName("LancelotContext");buttonLancelotContext->setIcon(KIcon("lancelot"));buttonLancelotContext->setIconSize(QSize(24, 24));buttonLancelotContext->setExtenderPosition(Lancelot::BottomExtender);buttonLancelotContext->setActivationMethod(Lancelot::ExtenderActivate);
-
- }
-};
-
-} // namespace Ui
-
-#endif /* PUI_LANCELOTWINDOWBASE_H */
-
diff --git a/applets/lancelot/cmake/CMakeLists.txt b/applets/lancelot/cmake/CMakeLists.txt
deleted file mode 100644
index b9b7eef..0000000
--- a/applets/lancelot/cmake/CMakeLists.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-## install the cmake files
-
-# set(module_install_dir ${DATA_INSTALL_DIR}/cmake/modules )
-#
-# set(cmakeFiles
-# FindLancelot.cmake
-# FindLancelot-Datamodels.cmake
-# )
-#
-# install(FILES ${cmakeFiles}
-# DESTINATION ${module_install_dir} )
-#
diff --git a/applets/lancelot/cmake/PlasmaUIMacros.cmake b/applets/lancelot/cmake/PlasmaUIMacros.cmake
deleted file mode 100644
index d7e0b01..0000000
--- a/applets/lancelot/cmake/PlasmaUIMacros.cmake
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-find_package(PythonInterp REQUIRED)
-if (PYTHONINTERP_FOUND)
- message("-- Found Python interpreter: ${PYTHON_EXECUTABLE}")
-else (PYTHONINTERP_FOUND)
- message(FATAL_ERROR
- "Python interpreter is not found on this machine. Python is needed to "
- "compile Lancelot. Mind that it is required ONLY for compilation. It is "
- "not needed for running Lancelot" )
-endif (PYTHONINTERP_FOUND)
-
-if (NOT KDE_PLASMA_UIC_EXECUTABLE)
- # We don't have Puck path
- set (KDE_PLASMA_UIC_EXECUTABLE ${CMAKE_SOURCE_DIR}/applets/lancelot/tools/puck/puck.py)
-endif (NOT KDE_PLASMA_UIC_EXECUTABLE)
-
-message("Plasma UI Compiler (Puck) is located at: " ${KDE_PLASMA_UIC_EXECUTABLE})
-
-# TODO: Change the name of the KDE4_ADD_PLASMA_UI_FILES macro \
-# so that it complies with CMake style guides before (if) it \
-# becomes a standard part of Plasma
-
-#usage: PLASMAUI_ADD_UI_FILES(foo_SRCS ${ui_files})
-macro (PLASMAUI_ADD_UI_FILES _sources )
- foreach (_current_FILE ${ARGN})
-
- get_filename_component(_tmp_FILE ${_current_FILE} ABSOLUTE)
- get_filename_component(_basename ${_tmp_FILE} NAME_WE)
- set(_header ${CMAKE_CURRENT_BINARY_DIR}/ui_${_basename}.h)
-
- message(${KDE_PLASMA_UIC_EXECUTABLE} "\n " ${_tmp_FILE} "\n " ${_header})
-
- add_custom_command(OUTPUT ${_header}
- COMMAND ${PYTHON_EXECUTABLE} ${KDE_PLASMA_UIC_EXECUTABLE}
- ${_tmp_FILE}
- ${_header}
-
- DEPENDS ${_current_FILE}
- )
-
- list(APPEND ${_sources} ${_header})
-
- endforeach (_current_FILE)
-endmacro (PLASMAUI_ADD_UI_FILES)
-
diff --git a/applets/lancelot/icons/CMakeLists.txt b/applets/lancelot/icons/CMakeLists.txt
deleted file mode 100644
index 106884f..0000000
--- a/applets/lancelot/icons/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-kde4_install_icons( ${ICON_INSTALL_DIR} )
diff --git a/applets/lancelot/icons/hi128-app-lancelot-start.png b/applets/lancelot/icons/hi128-app-lancelot-start.png
deleted file mode 100644
index 886e1b5..0000000
--- a/applets/lancelot/icons/hi128-app-lancelot-start.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi128-app-lancelot.png b/applets/lancelot/icons/hi128-app-lancelot.png
deleted file mode 100644
index 42810b8..0000000
--- a/applets/lancelot/icons/hi128-app-lancelot.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi128-app-plasmaapplet-shelf.png b/applets/lancelot/icons/hi128-app-plasmaapplet-shelf.png
deleted file mode 100644
index 2a8b680..0000000
--- a/applets/lancelot/icons/hi128-app-plasmaapplet-shelf.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi16-app-lancelot-start.png b/applets/lancelot/icons/hi16-app-lancelot-start.png
deleted file mode 100644
index 696dfce..0000000
--- a/applets/lancelot/icons/hi16-app-lancelot-start.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi16-app-lancelot.png b/applets/lancelot/icons/hi16-app-lancelot.png
deleted file mode 100644
index be9dc2c..0000000
--- a/applets/lancelot/icons/hi16-app-lancelot.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi16-app-plasmaapplet-shelf.png b/applets/lancelot/icons/hi16-app-plasmaapplet-shelf.png
deleted file mode 100644
index 9c3f0e0..0000000
--- a/applets/lancelot/icons/hi16-app-plasmaapplet-shelf.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi22-app-lancelot-start.png b/applets/lancelot/icons/hi22-app-lancelot-start.png
deleted file mode 100644
index 602768c..0000000
--- a/applets/lancelot/icons/hi22-app-lancelot-start.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi22-app-lancelot.png b/applets/lancelot/icons/hi22-app-lancelot.png
deleted file mode 100644
index 4c6cfa4..0000000
--- a/applets/lancelot/icons/hi22-app-lancelot.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi22-app-plasmaapplet-shelf.png b/applets/lancelot/icons/hi22-app-plasmaapplet-shelf.png
deleted file mode 100644
index a97a57c..0000000
--- a/applets/lancelot/icons/hi22-app-plasmaapplet-shelf.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi32-app-lancelot-start.png b/applets/lancelot/icons/hi32-app-lancelot-start.png
deleted file mode 100644
index c00d013..0000000
--- a/applets/lancelot/icons/hi32-app-lancelot-start.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi32-app-lancelot.png b/applets/lancelot/icons/hi32-app-lancelot.png
deleted file mode 100644
index f241259..0000000
--- a/applets/lancelot/icons/hi32-app-lancelot.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi32-app-plasmaapplet-shelf.png b/applets/lancelot/icons/hi32-app-plasmaapplet-shelf.png
deleted file mode 100644
index f7ba672..0000000
--- a/applets/lancelot/icons/hi32-app-plasmaapplet-shelf.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi48-app-lancelot-start.png b/applets/lancelot/icons/hi48-app-lancelot-start.png
deleted file mode 100644
index 012954b..0000000
--- a/applets/lancelot/icons/hi48-app-lancelot-start.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi48-app-lancelot.png b/applets/lancelot/icons/hi48-app-lancelot.png
deleted file mode 100644
index a88d20c..0000000
--- a/applets/lancelot/icons/hi48-app-lancelot.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi48-app-plasmaapplet-shelf.png b/applets/lancelot/icons/hi48-app-plasmaapplet-shelf.png
deleted file mode 100644
index 5347113..0000000
--- a/applets/lancelot/icons/hi48-app-plasmaapplet-shelf.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi64-app-lancelot-start.png b/applets/lancelot/icons/hi64-app-lancelot-start.png
deleted file mode 100644
index 0588e76..0000000
--- a/applets/lancelot/icons/hi64-app-lancelot-start.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi64-app-lancelot.png b/applets/lancelot/icons/hi64-app-lancelot.png
deleted file mode 100644
index a89919f..0000000
--- a/applets/lancelot/icons/hi64-app-lancelot.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/hi64-app-plasmaapplet-shelf.png b/applets/lancelot/icons/hi64-app-plasmaapplet-shelf.png
deleted file mode 100644
index 4d4f6a8..0000000
--- a/applets/lancelot/icons/hi64-app-plasmaapplet-shelf.png
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/lancelot-start.svgz b/applets/lancelot/icons/lancelot-start.svgz
deleted file mode 100644
index 24fb9d6..0000000
--- a/applets/lancelot/icons/lancelot-start.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/icons/lancelot.svgz b/applets/lancelot/icons/lancelot.svgz
deleted file mode 100644
index 5ea7401..0000000
--- a/applets/lancelot/icons/lancelot.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/launcher/CMakeLists.txt b/applets/lancelot/launcher/CMakeLists.txt
deleted file mode 100644
index d4d2040..0000000
--- a/applets/lancelot/launcher/CMakeLists.txt
+++ /dev/null
@@ -1,56 +0,0 @@
-include_directories(
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_BINARY_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR}
- ${KDE4_INCLUDES}
-
- ${LANCELOT_INCLUDE_DIR}
- ${LANCELOT_DATAMODELS_INCLUDE_DIR}
-)
-
-# Lancelot client files
-set(plasma_lancelot_client_SRCS
-)
-
-set(lancelot_xml ../application/org.kde.lancelot.xml)
-qt4_add_dbus_interface(plasma_lancelot_client_SRCS ${lancelot_xml} lancelot_interface)
-
-set(plasma_applet_lancelot_launcher_SRCS
- ${plasma_lancelot_client_SRCS}
- LancelotApplet.cpp
- LancelotAppletConfig.cpp
- ../application/LancelotConfig.cpp
-)
-
-kde4_add_ui_files(
- plasma_applet_lancelot_launcher_SRCS
- LancelotAppletConfigBase.ui
-)
-
-kde4_add_ui_files(
- plasma_applet_lancelot_launcher_SRCS
- ../application/ui/LancelotConfigBase.ui
-)
-
-kde4_add_plugin(plasma_applet_lancelot_launcher ${plasma_applet_lancelot_launcher_SRCS})
-
-target_link_libraries(
- plasma_applet_lancelot_launcher
- ${KDE4_PLASMA_LIBS}
- ${KDE4_KIO_LIBS}
- ${KDE4_KCMUTILS_LIBS}
- ${LANCELOT_LIBS}
- ${LANCELOT_DATAMODELS_LIBS}
-)
-
-install(
- TARGETS plasma_applet_lancelot_launcher
- DESTINATION ${PLUGIN_INSTALL_DIR}
-)
-
-install(
- FILES plasma-applet-lancelot-launcher.desktop
- DESTINATION ${SERVICES_INSTALL_DIR}
-)
-
diff --git a/applets/lancelot/launcher/LancelotApplet.cpp b/applets/lancelot/launcher/LancelotApplet.cpp
deleted file mode 100644
index d5617e8..0000000
--- a/applets/lancelot/launcher/LancelotApplet.cpp
+++ /dev/null
@@ -1,487 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "LancelotApplet.h"
-#include <climits>
-
-#include <QDBusInterface>
-#include <QDBusReply>
-#include <QDBusConnection>
-#include <QGraphicsLinearLayout>
-
-#include <KDebug>
-#include <KIcon>
-#include <KGlobalSettings>
-#include <KToolInvocation>
-
-#include <Plasma/Corona>
-
-#include <Lancelot/HoverIcon>
-#include <Lancelot/Lancelot>
-
-#include "lancelot_interface.h"
-
-#define SIZE_CMIN 16
-#define SIZE_CPREF 32
-#define SIZE_CMAX 64
-#define SPACING 8
-
-#define LANCELOT_SERVICE_PATH "org.kde.lancelot"
-
-class LancelotApplet::Private {
-public:
- Private(LancelotApplet * parent)
- : q(parent),
- layout(new QGraphicsLinearLayout(parent)),
- lancelot(NULL), offline(false)
- {
- q->setLayout(layout);
- layout->setContentsMargins(0, 0, 0, 0);
- layout->setSpacing(0);
-
- if (!lancelotRunning()) {
- QString error;
- int ret = KToolInvocation::startServiceByDesktopPath("lancelot.desktop", QStringList(), &error);
-
- if (ret > 0) {
- kDebug() << "Couldn't start lacelot: " << error << endl;
- }
-
- if (!lancelotRunning()) {
- kDebug() << "Lancelot service is still not registered";
- } else {
- kDebug() << "Lancelot service has been registered";
- }
-
-
- }
-
- lancelot = new org::kde::lancelot::App(
- LANCELOT_SERVICE_PATH, "/Lancelot",
- QDBusConnection::sessionBus()
- );
- }
-
- bool lancelotRunning() const
- {
- return QDBusConnection::sessionBus().interface()->isServiceRegistered(LANCELOT_SERVICE_PATH);
- }
-
- ~Private()
- {
- deleteButtons();
- }
-
- void deleteButtons()
- {
- while (layout->count()) {
- layout->removeAt(0);
- }
-
- foreach (Lancelot::HoverIcon * button, buttons) {
- delete button;
- }
- buttons.clear();
- }
-
- void createMainButton()
- {
- deleteButtons();
- Lancelot::HoverIcon * button = new Lancelot::HoverIcon(KIcon(mainIcon), "", q);
- layout->addItem(button);
- connect(button, SIGNAL(activated()), q, SLOT(showLancelot()));
- connect(button, SIGNAL(clicked()), q, SLOT(toggleLancelot()));
- button->setActivationMethod(clickActivation?(Lancelot::ClickActivate):(Lancelot::HoverActivate));
-
- buttons << button;
- }
-
- void createCategoriesButtons()
- {
- deleteButtons();
-
- // Loading Lancelot application categories
- QDBusReply<QStringList> replyIDs = lancelot->sectionIDs();
- QDBusReply<QStringList> replyNames = lancelot->sectionNames();
- QDBusReply<QStringList> replyIcons_ = lancelot->sectionIcons();
-
- if (!replyIDs.isValid() || !replyNames.isValid() || !replyIcons_.isValid()) {
- // Error connecting to Lancelot via d-bus
- // setFailedToLaunch(true);
- return;
- }
-
- QStringList replyIcons = q->config().readEntry(
- "overrideSectionIcons", replyIcons_.value());
-
- // Creating buttons...
- for (int i = 0; i < replyIDs.value().size(); i++) {
- if (categsHide.contains(replyIDs.value().at(i))) {
- continue;
- }
-
- Lancelot::HoverIcon * button = new Lancelot::HoverIcon(
- KIcon(replyIcons.at(i)), "", q);
-
- connect(
- button, SIGNAL(activated()),
- & signalMapper, SLOT(map())
- );
-
- signalMapper.setMapping(button, replyIDs.value().at(i));
-
- connect(
- button, SIGNAL(clicked()),
- & signalMapperToggle, SLOT(map())
- );
-
- signalMapperToggle.setMapping(button, replyIDs.value().at(i));
-
- layout->addItem(button);
- button->setActivationMethod(clickActivation?(Lancelot::ClickActivate):(Lancelot::HoverActivate));
-
- buttons << button;
- }
- }
-
- void toggleHide()
- {
- if (waitClick.isActive()) {
- waitClick.stop();
- } else {
- lancelot->hide(true);
- offline = true;
- }
- }
-
- bool showingCategories;
- bool showCategories;
- QString mainIcon;
- bool clickActivation;
- QStringList categsHide;
-
- QSignalMapper signalMapper;
- QSignalMapper signalMapperToggle;
- LancelotApplet * q;
- QList < Lancelot::HoverIcon * > buttons;
- QGraphicsLinearLayout * layout;
- org::kde::lancelot::App * lancelot;
- QList < QAction * > actions;
-
- bool offline;
- QTimer waitClick;
-};
-
-LancelotApplet::LancelotApplet(QObject * parent,
- const QVariantList &args):
- Plasma::Applet(parent, args), d(new Private(this))
-{
- setHasConfigurationInterface(true);
- setBackgroundHints(NoBackground);
- setAcceptsHoverEvents(true);
-
- d->waitClick.setInterval(500); // 1/2 sec
- d->waitClick.setSingleShot(true);
-
- connect(KGlobalSettings::self(), SIGNAL(iconChanged(int)),
- this, SLOT(iconSizeChanged(int)));
-}
-
-// void LancelotApplet::paint(QPainter * p,
-// const QStyleOptionGraphicsItem * options, QWidget * widget)
-// {
-// p->fillRect(options->rect, QBrush(QColor()));
-// }
-
-LancelotApplet::~LancelotApplet()
-{
- delete d;
-}
-
-void LancelotApplet::loadConfig()
-{
- KConfigGroup kcg = config();
- d->showCategories = (kcg.readEntry("show", "main") != "main");
- d->mainIcon = kcg.readEntry("icon", "kde");
- d->clickActivation = (kcg.readEntry("activate", "click") == "click");
- d->categsHide = kcg.readEntry("hiddenCategories", QStringList());
-}
-
-void LancelotApplet::saveConfig()
-{
- KConfigGroup kcg = config();
- kcg.writeEntry("show", (d->showCategories?"categories":"main"));
- kcg.writeEntry("icon", d->mainIcon);
- kcg.writeEntry("activate", (d->clickActivation?"click":"hover"));
- kcg.writeEntry("hiddenCategories", d->categsHide);
- save(kcg);
-
- m_configMenu.saveConfig();
-}
-
-void LancelotApplet::applyConfig()
-{
- d->layout->setContentsMargins(0, 0, 0, 0);
- d->layout->setSpacing(SPACING);
-
- if (d->showCategories) {
- d->createCategoriesButtons();
- } else {
- d->createMainButton();
- }
-
- // We want to update the size hints
- iconSizeChanged(KIconLoader::Desktop);
-
- emit configNeedsSaving();
- update();
- setAspectRatioMode(Plasma::KeepAspectRatio);
-}
-
-void LancelotApplet::iconSizeChanged(int group)
-{
- if (group == KIconLoader::Desktop || group == KIconLoader::Panel) {
- int iconSize;
-
- switch (formFactor()) {
- case Plasma::Planar:
- case Plasma::MediaCenter:
- iconSize = IconSize(KIconLoader::Desktop);
- break;
-
- case Plasma::Horizontal:
- case Plasma::Vertical:
- iconSize = IconSize(KIconLoader::Panel);
- break;
- }
-
- foreach (Lancelot::HoverIcon * icon, d->buttons) {
- icon->setPreferredSize(QSizeF(iconSize, iconSize));
- }
-
- updateGeometry();
- }
-}
-
-void LancelotApplet::init()
-{
- d->lancelot->addClient();
- setAcceptsHoverEvents(true);
- loadConfig();
- applyConfig();
- connect(
- & d->signalMapper, SIGNAL(mapped(QString)),
- this, SLOT(showLancelotSection(QString))
- );
- connect(
- & d->signalMapperToggle, SIGNAL(mapped(QString)),
- this, SLOT(toggleLancelotSection(QString))
- );
- connect(
- this, SIGNAL(activate()),
- this, SLOT(toggleLancelot())
- );
- KGlobal::locale()->insertCatalog("lancelot");
-
- Plasma::Corona * corona = (Plasma::Corona *) scene();
- connect(corona, SIGNAL(immutabilityChanged(Plasma::ImmutabilityType)),
- this, SLOT(updateImmutability(Plasma::ImmutabilityType)));
- d->lancelot->setImmutability(corona->immutability());
-}
-
-void LancelotApplet::showLancelot()
-{
- if (d->offline) return;
-
- if (!d->lancelot->isShowing()) {
- d->waitClick.start();
- }
- QPoint position = popupPosition(QSize());
-
- // untill we get this in plasma d-bus
- Plasma::Corona * corona = (Plasma::Corona *) scene();
- d->lancelot->setImmutability(corona->immutability());
-
- d->lancelot->show(position.x(), position.y());
-}
-
-void LancelotApplet::configChanged()
-{
- loadConfig();
- applyConfig();
-}
-
-void LancelotApplet::toggleLancelot()
-{
- // If lancelot is not shown, we are going to show it
- // If it is shown, then we try to detect the accidental
- // toggle invocation - if the menu was not shown for
- // at least a second, then we suppose it is an accident.
- // Nevertheless, we stop the timer if it was accidental
- // because it is less likely that two accidental invocations
- // would come in a row
- if (d->lancelot->isShowing()) {
- d->toggleHide();
- } else {
- d->offline = false;
- showLancelot();
- }
-}
-
-void LancelotApplet::showLancelotSection(const QString & section)
-{
- if (d->offline) return;
-
- if (!d->lancelot->isShowing()) {
- d->waitClick.start();
- }
- QPoint position = popupPosition(QSize());
- d->lancelot->showItem(position.x(), position.y(), section);
-}
-
-void LancelotApplet::toggleLancelotSection(const QString & section)
-{
- if (d->lancelot->isShowing(section)) {
- d->toggleHide();
- } else {
- d->offline = false;
- showLancelotSection(section);
- }
-}
-
-void LancelotApplet::configAccepted()
-{
- d->showCategories = m_config.showCategories();
- d->mainIcon = m_config.icon();
- d->clickActivation = m_config.clickActivation();
- d->categsHide = m_config.showingCategories(false);
- applyConfig();
- saveConfig();
- d->lancelot->configurationChanged();
-}
-
-void LancelotApplet::createConfigurationInterface(KConfigDialog * parent)
-{
- QWidget * appletConfig = new QWidget(parent);
- m_config.setupUi(appletConfig);
-
- m_config.setShowCategories(d->showCategories);
- m_config.setIcon(d->mainIcon);
- m_config.setClickActivation(d->clickActivation);
- m_config.setShowingCategories(d->categsHide, false);
- parent->addPage(appletConfig, i18n("Applet"),
- "application-x-plasma", i18n("Lancelot Launcher Applet"));
-
- QWidget * menuConfig = new QWidget(parent);
- m_configMenu.setupUi(menuConfig);
- m_configMenu.loadConfig();
- parent->addPage(menuConfig, i18n("Menu"),
- "lancelot", i18n("Lancelot Menu"));
-
- connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted()));
- connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted()));
-
- // menu part
- connect(m_configMenu.qbgActivationMethod, SIGNAL(buttonClicked(int)), parent, SLOT(settingsModified()));
- connect(m_configMenu.checkKeepOpen, SIGNAL(toggled(bool)), parent, SLOT(settingsModified()));
- connect(&m_configMenu, SIGNAL(systemBottonChanged()), parent, SLOT(settingsModified()));
- connect(m_configMenu.checkAppBrowserReset, SIGNAL(toggled(bool)), parent, SLOT(settingsModified()));
- connect(m_configMenu.qbgAppbrowserColumnLimit, SIGNAL(buttonClicked(int)), parent, SLOT(settingsModified()));
- connect(m_configMenu.buttonNewDocumentsEdit, SIGNAL(clicked(bool)), parent, SLOT(settingsModified()));
- connect(m_configMenu.buttonSystemApplicationsEdit, SIGNAL(clicked(bool)), parent, SLOT(settingsModified()));
- connect(m_configMenu.checkUsageStatisticsEnable, SIGNAL(toggled(bool)), parent, SLOT(settingsModified()));
- connect(m_configMenu.buttonUsageStatisticsClear, SIGNAL(clicked(bool)), parent, SLOT(settingsModified()));
- connect(&m_configMenu, SIGNAL(searchPluginChanged()), parent, SLOT(settingsModified()));
- connect(&m_config, SIGNAL(settingChanged()), parent, SLOT(settingsModified()));
-}
-
-void LancelotApplet::constraintsEvent(Plasma::Constraints constraints)
-{
- setBackgroundHints(NoBackground);
- if (constraints & Plasma::LocationConstraint) {
- if (formFactor() == Plasma::Vertical) {
- d->layout->setOrientation(Qt::Vertical);
- } else {
- d->layout->setOrientation(Qt::Horizontal);
- }
- }
-
- if (formFactor() == Plasma::Horizontal) {
- setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding));
- } else if (formFactor() == Plasma::Vertical) {
- setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed));
- }
-}
-
-void LancelotApplet::hoverLeaveEvent(QGraphicsSceneHoverEvent * event)
-{
- Plasma::Applet::hoverLeaveEvent(event);
- d->offline = false;
-}
-
-QList< QAction * > LancelotApplet::contextualActions()
-{
- d->offline = true;
- d->lancelot->hide(true);
- QList < QAction * > result = Plasma::Applet::contextualActions();
-
- if (!d->actions.size()) {
- QAction * action;
-
- d->actions.append(action = new QAction(
- KIcon("configure-shortcuts"),
- i18n("Configure Shortcuts..."),
- this));
- connect(action, SIGNAL(triggered(bool)), d->lancelot, SLOT(configureShortcuts()));
-
- d->actions.append(action = new QAction(
- KIcon("kmenuedit"),
- i18n("Menu Editor"),
- this));
- connect(action, SIGNAL(triggered(bool)), d->lancelot, SLOT(showMenuEditor()));
- }
-
- result << d->actions;
- return result;
-}
-
-QSizeF LancelotApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const
-{
- QSizeF hint = Plasma::Applet::sizeHint(which, constraint);
- if (formFactor() == Plasma::Horizontal &&
- (which == Qt::MaximumSize || size().height() <= KIconLoader::SizeLarge)) {
- hint.setWidth(size().height() * d->buttons.size());
-
- } else if (formFactor() == Plasma::Vertical &&
- (which == Qt::MaximumSize || size().width() <= KIconLoader::SizeLarge)) {
- hint.setHeight(size().width() * d->buttons.size());
-
- }
-
- return hint;
-}
-
-void LancelotApplet::updateImmutability(const Plasma::ImmutabilityType immutable)
-{
- kDebug() << immutable;
- d->lancelot->setImmutability(immutable);
- Plasma::Applet::setImmutability(immutable);
-}
-
-
diff --git a/applets/lancelot/launcher/LancelotApplet.h b/applets/lancelot/launcher/LancelotApplet.h
deleted file mode 100644
index ad52281..0000000
--- a/applets/lancelot/launcher/LancelotApplet.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOT_APPLET_H
-#define LANCELOT_APPLET_H
-
-#include <QString>
-#include <QPainter>
-
-#include <KConfigDialog>
-
-#include <Plasma/Applet>
-
-#include "LancelotAppletConfig.h"
-#include "../application/LancelotConfig.h"
-
-class LancelotApplet: public Plasma::Applet
-{
- Q_OBJECT
-
-public:
- LancelotApplet(QObject * parent, const QVariantList &args);
- ~LancelotApplet();
-
- void init();
- virtual QList< QAction * > contextualActions();
-
-public Q_SLOTS:
- void configChanged();
-
-protected Q_SLOTS:
- void showLancelot();
- void toggleLancelot();
- void showLancelotSection(const QString & section);
- void toggleLancelotSection(const QString & section);
- void updateImmutability(const Plasma::ImmutabilityType immutable);
- void configAccepted();
-
-protected:
- virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const;
- virtual void createConfigurationInterface(KConfigDialog *parent);
- virtual void constraintsEvent(Plasma::Constraints
- constraints);
- virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent * event);
-
-protected Q_SLOTS:
- void applyConfig();
- void loadConfig();
- void saveConfig();
- void iconSizeChanged(int group);
-
-private:
- class Private;
- Private * const d;
-
- LancelotAppletConfig m_config;
- LancelotConfig m_configMenu;
-};
-
-K_EXPORT_PLASMA_APPLET(lancelot-launcher, LancelotApplet)
-
-#endif /* LANCELOT_LAUNCHER_APPLET_H_ */
diff --git a/applets/lancelot/launcher/LancelotAppletConfig.cpp b/applets/lancelot/launcher/LancelotAppletConfig.cpp
deleted file mode 100644
index 269709e..0000000
--- a/applets/lancelot/launcher/LancelotAppletConfig.cpp
+++ /dev/null
@@ -1,217 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "LancelotAppletConfig.h"
-#include "lancelot_interface.h"
-
-#include <KIconDialog>
-
-void LancelotAppletConfig::setupUi(QWidget * widget)
-{
- Ui::LancelotAppletConfigBase::setupUi(widget);
-
- qbgIcons = new QButtonGroup(widget);
- qbgIcons->addButton(radioShowCategories);
- qbgIcons->addButton(radioShowMenuIconOnly);
-
- qbgMenuActivation = new QButtonGroup(widget);
- qbgMenuActivation->addButton(radioActivationHover);
- qbgMenuActivation->addButton(radioActivationClick);
-
- connect(radioShowCategories, SIGNAL(clicked()),
- this, SLOT(updateCard()));
- connect(radioShowMenuIconOnly, SIGNAL(clicked()),
- this, SLOT(updateCard()));
- connect(listIcons, SIGNAL(itemClicked(QListWidgetItem*)),
- this, SLOT(iconItemClicked()));
-
- org::kde::lancelot::App lancelot(
- "org.kde.lancelot", "/Lancelot",
- QDBusConnection::sessionBus()
- );
-
- QDBusReply<QStringList> replyIDs = lancelot.sectionIDs();
- QDBusReply<QStringList> replyNames = lancelot.sectionNames();
- QDBusReply<QStringList> replyIcons = lancelot.sectionIcons();
-
- // showing icons
- QListWidgetItem * item;
- item = new QListWidgetItem(
- KIcon("lancelot-start"), i18n("Lancelot"), listIcons);
- icons["lancelot-start"] = item;
- item = new QListWidgetItem(
- KIcon("kde"), i18n("KDE Logo"), listIcons);
- icons["kde"] = item;
- item = new QListWidgetItem(
- KIcon("start-here"), i18n("Start here"), listIcons);
- icons["start-here"] = item;
- item = new QListWidgetItem(
- KIcon("unknown"), i18nc("Choose a custom icon", "Custom"), listIcons);
- icons["custom"] = item;
-
- // showing categs
- if (!replyIDs.isValid() || !replyNames.isValid() || !replyIcons.isValid()) {
- // Error connecting to Lancelot via d-bus
- // setFailedToLaunch(true);
- return;
- }
-
- for (int i = 0; i < replyIDs.value().size(); i++) {
- QListWidgetItem * item = new QListWidgetItem(
- KIcon(replyIcons.value().at(i)), replyNames.value().at(i));
- item->setData(Qt::UserRole, replyIDs.value().at(i));
- categories[replyIDs.value().at(i)] = item;
- listSections->addItem(item);
- item->setSelected(true);
- }
-
- connect(radioActivationClick, SIGNAL(clicked(bool)), this, SIGNAL(settingChanged()));
- connect(radioActivationHover, SIGNAL(clicked(bool)), this, SIGNAL(settingChanged()));
- connect(radioShowCategories, SIGNAL(clicked(bool)), this, SIGNAL(settingChanged()));
- connect(radioShowMenuIconOnly, SIGNAL(clicked(bool)), this, SIGNAL(settingChanged()));
- connect(listIcons, SIGNAL(itemClicked(QListWidgetItem*)), this, SIGNAL(settingChanged()));
-}
-
-void LancelotAppletConfig::iconItemClicked()
-{
- if (!icons.contains("custom")) {
- return;
- }
-
- if (icons["custom"]->isSelected()) {
- QString newCustomIcon = KIconDialog::getIcon();
- if (!newCustomIcon.isEmpty()) {
- customIcon = newCustomIcon;
- icons["custom"]->setIcon(KIcon(customIcon));
- }
- }
-}
-
-bool LancelotAppletConfig::showCategory(const QString & id) const
-{
- return categories.value(id)->isSelected();
-}
-
-bool LancelotAppletConfig::showCategories() const
-{
- return radioShowCategories->isChecked();
-}
-
-bool LancelotAppletConfig::clickActivation() const
-{
- return radioActivationClick->isChecked();
-}
-
-QStringList LancelotAppletConfig::showingCategories(bool value) const
-{
- QStringList result;
- foreach (QListWidgetItem * item, categories) {
- if (item->isSelected() == value) {
- result << item->data(Qt::UserRole).toString();
- }
- }
- return result;
-}
-
-QString LancelotAppletConfig::icon() const
-{
- foreach (const QString & id, icons.keys()) //krazy:exclude=foreach
- {
- QListWidgetItem * item = icons[id];
- if (item->isSelected()) {
- if (id == "custom") {
- return customIcon;
- }
- return id;
- }
- }
- return "lancelot";
-}
-
-void LancelotAppletConfig::setShowAllCategories(bool value)
-{
- foreach (QListWidgetItem * item, categories) //krazy:exclude=foreach
- {
- item->setSelected(value);
- }
-}
-
-void LancelotAppletConfig::setShowingCategories(QStringList ids, bool value)
-{
- foreach (const QString & id, categories.keys()) //krazy:exclude=foreach
- {
- QListWidgetItem * item = categories[id];
- item->setSelected((ids.contains(id)) ? value : (!value));
- }
-}
-
-void LancelotAppletConfig::setShowCategory(const QString & id, bool value)
-{
- categories.value(id)->setSelected(value);
-}
-
-void LancelotAppletConfig::setShowCategories(bool value)
-{
- if (value) {
- radioShowCategories->click();
- } else {
- radioShowMenuIconOnly->click();
- }
-}
-
-void LancelotAppletConfig::setClickActivation(bool value)
-{
- if (value) {
- radioActivationClick->click();
- } else {
- radioActivationHover->click();
- }
-}
-
-void LancelotAppletConfig::setIcon(const QString & icon)
-{
- bool found = false;
- foreach (const QString &id, icons.keys()) //krazy:exclude=foreach
- {
- QListWidgetItem * item = icons[id];
- item->setSelected(id == icon);
- if (id == icon) {
- found = true;
- }
- }
-
- if (found || !icons.contains("custom")) {
- return;
- }
-
- customIcon = icon;
- icons["custom"]->setSelected(true);
- icons["custom"]->setIcon(KIcon(customIcon));
-}
-
-void LancelotAppletConfig::updateCard()
-{
- if (radioShowCategories->isChecked()) {
- stackedAppletButtons->setCurrentWidget(pageCategoriesChoose);
- } else {
- stackedAppletButtons->setCurrentWidget(pageAppletIconsChoose);
- }
-}
-
-
diff --git a/applets/lancelot/launcher/LancelotAppletConfig.h b/applets/lancelot/launcher/LancelotAppletConfig.h
deleted file mode 100644
index 9a7e3ac..0000000
--- a/applets/lancelot/launcher/LancelotAppletConfig.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOT_APPLET_CONFIG_H
-#define LANCELOT_APPLET_CONFIG_H
-
-#include <ui_LancelotAppletConfigBase.h>
-
-class LancelotAppletConfig: public QObject, Ui::LancelotAppletConfigBase {
- Q_OBJECT
-public:
- void setupUi(QWidget * widget);
-
- bool showCategories() const;
- bool showCategory(const QString & id) const;
- bool clickActivation() const;
- QStringList showingCategories(bool value) const;
- QString icon() const;
-
- void setShowCategories(bool value);
- void setShowingCategories(QStringList ids, bool value);
-
- void setShowCategory(const QString & id, bool value);
- void setShowAllCategories(bool value);
-
- void setClickActivation(bool value);
- void setIcon(const QString & icon);
-
- QButtonGroup * qbgIcons;
- QButtonGroup * qbgChooseIcon;
- QButtonGroup * qbgMenuActivation;
-
- QMap < QString, QListWidgetItem * > categories;
- QMap < QString, QListWidgetItem * > icons;
- QString customIcon;
-
-signals:
- void settingChanged();
-
-protected Q_SLOTS:
- void updateCard();
- void iconItemClicked();
-};
-
-#endif /* LANCELOT_LAUNCHER_APPLET_CONFIG_H_ */
diff --git a/applets/lancelot/launcher/LancelotAppletConfigBase.ui b/applets/lancelot/launcher/LancelotAppletConfigBase.ui
deleted file mode 100644
index 4fd565c..0000000
--- a/applets/lancelot/launcher/LancelotAppletConfigBase.ui
+++ /dev/null
@@ -1,229 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>LancelotAppletConfigBase</class>
- <widget class="QWidget" name="LancelotAppletConfigBase">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>444</width>
- <height>346</height>
- </rect>
- </property>
- <layout class="QVBoxLayout">
- <property name="margin">
- <number>0</number>
- </property>
- <item>
- <widget class="QGroupBox" name="groupAppletIcons">
- <property name="title">
- <string>Applet Icons</string>
- </property>
- <layout class="QVBoxLayout">
- <item>
- <widget class="QRadioButton" name="radioShowCategories">
- <property name="text">
- <string>Show cate&amp;gories inside the applet</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioShowMenuIconOnly">
- <property name="text">
- <string>Show only &amp;menu launcher icon</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QStackedWidget" name="stackedAppletButtons">
- <property name="minimumSize">
- <size>
- <width>0</width>
- <height>150</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>16777215</width>
- <height>150</height>
- </size>
- </property>
- <property name="currentIndex">
- <number>0</number>
- </property>
- <widget class="QWidget" name="pageAppletIconsChoose">
- <layout class="QVBoxLayout" name="verticalLayout">
- <property name="margin">
- <number>0</number>
- </property>
- <item>
- <widget class="QGroupBox" name="groupAppletIconsChoose">
- <property name="title">
- <string>Choose Icon</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <item>
- <widget class="QListWidget" name="listIcons">
- <property name="styleSheet">
- <string>.QListWidget {
- background: rgba(0,0,0,0);
-}
-
-.QListWidget:item {
- width: 80px;
-}</string>
- </property>
- <property name="frameShape">
- <enum>QFrame::NoFrame</enum>
- </property>
- <property name="frameShadow">
- <enum>QFrame::Plain</enum>
- </property>
- <property name="showDropIndicator" stdset="0">
- <bool>false</bool>
- </property>
- <property name="dragDropMode">
- <enum>QAbstractItemView::DragDrop</enum>
- </property>
- <property name="selectionMode">
- <enum>QAbstractItemView::SingleSelection</enum>
- </property>
- <property name="iconSize">
- <size>
- <width>64</width>
- <height>64</height>
- </size>
- </property>
- <property name="movement">
- <enum>QListView::Static</enum>
- </property>
- <property name="spacing">
- <number>8</number>
- </property>
- <property name="viewMode">
- <enum>QListView::IconMode</enum>
- </property>
- <property name="uniformItemSizes">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="pageCategoriesChoose">
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <property name="margin">
- <number>0</number>
- </property>
- <item>
- <widget class="QGroupBox" name="groupCategoriesChoose">
- <property name="title">
- <string>Choose categories to show</string>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QListWidget" name="listSections">
- <property name="styleSheet">
- <string>.QListWidget {
- background: rgba(0,0,0,0);
-}
-
-.QListWidget:item {
- width: 80px;
-}</string>
- </property>
- <property name="frameShape">
- <enum>QFrame::NoFrame</enum>
- </property>
- <property name="frameShadow">
- <enum>QFrame::Plain</enum>
- </property>
- <property name="dragDropMode">
- <enum>QAbstractItemView::DragDrop</enum>
- </property>
- <property name="selectionMode">
- <enum>QAbstractItemView::MultiSelection</enum>
- </property>
- <property name="iconSize">
- <size>
- <width>64</width>
- <height>64</height>
- </size>
- </property>
- <property name="movement">
- <enum>QListView::Static</enum>
- </property>
- <property name="spacing">
- <number>8</number>
- </property>
- <property name="viewMode">
- <enum>QListView::IconMode</enum>
- </property>
- <property name="uniformItemSizes">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </widget>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <widget class="QGroupBox" name="groupActivation">
- <property name="title">
- <string>Menu Activation</string>
- </property>
- <layout class="QVBoxLayout">
- <item>
- <widget class="QRadioButton" name="radioActivationHover">
- <property name="text">
- <string>Show menu on icon &amp;hover (after a predefined interval of time)</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioActivationClick">
- <property name="text">
- <string>Show menu on &amp;click</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <resources/>
- <connections/>
- <slots>
- <slot>updateCard()</slot>
- </slots>
-</ui>
diff --git a/applets/lancelot/launcher/plasma-applet-lancelot-launcher.desktop b/applets/lancelot/launcher/plasma-applet-lancelot-launcher.desktop
deleted file mode 100644
index f7beb6e..0000000
--- a/applets/lancelot/launcher/plasma-applet-lancelot-launcher.desktop
+++ /dev/null
@@ -1,132 +0,0 @@
-[Desktop Entry]
-Icon=lancelot
-
-Name=Lancelot Launcher
-Name[ar]=مطلق لانسلوت
-Name[bs]=Lancelot Launcher
-Name[ca]=Llançador Lancelot
-Name[[email protected]]=Llançador Lancelot
-Name[cs]=Spouštěč Lancelot
-Name[csb]=Zrëszôcz Lancelot
-Name[da]=Startmenuen Lancelot
-Name[de]=Lancelot-Programmstarter
-Name[el]=Εκτελεστής Lancelot
-Name[en_GB]=Lancelot Launcher
-Name[es]=Lanzador Lancelot
-Name[et]=Lanceloti käivitaja
-Name[eu]=Lancelot jaurtitzailea
-Name[fi]=Lancelot-käynnistin
-Name[fr]=Lanceur Lancelot
-Name[ga]=Tosaitheoir Lancelot
-Name[gl]=Iniciador Lancelot
-Name[he]=תפריט משגר Lancelot
-Name[hr]=Pokretač Lancelota
-Name[hu]=Lancelot indító
-Name[is]=Lancelot ræsing
-Name[it]=Menu di avvio applicazioni Lancelot
-Name[ja]=Lancelot アプリケーションランチャー
-Name[kk]=Lancelot жеккіші
-Name[km]=កម្មវិធី​ចាប់ផ្ដើម Lancelot
-Name[ko]=Lancelot 실행기
-Name[ku]=Destpêkerê Lancelot
-Name[lt]=Lancelot paleidiklis
-Name[lv]=Lancelot palaidējs
-Name[mr]=लान्सेलोट प्रक्षेपक
-Name[nb]=Lancelot-starter
-Name[nds]=Lancelot
-Name[nl]=Lancelot-starter
-Name[nn]=Lancelot programstartar
-Name[pa]=ਲਾਂਚਕੋਟ ਲਾਂਚਰ
-Name[pl]=Lancelot (program uruchamiający)
-Name[pt]=Lançador do Lancelot
-Name[pt_BR]=Lançador Lancelot
-Name[ro]=Lansatorul Lancelot
-Name[ru]=Меню Lancelot
-Name[sk]=Spúšťač Lancelot
-Name[sl]=Zaganjalnik Lancelot
-Name[sr]=Ланселот покретач
-Name[[email protected]]=Ланселот покретач
-Name[[email protected]]=Lancelot pokretač
-Name[[email protected]]=Lancelot pokretač
-Name[sv]=Lancelot-startprogram
-Name[th]=ลานเซล็อต - เรียกใช้งานโปรแกรม
-Name[tr]=Lancelot Uygulama Çağrıcı
-Name[uk]=Засіб для запуску Lancelot
-Name[wa]=Enondeu Lancelot
-Name[x-test]=xxLancelot Launcherxx
-Name[zh_CN]=Lancelot 启动器
-Name[zh_TW]=Lancelot 應用程式啟動器
-
-Comment=Launcher to start applications
-Comment[ar]=قائمة بدء التطبيقات
-Comment[bs]=Pokretač instaliranih programa
-Comment[ca]=Llançador per a iniciar aplicacions
-Comment[[email protected]]=Llançador per a iniciar aplicacions
-Comment[cs]=Spouštěč aplikací
-Comment[csb]=Zrëszocz programów
-Comment[da]=Menu til at starte programmer.
-Comment[de]=Programme starten
-Comment[el]=Εκτελεστής για την εκκίνηση εφαρμογών
-Comment[en_GB]=Launcher to start applications
-Comment[eo]=Aplikaĵolanĉilo
-Comment[es]=Lanzador para iniciar aplicaciones
-Comment[et]=Rakenduste käivitaja
-Comment[eu]=Aplikazioak abiarazteko jaurtitzailea
-Comment[fi]=Käynnistää sovelluksia
-Comment[fr]=Lanceur permettant de démarrer des applications
-Comment[ga]=Ríomhchlár a thosaíonn feidhmchláir
-Comment[gl]=Iniciador para iniciar aplicativos
-Comment[he]=משגר יישומים חדשני
-Comment[hr]=Pokretač aplikacija
-Comment[hu]=Alkalmazásindító
-Comment[ia]=Lanceator pro initiar applicationes
-Comment[is]=Flýtiræsing forrita
-Comment[it]=Menu per avviare applicazioni
-Comment[ja]=アプリケーションを起動します
-Comment[kk]=Қолданба жеккіші
-Comment[km]=កម្មវិធី​ចាប់ផ្ដើម ដើម្បី​ចាប់ផ្ដើម​កម្មវិធី
-Comment[ko]=프로그램을 실행하는 실행기
-Comment[ku]=Destpêker ji bo destpêkirina sepanan
-Comment[lt]=Programų paleidiklis
-Comment[lv]=Lietotņu palaidējs
-Comment[mr]=अनुप्रयोग सुरु करण्याकरिता प्रक्षेपक
-Comment[nb]=Programstarter
-Comment[nds]=Röppt Programmen op
-Comment[nl]=Applet voor het starten van programma's
-Comment[nn]=Meny for programstarting
-Comment[pa]=ਐਪਲੀਕੇਸ਼ਨ ਸਟਾਰਟ ਕਰਨ ਲਈ ਲਾਂਚਰ
-Comment[pl]=Uruchamia aplikacje
-Comment[pt]=Lançador para iniciar aplicações
-Comment[pt_BR]=Lançador para iniciar aplicativos
-Comment[ro]=Lansator de aplicații
-Comment[ru]=Альтернативное меню для запуска приложений
-Comment[sk]=Aplikácia na spúšťanie aplikácií
-Comment[sl]=Zaganjalnik za zagon programov
-Comment[sr]=Покретач инсталираних програма
-Comment[[email protected]]=Покретач инсталираних програма
-Comment[[email protected]]=Pokretač instaliranih programa
-Comment[[email protected]]=Pokretač instaliranih programa
-Comment[sv]=Startprogram för att köra program
-Comment[th]=เครื่องมือเรียกใช้งานโปรแกรมต่าง ๆ
-Comment[tr]=Uygulamalara hızlıca ulaşıp çalıştırmak için
-Comment[ug]=پروگراممىنى قوزغىتىدىغان ئىجراچى(Launcher)
-Comment[uk]=Програма для запуску програм
-Comment[wa]=Enondeu d' programes
-Comment[x-test]=xxLauncher to start applicationsxx
-Comment[zh_CN]=Launcher 可以启动应用程序
-Comment[zh_TW]=應用程式啟動器
-Type=Service
-
-X-KDE-ServiceTypes=Plasma/Applet
-X-KDE-Library=plasma_applet_lancelot_launcher
-X-KDE-PluginInfo-Author=Ivan Čukić
-X-KDE-PluginInfo-Email=ivan.cukic(at)kde.org
-X-KDE-PluginInfo-Name=lancelot_launcher
-X-KDE-PluginInfo-Version=1.9.5
-X-KDE-PluginInfo-Website=http://lancelot.fomentgroup.org/
-X-KDE-PluginInfo-Category=Application Launchers
-X-KDE-PluginInfo-Depends=
-X-KDE-PluginInfo-License=GPL
-X-KDE-PluginInfo-EnabledByDefault=true
-X-Plasma-Requires-FileDialog=Unused
-X-Plasma-Requires-LaunchApp=Required
diff --git a/applets/lancelot/parts/CMakeLists.txt b/applets/lancelot/parts/CMakeLists.txt
deleted file mode 100644
index 938dd4c..0000000
--- a/applets/lancelot/parts/CMakeLists.txt
+++ /dev/null
@@ -1,52 +0,0 @@
-include_directories(
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_BINARY_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR}
- ${KDE4_INCLUDES}
-
- ${LANCELOT_INCLUDE_DIR}
- ${LANCELOT_DATAMODELS_INCLUDE_DIR}
-)
-
-# Lancelot Part Applet
-
-set(plasma_applet_lancelot_part_SRCS
- ${plasma_lancelot_models_SRCS}
- LancelotPart.cpp
- PartsMergedModel.cpp
- LancelotPartConfig.cpp
-)
-
-kde4_add_ui_files(
- plasma_applet_lancelot_part_SRCS
- LancelotPartConfigBase.ui
-)
-
-kde4_add_plugin(plasma_applet_lancelot_part ${plasma_applet_lancelot_part_SRCS})
-
-target_link_libraries(
- plasma_applet_lancelot_part
- ${KDE4_PLASMA_LIBS}
- ${KDE4_KIO_LIBS}
- ${LANCELOT_LIBS}
- ${LANCELOT_DATAMODELS_LIBS}
- )
-
-install(
- TARGETS plasma_applet_lancelot_part
- DESTINATION ${PLUGIN_INSTALL_DIR}
-)
-
-install(
- FILES plasma-applet-lancelot-part.desktop
- DESTINATION ${SERVICES_INSTALL_DIR}
-)
-
-install(
- FILES lancelotpart-mime.xml
- DESTINATION ${XDG_MIME_INSTALL_DIR}
-)
-
-update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
-
diff --git a/applets/lancelot/parts/LancelotPart.cpp b/applets/lancelot/parts/LancelotPart.cpp
deleted file mode 100644
index abf7c11..0000000
--- a/applets/lancelot/parts/LancelotPart.cpp
+++ /dev/null
@@ -1,698 +0,0 @@
-/*
- * Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "LancelotPart.h"
-
-#include <QGraphicsLayoutItem>
-#include <QGraphicsLayout>
-#include <QDataStream>
-#include <QMessageBox>
-#include <QDesktopWidget>
-
-#include <KDebug>
-#include <QDebug>
-#include <KIcon>
-#include <KMimeType>
-#include <KUrl>
-#include <KLineEdit>
-#include <KCompletion>
-
-#include <Plasma/FrameSvg>
-#include <Plasma/Corona>
-#include <Plasma/Theme>
-#include <Plasma/IconWidget>
-#include <Plasma/PaintUtils>
-#include <Plasma/ToolTipManager>
-
-#define ACTIVATION_TIME 300
-#define DEFAULT_ICON "plasmaapplet-shelf"
-
-class IconOverlay: public QGraphicsWidget {
-public:
- IconOverlay(LancelotPart * p)
- : QGraphicsWidget(p), parent(p)
- {
- }
-
- void setTitle(const QString & title)
- {
- m_title = title;
- update();
- }
-
- void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0)
- {
- const int radius = 2;
-
- QColor background =
- Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor);
- QColor text =
- Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor);
-
- QPixmap textPixmap = Plasma::PaintUtils::shadowText(
- m_title, text, background, QPoint(1, 1), radius);
-
- QRectF textRect = QRectF(QPointF(), textPixmap.size());
- textRect.moveCenter(geometry().center());
- textRect.moveBottom(geometry().bottom());
-
- background.setAlphaF(.5);
-
- painter->setRenderHint(QPainter::Antialiasing);
-
- painter->fillPath(
- Plasma::PaintUtils::roundedRectangle(
- textRect, radius),
- background
- );
-
- painter->drawPixmap(textRect.topLeft(), textPixmap);
- }
-
-private:
- QString m_title;
- LancelotPart * parent;
- /* data */
-};
-
-LancelotPart::LancelotPart(QObject * parent, const QVariantList &args)
- : Plasma::PopupApplet(parent, args),
- m_list(NULL), m_model(NULL), m_runnnerModel(NULL),
- m_icon(NULL), m_iconOverlay(NULL), m_rootHeight(-1)
-{
- if (args.size() > 0) {
- m_cmdarg = KUrl(args[0].toString()).toLocalFile();
-
- if (m_cmdarg.isEmpty()) {
- m_cmdarg = args[0].toString();
-
- }
- }
-
- setAcceptDrops(true);
- setHasConfigurationInterface(true);
- setPassivePopup(false);
-
- setPopupIcon(DEFAULT_ICON);
- setBackgroundHints(StandardBackground);
- setAspectRatioMode(Plasma::IgnoreAspectRatio);
-
- // Searching for Plasma::IconWidget so that we can react
- // to hover without clicking if the user wants it
- foreach (QGraphicsItem * child, childItems()) {
- Plasma::IconWidget * icon = dynamic_cast < Plasma::IconWidget * > (child);
- if (icon) {
- m_icon = icon;
- m_icon->installEventFilter(this);
- }
- }
-}
-
-void LancelotPart::toolTipAboutToShow()
-{
- Plasma::ToolTipContent tipData;
-
- tipData.setMainText(m_model->selfTitle());
-
- tipData.setAutohide(false);
- Plasma::ToolTipManager::self()->setContent(this, tipData);
-}
-
-void LancelotPart::init()
-{
- // Setting up UI
- m_root = new QGraphicsWidget(this);
-
- m_layout = new QGraphicsLinearLayout();
- m_layout->setOrientation(Qt::Vertical);
-
- m_root->setLayout(m_layout);
-
- m_searchText = new Plasma::LineEdit(m_root);
- m_searchText->nativeWidget()->setClearButtonShown(true);
- m_searchText->nativeWidget()->setClickMessage(i18nc("Enter the text to search for", "Search..."));
- m_searchText->nativeWidget()->setContextMenuPolicy(Qt::NoContextMenu);
-
- m_completion = new KCompletion();
- m_searchText->nativeWidget()->setCompletionObject(m_completion);
- m_searchText->nativeWidget()->setCompletionMode(
- KGlobalSettings::CompletionMan);
- m_completion->insertItems(config().readEntry("searchHistory", QStringList()));
-
- m_searchText->nativeWidget()->installEventFilter(this);
- connect(m_searchText->widget(),
- SIGNAL(textChanged(QString)),
- this, SLOT(search(QString))
- );
-
- m_list = new Lancelot::ActionListView(m_root);
- m_list->setShowsExtendersOutside(false);
- m_list->installEventFilter(this);
-
- m_model = new Models::PartsMergedModel();
- m_list->setModel(m_model);
-
- m_root->setMinimumSize(200, 200);
- m_root->setPreferredSize(300, 300);
-
- m_list->setMinimumWidth(200);
-
- m_layout->addItem(m_searchText);
- m_layout->addItem(m_list);
- m_layout->setStretchFactor(m_list, 2);
-
- connect(
- m_model, SIGNAL(removeModelRequested(int)),
- this, SLOT(removeModel(int))
- );
-
- connect(
- m_model, SIGNAL(modelContentsUpdated()),
- this, SLOT(modelContentsUpdated())
- );
-
- connect(m_model, SIGNAL(updated()),
- this, SLOT(updateOverlay()));
- connect(m_model, SIGNAL(itemInserted(int)),
- this, SLOT(updateOverlay()));
- connect(m_model, SIGNAL(itemDeleted(int)),
- this, SLOT(updateOverlay()));
- connect(m_model, SIGNAL(itemAltered(int)),
- this, SLOT(updateOverlay()));
-
- connect(m_list->list(), SIGNAL(sizeChanged()),
- this, SLOT(listSizeChanged()));
-
- connect(this, SIGNAL(activate()),
- this, SLOT(activated()));
-
- // Listening to immutability
- Plasma::Corona * corona = (Plasma::Corona *) scene();
- immutabilityChanged(corona->immutability());
- connect(corona, SIGNAL(immutabilityChanged(Plasma::ImmutabilityType)),
- this, SLOT(immutabilityChanged(Plasma::ImmutabilityType)));
- immutabilityChanged(Plasma::Mutable);
-
- // Loading data
- // bool loaded = loadConfig();
-
- applyConfig();
-
- if (m_model->modelCount() == 0 && !m_cmdarg.isEmpty()) {
- KFileItem fileItem(KFileItem::Unknown, KFileItem::Unknown, KUrl(m_cmdarg));
- m_model->append(m_cmdarg, fileItem);
- saveConfig();
- }
-
- KGlobal::locale()->insertCatalog("lancelot");
-
- modelContentsUpdated();
- updateIcon();
-}
-
-void LancelotPart::configChanged()
-{
- applyConfig();
-}
-
-void LancelotPart::updateOverlay()
-{
- if (isIconified() && !m_model->selfShortTitle().isEmpty()) {
- if (!m_iconOverlay) {
- m_iconOverlay = new IconOverlay(this);
- }
- m_iconOverlay->setTitle(m_model->selfShortTitle());
- m_iconOverlay->setGeometry(QRectF(QPointF(), geometry().size()));
-
- } else {
- if (m_iconOverlay) {
- m_iconOverlay->hide();
- m_iconOverlay->deleteLater();
- m_iconOverlay = NULL;
- }
- }
-
- Plasma::ToolTipContent tipData;
- tipData.setMainText(i18n("Shelf"));
-
- if (m_model) {
- QString title = m_model->selfTitle();
-
- if (!title.contains('\n')) {
- tipData.setMainText(m_model->selfTitle());
- } else {
- tipData.setSubText("<html>" + title.replace('\n', "<br>\n") + "</html>");
- }
- }
-
- tipData.setImage(popupIcon());
- Plasma::ToolTipManager::self()->setContent(m_icon, tipData);
-}
-
-void LancelotPart::setGeometry(const QRectF & rect)
-{
- Plasma::PopupApplet::setGeometry(rect);
-
- updateOverlay();
-}
-
-void LancelotPart::modelContentsUpdated()
-{
- kDebug() << m_model->modelCount();
- setConfigurationRequired(m_model->modelCount() < 1);
- saveConfig();
-}
-
-void LancelotPart::dragEnterEvent(QGraphicsSceneDragDropEvent * event)
-{
- if (event->mimeData()->hasFormat("text/x-lancelotpart")) {
- event->setAccepted(true);
- return;
- }
-
- if (!event->mimeData()->hasFormat("text/uri-list")) {
- event->setAccepted(false);
- return;
- }
-
- QString file = event->mimeData()->data("text/uri-list");
- KMimeType::Ptr mimeptr = KMimeType::findByUrl(KUrl(file));
- if (!mimeptr) {
- event->setAccepted(false);
- return;
- }
- QString mime = mimeptr->name();
- event->setAccepted(mime == "text/x-lancelotpart" || mime == "inode/directory");
-}
-
-void LancelotPart::dropEvent(QGraphicsSceneDragDropEvent * event)
-{
- event->setAccepted(
- m_model->append(event->mimeData()));
- saveConfig();
-}
-
-bool LancelotPart::loadFromList(const QStringList & list)
-{
- bool loaded = false;
-
- foreach (const QString& line, list) {
- kDebug() << line;
- if (m_model->load(line)) {
- loaded = true;
- }
- }
-
- return loaded;
-}
-
-LancelotPart::~LancelotPart()
-{
- delete m_model;
-}
-
-void LancelotPart::saveConfig()
-{
- KConfigGroup kcg = config();
- kcg.writeEntry("partData", m_model->serializedData());
- kcg.writeEntry("searchHistory", m_completion->items());
- kcg.sync();
-}
-
-void LancelotPart::loadConfig()
-{
- // applyConfig();
-
- KConfigGroup kcg = config();
-
- QString data = kcg.readEntry("partData", QString());
-
- m_model->clear();
-
- kDebug() << data;
-
- if (data.isEmpty()) {
- modelContentsUpdated();
- return;
- }
-
- loadFromList(data.split('\n'));
-}
-
-void LancelotPart::removeModel(int index)
-{
- m_model->remove(index);
- saveConfig();
-}
-
-void LancelotPart::timerEvent(QTimerEvent * event)
-{
- if (event->timerId() == m_timer.timerId()) {
- m_timer.stop();
- setPopupVisible();
- }
- PopupApplet::timerEvent(event);
-}
-
-bool LancelotPart::eventFilter(QObject * object, QEvent * event)
-{
- // m_icon events
- if (object == m_icon &&
- event->type() == QEvent::GraphicsSceneMousePress) {
-
- QGraphicsSceneMouseEvent * pressEvent =
- static_cast < QGraphicsSceneMouseEvent * > (event);
-
- if (pressEvent->button() == Qt::LeftButton) {
- togglePopup();
- return true;
-
- }
- }
-
- if (!m_iconClickActivation && object == m_icon) {
- if (event->type() == QEvent::GraphicsSceneHoverEnter) {
- m_timer.start(ACTIVATION_TIME, this);
- } else if (event->type() == QEvent::GraphicsSceneHoverLeave) {
- m_timer.stop();
- }
- }
-
- if (object == m_list) {
- if (event->type() == QEvent::KeyPress) {
- QKeyEvent * keyEvent = static_cast<QKeyEvent *>(event);
-
- if (keyEvent->key() == Qt::Key_Escape) {
- setPopupVisible(false);
- }
- }
- }
-
- // other events
- if (object != m_list && event->type() == QEvent::KeyPress) {
- bool pass = false;
- QKeyEvent * keyEvent = static_cast<QKeyEvent *>(event);
-
- switch (keyEvent->key()) {
- case Qt::Key_Escape:
- setPopupVisible(false);
- break;
-
- case Qt::Key_Tab:
- {
- QKeyEvent * endKeyEvent =
- new QKeyEvent(QEvent::KeyPress, Qt::Key_End,
- Qt::NoModifier);
- QCoreApplication::sendEvent(m_searchText->nativeWidget(), endKeyEvent);
-
- endKeyEvent =
- new QKeyEvent(QEvent::KeyRelease, Qt::Key_End,
- Qt::NoModifier);
- QCoreApplication::sendEvent(m_searchText->nativeWidget(), endKeyEvent);
-
- return true;
- }
-
- case Qt::Key_Return:
- case Qt::Key_Enter:
- m_list->initialSelection();
-
- if (!m_searchText->text().isEmpty()) {
- m_completion->addItem(m_searchText->text());
- config().writeEntry("searchHistory", m_completion->items());
- }
-
- m_list->keyPressEvent(keyEvent);
- return true;
- break;
-
- case Qt::Key_Up:
- case Qt::Key_Down:
- case Qt::Key_Menu:
- m_list->keyPressEvent(keyEvent);
- // sendKeyEvent(keyEvent);
- break;
-
- default:
- pass = true;
- }
-
- kDebug() << "passing the event to the list?" << pass;
- if (pass) {
- m_list->keyPressEvent(keyEvent);
- }
-
- fixFocus();
-
- }
-
- return Plasma::PopupApplet::eventFilter(object, event);
-}
-
-void LancelotPart::togglePopup()
-{
- setPopupVisible(!isPopupShowing());
-}
-
-void LancelotPart::setPopupVisible(bool show)
-{
- if (show) {
- updateShowingSize();
- Plasma::PopupApplet::showPopup();
-
- fixFocus();
-
- } else {
- Plasma::PopupApplet::hidePopup();
- }
-}
-
-void LancelotPart::createConfigurationInterface(KConfigDialog * parent)
-{
- QWidget * widget = new QWidget();
- m_config.setupUi(widget);
- m_config.panelIcon->setVisible(isIconified());
-
- KConfigGroup kcg = config();
-
- QString iconPath = kcg.readEntry("iconLocation", DEFAULT_ICON);
- m_config.setIcon(iconPath);
- if (iconPath == DEFAULT_ICON) {
- m_config.setIcon(popupIcon());
- }
-
- m_config.setIconClickActivation(
- kcg.readEntry("iconClickActivation", true));
- m_config.setContentsClickActivation(
- kcg.readEntry("contentsClickActivation", m_list->parentItem() == NULL));
- m_config.setContentsExtenderPosition(
- (Lancelot::ExtenderPosition)
- kcg.readEntry("contentsExtenderPosition",
- (int)Lancelot::RightExtender));
- m_config.setShowSearchBox(
- kcg.readEntry("showSearchBox", false));
- m_config.setPartData(
- kcg.readEntry("partData", QString()));
-
- parent->setButtons(KDialog::Ok | KDialog::Cancel | KDialog::Apply);
- connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted()));
- connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted()));
-
- parent->addPage(m_config.pageContents, i18n("Contents"), icon());
- parent->addPage(m_config.pageAdvanced, i18n("Advanced"), "configure");
-
- connect(m_config.checkShowSearchBox, SIGNAL(toggled(bool)), parent, SLOT(settingsModified()));
- connect(m_config.qbgIcon, SIGNAL(buttonClicked(int)), parent, SLOT(settingsModified()));
- connect(m_config.qbgContentsExtenderPosition, SIGNAL(buttonClicked(int)), parent, SLOT(settingsModified()));
- connect(m_config.radioContentsActivationClick, SIGNAL(toggled(bool)), parent , SLOT(settingsModified()));
- connect(m_config.radioContentsActivationExtender, SIGNAL(toggled(bool)), parent, SLOT(settingsModified()));
- connect(m_config.iconChooser, SIGNAL(iconChanged(QString)), parent, SLOT(settingsModified()));
- connect(&m_config, SIGNAL(contentsChanged()), parent, SLOT(settingsModified()));
-}
-
-void LancelotPart::updateIcon()
-{
- QString icon = config().readEntry("iconLocation", DEFAULT_ICON);
- setPopupIcon(icon);
-
- if (icon == DEFAULT_ICON) {
- if (m_model->modelCount() > 0) {
- Lancelot::ActionListModel * model = m_model->modelAt(0);
- if (!model->selfIcon().isNull()) {
- setPopupIcon(model->selfIcon());
- }
- }
- }
-}
-
-void LancelotPart::applyConfig()
-{
- KConfigGroup kcg = config();
-
- updateIcon();
-
- m_iconClickActivation = kcg.readEntry("iconClickActivation", true);
-
- if (!kcg.readEntry("contentsClickActivation", m_list->parentItem() == NULL)) {
- m_list->setExtenderPosition(
- (Lancelot::ExtenderPosition)
- kcg.readEntry("contentsExtenderPosition",
- (int)Lancelot::RightExtender));
- } else {
- m_list->setExtenderPosition(Lancelot::NoExtender);
- }
-
- showSearchBox(kcg.readEntry("showSearchBox", false));
-
- loadConfig();
-}
-
-void LancelotPart::configAccepted()
-{
- KConfigGroup kcg = config();
-
- kcg.writeEntry("iconLocation",
- m_config.icon());
- kcg.writeEntry("iconClickActivation",
- m_config.iconClickActivation());
- kcg.writeEntry("contentsClickActivation",
- m_config.contentsClickActivation());
- kcg.writeEntry("contentsExtenderPosition",
- (int)m_config.contentsExtenderPosition());
- kcg.writeEntry("showSearchBox", m_config.showSearchBox());
- kcg.writeEntry("partData", m_config.partData());
-
- kcg.sync();
- applyConfig();
-}
-
-void LancelotPart::resizeEvent(QGraphicsSceneResizeEvent * event)
-{
- PopupApplet::resizeEvent(event);
-}
-
-QGraphicsWidget * LancelotPart::graphicsWidget()
-{
- return m_root;
-}
-
-void LancelotPart::immutabilityChanged(Plasma::ImmutabilityType value)
-{
- kDebug() << value;
- Lancelot::Global::self()->setImmutability(value);
-}
-
-void LancelotPart::search(const QString & query)
-{
- kDebug() << "setting search query:" << query;
-
- if (!m_runnnerModel) {
- m_runnnerModel = new Lancelot::Models::Runner(true);
- }
-
- if (query.isEmpty()) {
- m_list->setModel(m_model);
- } else {
- m_runnnerModel->setSearchString(query);
- m_list->setModel(m_runnnerModel);
-
- }
-}
-
-void LancelotPart::showSearchBox(bool value)
-{
- if (m_searchText->isVisible() == value) {
- return;
- }
-
- m_searchText->setVisible(value);
- listSizeChanged();
-
- if (value) {
- m_layout->insertItem(0, m_searchText);
-
- } else {
- m_layout->removeItem(m_searchText);
-
- }
-}
-
-void LancelotPart::resetSearch()
-{
- kDebug();
- m_searchText->setText(QString::null);
- search(QString::null);
-}
-
-void LancelotPart::listSizeChanged()
-{
- if (isIconified()) {
- qreal height = m_list->list()->preferredHeight();
-
- if (m_searchText->isVisible()) {
- height += m_searchText->geometry().height();
- }
-
- kDebug() << "setting Size for m_root" << height;
-
- m_rootHeight = height;
-
- updateShowingSize();
- }
-}
-
-void LancelotPart::updateShowingSize()
-{
- int height = m_rootHeight;
-
- if (height < 0) {
- listSizeChanged();
- return;
- }
-
- kDebug() << height;
-
- QRect screen = QApplication::desktop()->screenGeometry(QCursor::pos());
- int screenHeight = screen.height();
-
- if (height > screenHeight * 0.7) {
- height = screenHeight * 0.7;
- }
-
- m_root->setMinimumHeight(height);
- m_root->setPreferredHeight(height);
- m_root->setMaximumHeight(height);
-
-}
-
-void LancelotPart::activated()
-{
- fixFocus();
-}
-
-void LancelotPart::fixFocus()
-{
- if (m_searchText->isVisible()) {
- m_searchText->nativeWidget()->setFocus();
- m_searchText->setFocus();
- } else {
- m_list->setFocus();
- }
-}
-
diff --git a/applets/lancelot/parts/LancelotPart.h b/applets/lancelot/parts/LancelotPart.h
deleted file mode 100644
index 4f2ff99..0000000
--- a/applets/lancelot/parts/LancelotPart.h
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOT_PARTS_H
-#define LANCELOT_PARTS_H
-
-#include <QBasicTimer>
-#include <QGraphicsLinearLayout>
-
-#include <KConfigDialog>
-#include <KCompletion>
-
-#include <Plasma/Applet>
-#include <Plasma/PopupApplet>
-#include <Plasma/LineEdit>
-
-#include <Lancelot/Global>
-#include <Lancelot/Widget>
-#include <Lancelot/ActionListView>
-#include <Lancelot/FullBorderLayout>
-
-#include <Lancelot/Models/Runner>
-
-#include "PartsMergedModel.h"
-#include "LancelotPartConfig.h"
-
-class IconOverlay;
-
-class LancelotPart : public Plasma::PopupApplet
-{
- Q_OBJECT
-public:
- LancelotPart(QObject * parent, const QVariantList &args);
- ~LancelotPart();
-
- void init();
- L_Override void dragEnterEvent(QGraphicsSceneDragDropEvent * event);
- L_Override void dropEvent(QGraphicsSceneDragDropEvent * event);
- L_Override void setGeometry(const QRectF & rect);
-
-public Q_SLOTS:
- void configChanged();
- void activated();
-
- void togglePopup();
- void setPopupVisible(bool show = true);
- void toolTipAboutToShow();
-
-private Q_SLOTS:
- void configAccepted();
- void search(const QString & query);
- void fixFocus();
-
-protected:
- L_Override void createConfigurationInterface(KConfigDialog *parent);
- L_Override void resizeEvent(QGraphicsSceneResizeEvent * event);
- L_Override QGraphicsWidget * graphicsWidget();
- L_Override void timerEvent(QTimerEvent * event);
- L_Override bool eventFilter(QObject * object, QEvent * event);
-
-private Q_SLOTS:
- void removeModel(int index);
- void immutabilityChanged(Plasma::ImmutabilityType value);
- void modelContentsUpdated();
- void resetSearch();
- void listSizeChanged();
-
- void updateShowingSize();
- void updateOverlay();
-
-private:
- bool loadFromList(const QStringList & list);
- void showSearchBox(bool value);
- void updateIcon();
-
- void saveConfig();
- void loadConfig();
- void applyConfig();
-
- QGraphicsWidget * m_root;
- QGraphicsLinearLayout * m_layout;
- Lancelot::ActionListView * m_list;
- Plasma::LineEdit * m_searchText;
-
- Models::PartsMergedModel * m_model;
- Lancelot::Models::Runner * m_runnnerModel;
-
- QString m_cmdarg;
- Plasma::IconWidget * m_icon;
- IconOverlay * m_iconOverlay;
- bool m_iconClickActivation;
- QBasicTimer m_timer;
- int m_rootHeight;
-
- KCompletion * m_completion;
-
- LancelotPartConfig m_config;
-};
-
-K_EXPORT_PLASMA_APPLET(lancelot-part, LancelotPart)
-
-#endif // LANCELOT_PARTS_H
diff --git a/applets/lancelot/parts/LancelotPartConfig.cpp b/applets/lancelot/parts/LancelotPartConfig.cpp
deleted file mode 100644
index 7bc1734..0000000
--- a/applets/lancelot/parts/LancelotPartConfig.cpp
+++ /dev/null
@@ -1,259 +0,0 @@
-/*
- * Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "LancelotPartConfig.h"
-
-#include <QStyledItemDelegate>
-#include <QPainter>
-#include <QInputDialog>
-
-#include <Lancelot/Models/Serializator>
-#include <Lancelot/Models/AvailableModels>
-#include <Lancelot/PopupList>
-
-#include <KDebug>
-
-void LancelotPartConfig::setupUi(QWidget * widget)
-{
- Ui::LancelotPartConfigBase::setupUi(widget);
-
- popup = NULL;
-
- qbgIcon = new QButtonGroup(widget);
- qbgIcon->addButton(radioIconActivationClick);
- qbgIcon->addButton(radioIconActivationHover);
-
- qbgContents = new QButtonGroup(widget);
- qbgContents->addButton(radioContentsActivationClick);
- qbgContents->addButton(radioContentsActivationExtender);
-
- qbgContentsExtenderPosition = new QButtonGroup(widget);
- qbgContentsExtenderPosition->addButton(radioContentsExtenderPositionLeft);
- qbgContentsExtenderPosition->addButton(radioContentsExtenderPositionRight);
-
- buttonContentsRemove = new QToolButton(listModels);
- buttonContentsRemove->setIcon(KIcon("list-remove"));
- buttonContentsRemove->setToolTip(i18n("Remove"));
- buttonContentsRemove->hide();
-
- QObject::connect(
- listModels, SIGNAL(itemClicked(QListWidgetItem*)),
- this, SLOT(listModelsItemClicked(QListWidgetItem*)));
- QObject::connect(
- listModels, SIGNAL(itemSelectionChanged()),
- this, SLOT(listModelsItemSelectionChanged()));
- QObject::connect(
- buttonContentsRemove, SIGNAL(clicked()),
- this, SLOT(buttonContentsRemoveClicked()));
- connect(buttonContentsRemove, SIGNAL(clicked()) , this, SIGNAL(contentsChanged()));
-}
-
-bool LancelotPartConfig::iconClickActivation() const
-{
- return radioIconActivationClick->isChecked();
-}
-
-bool LancelotPartConfig::contentsClickActivation() const
-{
- return radioContentsActivationClick->isChecked();
-}
-
-Lancelot::ExtenderPosition LancelotPartConfig::contentsExtenderPosition() const
-{
- return ((radioContentsExtenderPositionLeft->isChecked()) ?
- Lancelot::LeftExtender : Lancelot::RightExtender);
-}
-
-QString LancelotPartConfig::icon() const
-{
- return iconChooser->icon();
-}
-
-void LancelotPartConfig::setIconClickActivation(bool value)
-{
- if (value) {
- radioIconActivationClick->click();
- } else {
- radioIconActivationHover->click();
- }
-}
-
-void LancelotPartConfig::setContentsClickActivation(bool value)
-{
- if (value) {
- radioContentsActivationClick->click();
- } else {
- radioContentsActivationExtender->click();
- }
-}
-
-void LancelotPartConfig::setContentsExtenderPosition(Lancelot::ExtenderPosition position)
-{
- if (position == Lancelot::LeftExtender) {
- radioContentsExtenderPositionLeft->click();
- } else {
- radioContentsExtenderPositionRight->click();
- }
-}
-
-void LancelotPartConfig::setShowSearchBox(bool value)
-{
- checkShowSearchBox->setChecked(value);
-}
-
-bool LancelotPartConfig::showSearchBox() const
-{
- return checkShowSearchBox->isChecked();
-}
-
-void LancelotPartConfig::setIcon(const QString & icon)
-{
- iconChooser->setIcon(icon);
-}
-
-void LancelotPartConfig::setIcon(const QIcon & icon)
-{
- iconChooser->setIcon(icon);
-}
-
-void LancelotPartConfig::setPartData(const QString & data)
-{
- listModels->addItem(i18n("Add..."));
- QListWidgetItem * itemAdd = listModels->item(listModels->count() - 1);
- itemAdd->setData(Qt::DecorationRole, KIcon("list-add"));
- itemAdd->setData(Qt::SizeHintRole, QSize(0, 32));
-
- foreach (const QString & itemData, data.split('\n')) {
- addItem(itemData);
- }
-}
-
-void LancelotPartConfig::addItem(const QString & itemData)
-{
- if (itemData.isEmpty()) return;
-
- int index = listModels->count() - 1;
- listModels->insertItem(index, QString::null);
- setItemData(listModels->item(index) , itemData);
-
- listModels->clearSelection();
-}
-
-void LancelotPartConfig::setItemData(
- QListWidgetItem * item, const QString & itemData)
-{
- if (!item || itemData.isEmpty()) return;
-
- QMap < QString, QString > dataMap =
- Lancelot::Models::Serializator::deserialize(itemData);
-
- item->setData(Qt::DisplayRole,
- //dataMap["model"]);
- Lancelot::Models::AvailableModels::self()->titleForModel(dataMap["model"]));
-
- item->setData(Qt::UserRole, itemData);
- item->setData(Qt::SizeHintRole, QSize(0, 48));
- item->setData(Qt::DecorationRole, KIcon("plasmaapplet-shelf"));
-
-}
-
-QString LancelotPartConfig::partData() const
-{
- QString result;
-
- for (int i = 0; i < listModels->count(); i++) {
- if (!result.isEmpty()) {
- result += '\n';
- }
-
- QListWidgetItem * item = listModels->item(i);
- result += item->data(Qt::UserRole).toString();
-
- }
-
- return result;
-}
-
-void LancelotPartConfig::buttonContentsAddClicked()
-{
- if (!popup) {
- popup = new Lancelot::PopupList();
- connect(popup, SIGNAL(activated(int)),
- this, SLOT(buttonContentsAddItemSelected(int)));
- connect(popup, SIGNAL(activated(int)), this, SIGNAL(contentsChanged()));
- popup->setModel(Lancelot::Models::AvailableModels::self());
- }
-
- popup->exec(QCursor::pos());
-}
-
-void LancelotPartConfig::buttonContentsRemoveClicked()
-{
- foreach (QListWidgetItem * item, listModels->selectedItems()) {
- if (item != listModels->item(listModels->count() - 1)) {
- listModels->takeItem(listModels->row(item));
- }
- }
-
- listModels->clearSelection();
-}
-
-void LancelotPartConfig::buttonContentsAddItemSelected(int index)
-{
- kDebug() << index;
- QString data = Lancelot::Models::AvailableModels::self()->
- serializedDataForItem(index);
- kDebug() << data;
-
- if (!data.isEmpty()) {
- addItem(data);
- popup->hide();
- }
-}
-
-void LancelotPartConfig::listModelsItemClicked(QListWidgetItem * item)
-{
- if (item == listModels->item(listModels->count() - 1)) {
- buttonContentsAddClicked();
- }
-}
-
-void LancelotPartConfig::listModelsItemSelectionChanged()
-{
- QListWidgetItem * selectedItem = 0;
-
- if (listModels->selectedItems().count()) {
- selectedItem = listModels->selectedItems()[0];
-
- if (selectedItem == listModels->item(listModels->count() - 1)) {
- selectedItem = NULL;
- }
- }
-
- if (selectedItem) {
- QRect rect = listModels->visualItemRect(selectedItem);
- rect.setLeft(rect.right() - 32);
- rect.setHeight(32);
- buttonContentsRemove->setGeometry(rect);
- buttonContentsRemove->setVisible(true);
- } else {
- buttonContentsRemove->setVisible(false);
- }
-}
-
diff --git a/applets/lancelot/parts/LancelotPartConfig.h b/applets/lancelot/parts/LancelotPartConfig.h
deleted file mode 100644
index 41810f1..0000000
--- a/applets/lancelot/parts/LancelotPartConfig.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOT_PART_CONFIG_H
-#define LANCELOT_PART_CONFIG_H
-
-#include <ui_LancelotPartConfigBase.h>
-
-#include <QToolButton>
-
-#include <Lancelot/Lancelot>
-#include <Lancelot/PopupList>
-
-class LancelotPartConfig: public QObject, public Ui::LancelotPartConfigBase {
- Q_OBJECT
-
-public:
- void setupUi(QWidget * widget);
-
- bool iconClickActivation() const;
- bool showSearchBox() const;
- QString icon() const;
-
- bool contentsClickActivation() const;
- Lancelot::ExtenderPosition contentsExtenderPosition() const;
-
- void setIconClickActivation(bool value);
- void setIcon(const QString & icon);
- void setIcon(const QIcon & icon);
-
- void setContentsClickActivation(bool value);
- void setContentsExtenderPosition(Lancelot::ExtenderPosition position);
- void setShowSearchBox(bool value);
-
- void setPartData(const QString & data);
- QString partData() const;
-
- void addItem(const QString & itemData);
- void setItemData(
- QListWidgetItem * item, const QString & itemData);
-
- QButtonGroup * qbgIcon;
- QButtonGroup * qbgContents;
- QButtonGroup * qbgContentsExtenderPosition;
-
- QToolButton * buttonContentsRemove;
-
-signals:
- void contentsChanged();
-
-public Q_SLOTS:
- void buttonContentsAddClicked();
- void buttonContentsRemoveClicked();
- void buttonContentsAddItemSelected(int index);
-
- void listModelsItemClicked(QListWidgetItem * item);
- void listModelsItemSelectionChanged();
-
-private:
- Lancelot::PopupList * popup;
-
-};
-
-#endif /* LANCELOT_LAUNCHER_APPLET_CONFIG_H_ */
diff --git a/applets/lancelot/parts/LancelotPartConfigBase.ui b/applets/lancelot/parts/LancelotPartConfigBase.ui
deleted file mode 100644
index 6d6bcbc..0000000
--- a/applets/lancelot/parts/LancelotPartConfigBase.ui
+++ /dev/null
@@ -1,223 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>LancelotPartConfigBase</class>
- <widget class="QWidget" name="LancelotPartConfigBase">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>629</width>
- <height>692</height>
- </rect>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_4">
- <item>
- <widget class="QFrame" name="pageAdvanced">
- <layout class="QVBoxLayout" name="verticalLayout_5">
- <property name="margin">
- <number>0</number>
- </property>
- <item>
- <widget class="QGroupBox" name="panelContents">
- <property name="title">
- <string comment="Contents of the applet">Activation:</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QRadioButton" name="radioContentsActivationClick">
- <property name="text">
- <string>Click to activate items</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioContentsActivationExtender">
- <property name="text">
- <string>Use no-click interface</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QGroupBox" name="panelContentsExtenderPosition">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="title">
- <string>Extender Position</string>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QRadioButton" name="radioContentsExtenderPositionLeft">
- <property name="text">
- <string comment="Position the extender left">Left</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioContentsExtenderPositionRight">
- <property name="text">
- <string comment="Position the extender right">Right</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <widget class="QGroupBox" name="panelIcon">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="title">
- <string>Applet Icon:</string>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <widget class="KIconButton" name="iconChooser">
- <property name="minimumSize">
- <size>
- <width>64</width>
- <height>64</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>20000</width>
- <height>64</height>
- </size>
- </property>
- <property name="baseSize">
- <size>
- <width>64</width>
- <height>64</height>
- </size>
- </property>
- </widget>
- </item>
- <item>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <item>
- <widget class="QRadioButton" name="radioIconActivationClick">
- <property name="text">
- <string>Show contents on &amp;click</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="radioIconActivationHover">
- <property name="text">
- <string>Show contents on icon &amp;hover (after a predefined interval of time)</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <spacer name="verticalSpacer_2">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QFrame" name="pageContents">
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <property name="margin">
- <number>0</number>
- </property>
- <item>
- <widget class="QCheckBox" name="checkShowSearchBox">
- <property name="text">
- <string>Show the search box</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="Line" name="line">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QListWidget" name="listModels">
- <property name="styleSheet">
- <string>.QListWidget { border: none; background: transparent; }</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </widget>
- <customwidgets>
- <customwidget>
- <class>KIconButton</class>
- <extends>QPushButton</extends>
- <header>kicondialog.h</header>
- </customwidget>
- </customwidgets>
- <resources/>
- <connections>
- <connection>
- <sender>radioContentsActivationExtender</sender>
- <signal>toggled(bool)</signal>
- <receiver>panelContentsExtenderPosition</receiver>
- <slot>setEnabled(bool)</slot>
- <hints>
- <hint type="sourcelabel">
- <x>435</x>
- <y>82</y>
- </hint>
- <hint type="destinationlabel">
- <x>434</x>
- <y>118</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>radioContentsActivationClick</sender>
- <signal>toggled(bool)</signal>
- <receiver>panelContentsExtenderPosition</receiver>
- <slot>setDisabled(bool)</slot>
- <hints>
- <hint type="sourcelabel">
- <x>408</x>
- <y>53</y>
- </hint>
- <hint type="destinationlabel">
- <x>406</x>
- <y>111</y>
- </hint>
- </hints>
- </connection>
- </connections>
-</ui>
diff --git a/applets/lancelot/parts/PartsMergedModel.cpp b/applets/lancelot/parts/PartsMergedModel.cpp
deleted file mode 100644
index 3f49294..0000000
--- a/applets/lancelot/parts/PartsMergedModel.cpp
+++ /dev/null
@@ -1,404 +0,0 @@
-/*
- * Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "PartsMergedModel.h"
-
-#include <QFile>
-#include <QTextStream>
-
-#include <KIcon>
-#include <KLocalizedString>
-#include <KDebug>
-
-#include <Lancelot/Models/BaseModel>
-#include <Lancelot/Models/Devices>
-#include <Lancelot/Models/Places>
-#include <Lancelot/Models/SystemServices>
-#include <Lancelot/Models/RecentDocuments>
-#include <Lancelot/Models/OpenDocuments>
-#include <Lancelot/Models/NewDocuments>
-#include <Lancelot/Models/FolderModel>
-#include <Lancelot/Models/FavoriteApplications>
-#include <Lancelot/Models/Applications>
-#include <Lancelot/Models/Runner>
-#include <Lancelot/Models/ContactsKopete>
-#include <Lancelot/Models/MessagesKmail>
-#include <Lancelot/Models/SystemActions>
-#include <Lancelot/Models/Serializator>
-
-namespace Models {
-
-PartsMergedModel::PartsMergedModel()
- : Lancelot::Models::BaseMergedModel()
-{
- connect(this, SIGNAL(updated()),
- this, SLOT(modelCountUpdated()));
-}
-
-PartsMergedModel::~PartsMergedModel()
-{
- clear();
-}
-
-bool PartsMergedModel::hasModelContextActions(int index) const
-{
- Q_UNUSED(index);
- return true;
-}
-
-void PartsMergedModel::setModelContextActions(int index, Lancelot::PopupMenu * menu)
-{
- Q_UNUSED(index);
- menu->addAction(KIcon("list-remove"), i18n("Remove this"))
- ->setData(QVariant(0));
-}
-
-void PartsMergedModel::modelContextActivate(int index, QAction * context)
-{
- if (!context) {
- return;
- }
-
- if (context->data().toInt() == 0) {
- emit removeModelRequested(index);
- }
-}
-
-void PartsMergedModel::setModelDropActions(int index, Qt::DropActions & actions,
- Qt::DropAction & defaultAction)
-{
- Q_UNUSED(index);
- if (modelCount() <= 1) {
- actions = Qt::CopyAction;
- defaultAction = Qt::CopyAction;
- } else {
- actions = Qt::CopyAction | Qt::MoveAction;
- defaultAction = Qt::MoveAction;
- }
-}
-
-void PartsMergedModel::modelDataDropped(int index, Qt::DropAction action)
-{
- if (action == Qt::MoveAction) {
- emit removeModelRequested(index);
- }
-}
-
-bool PartsMergedModel::dataDropAvailable(int where, const QMimeData * mimeData)
-{
- if (mimeData->formats().contains("text/x-lancelotpart") ||
- mimeData->formats().contains("inode/directory")) {
- return true;
- }
-
- if (mimeData->formats().contains("text/uri-list")) {
- // TODO: Check whether urls are for directories
- return true;
- }
-
- return BaseMergedModel::dataDropAvailable(where, mimeData);
-}
-
-void PartsMergedModel::dataDropped(int where, const QMimeData * mimeData)
-{
- if (mimeData->formats().contains("text/x-lancelotpart") ||
- mimeData->formats().contains("inode/directory") ||
- mimeData->formats().contains("text/uri-list")
- ) {
- append(mimeData);
- }
-
- BaseMergedModel::dataDropped(where, mimeData);
-}
-
-bool PartsMergedModel::append(const QString & data)
-{
- return load(data);
-}
-
-bool PartsMergedModel::append(const QMimeData * mimeData)
-{
- if (mimeData->hasFormat("text/x-lancelotpart")) {
- QString data = mimeData->data("text/x-lancelotpart");
- load(data);
- return true;
- }
-
- if (!mimeData->hasFormat("text/uri-list")) {
- return false;
- }
-
- QString file = mimeData->data("text/uri-list");
-
- KMimeType::Ptr mimeptr = KMimeType::findByUrl(KUrl(file));
- if (!mimeptr) {
- return false;
- }
- QString mime = mimeptr->name();
-
- if (mime != "text/x-lancelotpart" && mime != "inode/directory") {
- return false;
- }
-
- if (mime == "inode/directory") {
- return loadDirectory(file);
- } else {
- return loadFromFile(file);
- }
-}
-
-bool PartsMergedModel::append(const QString & path, const KFileItem & fileItem)
-{
- if (fileItem.mimetype() == "inode/directory") {
- return loadDirectory(path);
- } else {
- return loadFromFile(path);
- }
-}
-
-void PartsMergedModel::remove(int index)
-{
- Lancelot::ActionListModel * model = modelAt(index);
- removeModel(index);
- if (m_models.contains(model)) {
- model->deleteLater();
- m_models.removeAll(model);
- modelCountUpdated();
- }
-
- QStringList configs = m_data.split('\n');
- configs.removeAt(index);
- m_data = configs.join("\n");
-
- emit modelContentsUpdated();
-}
-
-void PartsMergedModel::clear()
-{
- while (modelCount()) {
- removeModel(0);
- }
-
- qDeleteAll(m_models);
- m_models.clear();
- modelCountUpdated();
-
- m_data.clear();
-}
-
-bool PartsMergedModel::loadFromFile(const QString & url)
-{
- bool loaded = false;
-
- QFile file(QUrl(url).toLocalFile());
- if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
- QTextStream in(&file);
- while (!in.atEnd()) {
- QString line = in.readLine().trimmed();
- if (load(line)) {
- loaded = true;
- }
- }
- }
-
- return loaded;
-}
-
-bool PartsMergedModel::loadDirectory(const QString & url)
-{
- QMap < QString, QString > data;
-
- QString path = KUrl(url).toLocalFile();
-
- if (path.isEmpty()) {
- path = url;
- }
-
- data["version"] = "1.0";
- data["type"] = "list";
- data["model"] = "Folder " + path;
-
- return load(Lancelot::Models::Serializator::serialize(data));
-}
-
-bool PartsMergedModel::load(const QString & input)
-{
- QMap < QString, QString > data = Lancelot::Models::Serializator::deserialize(input);
-
- if (!data.contains("version")) {
- return false;
- }
-
- bool loaded = false;
-
- if (data["version"] <= "1.0") {
- if (data["type"] == "list") {
- QStringList modelDef = data["model"].split(' ');
- QString modelID = modelDef.takeFirst();
- QString modelExtraData;
-
- modelExtraData = modelDef.join(" ");
- Lancelot::ActionListModel * model = NULL;
-
- if (modelID == "Places") {
- addModel(modelID, QIcon(), i18n("Places"),
- model = new Lancelot::Models::Places());
- m_models.append(model);
-
- } else if (modelID == "System") {
- addModel(modelID, QIcon(), i18n("System"),
- model = new Lancelot::Models::SystemServices());
- m_models.append(model);
-
- } else if (modelID == "Devices/Removable") {
- addModel(modelID, QIcon(), i18n("Removable devices"),
- model = new Lancelot::Models::Devices(Lancelot::Models::Devices::Removable));
- m_models.append(model);
-
- } else if (modelID == "Devices/Fixed") {
- addModel(modelID, QIcon(), i18n("Fixed devices"),
- model = new Lancelot::Models::Devices(Lancelot::Models::Devices::Fixed));
- m_models.append(model);
-
- } else if (modelID == "NewDocuments") {
- addModel(modelID, QIcon(), i18n("New Documents"),
- model = new Lancelot::Models::NewDocuments());
- m_models.append(model);
-
- } else if (modelID == "OpenDocuments") {
- addModel(modelID, QIcon(), i18n("Open Documents"),
- model = new Lancelot::Models::OpenDocuments());
- m_models.append(model);
-
- } else if (modelID =="RecentDocuments") {
- addModel(modelID, QIcon(), i18n("Recent Documents"),
- model = new Lancelot::Models::RecentDocuments());
- m_models.append(model);
-
- } else if (modelID =="Messages") {
- addModel(modelID, QIcon(), i18n("Unread messages"),
- model = new Lancelot::Models::MessagesKmail());
- m_models.append(model);
-
- } else if (modelID =="Contacts") {
- addModel(modelID, QIcon(), i18n("Online contacts"),
- model = new Lancelot::Models::ContactsKopete());
- m_models.append(model);
-
- } else if (modelID == "FavoriteApplications") {
- // We don't want to delete this one (singleton)
- addModel(modelID, QIcon(), i18n("Favorite Applications"),
- model = Lancelot::Models::FavoriteApplications::self());
-
- } else if (modelID == "SystemActions") {
- // We don't want to delete this one (singleton)
- if (modelExtraData.isEmpty()) {
- addModel(modelID, QIcon(), i18n("System"),
- model = Lancelot::Models::SystemActions::self());
- } else {
- model = Lancelot::Models::SystemActions::self()->action(modelExtraData, false);
- if (!model) return false;
- addModel(modelID, QIcon(), i18n("System"), model);
- }
-
- } else if (modelID == "Folder") {
- if (modelExtraData.startsWith(QLatin1String("applications:/"))) {
- modelExtraData.remove(0, 14);
- addModel(modelExtraData,
- QIcon(),
- modelExtraData,
- model = new Lancelot::Models::Applications(modelExtraData, QString(), QIcon(), true));
- } else {
- addModel(modelExtraData,
- QIcon(),
- modelExtraData,
- model = new Lancelot::Models::FolderModel(modelExtraData, QDir::Name | QDir::DirsFirst));
- }
- m_models.append(model);
-
- }
- loaded = (model != NULL);
- }
- }
-
- if (loaded) {
- if (!m_data.isEmpty()) {
- m_data += '\n';
- }
- m_data += input;
- }
-
- modelCountUpdated();
-
- emit modelContentsUpdated();
- return loaded;
-}
-
-QString PartsMergedModel::serializedData() const
-{
- return m_data;
-}
-
-QString PartsMergedModel::selfTitle() const
-{
- QString result;
-
- foreach (Lancelot::ActionListModel * model, m_models) {
- QString title = model->selfTitle();
- if (!title.isEmpty()) {
- if (!result.isEmpty()) {
- result += '\n';
- }
-
- result += title;
- }
- }
-
- return result;
-}
-
-QString PartsMergedModel::selfShortTitle() const
-{
- if (m_models.size() > 0) {
- return m_models[0]->selfShortTitle();
- }
-
- return QString();
-}
-
-void PartsMergedModel::modelCountUpdated()
-{
- int count = 0;
-
- if (hideEmptyModels()) {
- for (int i = 0; i < modelCount(); i++) {
- if (modelAt(i)->size() > 0) {
- count++;
-
- // we don't need to count them all
- if (count > 1) break;
- }
- }
- } else count = modelCount();
-
- setShowModelTitles(count > 1);
-}
-
-
-} // namespace Models
diff --git a/applets/lancelot/parts/PartsMergedModel.h b/applets/lancelot/parts/PartsMergedModel.h
deleted file mode 100644
index 8887431..0000000
--- a/applets/lancelot/parts/PartsMergedModel.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (C) 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H
-#define LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H
-
-#include <Lancelot/Models/BaseMergedModel>
-
-#include <KFileItem>
-
-namespace Models {
-
-class PartsMergedModel: public Lancelot::Models::BaseMergedModel {
- Q_OBJECT
-public:
- PartsMergedModel();
- ~PartsMergedModel();
-
- bool append(const QMimeData * mimeData);
- bool append(const QString & mimeData);
- bool append(const QString & path, const KFileItem & fileItem);
-
- void remove(int index);
- void clear();
-
- QString serializedData() const;
-
- bool load(const QString & data);
- bool loadFromFile(const QString & url);
- bool loadFromList(const QStringList & list);
- bool loadDirectory(const QString & url);
-
- L_Override bool hasModelContextActions(int index) const;
- L_Override void setModelContextActions(int index, Lancelot::PopupMenu * menu);
- L_Override void modelContextActivate(int index, QAction * context);
- L_Override void setModelDropActions(int index,
- Qt::DropActions & actions, Qt::DropAction & defaultAction);
- L_Override void modelDataDropped(int index, Qt::DropAction action);
-
- L_Override bool dataDropAvailable(int where, const QMimeData * mimeData);
- L_Override void dataDropped(int where, const QMimeData * mimeData);
-
- L_Override QString selfShortTitle() const;
- L_Override QString selfTitle() const;
-
-private:
- QList < Lancelot::ActionListModel * > m_models;
- QString m_data;
-
-private Q_SLOTS:
- void modelCountUpdated();
-
-Q_SIGNALS:
- void removeModelRequested(int index);
- void modelContentsUpdated();
-};
-
-} // namespace Models
-
-#endif // LANCELOTPARTS_MODELS_PARTSMERGEDMODEL_H
-
-
diff --git a/applets/lancelot/parts/lancelotpart-mime.xml b/applets/lancelot/parts/lancelotpart-mime.xml
deleted file mode 100644
index c61b89e..0000000
--- a/applets/lancelot/parts/lancelotpart-mime.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
- <mime-type type="text/x-lancelotpart">
- <comment>Lancelot Part Definition</comment>
- <glob pattern="*.lancelotpart"></glob>
- </mime-type>
-</mime-info>
diff --git a/applets/lancelot/parts/plasma-applet-lancelot-part.desktop b/applets/lancelot/parts/plasma-applet-lancelot-part.desktop
deleted file mode 100644
index 956324d..0000000
--- a/applets/lancelot/parts/plasma-applet-lancelot-part.desktop
+++ /dev/null
@@ -1,72 +0,0 @@
-[Desktop Entry]
-Icon=plasmaapplet-shelf
-
-Name=Shelf
-Name[ar]=الرَفّ
-Name[bs]=Shelf
-Name[ca]=Shelf
-Name[[email protected]]=Shelf
-Name[cs]=Polička
-Name[da]=Hylde
-Name[de]=Regal
-Name[el]=Ράφι
-Name[en_GB]=Shelf
-Name[es]=Estante
-Name[et]=Sahtel
-Name[eu]=Apala
-Name[fi]=Hylly
-Name[fr]=Présentoir
-Name[ga]=Seilf
-Name[gl]=Estante
-Name[hr]=Polica
-Name[hu]=Fiók
-Name[it]=Mensola
-Name[kk]=Сөре
-Name[km]=ធ្នើរ
-Name[ko]=선반
-Name[lt]=Lentyna
-Name[lv]=Plaukts
-Name[mr]=कप्पा
-Name[nb]=Hylle
-Name[nds]=Boord
-Name[nl]=Rek
-Name[nn]=Hylle
-Name[pa]=ਸੈਲਫ਼
-Name[pl]=Półka
-Name[pt]=Concha
-Name[pt_BR]=Estante
-Name[ro]=Poliță
-Name[ru]=Полка
-Name[sk]=Polica
-Name[sl]=Polica
-Name[sr]=полица
-Name[[email protected]]=полица
-Name[[email protected]]=polica
-Name[[email protected]]=polica
-Name[sv]=Lägg undan
-Name[tr]=Raf
-Name[ug]=كىتاب تەكچىسى
-Name[uk]=Полиця
-Name[x-test]=xxShelfxx
-Name[zh_CN]=书架
-Name[zh_TW]=書架
-
-Comment=
-
-Type=Service
-
-X-Plasma-DropMimeTypes=text/x-lancelotpart,inode/directory
-
-X-KDE-ServiceTypes=Plasma/Applet
-X-KDE-Library=plasma_applet_lancelot_part
-X-KDE-PluginInfo-Author=Ivan Čukić
-X-KDE-PluginInfo-Email=ivan.cukic(at)kde.org
-X-KDE-PluginInfo-Name=lancelot_part
-X-KDE-PluginInfo-Version=1.5
-X-KDE-PluginInfo-Website=http://lancelot.fomentgroup.org/
-X-KDE-PluginInfo-Category=Miscellaneous
-X-KDE-PluginInfo-Depends=
-X-KDE-PluginInfo-License=GPL
-X-KDE-PluginInfo-EnabledByDefault=true
-X-Plasma-Requires-FileDialog=Unused
-X-Plasma-Requires-LaunchApp=Required
diff --git a/applets/lancelot/themes/Androbit/CMakeLists.txt b/applets/lancelot/themes/Androbit/CMakeLists.txt
deleted file mode 100644
index e0d8f6b..0000000
--- a/applets/lancelot/themes/Androbit/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FILE(GLOB lancelot_svgs *.svgz)
-install( FILES ${lancelot_svgs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/Androbit/lancelot/ )
-
-FILE(GLOB lancelot_configs *.config)
-install( FILES ${lancelot_configs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/Androbit/lancelot/ )
-
diff --git a/applets/lancelot/themes/Androbit/action-list-view-headers.svgz b/applets/lancelot/themes/Androbit/action-list-view-headers.svgz
deleted file mode 100644
index c4d2535..0000000
--- a/applets/lancelot/themes/Androbit/action-list-view-headers.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/category-triangle.svgz b/applets/lancelot/themes/Androbit/category-triangle.svgz
deleted file mode 100644
index a78d9b0..0000000
--- a/applets/lancelot/themes/Androbit/category-triangle.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/inner-background.svgz b/applets/lancelot/themes/Androbit/inner-background.svgz
deleted file mode 100644
index 47efd65..0000000
--- a/applets/lancelot/themes/Androbit/inner-background.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/lancelot-context-extender.svgz b/applets/lancelot/themes/Androbit/lancelot-context-extender.svgz
deleted file mode 100644
index e25e7e7..0000000
--- a/applets/lancelot/themes/Androbit/lancelot-context-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/lancelot-context.svgz b/applets/lancelot/themes/Androbit/lancelot-context.svgz
deleted file mode 100644
index 2f62e97..0000000
--- a/applets/lancelot/themes/Androbit/lancelot-context.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/passageway-view-buttons-extender.svgz b/applets/lancelot/themes/Androbit/passageway-view-buttons-extender.svgz
deleted file mode 100644
index 06af7b9..0000000
--- a/applets/lancelot/themes/Androbit/passageway-view-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/passageway-view-buttons.svgz b/applets/lancelot/themes/Androbit/passageway-view-buttons.svgz
deleted file mode 100644
index 64a845c..0000000
--- a/applets/lancelot/themes/Androbit/passageway-view-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/passageway-view-inactivebuttons.svgz b/applets/lancelot/themes/Androbit/passageway-view-inactivebuttons.svgz
deleted file mode 100644
index eeb1cba..0000000
--- a/applets/lancelot/themes/Androbit/passageway-view-inactivebuttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/passageway-view-spacer.svgz b/applets/lancelot/themes/Androbit/passageway-view-spacer.svgz
deleted file mode 100644
index acf1ba9..0000000
--- a/applets/lancelot/themes/Androbit/passageway-view-spacer.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/section-buttons.svgz b/applets/lancelot/themes/Androbit/section-buttons.svgz
deleted file mode 100644
index 675e8c6..0000000
--- a/applets/lancelot/themes/Androbit/section-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/system-buttons-extender.svgz b/applets/lancelot/themes/Androbit/system-buttons-extender.svgz
deleted file mode 100644
index 918d070..0000000
--- a/applets/lancelot/themes/Androbit/system-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/system-buttons.svgz b/applets/lancelot/themes/Androbit/system-buttons.svgz
deleted file mode 100644
index 10ed48e..0000000
--- a/applets/lancelot/themes/Androbit/system-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Androbit/theme.config b/applets/lancelot/themes/Androbit/theme.config
deleted file mode 100644
index d31bda3..0000000
--- a/applets/lancelot/themes/Androbit/theme.config
+++ /dev/null
@@ -1,157 +0,0 @@
-[Group-Default]
-background.type=none
-background.color.normal=0,0,0
-background.color.active=255,255,255
-background.color.disabled=0,0,0,125
-foreground.color.normal=0,0,0
-foreground.color.active=255,255,255
-foreground.color.disabled=0,0,0,125
-
-# generic groups
-[Group-BasicWidget] # del
-parent=Default
-
-[Group-ExtenderButton]
-parent=Default
-
-[Group-ExtenderButton-Extender] # del
-parent=Default
-
-[Group-Panel]
-background.type=none
-
-[Group-Panel-Title]
-parent=Default
-
-[Group-ActionListView] # deprecated
-parent=Default
-
-[Group-ActionListView-Items] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=none
-
-[Group-ActionListView-Items-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-ItemsLeft] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsRight] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsLeft-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-ItemsRight-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-CategoriesPass] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=none
-
-[Group-ActionListView-CategoriesPass-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-Categories] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/action-list-view-headers
-
-[Group-PassagewayView-Button]
-foreground.color.disabled=200,200,200
-foreground.color.active=255,255,255
-foreground.color.normal=200,200,200
-background.type=svg
-background.svg=lancelot/passageway-view-buttons
-
-[Group-PassagewayView-Button-Extender]
-background.type=svg
-background.svg=lancelot/passageway-view-buttons-extender
-
-[Group-PassagewayView-Spacer]
-foreground.color.disabled=0,0,0
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/passageway-view-spacer
-
-[Group-PassagewayView-InactiveButton]
-foreground.color.normal=200,200,200
-foreground.color.active=200,200,200
-foreground.color.disabled=0,0,0
-background.type=svg
-background.svg=lancelot/passageway-view-inactivebuttons
-
-[Group-InnerPanel-InactiveButton]
-parent=PassagewayView-InactiveButton
-
-# application groups
-[Group-SystemButtons] # del
-foreground.color.normal=150,150,150
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-LancelotContext] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SystemButtons-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-LancelotContext-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SectionButtons] # del
-foreground.color.normal=255,255,255
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/section-buttons
-
-[Group-SectionButtons-Extender] # del
-background.type=none
-
-[Group-MainPanel] # del
-background.type=svg
-background.svg=lancelot/main-panel
-
-[Group-RootPanel] # del
-background.type=svg
-#background.svg=lancelot/main-background
-background.svg=dialogs/background
-
-[Group-InnerPanel] # del
-background.type=svg
-background.svg=lancelot/inner-background
-
-[Group-PassagewayView] # del
-parent=InnerPanel
-
-[Group-InnerPanel-Button] # del
-parent=PassagewayView-Button
-
-[Group-InnerPanel-Button-Extender] # del
-parent=PassagewayView-Button-Extender
-
-[Group-PopupList-Items]
-parent=ActionListView-Items
-
-[Group-PopupList-Categories]
-parent=ActionListView-Categories
-
-[Group-PopupList-CategoriesPass]
-parent=ActionListView-CategoriesPass
-
-[Group-PopupList-CategoriesPass-Extender]
-parent=ActionListView-CategoriesPass-Extender
-
-[Group-PopupList-Categories-Extender]
-parent=ActionListView-Categories-Extender
-
diff --git a/applets/lancelot/themes/Aya/CMakeLists.txt b/applets/lancelot/themes/Aya/CMakeLists.txt
deleted file mode 100644
index 61d3159..0000000
--- a/applets/lancelot/themes/Aya/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FILE(GLOB lancelot_svgs *.svgz)
-install( FILES ${lancelot_svgs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/Aya/lancelot/ )
-
-FILE(GLOB lancelot_configs *.config)
-install( FILES ${lancelot_configs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/Aya/lancelot/ )
-
diff --git a/applets/lancelot/themes/Aya/action-list-view-headers.svgz b/applets/lancelot/themes/Aya/action-list-view-headers.svgz
deleted file mode 100644
index 183bca7..0000000
--- a/applets/lancelot/themes/Aya/action-list-view-headers.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/category-triangle.svgz b/applets/lancelot/themes/Aya/category-triangle.svgz
deleted file mode 100644
index 0258d0c..0000000
--- a/applets/lancelot/themes/Aya/category-triangle.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/inner-background.svgz b/applets/lancelot/themes/Aya/inner-background.svgz
deleted file mode 100644
index ad96736..0000000
--- a/applets/lancelot/themes/Aya/inner-background.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/passageway-view-buttons-extender.svgz b/applets/lancelot/themes/Aya/passageway-view-buttons-extender.svgz
deleted file mode 100644
index f9afba6..0000000
--- a/applets/lancelot/themes/Aya/passageway-view-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/passageway-view-buttons.svgz b/applets/lancelot/themes/Aya/passageway-view-buttons.svgz
deleted file mode 100644
index 7bbbcda..0000000
--- a/applets/lancelot/themes/Aya/passageway-view-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/passageway-view-inactivebuttons.svgz b/applets/lancelot/themes/Aya/passageway-view-inactivebuttons.svgz
deleted file mode 100644
index 8f60f90..0000000
--- a/applets/lancelot/themes/Aya/passageway-view-inactivebuttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/passageway-view-spacer.svgz b/applets/lancelot/themes/Aya/passageway-view-spacer.svgz
deleted file mode 100644
index cea8d7a..0000000
--- a/applets/lancelot/themes/Aya/passageway-view-spacer.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/section-buttons.svgz b/applets/lancelot/themes/Aya/section-buttons.svgz
deleted file mode 100644
index 85a7dbb..0000000
--- a/applets/lancelot/themes/Aya/section-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/system-buttons-extender.svgz b/applets/lancelot/themes/Aya/system-buttons-extender.svgz
deleted file mode 100644
index 0c28c5e..0000000
--- a/applets/lancelot/themes/Aya/system-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/system-buttons.svgz b/applets/lancelot/themes/Aya/system-buttons.svgz
deleted file mode 100644
index dfd6890..0000000
--- a/applets/lancelot/themes/Aya/system-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Aya/theme.config b/applets/lancelot/themes/Aya/theme.config
deleted file mode 100644
index 4baa49f..0000000
--- a/applets/lancelot/themes/Aya/theme.config
+++ /dev/null
@@ -1,152 +0,0 @@
-[Group-Default]
-background.type=none
-background.color.normal=0,0,0
-background.color.active=255,255,255
-background.color.disabled=0,0,0,125
-foreground.color.normal=0,0,0
-foreground.color.active=255,255,255
-foreground.color.disabled=0,0,0,125
-
-# generic groups
-[Group-BasicWidget] # del
-parent=Default
-
-[Group-ExtenderButton]
-parent=Default
-
-[Group-ExtenderButton-Extender] # del
-parent=Default
-
-[Group-Panel]
-background.type=none
-
-[Group-Panel-Title]
-parent=Default
-
-[Group-ActionListView] # deprecated
-parent=Default
-
-[Group-ActionListView-Items] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=none
-
-[Group-ActionListView-Items-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-ItemsLeft] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsRight] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsLeft-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-ItemsRight-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-CategoriesPass] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=none
-
-[Group-ActionListView-CategoriesPass-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-Categories] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/action-list-view-headers
-
-[Group-PassagewayView-Button]
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-foreground.color.normal=0,0,128
-background.type=svg
-background.svg=lancelot/passageway-view-buttons
-
-[Group-PassagewayView-Button-Extender]
-background.type=svg
-background.svg=lancelot/passageway-view-buttons-extender
-
-[Group-PassagewayView-Spacer]
-foreground.color.disabled=0,0,0
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/passageway-view-spacer
-
-[Group-PassagewayView-InactiveButton]
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/passageway-view-inactivebuttons
-
-[Group-InnerPanel-InactiveButton]
-parent=PassagewayView-InactiveButton
-
-# application groups
-[Group-SystemButtons] # del
-foreground.color.normal=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-LancelotContext] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SystemButtons-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-LancelotContext-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-SectionButtons] # del
-foreground.color.normal=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/section-buttons
-
-[Group-SectionButtons-Extender] # del
-background.type=none
-
-[Group-MainPanel] # del
-background.type=svg
-background.svg=lancelot/main-panel
-
-[Group-RootPanel] # del
-background.type=svg
-# background.svg=lancelot/main-background
-background.svg=dialogs/background
-
-[Group-InnerPanel] # del
-background.type=svg
-background.svg=lancelot/inner-background
-
-[Group-PassagewayView] # del
-parent=InnerPanel
-
-[Group-InnerPanel-Button] # del
-parent=PassagewayView-Button
-
-[Group-InnerPanel-Button-Extender] # del
-parent=PassagewayView-Button-Extender
-
-[Group-PopupList-Items]
-parent=ActionListView-Items
-
-[Group-PopupList-Categories]
-parent=ActionListView-Categories
-
-[Group-PopupList-CategoriesPass]
-parent=ActionListView-CategoriesPass
-
-[Group-PopupList-CategoriesPass-Extender]
-parent=ActionListView-CategoriesPass-Extender
-
-[Group-PopupList-Categories-Extender]
-parent=ActionListView-Categories-Extender
diff --git a/applets/lancelot/themes/CMakeLists.txt b/applets/lancelot/themes/CMakeLists.txt
deleted file mode 100644
index d3184db..0000000
--- a/applets/lancelot/themes/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-add_subdirectory(oxygen)
-add_subdirectory(slim-glow)
-add_subdirectory(Aya)
-add_subdirectory(air)
-
-add_subdirectory(Tibanna)
-add_subdirectory(Produkt)
-add_subdirectory(Androbit)
-
diff --git a/applets/lancelot/themes/Produkt/CMakeLists.txt b/applets/lancelot/themes/Produkt/CMakeLists.txt
deleted file mode 100644
index 8a84dd0..0000000
--- a/applets/lancelot/themes/Produkt/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FILE(GLOB lancelot_svgs *.svgz)
-install( FILES ${lancelot_svgs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/Produkt/lancelot/ )
-
-FILE(GLOB lancelot_configs *.config)
-install( FILES ${lancelot_configs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/Produkt/lancelot/ )
-
diff --git a/applets/lancelot/themes/Produkt/action-list-view-headers.svgz b/applets/lancelot/themes/Produkt/action-list-view-headers.svgz
deleted file mode 100644
index c4d2535..0000000
--- a/applets/lancelot/themes/Produkt/action-list-view-headers.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/category-triangle.svgz b/applets/lancelot/themes/Produkt/category-triangle.svgz
deleted file mode 100644
index a78d9b0..0000000
--- a/applets/lancelot/themes/Produkt/category-triangle.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/inner-background.svgz b/applets/lancelot/themes/Produkt/inner-background.svgz
deleted file mode 100644
index 47efd65..0000000
--- a/applets/lancelot/themes/Produkt/inner-background.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/lancelot-context-extender.svgz b/applets/lancelot/themes/Produkt/lancelot-context-extender.svgz
deleted file mode 100644
index e25e7e7..0000000
--- a/applets/lancelot/themes/Produkt/lancelot-context-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/lancelot-context.svgz b/applets/lancelot/themes/Produkt/lancelot-context.svgz
deleted file mode 100644
index 2f62e97..0000000
--- a/applets/lancelot/themes/Produkt/lancelot-context.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/passageway-view-buttons-extender.svgz b/applets/lancelot/themes/Produkt/passageway-view-buttons-extender.svgz
deleted file mode 100644
index 06af7b9..0000000
--- a/applets/lancelot/themes/Produkt/passageway-view-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/passageway-view-buttons.svgz b/applets/lancelot/themes/Produkt/passageway-view-buttons.svgz
deleted file mode 100644
index 64a845c..0000000
--- a/applets/lancelot/themes/Produkt/passageway-view-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/passageway-view-inactivebuttons.svgz b/applets/lancelot/themes/Produkt/passageway-view-inactivebuttons.svgz
deleted file mode 100644
index eeb1cba..0000000
--- a/applets/lancelot/themes/Produkt/passageway-view-inactivebuttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/passageway-view-spacer.svgz b/applets/lancelot/themes/Produkt/passageway-view-spacer.svgz
deleted file mode 100644
index acf1ba9..0000000
--- a/applets/lancelot/themes/Produkt/passageway-view-spacer.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/section-buttons.svgz b/applets/lancelot/themes/Produkt/section-buttons.svgz
deleted file mode 100644
index 675e8c6..0000000
--- a/applets/lancelot/themes/Produkt/section-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/system-buttons-extender.svgz b/applets/lancelot/themes/Produkt/system-buttons-extender.svgz
deleted file mode 100644
index 918d070..0000000
--- a/applets/lancelot/themes/Produkt/system-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/system-buttons.svgz b/applets/lancelot/themes/Produkt/system-buttons.svgz
deleted file mode 100644
index 10ed48e..0000000
--- a/applets/lancelot/themes/Produkt/system-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Produkt/theme.config b/applets/lancelot/themes/Produkt/theme.config
deleted file mode 100644
index d31bda3..0000000
--- a/applets/lancelot/themes/Produkt/theme.config
+++ /dev/null
@@ -1,157 +0,0 @@
-[Group-Default]
-background.type=none
-background.color.normal=0,0,0
-background.color.active=255,255,255
-background.color.disabled=0,0,0,125
-foreground.color.normal=0,0,0
-foreground.color.active=255,255,255
-foreground.color.disabled=0,0,0,125
-
-# generic groups
-[Group-BasicWidget] # del
-parent=Default
-
-[Group-ExtenderButton]
-parent=Default
-
-[Group-ExtenderButton-Extender] # del
-parent=Default
-
-[Group-Panel]
-background.type=none
-
-[Group-Panel-Title]
-parent=Default
-
-[Group-ActionListView] # deprecated
-parent=Default
-
-[Group-ActionListView-Items] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=none
-
-[Group-ActionListView-Items-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-ItemsLeft] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsRight] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsLeft-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-ItemsRight-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-CategoriesPass] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=none
-
-[Group-ActionListView-CategoriesPass-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-Categories] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/action-list-view-headers
-
-[Group-PassagewayView-Button]
-foreground.color.disabled=200,200,200
-foreground.color.active=255,255,255
-foreground.color.normal=200,200,200
-background.type=svg
-background.svg=lancelot/passageway-view-buttons
-
-[Group-PassagewayView-Button-Extender]
-background.type=svg
-background.svg=lancelot/passageway-view-buttons-extender
-
-[Group-PassagewayView-Spacer]
-foreground.color.disabled=0,0,0
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/passageway-view-spacer
-
-[Group-PassagewayView-InactiveButton]
-foreground.color.normal=200,200,200
-foreground.color.active=200,200,200
-foreground.color.disabled=0,0,0
-background.type=svg
-background.svg=lancelot/passageway-view-inactivebuttons
-
-[Group-InnerPanel-InactiveButton]
-parent=PassagewayView-InactiveButton
-
-# application groups
-[Group-SystemButtons] # del
-foreground.color.normal=150,150,150
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-LancelotContext] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SystemButtons-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-LancelotContext-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SectionButtons] # del
-foreground.color.normal=255,255,255
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/section-buttons
-
-[Group-SectionButtons-Extender] # del
-background.type=none
-
-[Group-MainPanel] # del
-background.type=svg
-background.svg=lancelot/main-panel
-
-[Group-RootPanel] # del
-background.type=svg
-#background.svg=lancelot/main-background
-background.svg=dialogs/background
-
-[Group-InnerPanel] # del
-background.type=svg
-background.svg=lancelot/inner-background
-
-[Group-PassagewayView] # del
-parent=InnerPanel
-
-[Group-InnerPanel-Button] # del
-parent=PassagewayView-Button
-
-[Group-InnerPanel-Button-Extender] # del
-parent=PassagewayView-Button-Extender
-
-[Group-PopupList-Items]
-parent=ActionListView-Items
-
-[Group-PopupList-Categories]
-parent=ActionListView-Categories
-
-[Group-PopupList-CategoriesPass]
-parent=ActionListView-CategoriesPass
-
-[Group-PopupList-CategoriesPass-Extender]
-parent=ActionListView-CategoriesPass-Extender
-
-[Group-PopupList-Categories-Extender]
-parent=ActionListView-Categories-Extender
-
diff --git a/applets/lancelot/themes/Tibanna/CMakeLists.txt b/applets/lancelot/themes/Tibanna/CMakeLists.txt
deleted file mode 100644
index 64c662a..0000000
--- a/applets/lancelot/themes/Tibanna/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FILE(GLOB lancelot_svgs *.svgz)
-install( FILES ${lancelot_svgs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/Tibanna/lancelot/ )
-
-FILE(GLOB lancelot_configs *.config)
-install( FILES ${lancelot_configs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/Tibanna/lancelot/ )
-
diff --git a/applets/lancelot/themes/Tibanna/action-list-view-drop-indicator.svgz b/applets/lancelot/themes/Tibanna/action-list-view-drop-indicator.svgz
deleted file mode 100644
index ea9e623..0000000
--- a/applets/lancelot/themes/Tibanna/action-list-view-drop-indicator.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/action-list-view-headers.svgz b/applets/lancelot/themes/Tibanna/action-list-view-headers.svgz
deleted file mode 100644
index e9b17ca..0000000
--- a/applets/lancelot/themes/Tibanna/action-list-view-headers.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/category-triangle.svgz b/applets/lancelot/themes/Tibanna/category-triangle.svgz
deleted file mode 100644
index 0258d0c..0000000
--- a/applets/lancelot/themes/Tibanna/category-triangle.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/extender-button-icon.svgz b/applets/lancelot/themes/Tibanna/extender-button-icon.svgz
deleted file mode 100644
index cee673c..0000000
--- a/applets/lancelot/themes/Tibanna/extender-button-icon.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/inner-background.svgz b/applets/lancelot/themes/Tibanna/inner-background.svgz
deleted file mode 100644
index 8e1a051..0000000
--- a/applets/lancelot/themes/Tibanna/inner-background.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/passageway-view-buttons-extender.svgz b/applets/lancelot/themes/Tibanna/passageway-view-buttons-extender.svgz
deleted file mode 100644
index f9afba6..0000000
--- a/applets/lancelot/themes/Tibanna/passageway-view-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/passageway-view-buttons.svgz b/applets/lancelot/themes/Tibanna/passageway-view-buttons.svgz
deleted file mode 100644
index 9140534..0000000
--- a/applets/lancelot/themes/Tibanna/passageway-view-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/passageway-view-inactivebuttons.svgz b/applets/lancelot/themes/Tibanna/passageway-view-inactivebuttons.svgz
deleted file mode 100644
index 6114e27..0000000
--- a/applets/lancelot/themes/Tibanna/passageway-view-inactivebuttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/passageway-view-spacer.svgz b/applets/lancelot/themes/Tibanna/passageway-view-spacer.svgz
deleted file mode 100644
index cea8d7a..0000000
--- a/applets/lancelot/themes/Tibanna/passageway-view-spacer.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/section-buttons.svgz b/applets/lancelot/themes/Tibanna/section-buttons.svgz
deleted file mode 100644
index 85a7dbb..0000000
--- a/applets/lancelot/themes/Tibanna/section-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/system-buttons-extender.svgz b/applets/lancelot/themes/Tibanna/system-buttons-extender.svgz
deleted file mode 100644
index 0c28c5e..0000000
--- a/applets/lancelot/themes/Tibanna/system-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/system-buttons.svgz b/applets/lancelot/themes/Tibanna/system-buttons.svgz
deleted file mode 100644
index dfd6890..0000000
--- a/applets/lancelot/themes/Tibanna/system-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/Tibanna/theme.config b/applets/lancelot/themes/Tibanna/theme.config
deleted file mode 100644
index 00afedb..0000000
--- a/applets/lancelot/themes/Tibanna/theme.config
+++ /dev/null
@@ -1,159 +0,0 @@
-[Group-Default]
-background.type=none
-background.color.normal=0,0,0
-background.color.active=255,255,255
-background.color.disabled=0,0,0,125
-foreground.color.normal=0,0,0
-foreground.color.active=255,255,255
-foreground.color.disabled=0,0,0,125
-
-# generic groups
-[Group-BasicWidget] # del
-parent=Default
-
-[Group-ExtenderButton]
-parent=Default
-
-[Group-ExtenderButton-Extender] # del
-parent=Default
-
-[Group-Panel]
-background.type=none
-
-[Group-Panel-Title]
-parent=Default
-
-[Group-ActionListView] # deprecated
-parent=Default
-
-[Group-ActionListView-Items] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=none
-
-[Group-ActionListView-Items-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-ItemsLeft] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsRight] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsLeft-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-ItemsRight-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-CategoriesPass] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=none
-
-[Group-ActionListView-CategoriesPass-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-Categories] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/action-list-view-headers
-
-[Group-PassagewayView-Button]
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-foreground.color.normal=0,0,128
-background.type=svg
-background.svg=lancelot/passageway-view-buttons
-
-[Group-PassagewayView-Button-Extender]
-background.type=svg
-background.svg=lancelot/passageway-view-buttons-extender
-
-[Group-PassagewayView-Spacer]
-foreground.color.disabled=0,0,0
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/passageway-view-spacer
-
-[Group-PassagewayView-InactiveButton]
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/passageway-view-inactivebuttons
-
-[Group-InnerPanel-InactiveButton]
-parent=PassagewayView-InactiveButton
-
-# application groups
-[Group-SystemButtons] # del
-foreground.color.normal=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/system-buttons
-foreground.blurtextshadow=1
-
-[Group-LancelotContext] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SystemButtons-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-LancelotContext-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-SectionButtons] # del
-foreground.color.normal=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/section-buttons
-foreground.blurtextshadow=1
-
-[Group-SectionButtons-Extender] # del
-background.type=none
-
-[Group-MainPanel] # del
-background.type=svg
-background.svg=lancelot/main-panel
-
-[Group-RootPanel] # del
-background.type=svg
-# background.svg=lancelot/main-background
-background.svg=dialogs/background
-
-[Group-InnerPanel] # del
-background.type=svg
-#background.svg=widgets/tooltip
-#background.color.normal=255,255,255,128
-#background.color.active=255,255,255,128
-background.svg=lancelot/inner-background
-
-[Group-PassagewayView] # del
-parent=InnerPanel
-
-[Group-InnerPanel-Button] # del
-parent=PassagewayView-Button
-
-[Group-InnerPanel-Button-Extender] # del
-parent=PassagewayView-Button-Extender
-
-[Group-PopupList-Items]
-parent=ActionListView-Items
-
-[Group-PopupList-Categories]
-parent=ActionListView-Categories
-
-[Group-PopupList-CategoriesPass]
-parent=ActionListView-CategoriesPass
-
-[Group-PopupList-CategoriesPass-Extender]
-parent=ActionListView-CategoriesPass-Extender
-
-[Group-PopupList-Categories-Extender]
-parent=ActionListView-Categories-Extender
-
-
diff --git a/applets/lancelot/themes/air/CMakeLists.txt b/applets/lancelot/themes/air/CMakeLists.txt
deleted file mode 100644
index 19e0164..0000000
--- a/applets/lancelot/themes/air/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FILE(GLOB lancelot_svgs *.svgz)
-install( FILES ${lancelot_svgs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/default/lancelot/ )
-
-FILE(GLOB lancelot_configs *.config)
-install( FILES ${lancelot_configs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/default/lancelot/ )
-
diff --git a/applets/lancelot/themes/air/action-list-view-drop-indicator.svgz b/applets/lancelot/themes/air/action-list-view-drop-indicator.svgz
deleted file mode 100644
index ea9e623..0000000
--- a/applets/lancelot/themes/air/action-list-view-drop-indicator.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/action-list-view-headers.svgz b/applets/lancelot/themes/air/action-list-view-headers.svgz
deleted file mode 100644
index e9b17ca..0000000
--- a/applets/lancelot/themes/air/action-list-view-headers.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/category-triangle.svgz b/applets/lancelot/themes/air/category-triangle.svgz
deleted file mode 100644
index 0258d0c..0000000
--- a/applets/lancelot/themes/air/category-triangle.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/extender-button-icon.svgz b/applets/lancelot/themes/air/extender-button-icon.svgz
deleted file mode 100644
index cee673c..0000000
--- a/applets/lancelot/themes/air/extender-button-icon.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/inner-background.svgz b/applets/lancelot/themes/air/inner-background.svgz
deleted file mode 100644
index 8e1a051..0000000
--- a/applets/lancelot/themes/air/inner-background.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/passageway-view-buttons-extender.svgz b/applets/lancelot/themes/air/passageway-view-buttons-extender.svgz
deleted file mode 100644
index f9afba6..0000000
--- a/applets/lancelot/themes/air/passageway-view-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/passageway-view-buttons.svgz b/applets/lancelot/themes/air/passageway-view-buttons.svgz
deleted file mode 100644
index 9140534..0000000
--- a/applets/lancelot/themes/air/passageway-view-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/passageway-view-inactivebuttons.svgz b/applets/lancelot/themes/air/passageway-view-inactivebuttons.svgz
deleted file mode 100644
index 6114e27..0000000
--- a/applets/lancelot/themes/air/passageway-view-inactivebuttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/passageway-view-spacer.svgz b/applets/lancelot/themes/air/passageway-view-spacer.svgz
deleted file mode 100644
index cea8d7a..0000000
--- a/applets/lancelot/themes/air/passageway-view-spacer.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/section-buttons.svgz b/applets/lancelot/themes/air/section-buttons.svgz
deleted file mode 100644
index 85a7dbb..0000000
--- a/applets/lancelot/themes/air/section-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/system-buttons-extender.svgz b/applets/lancelot/themes/air/system-buttons-extender.svgz
deleted file mode 100644
index 0c28c5e..0000000
--- a/applets/lancelot/themes/air/system-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/system-buttons.svgz b/applets/lancelot/themes/air/system-buttons.svgz
deleted file mode 100644
index dfd6890..0000000
--- a/applets/lancelot/themes/air/system-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/air/theme.config b/applets/lancelot/themes/air/theme.config
deleted file mode 100644
index 00afedb..0000000
--- a/applets/lancelot/themes/air/theme.config
+++ /dev/null
@@ -1,159 +0,0 @@
-[Group-Default]
-background.type=none
-background.color.normal=0,0,0
-background.color.active=255,255,255
-background.color.disabled=0,0,0,125
-foreground.color.normal=0,0,0
-foreground.color.active=255,255,255
-foreground.color.disabled=0,0,0,125
-
-# generic groups
-[Group-BasicWidget] # del
-parent=Default
-
-[Group-ExtenderButton]
-parent=Default
-
-[Group-ExtenderButton-Extender] # del
-parent=Default
-
-[Group-Panel]
-background.type=none
-
-[Group-Panel-Title]
-parent=Default
-
-[Group-ActionListView] # deprecated
-parent=Default
-
-[Group-ActionListView-Items] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=none
-
-[Group-ActionListView-Items-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-ItemsLeft] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsRight] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsLeft-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-ItemsRight-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-CategoriesPass] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=none
-
-[Group-ActionListView-CategoriesPass-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-Categories] # deprecated
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/action-list-view-headers
-
-[Group-PassagewayView-Button]
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-foreground.color.normal=0,0,128
-background.type=svg
-background.svg=lancelot/passageway-view-buttons
-
-[Group-PassagewayView-Button-Extender]
-background.type=svg
-background.svg=lancelot/passageway-view-buttons-extender
-
-[Group-PassagewayView-Spacer]
-foreground.color.disabled=0,0,0
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/passageway-view-spacer
-
-[Group-PassagewayView-InactiveButton]
-foreground.color.disabled=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/passageway-view-inactivebuttons
-
-[Group-InnerPanel-InactiveButton]
-parent=PassagewayView-InactiveButton
-
-# application groups
-[Group-SystemButtons] # del
-foreground.color.normal=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/system-buttons
-foreground.blurtextshadow=1
-
-[Group-LancelotContext] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SystemButtons-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-LancelotContext-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-SectionButtons] # del
-foreground.color.normal=0,0,0
-foreground.color.active=0,0,0
-background.type=svg
-background.svg=lancelot/section-buttons
-foreground.blurtextshadow=1
-
-[Group-SectionButtons-Extender] # del
-background.type=none
-
-[Group-MainPanel] # del
-background.type=svg
-background.svg=lancelot/main-panel
-
-[Group-RootPanel] # del
-background.type=svg
-# background.svg=lancelot/main-background
-background.svg=dialogs/background
-
-[Group-InnerPanel] # del
-background.type=svg
-#background.svg=widgets/tooltip
-#background.color.normal=255,255,255,128
-#background.color.active=255,255,255,128
-background.svg=lancelot/inner-background
-
-[Group-PassagewayView] # del
-parent=InnerPanel
-
-[Group-InnerPanel-Button] # del
-parent=PassagewayView-Button
-
-[Group-InnerPanel-Button-Extender] # del
-parent=PassagewayView-Button-Extender
-
-[Group-PopupList-Items]
-parent=ActionListView-Items
-
-[Group-PopupList-Categories]
-parent=ActionListView-Categories
-
-[Group-PopupList-CategoriesPass]
-parent=ActionListView-CategoriesPass
-
-[Group-PopupList-CategoriesPass-Extender]
-parent=ActionListView-CategoriesPass-Extender
-
-[Group-PopupList-Categories-Extender]
-parent=ActionListView-Categories-Extender
-
-
diff --git a/applets/lancelot/themes/oxygen/CMakeLists.txt b/applets/lancelot/themes/oxygen/CMakeLists.txt
deleted file mode 100644
index a9906df..0000000
--- a/applets/lancelot/themes/oxygen/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FILE(GLOB lancelot_svgs *.svgz)
-install( FILES ${lancelot_svgs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/oxygen/lancelot/ )
-
-FILE(GLOB lancelot_configs *.config)
-install( FILES ${lancelot_configs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/oxygen/lancelot/ )
-
diff --git a/applets/lancelot/themes/oxygen/action-list-view-headers.svgz b/applets/lancelot/themes/oxygen/action-list-view-headers.svgz
deleted file mode 100644
index c4d2535..0000000
--- a/applets/lancelot/themes/oxygen/action-list-view-headers.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/category-triangle.svgz b/applets/lancelot/themes/oxygen/category-triangle.svgz
deleted file mode 100644
index a78d9b0..0000000
--- a/applets/lancelot/themes/oxygen/category-triangle.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/inner-background.svgz b/applets/lancelot/themes/oxygen/inner-background.svgz
deleted file mode 100644
index 47efd65..0000000
--- a/applets/lancelot/themes/oxygen/inner-background.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/lancelot-context-extender.svgz b/applets/lancelot/themes/oxygen/lancelot-context-extender.svgz
deleted file mode 100644
index e25e7e7..0000000
--- a/applets/lancelot/themes/oxygen/lancelot-context-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/lancelot-context.svgz b/applets/lancelot/themes/oxygen/lancelot-context.svgz
deleted file mode 100644
index 2f62e97..0000000
--- a/applets/lancelot/themes/oxygen/lancelot-context.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/passageway-view-buttons-extender.svgz b/applets/lancelot/themes/oxygen/passageway-view-buttons-extender.svgz
deleted file mode 100644
index 06af7b9..0000000
--- a/applets/lancelot/themes/oxygen/passageway-view-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/passageway-view-buttons.svgz b/applets/lancelot/themes/oxygen/passageway-view-buttons.svgz
deleted file mode 100644
index 64a845c..0000000
--- a/applets/lancelot/themes/oxygen/passageway-view-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/passageway-view-inactivebuttons.svgz b/applets/lancelot/themes/oxygen/passageway-view-inactivebuttons.svgz
deleted file mode 100644
index eeb1cba..0000000
--- a/applets/lancelot/themes/oxygen/passageway-view-inactivebuttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/passageway-view-spacer.svgz b/applets/lancelot/themes/oxygen/passageway-view-spacer.svgz
deleted file mode 100644
index acf1ba9..0000000
--- a/applets/lancelot/themes/oxygen/passageway-view-spacer.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/section-buttons.svgz b/applets/lancelot/themes/oxygen/section-buttons.svgz
deleted file mode 100644
index 675e8c6..0000000
--- a/applets/lancelot/themes/oxygen/section-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/system-buttons-extender.svgz b/applets/lancelot/themes/oxygen/system-buttons-extender.svgz
deleted file mode 100644
index 918d070..0000000
--- a/applets/lancelot/themes/oxygen/system-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/system-buttons.svgz b/applets/lancelot/themes/oxygen/system-buttons.svgz
deleted file mode 100644
index 4349ae9..0000000
--- a/applets/lancelot/themes/oxygen/system-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/oxygen/theme.config b/applets/lancelot/themes/oxygen/theme.config
deleted file mode 100644
index 31bafaf..0000000
--- a/applets/lancelot/themes/oxygen/theme.config
+++ /dev/null
@@ -1,156 +0,0 @@
-[Group-Default]
-background.type=none
-background.color.normal=0,0,0
-background.color.active=255,255,255
-background.color.disabled=0,0,0,125
-foreground.color.normal=0,0,0
-foreground.color.active=255,255,255
-foreground.color.disabled=0,0,0,125
-
-# generic groups
-[Group-BasicWidget] # del
-parent=Default
-
-[Group-ExtenderButton]
-parent=Default
-
-[Group-ExtenderButton-Extender] # del
-parent=Default
-
-[Group-Panel]
-background.type=none
-
-[Group-Panel-Title]
-parent=Default
-
-[Group-ActionListView] # deprecated
-parent=Default
-
-[Group-ActionListView-Items] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=none
-
-[Group-ActionListView-Items-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-ItemsLeft] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsRight] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsLeft-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-ItemsRight-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-CategoriesPass] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=none
-
-[Group-ActionListView-CategoriesPass-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-Categories] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/action-list-view-headers
-
-[Group-PassagewayView-Button]
-foreground.color.disabled=200,200,200
-foreground.color.active=255,255,255
-foreground.color.normal=200,200,200
-background.type=svg
-background.svg=lancelot/passageway-view-buttons
-
-[Group-PassagewayView-Button-Extender]
-background.type=svg
-background.svg=lancelot/passageway-view-buttons-extender
-
-[Group-PassagewayView-Spacer]
-foreground.color.disabled=0,0,0
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/passageway-view-spacer
-
-[Group-PassagewayView-InactiveButton]
-foreground.color.normal=200,200,200
-foreground.color.active=200,200,200
-foreground.color.disabled=0,0,0
-background.type=svg
-background.svg=lancelot/passageway-view-inactivebuttons
-
-[Group-InnerPanel-InactiveButton]
-parent=PassagewayView-InactiveButton
-
-# application groups
-[Group-SystemButtons] # del
-foreground.color.normal=150,150,150
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-LancelotContext] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SystemButtons-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-LancelotContext-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-SectionButtons] # del
-foreground.color.normal=255,255,255
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/section-buttons
-
-[Group-SectionButtons-Extender] # del
-background.type=none
-
-[Group-MainPanel] # del
-background.type=svg
-background.svg=lancelot/main-panel
-
-[Group-RootPanel] # del
-background.type=svg
-#background.svg=lancelot/main-background
-background.svg=dialogs/background
-
-[Group-InnerPanel] # del
-background.type=svg
-background.svg=lancelot/inner-background
-
-[Group-PassagewayView] # del
-parent=InnerPanel
-
-[Group-InnerPanel-Button] # del
-parent=PassagewayView-Button
-
-[Group-InnerPanel-Button-Extender] # del
-parent=PassagewayView-Button-Extender
-
-[Group-PopupList-Items]
-parent=ActionListView-Items
-
-[Group-PopupList-Categories]
-parent=ActionListView-Categories
-
-[Group-PopupList-CategoriesPass]
-parent=ActionListView-CategoriesPass
-
-[Group-PopupList-CategoriesPass-Extender]
-parent=ActionListView-CategoriesPass-Extender
-
-[Group-PopupList-Categories-Extender]
-parent=ActionListView-Categories-Extender
diff --git a/applets/lancelot/themes/slim-glow/CMakeLists.txt b/applets/lancelot/themes/slim-glow/CMakeLists.txt
deleted file mode 100644
index fe9e9b6..0000000
--- a/applets/lancelot/themes/slim-glow/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FILE(GLOB lancelot_svgs *.svgz)
-install( FILES ${lancelot_svgs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/slim-glow/lancelot/ )
-
-FILE(GLOB lancelot_configs *.config)
-install( FILES ${lancelot_configs} DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/slim-glow/lancelot/ )
-
diff --git a/applets/lancelot/themes/slim-glow/action-list-view-headers.svgz b/applets/lancelot/themes/slim-glow/action-list-view-headers.svgz
deleted file mode 100644
index c4d2535..0000000
--- a/applets/lancelot/themes/slim-glow/action-list-view-headers.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/category-triangle.svgz b/applets/lancelot/themes/slim-glow/category-triangle.svgz
deleted file mode 100644
index a78d9b0..0000000
--- a/applets/lancelot/themes/slim-glow/category-triangle.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/inner-background.svgz b/applets/lancelot/themes/slim-glow/inner-background.svgz
deleted file mode 100644
index 47efd65..0000000
--- a/applets/lancelot/themes/slim-glow/inner-background.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/lancelot-context-extender.svgz b/applets/lancelot/themes/slim-glow/lancelot-context-extender.svgz
deleted file mode 100644
index e25e7e7..0000000
--- a/applets/lancelot/themes/slim-glow/lancelot-context-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/lancelot-context.svgz b/applets/lancelot/themes/slim-glow/lancelot-context.svgz
deleted file mode 100644
index 2f62e97..0000000
--- a/applets/lancelot/themes/slim-glow/lancelot-context.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/passageway-view-buttons-extender.svgz b/applets/lancelot/themes/slim-glow/passageway-view-buttons-extender.svgz
deleted file mode 100644
index 06af7b9..0000000
--- a/applets/lancelot/themes/slim-glow/passageway-view-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/passageway-view-buttons.svgz b/applets/lancelot/themes/slim-glow/passageway-view-buttons.svgz
deleted file mode 100644
index 64a845c..0000000
--- a/applets/lancelot/themes/slim-glow/passageway-view-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/passageway-view-inactivebuttons.svgz b/applets/lancelot/themes/slim-glow/passageway-view-inactivebuttons.svgz
deleted file mode 100644
index eeb1cba..0000000
--- a/applets/lancelot/themes/slim-glow/passageway-view-inactivebuttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/passageway-view-spacer.svgz b/applets/lancelot/themes/slim-glow/passageway-view-spacer.svgz
deleted file mode 100644
index acf1ba9..0000000
--- a/applets/lancelot/themes/slim-glow/passageway-view-spacer.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/section-buttons.svgz b/applets/lancelot/themes/slim-glow/section-buttons.svgz
deleted file mode 100644
index 675e8c6..0000000
--- a/applets/lancelot/themes/slim-glow/section-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/system-buttons-extender.svgz b/applets/lancelot/themes/slim-glow/system-buttons-extender.svgz
deleted file mode 100644
index 918d070..0000000
--- a/applets/lancelot/themes/slim-glow/system-buttons-extender.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/system-buttons.svgz b/applets/lancelot/themes/slim-glow/system-buttons.svgz
deleted file mode 100644
index 10ed48e..0000000
--- a/applets/lancelot/themes/slim-glow/system-buttons.svgz
+++ /dev/null
Binary files differ
diff --git a/applets/lancelot/themes/slim-glow/theme.config b/applets/lancelot/themes/slim-glow/theme.config
deleted file mode 100644
index d31bda3..0000000
--- a/applets/lancelot/themes/slim-glow/theme.config
+++ /dev/null
@@ -1,157 +0,0 @@
-[Group-Default]
-background.type=none
-background.color.normal=0,0,0
-background.color.active=255,255,255
-background.color.disabled=0,0,0,125
-foreground.color.normal=0,0,0
-foreground.color.active=255,255,255
-foreground.color.disabled=0,0,0,125
-
-# generic groups
-[Group-BasicWidget] # del
-parent=Default
-
-[Group-ExtenderButton]
-parent=Default
-
-[Group-ExtenderButton-Extender] # del
-parent=Default
-
-[Group-Panel]
-background.type=none
-
-[Group-Panel-Title]
-parent=Default
-
-[Group-ActionListView] # deprecated
-parent=Default
-
-[Group-ActionListView-Items] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=none
-
-[Group-ActionListView-Items-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-ItemsLeft] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsRight] # deprecated
-parent=ActionListView-Items
-
-[Group-ActionListView-ItemsLeft-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-ItemsRight-Extender] # deprecated
-parent=ActionListView-Items-Extender
-
-[Group-ActionListView-CategoriesPass] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=none
-
-[Group-ActionListView-CategoriesPass-Extender] # deprecated
-background.type=none
-
-[Group-ActionListView-Categories] # deprecated
-foreground.color.disabled=200,200,200
-foreground.color.normal=200,200,200
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/action-list-view-headers
-
-[Group-PassagewayView-Button]
-foreground.color.disabled=200,200,200
-foreground.color.active=255,255,255
-foreground.color.normal=200,200,200
-background.type=svg
-background.svg=lancelot/passageway-view-buttons
-
-[Group-PassagewayView-Button-Extender]
-background.type=svg
-background.svg=lancelot/passageway-view-buttons-extender
-
-[Group-PassagewayView-Spacer]
-foreground.color.disabled=0,0,0
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/passageway-view-spacer
-
-[Group-PassagewayView-InactiveButton]
-foreground.color.normal=200,200,200
-foreground.color.active=200,200,200
-foreground.color.disabled=0,0,0
-background.type=svg
-background.svg=lancelot/passageway-view-inactivebuttons
-
-[Group-InnerPanel-InactiveButton]
-parent=PassagewayView-InactiveButton
-
-# application groups
-[Group-SystemButtons] # del
-foreground.color.normal=150,150,150
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-LancelotContext] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SystemButtons-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons-extender
-
-[Group-LancelotContext-Extender] # del
-background.type=svg
-background.svg=lancelot/system-buttons
-
-[Group-SectionButtons] # del
-foreground.color.normal=255,255,255
-foreground.color.active=255,255,255
-background.type=svg
-background.svg=lancelot/section-buttons
-
-[Group-SectionButtons-Extender] # del
-background.type=none
-
-[Group-MainPanel] # del
-background.type=svg
-background.svg=lancelot/main-panel
-
-[Group-RootPanel] # del
-background.type=svg
-#background.svg=lancelot/main-background
-background.svg=dialogs/background
-
-[Group-InnerPanel] # del
-background.type=svg
-background.svg=lancelot/inner-background
-
-[Group-PassagewayView] # del
-parent=InnerPanel
-
-[Group-InnerPanel-Button] # del
-parent=PassagewayView-Button
-
-[Group-InnerPanel-Button-Extender] # del
-parent=PassagewayView-Button-Extender
-
-[Group-PopupList-Items]
-parent=ActionListView-Items
-
-[Group-PopupList-Categories]
-parent=ActionListView-Categories
-
-[Group-PopupList-CategoriesPass]
-parent=ActionListView-CategoriesPass
-
-[Group-PopupList-CategoriesPass-Extender]
-parent=ActionListView-CategoriesPass-Extender
-
-[Group-PopupList-Categories-Extender]
-parent=ActionListView-Categories-Extender
-
diff --git a/applets/lancelot/tools/CMakeLists.txt b/applets/lancelot/tools/CMakeLists.txt
deleted file mode 100644
index b39c825..0000000
--- a/applets/lancelot/tools/CMakeLists.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-add_subdirectory(puck)
-
diff --git a/applets/lancelot/tools/puck/CMakeLists.txt b/applets/lancelot/tools/puck/CMakeLists.txt
deleted file mode 100644
index 94052ed..0000000
--- a/applets/lancelot/tools/puck/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-set (KDE_PLASMA_UIC_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/puck.py
- CACHE STRING "Puck Location")
-
diff --git a/applets/lancelot/tools/puck/Modules/AbstractItem.py b/applets/lancelot/tools/puck/Modules/AbstractItem.py
deleted file mode 100644
index e845873..0000000
--- a/applets/lancelot/tools/puck/Modules/AbstractItem.py
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-from . import debug
-
-class AbstractItemHandler:
- __node = 0
-
- def __init__(self):
- self.__node = 0
-
- """ @returns the full C++ name for this class """
- def name(self):
- return "Abstract"
-
- """ @returns the XML namespace for this class (for use in the PUCK XML) """
- def namespace(self):
- return self.name().replace(":", "_")
-
- def setNode(self, node):
- self.__node = node
-
- def node(self):
- return self.__node
-
- """ @returns the C++ inlcudes for needed by the class """
- def include(self):
- return "/* " + self.attribute("type") + " declaration - not implemented */"
-
- """ @returns the C++ variable declaration """
- def declaration(self):
- return self.attribute("type") + " * " + self.attribute("name") + ";"
-
- """ @returns the C++ variable initialization """
- def initialization(self):
- return self._construction() + ";";
-
- def _construction(self):
- return self.attribute("name") + " = new " + self.attribute("type") + "()"
-
- """ @returns the C++ object setup (properties etc.) """
- def setup(self):
- return ""
-
- """ @returns whether the active node has the specified attribute """
- def hasAttribute(self, attrName):
- debug.message(self.name(), " wants attribute " + self.namespace() + ":" + attrName)
- return \
- self.node().hasAttribute(self.name() + ":" + attrName) or \
- self.node().hasAttribute(attrName)
-
- """ @returns the value of the active node's attribute """
- def attribute(self, attrName):
- debug.message(self.name(), " retrieves attribute " + self.namespace() + ":" + attrName)
-
- result = None
-
- if self.node().hasAttribute(self.name() + ":" + attrName):
- result = self.node().getAttribute(self.name() + ":" + attrName)
-
- elif self.node().hasAttribute(attrName):
- result = self.node().getAttribute(attrName)
-
- if not result == None:
- debug.message(" return ", result)
- else:
- debug.message(" return ", " NONE ")
-
- return result
diff --git a/applets/lancelot/tools/puck/Modules/LayoutHandlerManager.py b/applets/lancelot/tools/puck/Modules/LayoutHandlerManager.py
deleted file mode 100644
index 20946a7..0000000
--- a/applets/lancelot/tools/puck/Modules/LayoutHandlerManager.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-
-__handlers = {};
-
-def handlers():
- return __handlers
-
-def handler(layoutName):
- if not __handlers.has_key(layoutName):
- print "WARNING: Layout has no handler ", layoutName, " USING DEFAULT HANDLER"
- return __handlers["Abstract"]
- return __handlers[layoutName]
-
-def addHandler(handler):
- __handlers[handler.name()] = handler
diff --git a/applets/lancelot/tools/puck/Modules/Layouts/AbstractLayout.py b/applets/lancelot/tools/puck/Modules/Layouts/AbstractLayout.py
deleted file mode 100644
index 0402017..0000000
--- a/applets/lancelot/tools/puck/Modules/Layouts/AbstractLayout.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from .. import LayoutHandlerManager
-from .. import AbstractItem
-
-class AbstractLayoutHandler(AbstractItem.AbstractItemHandler):
-
- def __init__(self):
- self.__node = 0
-
- def setup(self):
- setup = ""
-
- # if self.hasAttribute("margin"):
- # setup += self.attribute("name") + "->setMargin(" + self.attribute("margin") + ");\n";
-
- # if self.hasAttribute("spacing"):
- # setup += self.attribute("name") + "->setSpacing(" + self.attribute("spacing") + ");\n";
- return setup
-
-LayoutHandlerManager.addHandler(AbstractLayoutHandler())
diff --git a/applets/lancelot/tools/puck/Modules/Layouts/BorderLayout.py b/applets/lancelot/tools/puck/Modules/Layouts/BorderLayout.py
deleted file mode 100644
index c5528e8..0000000
--- a/applets/lancelot/tools/puck/Modules/Layouts/BorderLayout.py
+++ /dev/null
@@ -1,37 +0,0 @@
-from .. import LayoutHandlerManager
-from . import AbstractLayout
-
-import xml
-
-class BorderLayoutHandler(AbstractLayout.AbstractLayoutHandler):
- def name(self):
- return "Plasma::BorderLayout"
-
- def include(self):
- return "#include <plasma/layouts/borderlayout.h>"
-
- def setup(self):
- setup = AbstractLayout.AbstractLayoutHandler.setup(self)
-
- if self.hasAttribute("leftSize"):
- setup += self.attribute("name") + \
- "->setSize(" + self.attribute("leftSize") + ", Plasma::LeftPositioned);\n";
- if self.hasAttribute("rightSize"):
- setup += self.attribute("name") + \
- "->setSize(" + self.attribute("rightSize") + ", Plasma::RightPositioned);\n";
- if self.hasAttribute("topSize"):
- setup += self.attribute("name") + \
- "->setSize(" + self.attribute("topSize") + ", Plasma::TopPositioned);\n";
- if self.hasAttribute("bottomSize"):
- setup += self.attribute("name") + \
- "->setSize(" + self.attribute("bottomSize") + ", Plasma::BottomPositioned);\n";
-
- for child in self.node().childNodes:
- if not child.nodeType == xml.dom.Node.ELEMENT_NODE or not child.prefix == "item":
- continue
-
- setup += self.attribute("name") + "->addItem(" + child.getAttribute("name") + "," \
- + " Plasma::" + child.getAttribute(self.namespace() + ":position") + "Positioned);\n"
- return setup
-
-LayoutHandlerManager.addHandler(BorderLayoutHandler())
diff --git a/applets/lancelot/tools/puck/Modules/Layouts/CardLayout.py b/applets/lancelot/tools/puck/Modules/Layouts/CardLayout.py
deleted file mode 100644
index 179c903..0000000
--- a/applets/lancelot/tools/puck/Modules/Layouts/CardLayout.py
+++ /dev/null
@@ -1,28 +0,0 @@
-from .. import LayoutHandlerManager
-from . import AbstractLayout
-
-import xml
-
-class CardLayoutHandler(AbstractLayout.AbstractLayoutHandler):
- def name(self):
- return 'Lancelot::CardLayout'
-
- def include(self):
- return '#include <lancelot/layouts/CardLayout.h>'
-
- def setup(self):
- setup = AbstractLayout.AbstractLayoutHandler.setup(self)
-
- for child in self.node().childNodes:
- if not child.nodeType == xml.dom.Node.ELEMENT_NODE or not child.prefix == 'item':
- continue
-
- line = self.attribute('name') + '->addItem(${ITEM_NAME}${CARD_NAME});';
- if child.hasAttribute(self.namespace() + ':cardName'):
- setup += line \
- .replace('${ITEM_NAME}', child.getAttribute('name')) \
- .replace('${CARD_NAME}', ((', "' + child.getAttribute(self.namespace() + ':cardName') + '"') \
- if child.hasAttribute(self.namespace() + ':cardName') else ''))
- return setup
-
-LayoutHandlerManager.addHandler(CardLayoutHandler())
diff --git a/applets/lancelot/tools/puck/Modules/Layouts/FlipLayout.py b/applets/lancelot/tools/puck/Modules/Layouts/FlipLayout.py
deleted file mode 100644
index a260243..0000000
--- a/applets/lancelot/tools/puck/Modules/Layouts/FlipLayout.py
+++ /dev/null
@@ -1,30 +0,0 @@
-from .. import LayoutHandlerManager
-from . import AbstractLayout
-
-class FlipLayoutHandler(AbstractLayout.AbstractLayoutHandler):
- def name(self):
- return "Lancelot::FlipLayout"
-
- def include(self):
- h = LayoutHandlerManager.handler(self.attribute("realLayout"))
- h.setNode(self.node())
-
- return h.include() + "\n#include <lancelot/layouts/FlipLayout.h>"
-
- def declaration(self):
- return "Lancelot::FlipLayout < " + self.attribute("realLayout") + " > * " + self.attribute("name") + ";"
-
- def initialization(self):
- return self.attribute("name") + " = new Lancelot::FlipLayout < " + self.attribute("realLayout") + " > ();"
-
- def setup(self):
- setup = ""
- if self.attribute("flip"):
- setup += self.attribute("name") + "->setFlip(" + self.attribute("flip") + ");\n";
-
- h = LayoutHandlerManager.handler(self.attribute("realLayout"))
- h.setNode(self.node())
-
- return setup + h.setup()
-
-LayoutHandlerManager.addHandler(FlipLayoutHandler())
diff --git a/applets/lancelot/tools/puck/Modules/Layouts/Lancelot__FullBorderLayout.py b/applets/lancelot/tools/puck/Modules/Layouts/Lancelot__FullBorderLayout.py
deleted file mode 100644
index 772f8f2..0000000
--- a/applets/lancelot/tools/puck/Modules/Layouts/Lancelot__FullBorderLayout.py
+++ /dev/null
@@ -1,37 +0,0 @@
-from .. import LayoutHandlerManager
-from . import AbstractLayout
-
-import xml
-
-class FullBorderLayoutHandler(AbstractLayout.AbstractLayoutHandler):
- def name(self):
- return "Lancelot::FullBorderLayout"
-
- def include(self):
- return "#include <lancelot/layouts/FullBorderLayout.h>"
-
- def setup(self):
- setup = AbstractLayout.AbstractLayoutHandler.setup(self)
-
- if self.hasAttribute("leftSize"):
- setup += self.attribute("name") + \
- "->setSize(" + self.attribute("leftSize") + ", Lancelot::FullBorderLayout::LeftBorder);\n";
- if self.hasAttribute("rightSize"):
- setup += self.attribute("name") + \
- "->setSize(" + self.attribute("rightSize") + ", Lancelot::FullBorderLayout::RightBorder);\n";
- if self.hasAttribute("topSize"):
- setup += self.attribute("name") + \
- "->setSize(" + self.attribute("topSize") + ", Lancelot::FullBorderLayout::TopBorder);\n";
- if self.hasAttribute("bottomSize"):
- setup += self.attribute("name") + \
- "->setSize(" + self.attribute("bottomSize") + ", Lancelot::FullBorderLayout::BottomBorder);\n";
-
- for child in self.node().childNodes:
- if not child.nodeType == xml.dom.Node.ELEMENT_NODE or not child.prefix == "item":
- continue
-
- setup += self.attribute("name") + "->addItem(" + child.getAttribute("name") + "," \
- + " Lancelot::FullBorderLayout::" + child.getAttribute(self.namespace() + ":position") + ");\n"
- return setup
-
-LayoutHandlerManager.addHandler(FullBorderLayoutHandler())
diff --git a/applets/lancelot/tools/puck/Modules/Layouts/NodeLayout.py b/applets/lancelot/tools/puck/Modules/Layouts/NodeLayout.py
deleted file mode 100644
index e9d4f9f..0000000
--- a/applets/lancelot/tools/puck/Modules/Layouts/NodeLayout.py
+++ /dev/null
@@ -1,26 +0,0 @@
-from .. import LayoutHandlerManager
-from . import AbstractLayout
-
-import xml
-
-class NodeLayoutHandler(AbstractLayout.AbstractLayoutHandler):
- def name(self):
- return "Lancelot::NodeLayout"
-
- def include(self):
- return "#include <lancelot/layouts/NodeLayout.h>"
-
- def setup(self):
- setup = AbstractLayout.AbstractLayoutHandler.setup(self)
-
- for child in self.node().childNodes:
- if not child.nodeType == xml.dom.Node.ELEMENT_NODE or not child.prefix == "item":
- continue
-
- setup += self.attribute("name") + "->addItem(" + child.getAttribute("name") + ",\n" \
- + " Lancelot::NodeLayout::NodeCoordinate(" + child.getAttribute(self.namespace() + ":topLeft") + "),\n" \
- + " Lancelot::NodeLayout::NodeCoordinate(" + child.getAttribute(self.namespace() + ":bottomRight") + ")\n" \
- + ");\n"
- return setup
-
-LayoutHandlerManager.addHandler(NodeLayoutHandler())
diff --git a/applets/lancelot/tools/puck/Modules/Layouts/__init__.py b/applets/lancelot/tools/puck/Modules/Layouts/__init__.py
deleted file mode 100644
index 6827ca3..0000000
--- a/applets/lancelot/tools/puck/Modules/Layouts/__init__.py
+++ /dev/null
@@ -1,8 +0,0 @@
-__all__ = [
- "NodeLayout",
- "FlipLayout",
- "BorderLayout",
- "AbstractLayout",
- "CardLayout",
- "Lancelot__FullBorderLayout"
- ]
diff --git a/applets/lancelot/tools/puck/Modules/WidgetHandlerManager.py b/applets/lancelot/tools/puck/Modules/WidgetHandlerManager.py
deleted file mode 100644
index ce96837..0000000
--- a/applets/lancelot/tools/puck/Modules/WidgetHandlerManager.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-
-__handlers = {};
-__roots = []
-
-def handlers():
- return __handlers
-
-def handler(widgetName):
- if not __handlers.has_key(widgetName):
- print "WARNING: Widget has no handler ", widgetName, " USING DEFAULT HANDLER"
- return __handlers["QGraphicsWidget"]
- return __handlers[widgetName]
-
-def addHandler(handler):
- __handlers[handler.name()] = handler
-
-def pushRoot(root):
- __roots.append(root)
-
-def popRoot():
- __roots.pop()
-
-def root():
- return __roots[-1]
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ActionListView.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ActionListView.py
deleted file mode 100644
index be9916c..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ActionListView.py
+++ /dev/null
@@ -1,39 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__CustomListView
-
-class Lancelot__ActionListViewHandler(Lancelot__CustomListView.Lancelot__CustomListViewHandler):
- def name(self):
- return "Lancelot::ActionListView"
-
- def include(self):
- includes = "lancelot/widgets/ActionListView.h".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__CustomListView.Lancelot__CustomListViewHandler.setup(self)
-
-
- if self.hasAttribute('extenderPosition'):
- setup += self.attribute('name') \
- + '->setExtenderPosition(' + self.attribute('extenderPosition') + ');'
-
- if self.hasAttribute('categoriesActivable'):
- setup += self.attribute('name') \
- + '->setCategoriesActivable(' + self.attribute('categoriesActivable') + ');'
-
- if self.hasAttribute('showsExtendersOutside'):
- setup += self.attribute('name') \
- + '->setShowsExtendersOutside(' + self.attribute('showsExtendersOutside') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__ActionListViewHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__BasicWidget.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__BasicWidget.py
deleted file mode 100644
index 9abacf1..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__BasicWidget.py
+++ /dev/null
@@ -1,47 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__Widget
-
-class Lancelot__BasicWidgetHandler(Lancelot__Widget.Lancelot__WidgetHandler):
- def name(self):
- return "Lancelot::BasicWidget"
-
- def include(self):
- includes = "lancelot/widgets/BasicWidget.h QIcon QSize QString".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__Widget.Lancelot__WidgetHandler.setup(self)
-
-
- if self.hasAttribute('icon'):
- setup += self.attribute('name') \
- + '->setIcon(KIcon("' + self.attribute('icon') + '"));'
-
- if self.hasAttribute('iconSize'):
- setup += self.attribute('name') \
- + '->setIconSize(QSize(' + self.attribute('iconSize') + '));'
-
- if self.hasAttribute('title'):
- setup += self.attribute('name') \
- + '->setTitle(i18n("' + self.attribute('title') + '"));'
-
- if self.hasAttribute('description'):
- setup += self.attribute('name') \
- + '->setDescription(i18n("' + self.attribute('description') + '"));'
-
- if self.hasAttribute('innerOrientation'):
- setup += self.attribute('name') \
- + '->setInnerOrientation(Qt::' + self.attribute('innerOrientation') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__BasicWidgetHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__CustomList.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__CustomList.py
deleted file mode 100644
index 9cac1e1..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__CustomList.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import QGraphicsWidget
-
-class Lancelot__CustomListHandler(QGraphicsWidget.QGraphicsWidgetHandler):
- def name(self):
- return "Lancelot::CustomList"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = QGraphicsWidget.QGraphicsWidgetHandler.setup(self)
-
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__CustomListHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__CustomListView.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__CustomListView.py
deleted file mode 100644
index f2f03f0..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__CustomListView.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__ScrollPane
-
-class Lancelot__CustomListViewHandler(Lancelot__ScrollPane.Lancelot__ScrollPaneHandler):
- def name(self):
- return "Lancelot::CustomListView"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__ScrollPane.Lancelot__ScrollPaneHandler.setup(self)
-
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__CustomListViewHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ExtenderButton.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ExtenderButton.py
deleted file mode 100644
index f4ddd63..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ExtenderButton.py
+++ /dev/null
@@ -1,43 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__BasicWidget
-
-class Lancelot__ExtenderButtonHandler(Lancelot__BasicWidget.Lancelot__BasicWidgetHandler):
- def name(self):
- return "Lancelot::ExtenderButton"
-
- def include(self):
- includes = "lancelot/widgets/ExtenderButton.h lancelot/lancelot.h".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__BasicWidget.Lancelot__BasicWidgetHandler.setup(self)
-
-
- if self.hasAttribute('extenderPosition'):
- setup += self.attribute('name') \
- + '->setExtenderPosition(' + self.attribute('extenderPosition') + ');'
-
- if self.hasAttribute('activationMethod'):
- setup += self.attribute('name') \
- + '->setActivationMethod(' + self.attribute('activationMethod') + ');'
-
- if self.hasAttribute('checkable'):
- setup += self.attribute('name') \
- + '->setCheckable(' + self.attribute('checkable') + ');'
-
- if self.hasAttribute('checked'):
- setup += self.attribute('name') \
- + '->setChecked(' + self.attribute('checked') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__ExtenderButtonHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__HoverIcon.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__HoverIcon.py
deleted file mode 100644
index 9558742..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__HoverIcon.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Plasma__IconWidget
-
-class Lancelot__HoverIconHandler(Plasma__IconWidget.Plasma__IconWidgetHandler):
- def name(self):
- return "Lancelot::HoverIcon"
-
- def include(self):
- includes = "lancelot/widgets/HoverIcon.h plasma/widgets/icon.h".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Plasma__IconWidget.Plasma__IconWidgetHandler.setup(self)
-
-
- if self.hasAttribute('activationMethod'):
- setup += self.attribute('name') \
- + '->setActivationMethod(' + self.attribute('activationMethod') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__HoverIconHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__Panel.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__Panel.py
deleted file mode 100644
index 63d15c3..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__Panel.py
+++ /dev/null
@@ -1,54 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__Widget
-
-## Changed area begin: ##
-import xml
-## Changed area end. ##
-
-class Lancelot__PanelHandler(Lancelot__Widget.Lancelot__WidgetHandler):
- def name(self):
- return "Lancelot::Panel"
-
- def include(self):
- includes = "lancelot/widgets/Panel.h QIcon QSize QString".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__Widget.Lancelot__WidgetHandler.setup(self)
-
-
- if self.hasAttribute('icon'):
- setup += self.attribute('name') \
- + '->setIcon(KIcon("' + self.attribute('icon') + '"));'
-
- if self.hasAttribute('iconSize'):
- setup += self.attribute('name') \
- + '->setIconSize(QSize(' + self.attribute('iconSize') + '));'
-
- if self.hasAttribute('title'):
- setup += self.attribute('name') \
- + '->setTitle(i18n("' + self.attribute('title') + '"));'
-
- if self.hasAttribute('showingTitle'):
- setup += self.attribute('name') \
- + '->setShowingTitle(' + self.attribute('showingTitle') + ');'
- ## Changed area begin: ##
- for child in self.node().childNodes:
- if not child.nodeType == xml.dom.Node.ELEMENT_NODE or not child.prefix == "item":
- continue
-
- setup += self.attribute("name") + "->setLayoutItem(" + child.getAttribute("name") + ");\n"
- ## Changed area end. ##
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__PanelHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PassagewayView.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PassagewayView.py
deleted file mode 100644
index 41f828b..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PassagewayView.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__Panel
-
-class Lancelot__PassagewayViewHandler(Lancelot__Panel.Lancelot__PanelHandler):
- def name(self):
- return "Lancelot::PassagewayView"
-
- def include(self):
- includes = "lancelot/widgets/PassagewayView.h".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__Panel.Lancelot__PanelHandler.setup(self)
-
-
- if self.hasAttribute('activationMethod'):
- setup += self.attribute('name') \
- + '->setActivationMethod(' + self.attribute('activationMethod') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__PassagewayViewHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PopupList.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PopupList.py
deleted file mode 100644
index 1c7558c..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PopupList.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Plasma__Dialog
-
-class Lancelot__PopupListHandler(Plasma__Dialog.Plasma__DialogHandler):
- def name(self):
- return "Lancelot::PopupList"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Plasma__Dialog.Plasma__DialogHandler.setup(self)
-
-
- if self.hasAttribute('closeTimeout'):
- setup += self.attribute('name') \
- + '->setCloseTimeout(' + self.attribute('closeTimeout') + ');'
-
- if self.hasAttribute('sublevelOpenAction'):
- setup += self.attribute('name') \
- + '->setSublevelOpenAction(' + self.attribute('sublevelOpenAction') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__PopupListHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PopupMenu.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PopupMenu.py
deleted file mode 100644
index 821dc31..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__PopupMenu.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import PopupList
-
-class Lancelot__PopupMenuHandler(PopupList.PopupListHandler):
- def name(self):
- return "Lancelot::PopupMenu"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = PopupList.PopupListHandler.setup(self)
-
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__PopupMenuHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ResizeBordersPanel.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ResizeBordersPanel.py
deleted file mode 100644
index 8cf4402..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ResizeBordersPanel.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__Panel
-
-class Lancelot__ResizeBordersPanelHandler(Lancelot__Panel.Lancelot__PanelHandler):
- def name(self):
- return "Lancelot::ResizeBordersPanel"
-
- def include(self):
- includes = "lancelot/widgets/ResizeBordersPanel.h".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__Panel.Lancelot__PanelHandler.setup(self)
-
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__ResizeBordersPanelHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollBar.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollBar.py
deleted file mode 100644
index 1b53435..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollBar.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Plasma__ScrollBar
-
-class Lancelot__ScrollBarHandler(Plasma__ScrollBar.Plasma__ScrollBarHandler):
- def name(self):
- return "Lancelot::ScrollBar"
-
- def include(self):
- includes = "lancelot/widgets/ScrollBar.h lancelot/lancelot.h".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Plasma__ScrollBar.Plasma__ScrollBarHandler.setup(self)
-
-
- if self.hasAttribute('activationMethod'):
- setup += self.attribute('name') \
- + '->setActivationMethod(' + self.attribute('activationMethod') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__ScrollBarHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollButton.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollButton.py
deleted file mode 100644
index 82412d9..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollButton.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__BasicWidget
-
-class Lancelot__ScrollButtonHandler(Lancelot__BasicWidget.Lancelot__BasicWidgetHandler):
- def name(self):
- return "Lancelot::ScrollButton"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__BasicWidget.Lancelot__BasicWidgetHandler.setup(self)
-
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__ScrollButtonHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollPane.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollPane.py
deleted file mode 100644
index 3dc8921..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__ScrollPane.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import Lancelot__Widget
-
-class Lancelot__ScrollPaneHandler(Lancelot__Widget.Lancelot__WidgetHandler):
- def name(self):
- return "Lancelot::ScrollPane"
-
- def include(self):
- includes = "lancelot/widgets/ScrollPane.h".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = Lancelot__Widget.Lancelot__WidgetHandler.setup(self)
-
-
- if self.hasAttribute('scrollPosition'):
- setup += self.attribute('name') \
- + '->setScrollPosition(QPointF(' + self.attribute('scrollPosition') + '));'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__ScrollPaneHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__TabBar.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__TabBar.py
deleted file mode 100644
index ace7aba..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__TabBar.py
+++ /dev/null
@@ -1,43 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import QGraphicsWidget
-
-class Lancelot__TabBarHandler(QGraphicsWidget.QGraphicsWidgetHandler):
- def name(self):
- return "Lancelot::TabBar"
-
- def include(self):
- includes = "lancelot/widgets/TabBar.h QIcon QSize QString".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = QGraphicsWidget.QGraphicsWidgetHandler.setup(self)
-
-
- if self.hasAttribute('orientation'):
- setup += self.attribute('name') \
- + '->setOrientation(Qt::' + self.attribute('orientation') + ');'
-
- if self.hasAttribute('textDirection'):
- setup += self.attribute('name') \
- + '->setTextDirection(Qt::' + self.attribute('textDirection') + ');'
-
- if self.hasAttribute('currentTab'):
- setup += self.attribute('name') \
- + '->setCurrentTab("' + self.attribute('currentTab') + '");'
-
- if self.hasAttribute('tabIconSize'):
- setup += self.attribute('name') \
- + '->setTabIconSize(QSize(' + self.attribute('tabIconSize') + '));'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__TabBarHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__Widget.py b/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__Widget.py
deleted file mode 100644
index 69ffef4..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Lancelot__Widget.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import QGraphicsWidget
-
-class Lancelot__WidgetHandler(QGraphicsWidget.QGraphicsWidgetHandler):
- def name(self):
- return "Lancelot::Widget"
-
- def include(self):
- includes = "lancelot/widgets/Widget.h QString".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = QGraphicsWidget.QGraphicsWidgetHandler.setup(self)
-
-
- if self.hasAttribute('group'):
- setup += self.attribute('name') \
- + '->setGroupByName("' + self.attribute('group') + '");'
-
- if self.hasAttribute('down'):
- setup += self.attribute('name') \
- + '->setDown(' + self.attribute('down') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Lancelot__WidgetHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/Plasma__ScrollBar.py b/applets/lancelot/tools/puck/Modules/Widgets/Plasma__ScrollBar.py
deleted file mode 100644
index 257b9d5..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/Plasma__ScrollBar.py
+++ /dev/null
@@ -1,39 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import QGraphicsProxyWidget
-
-class Plasma__ScrollBarHandler(QGraphicsProxyWidget.QGraphicsProxyWidgetHandler):
- def name(self):
- return "Plasma::ScrollBar"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = QGraphicsProxyWidget.QGraphicsProxyWidgetHandler.setup(self)
-
-
- if self.hasAttribute('singleStep'):
- setup += self.attribute('name') \
- + '->setSingleStep(' + self.attribute('singleStep') + ');'
-
- if self.hasAttribute('pageStep'):
- setup += self.attribute('name') \
- + '->setPageStep(' + self.attribute('pageStep') + ');'
-
- if self.hasAttribute('stylesheet'):
- setup += self.attribute('name') \
- + '->setStyleSheet("' + self.attribute('stylesheet') + '");'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(Plasma__ScrollBarHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsLayout.py b/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsLayout.py
deleted file mode 100644
index d249cb7..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsLayout.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import QGraphicsLayoutItem
-
-class QGraphicsLayoutHandler(QGraphicsLayoutItem.QGraphicsLayoutItemHandler):
- def name(self):
- return "QGraphicsLayout"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = QGraphicsLayoutItem.QGraphicsLayoutItemHandler.setup(self)
-
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(QGraphicsLayoutHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsLayoutItem.py b/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsLayoutItem.py
deleted file mode 100644
index 8c069fd..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsLayoutItem.py
+++ /dev/null
@@ -1,63 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-
-
-class QGraphicsLayoutItemHandler(AbstractItem.AbstractItemHandler):
- def name(self):
- return "QGraphicsLayoutItem"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = AbstractItem.AbstractItemHandler.setup(self)
-
-
- if self.hasAttribute('minimumSize'):
- setup += self.attribute('name') \
- + '->setMinimumSize(QSize(' + self.attribute('minimumSize') + '));'
-
- if self.hasAttribute('minimumWidth'):
- setup += self.attribute('name') \
- + '->setMinimumWidth(' + self.attribute('minimumWidth') + ');'
-
- if self.hasAttribute('minimumHeight'):
- setup += self.attribute('name') \
- + '->setMinimumHeight(' + self.attribute('minimumHeight') + ');'
-
- if self.hasAttribute('maximumSize'):
- setup += self.attribute('name') \
- + '->setMaximumSize(QSize(' + self.attribute('maximumSize') + '));'
-
- if self.hasAttribute('maximumWidth'):
- setup += self.attribute('name') \
- + '->setMaximumWidth(' + self.attribute('maximumWidth') + ');'
-
- if self.hasAttribute('maximumHeight'):
- setup += self.attribute('name') \
- + '->setMaximumHeight(' + self.attribute('maximumHeight') + ');'
-
- if self.hasAttribute('preferredSize'):
- setup += self.attribute('name') \
- + '->setPreferredSize(QSize(' + self.attribute('preferredSize') + '));'
-
- if self.hasAttribute('preferredWidth'):
- setup += self.attribute('name') \
- + '->setPreferredWidth(' + self.attribute('preferredWidth') + ');'
-
- if self.hasAttribute('preferredHeight'):
- setup += self.attribute('name') \
- + '->setPreferredHeight(' + self.attribute('preferredHeight') + ');'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(QGraphicsLayoutItemHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsProxyWidget.py b/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsProxyWidget.py
deleted file mode 100644
index 75ac7bc..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsProxyWidget.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import QGraphicsWidget
-
-class QGraphicsProxyWidgetHandler(QGraphicsWidget.QGraphicsWidgetHandler):
- def name(self):
- return "QGraphicsProxyWidget"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = QGraphicsWidget.QGraphicsWidgetHandler.setup(self)
-
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(QGraphicsProxyWidgetHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsWidget.py b/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsWidget.py
deleted file mode 100644
index 63bcbf8..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/QGraphicsWidget.py
+++ /dev/null
@@ -1,68 +0,0 @@
-## PUCK Generator: disable
-## This file is modified after running generator!
-
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-from . import QGraphicsLayoutItem
-
-class QGraphicsWidgetHandler(QGraphicsLayoutItem.QGraphicsLayoutItemHandler):
- def name(self):
- return "QGraphicsWidget"
-
- def include(self):
- includes = "".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
- ## Changed area begin: ##
- def initialization(self):
- init = AbstractItem.AbstractItemHandler.initialization(self)
- init += self.attribute("name") + "->setParentItem(" + WidgetHandlerManager.root() + ");"
- return init
- ## Changed area end. ##
-
- def setup(self):
- setup = QGraphicsLayoutItem.QGraphicsLayoutItemHandler.setup(self)
-
-
- if self.hasAttribute('palette'):
- setup += self.attribute('name') \
- + '->setPalette(QPalette(' + self.attribute('palette') + '));'
-
- if self.hasAttribute('font'):
- setup += self.attribute('name') \
- + '->setFont(QFont(' + self.attribute('font') + '));'
-
- if self.hasAttribute('size'):
- setup += self.attribute('name') \
- + '->resize(QSizeF(' + self.attribute('size') + '));'
-
- if self.hasAttribute('focusPolicy'):
- setup += self.attribute('name') \
- + '->setFocusPolicy(Qt::' + self.attribute('focusPolicy') + ');'
-
- if self.hasAttribute('enabled'):
- setup += self.attribute('name') \
- + '->setEnabled(' + self.attribute('enabled') + ');'
-
- if self.hasAttribute('visible'):
- setup += self.attribute('name') \
- + '->setVisible(' + self.attribute('visible') + ');'
-
- if self.hasAttribute('windowFlags'):
- setup += self.attribute('name') \
- + '->setWindowFlags(Qt::' + self.attribute('windowFlags') + ');'
-
- if self.hasAttribute('windowTitle'):
- setup += self.attribute('name') \
- + '->setWindowTitle("' + self.attribute('windowTitle') + '");'
-
-
- return setup;
-
-WidgetHandlerManager.addHandler(QGraphicsWidgetHandler())
-
-
diff --git a/applets/lancelot/tools/puck/Modules/Widgets/__init__.py b/applets/lancelot/tools/puck/Modules/Widgets/__init__.py
deleted file mode 100644
index 0888c38..0000000
--- a/applets/lancelot/tools/puck/Modules/Widgets/__init__.py
+++ /dev/null
@@ -1,16 +0,0 @@
-__all__ = [
- "Lancelot__ActionListView",
- "Lancelot__BasicWidget",
- "Lancelot__ExtenderButton",
- "Lancelot__Panel",
- "Lancelot__PassagewayView",
- "Lancelot__ResizeBordersPanel",
- "Lancelot__ScrollBar",
- "Lancelot__ScrollButton",
- "Lancelot__ScrollPane",
- "Lancelot__TabBar",
- "Lancelot__Widget",
- "QGraphicsLayoutItem",
- "QGraphicsLayout",
- "QGraphicsWidget"
-]
diff --git a/applets/lancelot/tools/puck/Modules/__init__.py b/applets/lancelot/tools/puck/Modules/__init__.py
deleted file mode 100644
index 8b13789..0000000
--- a/applets/lancelot/tools/puck/Modules/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/applets/lancelot/tools/puck/Modules/debug.py b/applets/lancelot/tools/puck/Modules/debug.py
deleted file mode 100644
index a1b7ffc..0000000
--- a/applets/lancelot/tools/puck/Modules/debug.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-import sys, traceback
-
-def message(msg, var):
- print >> sys.stdout, "-" * 10 + " : ", msg, " ", var
-
-def trace(msg):
- print msg, ' - Trace ', '-' * 60
- try:
- raise NameError, 'HiThere'
- except:
- traceback.print_exc(None, sys.stdout)
- traceback.print_stack()
- print '- End Trace ', '-' * 60
diff --git a/applets/lancelot/tools/puck/clean.sh b/applets/lancelot/tools/puck/clean.sh
deleted file mode 100755
index 415e624..0000000
--- a/applets/lancelot/tools/puck/clean.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-for f in `find -name '*.pyc'`; do rm $f; done
diff --git a/applets/lancelot/tools/puck/debug.sh b/applets/lancelot/tools/puck/debug.sh
deleted file mode 100755
index 7276ef0..0000000
--- a/applets/lancelot/tools/puck/debug.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-while (true); do cat /tmp/stdout; done
diff --git a/applets/lancelot/tools/puck/generator/generator.py b/applets/lancelot/tools/puck/generator/generator.py
deleted file mode 100755
index 5c932b9..0000000
--- a/applets/lancelot/tools/puck/generator/generator.py
+++ /dev/null
@@ -1,204 +0,0 @@
-#!/usr/bin/env python
-
-#
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-
-import sys
-import os
-import re
-
-# global variables
-namespace = ""
-className = ""
-parentClass = ""
-properties = []
-includes = []
-
-def parseFile(inputFile):
- global namespace
- global className
- global parentClass
- global properties
- global includes
-
- namespace = ""
- className = ""
- parentClass = ""
- properties = []
- includes = []
-
- reNamespace = re.compile("namespace\s+([^\s]+)")
- reClass = re.compile("class.*[\s]+([^\s]+)[\s]*:[\s]*public[\s]*([A-Za-z::]+)?|class.*[\s]+([^\s]+)[\s]*({|;|$)")
- reProperty = re.compile("Q_PROPERTY\s*\(\s*([^\s]+)\s+([^\s]+)\s+READ\s+([^\s]+)\s+WRITE\s+([^\s]+)\s*\)")
- reIncludes = re.compile("(\/\/\s*@puck\s*)?L_INCLUDE\s*\(\s*(.+)\s*\)")
- reExtra = re.compile(".*L_EXTRA\s*\(\s*(.+)\s*\)")
-
- data = open(inputFile).readlines()
-
- for line in data:
- line = line.strip()
-
- match = reNamespace.match(line)
- if match:
- namespace = match.group(1)
- continue
-
- match = reClass.match(line)
- if match:
- print "-------"
- if className != "":
- processClass()
-
- properties = []
- includes = ""
-
- print match.groups()
- if match.group(1) != None:
- className = match.group(1)
- parentClass = match.group(2)
- else:
- className = match.group(3)
- parentClass = ""
- print "Found class '" + className + "' inherits '" + parentClass + "'"
- reConstructor = re.compile("^" + className + "\((.*)\);")
- reConstructorBegin = re.compile(className)
- continue
-
- match = reProperty.match(line)
- if match:
- print "Found property ", match.groups()
- append = list(match.groups())
-
- match = reExtra.match(line)
- if match:
- append.append(match.group(1).strip())
-
- properties.append(append)
- # print properties
- continue
-
- match = reIncludes.match(line)
- if match:
- print "Debug ", match
- print "Found includes ", match.group(2)
- includes = match.group(2)
- print includes
- if className != "":
- processClass()
-
-def constructPythonName(fullClass):
- result = fullClass.replace("::", "__")
- return result.strip("_")
-
-def constructCPPName(fullClass):
- return fullClass.strip(":")
-
-def propertyValueExes(type):
- # Qt and Kde types
- if (type == "QString"):
- return "\"${VALUE}\""
- elif (type == "QString i18n"):
- return "i18n(\"${VALUE}\")"
- elif (type == "KIcon"):
- return "KIcon(\"${VALUE}\")"
- elif (type == "QIcon"):
- return "KIcon(\"${VALUE}\")"
-
- # Lancelot types
- elif (type == "ExtenderPosition"):
- return "Lancelot::${VALUE}Extender"
- elif (type == "ActivationMethod"):
- return "Lancelot::${VALUE}Activate"
-
- # Heuristics
- elif (type.find("::") != -1):
- position = type.find("::");
- return type[0:position] + "::${VALUE}"
- elif (type.startswith("Q")):
- return type + "(${VALUE})"
- else:
- return "${VALUE}"
-
-def processClass():
- global namespace
- global className
- global parentClass
- global properties
- global includes
-
- fullClass = namespace + "::" + className
- outputFile = constructPythonName(fullClass) + ".py"
- print "Generating", outputFile
-
- template = open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "template/widget.py"))
- template = template.readlines()
- template = "".join(template)
-
- if (parentClass != ""):
- parentPythonName = constructPythonName(parentClass)
- pythonImport = "from . import " + parentPythonName;
- else:
- parentPythonName = "AbstractItem"
- pythonImport = ""
-
- template = template\
- .replace("${NAME}", constructCPPName(fullClass))\
- .replace("${INCLUDES}", includes)\
- .replace("${PYTHON_NAME}", constructPythonName(fullClass))\
- .replace("${PYTHON_IMPORT}", pythonImport)\
- .replace("${PARENT_PYTHON_NAME}", parentPythonName)
-
- begin = template.find("${PROPERTY_SETUP_BEGIN}") # 23 length
- end = template.find("${PROPERTY_SETUP_END}") # 21 length
- propertyTemplate = template[begin + 23:end]
- propertiesCode = ""
- for property in properties:
- exes = ""
- print "Has this no of props: ", len(property);
- if (len(property) == 5):
- exes = propertyValueExes(property[0] + " " + property[4]).split("${VALUE}")
- else:
- exes = propertyValueExes(property[0]).split("${VALUE}")
- print exes
- propertiesCode += propertyTemplate\
- .replace("${PROPERTY_NAME}", property[1])\
- .replace("${PROPERTY_SETTER}", property[3])\
- .replace("${PROPERTY_VALUE_PREFIX}", exes[0])\
- .replace("${PROPERTY_VALUE_SUFIX}", exes[1])
-
- template = template[0:begin] + propertiesCode + template[end + 21:]
- # print template
-
- reValidFile = re.compile("^[A-Za-z0-9_.]*$")
- match = reValidFile.match(outputFile)
- if match:
- output = open(outputFile, 'w')
- print >> output, template
- output.close()
-
-######## MAIN PROGRAM ###########
-
-inputFile = sys.argv[1]
-# outputFile = sys.argv[2]
-
-print "Parsing: " + inputFile
-# print "And creating PUCK module from it: " + outputFile
-
-parseFile(inputFile)
-
diff --git a/applets/lancelot/tools/puck/generator/hacks/plasma_ScrollBar.h b/applets/lancelot/tools/puck/generator/hacks/plasma_ScrollBar.h
deleted file mode 100644
index 72132ef..0000000
--- a/applets/lancelot/tools/puck/generator/hacks/plasma_ScrollBar.h
+++ /dev/null
@@ -1,18 +0,0 @@
-//krazy:skip
-
-namespace Plasma
-{
-
-class PLASMA_EXPORT ScrollBar : public QGraphicsProxyWidget
-{
- Q_OBJECT
-
- Q_PROPERTY(int singleStep READ singleStep WRITE setSingleStep)
- Q_PROPERTY(int pageStep READ pageStep WRITE setPageStep)
- Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged)
- Q_PROPERTY(int minimum READ minimum)
- Q_PROPERTY(int maximum READ maximum)
- Q_PROPERTY(QString stylesheet READ styleSheet WRITE setStyleSheet)
-};
-
-}
diff --git a/applets/lancelot/tools/puck/generator/hacks/qgraphicslayout.h b/applets/lancelot/tools/puck/generator/hacks/qgraphicslayout.h
deleted file mode 100644
index a617a25..0000000
--- a/applets/lancelot/tools/puck/generator/hacks/qgraphicslayout.h
+++ /dev/null
@@ -1,6 +0,0 @@
-//krazy:skip
-
-class QGraphicsLayout : public QGraphicsLayoutItem
-{
-};
-
diff --git a/applets/lancelot/tools/puck/generator/hacks/qgraphicslayoutitem.h b/applets/lancelot/tools/puck/generator/hacks/qgraphicslayoutitem.h
deleted file mode 100644
index dc748af..0000000
--- a/applets/lancelot/tools/puck/generator/hacks/qgraphicslayoutitem.h
+++ /dev/null
@@ -1,17 +0,0 @@
-//krazy:skip
-
-class Q_GUI_EXPORT QGraphicsLayoutItem
-{
- Q_PROPERTY ( QSize minimumSize READ minimumSize WRITE setMinimumSize )
- Q_PROPERTY ( qreal minimumWidth READ minimumWidth WRITE setMinimumWidth )
- Q_PROPERTY ( qreal minimumHeight READ minimumHeight WRITE setMinimumHeight )
-
- Q_PROPERTY ( QSize maximumSize READ maximumSize WRITE setMaximumSize )
- Q_PROPERTY ( qreal maximumWidth READ maximumWidth WRITE setMaximumWidth )
- Q_PROPERTY ( qreal maximumHeight READ maximumHeight WRITE setMaximumHeight )
-
- Q_PROPERTY ( QSize preferredSize READ preferredSize WRITE setPreferredSize )
- Q_PROPERTY ( qreal preferredWidth READ preferredWidth WRITE setPreferredWidth )
- Q_PROPERTY ( qreal preferredHeight READ preferredHeight WRITE setPreferredHeight )
-
-};
diff --git a/applets/lancelot/tools/puck/generator/hacks/qgraphicsproxywidget.h b/applets/lancelot/tools/puck/generator/hacks/qgraphicsproxywidget.h
deleted file mode 100644
index b9e9af8..0000000
--- a/applets/lancelot/tools/puck/generator/hacks/qgraphicsproxywidget.h
+++ /dev/null
@@ -1,6 +0,0 @@
-//krazy:skip
-
-class QGraphicsProxyWidget : public QGraphicsWidget
-{
- Q_OBJECT
-};
diff --git a/applets/lancelot/tools/puck/generator/hacks/qgraphicswidget.h b/applets/lancelot/tools/puck/generator/hacks/qgraphicswidget.h
deleted file mode 100644
index 23a4e89..0000000
--- a/applets/lancelot/tools/puck/generator/hacks/qgraphicswidget.h
+++ /dev/null
@@ -1,15 +0,0 @@
-//krazy:skip
-
-class Q_GUI_EXPORT QGraphicsWidget : public QGraphicsLayoutItem
-{
- Q_OBJECT
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette)
- Q_PROPERTY(QFont font READ font WRITE setFont)
- Q_PROPERTY(Qt::LayoutDirection layoutDirection READ layoutDirection WRITE setLayoutDirection RESET unsetLayoutDirection)
- Q_PROPERTY(QSizeF size READ size WRITE resize)
- Q_PROPERTY(Qt::FocusPolicy focusPolicy READ focusPolicy WRITE setFocusPolicy)
- Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible)
- Q_PROPERTY(Qt::WindowFlags windowFlags READ windowFlags WRITE setWindowFlags)
- Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle)
-};
diff --git a/applets/lancelot/tools/puck/generator/template/widget.py b/applets/lancelot/tools/puck/generator/template/widget.py
deleted file mode 100644
index 3a6c460..0000000
--- a/applets/lancelot/tools/puck/generator/template/widget.py
+++ /dev/null
@@ -1,30 +0,0 @@
-from .. import WidgetHandlerManager
-from .. import AbstractItem
-${PYTHON_IMPORT}
-
-class ${PYTHON_NAME}Handler(${PARENT_PYTHON_NAME}.${PARENT_PYTHON_NAME}Handler):
- def name(self):
- return "${NAME}"
-
- def include(self):
- includes = "${INCLUDES}".split(" ")
- includesCode = ""
- for include in includes:
- if (include != ""):
- includesCode += "#include<" + include + ">\n"
- return includesCode
-
-
- def setup(self):
- setup = ${PARENT_PYTHON_NAME}.${PARENT_PYTHON_NAME}Handler.setup(self)
-
- ${PROPERTY_SETUP_BEGIN}
- if self.hasAttribute('${PROPERTY_NAME}'):
- setup += self.attribute('name') \
- + '->${PROPERTY_SETTER}(${PROPERTY_VALUE_PREFIX}' + self.attribute('${PROPERTY_NAME}') + '${PROPERTY_VALUE_SUFIX});'
- ${PROPERTY_SETUP_END}
-
- return setup;
-
-WidgetHandlerManager.addHandler(${PYTHON_NAME}Handler())
-
diff --git a/applets/lancelot/tools/puck/puck.py b/applets/lancelot/tools/puck/puck.py
deleted file mode 100755
index c4397a7..0000000
--- a/applets/lancelot/tools/puck/puck.py
+++ /dev/null
@@ -1,166 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-import sys, os
-
-import xml.dom.minidom
-from xml.dom.minidom import Node
-
-from Modules.Layouts import *
-from Modules.Widgets import *
-
-from Modules import LayoutHandlerManager
-from Modules import WidgetHandlerManager
-
-from Modules import debug
-
-stmtDefine = ""
-stmtDeclaration = ""
-stmtInitialization = ""
-stmtInclude = set()
-stmtSetup = ""
-WidgetHandlerManager.pushRoot("root")
-
-def processDefines(node):
- global stmtDefine
-
- for defineNode in node.childNodes:
- if not defineNode.nodeType == xml.dom.Node.ELEMENT_NODE:
- continue
- if defineNode.localName == "define":
- stmtDefine += "#define " + defineNode.getAttribute("name") + " " + defineNode.getAttribute("value") + "\n"
-
-def processElement(node):
- global stmtDefine
- global stmtInclude
- global stmtDeclaration
- global stmtInitialization
- global stmtSetup
-
- if node.nodeType == xml.dom.Node.COMMENT_NODE:
- stmtSetup += "/*" + node.nodeValue + "*/\n"
- return 0
-
- if not node.nodeType == xml.dom.Node.ELEMENT_NODE:
- return 0
-
- if node.prefix == "code" or node.localName == "code":
- for child in node.childNodes:
- if node.localName == "define":
- stmtDefine += child.nodeValue + "\n"
- elif node.localName == "include":
- stmtInclude.add(child.nodeValue)
- elif node.localName == "declaration":
- stmtDeclaration += child.nodeValue + "\n"
- elif node.localName == "initialization":
- stmtInitialization += child.nodeValue + "\n"
- else:
- stmtSetup += child.nodeValue + "\n"
- elif node.prefix == "item":
- if node.localName == "layout":
- processLayout(node)
- elif node.localName == "widget":
- processWidget(node)
- elif node.localName == "qwidget":
- processQWidget(node)
-
-
-def processLayout(node):
- global stmtDeclaration
- global stmtInitialization
- global stmtSetup
-
- handler = LayoutHandlerManager.handler(node.getAttribute("type")) # TODO: make this check if layout is supported
- handler.setNode(node)
-
- includes = handler.include()
- for include in includes.split("\n"):
- stmtInclude.add(include)
-
- stmtDeclaration += handler.declaration() + "\n"
- stmtInitialization += handler.initialization() + "\n"
- stmtSetup += handler.setup() + "\n"
-
- for child in node.childNodes:
- processElement(child)
-
-def processWidget(node):
- global stmtDeclaration
- global stmtInitialization
- global stmtSetup
-
- handler = WidgetHandlerManager.handler(node.getAttribute("type")) # TODO: make this check if widget is supported
- handler.setNode(node)
-
- includes = handler.include()
- for include in includes.split("\n"):
- stmtInclude.add(include)
-
- stmtDeclaration += handler.declaration() + "\n"
- stmtInitialization += handler.initialization() + "\n"
- stmtSetup += handler.setup() + "\n"
-
- WidgetHandlerManager.pushRoot(node.getAttribute("name"))
- for child in node.childNodes:
- processElement(child)
- WidgetHandlerManager.popRoot()
-
-# Main program: ##################################################################################
-
-print "Plasma UI Compiler 0.1"
-print "Generating ", sys.argv[2]
-print "From ", sys.argv[1]
-
-doc = xml.dom.minidom.parse(sys.argv[1])
-
-if not doc.documentElement.localName == "pui":
- exit
-
-rootObjectType = ""
-className = ""
-
-for node in doc.documentElement.childNodes:
- if not node.nodeType == xml.dom.Node.ELEMENT_NODE:
- continue
- elif node.localName == "defines":
- processDefines(node)
- elif node.localName == "ui":
- rootObjectType = node.getAttribute("rootObjectType")
- className = node.getAttribute("className")
-
- for child in node.childNodes:
- processElement(child)
-
-template = open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "template/cpp.h"))
-template = template.readlines()
-template = "".join(template)
-
-output = open(sys.argv[2], 'w')
-
-print >> output, template\
- .replace("${HEADER_ID}", "PUI_" + className.upper() + "_H") \
- .replace("${CLASS_NAME}", className) \
- .replace("${PARENT_OBJECT_TYPE}", rootObjectType) \
- .replace("${INCLUDES}", "\n".join(stmtInclude)) \
- .replace("${DEFINES}", stmtDefine) \
- .replace("${DECLARATION}", stmtDeclaration) \
- .replace("${INITIALIZATION}", stmtInitialization) \
- .replace("${SETUP}", stmtSetup)
-
-output.close()
diff --git a/applets/lancelot/tools/puck/template/cpp.h b/applets/lancelot/tools/puck/template/cpp.h
deleted file mode 100644
index d30e3bb..0000000
--- a/applets/lancelot/tools/puck/template/cpp.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * This file is automatically generated by Plasma UI Compiler
- * DO NOT CHANGE THE CONTENTS, IT IS AUTOMATICALLY REGENERATED
- */
-
-#ifndef ${HEADER_ID}
-#define ${HEADER_ID}
-
-/* Includes */
-${INCLUDES}
-
-/* Defines */
-${DEFINES}
-
-namespace Ui {
-
-class ${CLASS_NAME}
-{
-
-protected:
-
- ${DECLARATION}
-
- void setupUi(${PARENT_OBJECT_TYPE} * root)
- {
- /* Initialization */
- ${INITIALIZATION}
-
- /* Setup */
- ${SETUP}
- }
-};
-
-} // namespace Ui
-
-#endif /* ${HEADER_ID} */
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 94e8fb3..bd10b62 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -2,11 +2,3 @@
set(module_install_dir ${DATA_INSTALL_DIR}/cmake/modules )
-set(cmakeFiles
- FindLancelot.cmake
- FindLancelot-Datamodels.cmake
- )
-
-install(FILES ${cmakeFiles}
- DESTINATION ${module_install_dir} )
-
diff --git a/cmake/FindLancelot-Datamodels.cmake b/cmake/FindLancelot-Datamodels.cmake
deleted file mode 100644
index e145efd..0000000
--- a/cmake/FindLancelot-Datamodels.cmake
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-# cmake macro to see if we have libLancelot-datamodels
-
-# LANCELOT_DATAMODELS_INCLUDE_DIR
-# LANCELOT_DATAMODELS_FOUND
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the University nor the names of its contributors
-# may be used to endorse or promote products derived from this software
-# without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-
-if (LANCELOT_DATAMODELS_INCLUDE_DIR AND LANCELOT_DATAMODELS_LIBS)
- # Already in cache, be silent
- # This probably means that libLanceloti-datamodels is a part
- # of current build or that this script was
- # already invoked
- set(Lancelot_Datamodels_FIND_QUIETLY TRUE)
- message("Lancelot Datamodels variables already set")
-endif (LANCELOT_DATAMODELS_INCLUDE_DIR AND LANCELOT_DATAMODELS_LIBS)
-
-if (NOT Lancelot_Datamodels_FIND_QUIETLY)
- message("Searching for Lancelot Datamodels")
-
- find_path(LANCELOT_DATAMODELS_INCLUDE_DIR NAMES lancelot-datamodels/BaseModel.h
- PATHS
- ${KDE4_INCLUDE_DIR}
- ${INCLUDE_INSTALL_DIR}
- )
-
- find_library(LANCELOT_DATAMODELS_LIBS NAMES lancelot-datamodels
- PATHS
- ${KDE4_LIB_DIR}
- ${LIB_INSTALL_DIR}
- )
-
- include(FindPackageHandleStandardArgs)
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(LancelotDatamodels DEFAULT_MSG LANCELOT_DATAMODELS_LIBS LANCELOT_DATAMODELS_INCLUDE_DIR )
-
- mark_as_advanced(LANCELOT_DATAMODELS_INCLUDE_DIR DIR LANCELOT_DATAMODELS_LIBS)
-endif (NOT Lancelot_Datamodels_FIND_QUIETLY)
-
-message("-- Found Lancelot Datamodels include dir: ${LANCELOT_DATAMODELS_INCLUDE_DIR}")
-message("-- Found Lancelot Datamodels lib: ${LANCELOT_DATAMODELS_LIBS}")
diff --git a/cmake/FindLancelot.cmake b/cmake/FindLancelot.cmake
deleted file mode 100644
index 83f6b1a..0000000
--- a/cmake/FindLancelot.cmake
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2,
-# or (at your option) any later version, as published by the Free
-# Software Foundation
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details
-#
-# You should have received a copy of the GNU General Public
-# License along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-# cmake macro to see if we have libLancelot
-
-# LANCELOT_INCLUDE_DIR
-# LANCELOT_FOUND
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the University nor the names of its contributors
-# may be used to endorse or promote products derived from this software
-# without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-
-if (LANCELOT_INCLUDE_DIR AND LANCELOT_LIBS)
- # Already in cache, be silent
- # This probably means that libLancelot is a part
- # of current build or that this script was
- # already invoked
- set(Lancelot_FIND_QUIETLY TRUE)
- message("Lancelot variables already set")
-endif (LANCELOT_INCLUDE_DIR AND LANCELOT_LIBS)
-
-if (NOT Lancelot_FIND_QUIETLY)
- message("Searching for Lancelot")
-
- find_path(LANCELOT_INCLUDE_DIR NAMES lancelot/lancelot.h
- PATHS
- ${KDE4_INCLUDE_DIR}
- ${INCLUDE_INSTALL_DIR}
- )
-
- find_library(LANCELOT_LIBS NAMES lancelot
- PATHS
- ${KDE4_LIB_DIR}
- ${LIB_INSTALL_DIR}
- )
-
- include(FindPackageHandleStandardArgs)
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lancelot DEFAULT_MSG LANCELOT_LIBS LANCELOT_INCLUDE_DIR )
-
- mark_as_advanced(LANCELOT_INCLUDE_DIR LANCELOT_LIBS)
-endif (NOT Lancelot_FIND_QUIETLY)
-
-message("-- Found Lancelot include dir: ${LANCELOT_INCLUDE_DIR}")
-message("-- Found Lancelot lib: ${LANCELOT_LIBS}")
diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt
index 32aa293..0694dd9 100644
--- a/libs/CMakeLists.txt
+++ b/libs/CMakeLists.txt
@@ -1,11 +1,3 @@
add_subdirectory(plasmaweather)
-# other libs are still unported
-return()
-
-add_subdirectory(lancelot)
-
-if(NOT WIN32 AND KDE4WORKSPACE_FOUND)
- add_subdirectory(lancelot-datamodels)
-endif(NOT WIN32 AND KDE4WORKSPACE_FOUND)
diff --git a/libs/lancelot-datamodels/Applications.cpp b/libs/lancelot-datamodels/Applications.cpp
deleted file mode 100644
index 57bef30..0000000
--- a/libs/lancelot-datamodels/Applications.cpp
+++ /dev/null
@@ -1,320 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- * Copyright (C) 2007 Robert Knight <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "Applications.h"
-#include "Applications_p.h"
-
-#include <KIcon>
-#include <KRun>
-#include <KServiceGroup>
-#include <KStandardDirs>
-#include <KSycoca>
-#include <KUrl>
-#include <KToolInvocation>
-#include <KDebug>
-
-#include "FavoriteApplications.h"
-#include "Logger.h"
-
-// Applications
-
-namespace Lancelot {
-namespace Models {
-
-Applications::Private::Private(Applications * parent)
- : q(parent)
-{
- lastIndex = -1;
-}
-
-Applications::Private::~Private()
-{
- clear();
-}
-
-void Applications::Private::sycocaUpdated(const QStringList & resources)
-{
- if (resources.contains("services") || resources.contains("apps")) {
- load();
- }
-}
-
-void Applications::Private::load()
-{
- KServiceGroup::Ptr services = KServiceGroup::group(root);
- if (!services || !services->isValid())
- return;
-
- if (title.isEmpty() || icon.isNull()) {
- title = services->caption();
- icon = KIcon(services->icon());
- }
-
- // KServiceGroup::List list = services->entries();
- const KServiceGroup::List list =
- services->entries(true /* sorted */,
- true /* exclude no display entries */,
- false /* allow separators */,
- false /* sort by generic name */);
- items.clear();
- QList < Applications * > submodelsOld = submodels;
- submodels.clear();
-
- // application name <-> service map for detecting duplicate entries
- QHash<QString,KService::Ptr> existingServices;
- for (KServiceGroup::List::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it) {
- ApplicationData data;
-
- const KSycocaEntry::Ptr p = (*it);
-
- if (p->isType(KST_KService)) {
- const KService::Ptr service = KService::Ptr::staticCast(p);
-
- if (service->noDisplay())
- continue;
-
- data.icon = KIcon(service->icon());
- // data.name = service->name().replace('&', "&&");
- data.name = service->name();
- data.description = service->genericName();
- data.desktopFile = service->entryPath();
-
- items.append(data);
- } else if (p->isType(KST_KServiceGroup)) {
- const KServiceGroup::Ptr serviceGroup =
- KServiceGroup::Ptr::staticCast(p);
-
- if (serviceGroup->noDisplay() || serviceGroup->childCount() == 0)
- continue;
-
- bool found = false;
- Applications * model;
- foreach (model, submodelsOld) {
- if (serviceGroup->relPath() == model->d->root) {
- found = true;
- break;
- }
- }
- if (!found) {
- submodels.append(new Applications(
- serviceGroup->relPath(),
- serviceGroup->caption().replace('&', "&&"),
- KIcon(serviceGroup->icon())
- ));
- } else {
- submodelsOld.removeAll(model);
- submodels.append(model);
- model->d->load();
- // TODO: Find a way to delete the remaining
- // items in submodelsOld - can't delete now
- // because some action list could use the model
- }
-
- // appName = serviceGroup->comment();
- }
- }
- emit q->updated();
-}
-
-void Applications::Private::clear()
-{
- foreach(Applications * applist, submodels) {
- delete applist;
- }
-}
-
-Applications::Applications(QString root, QString title, QIcon icon, bool flat)
- : d(new Private(this))
-{
- d->root = root;
- d->title = title;
- d->icon = icon;
- d->flat = flat;
-
- connect(KSycoca::self(), SIGNAL(databaseChanged(QStringList)),
- d, SLOT(sycocaUpdated(QStringList)));
- d->load();
-}
-
-Applications::~Applications()
-{
- delete d;
-}
-
-QString Applications::Private::data(int index, Applications::Private::Data what)
-{
- if (index >= items.size() + submodels.size()) return "";
-
- if (index != lastIndex) {
- lastTitle = (index < submodels.size()) ?
- submodels.at(index)->selfTitle() :
- items.at(index - submodels.size()).name;
- lastDescription =
- (index < submodels.size()) ? QString() :
- items.at(index - submodels.size()).description;
-
- if (!ApplicationConnector::self()->applicationNameFirst()) {
- QString tmp = lastTitle;
- lastTitle = lastDescription;
- lastDescription = tmp;
- }
-
- if (lastTitle.isEmpty()) {
- lastTitle = lastDescription;
- }
-
- if (lastTitle == lastDescription) {
- lastDescription.clear();
- }
- }
-
- return (what == Applications::Private::Title) ? lastTitle : lastDescription;
-}
-
-QString Applications::title(int index) const
-{
- return d->data(index, Applications::Private::Title);
-}
-
-QString Applications::description(int index) const
-{
- return d->data(index, Applications::Private::Description);
-}
-
-QIcon Applications::icon(int index) const
-{
- if (index >= size()) return QIcon();
- return
- (index < d->submodels.size()) ?
- d->submodels.at(index)->selfIcon() :
- d->items.at(index - d->submodels.size()).icon;
-}
-
-bool Applications::isCategory(int index) const
-{
- //Q_UNUSED(index);
- //return false;
- if (d->flat) {
- return false;
- }
- return (index < d->submodels.size());
-}
-
-int Applications::size() const
-{
- return d->submodels.size() + d->items.size();
-}
-
-void Applications::activate(int index)
-{
- if (index >= size() || index < 0) return;
-
- if (index < d->submodels.size()) {
- if (d->flat) {
- // opening the dir in external viewer
- new KRun(KUrl("applications:/" + d->submodels[index]->d->root), 0);
- }
- return;
- }
-
- QString data = d->items.at(index - d->submodels.size()).desktopFile;
-
- int result = KToolInvocation::startServiceByDesktopPath(data, QStringList(), 0, 0, 0, "", true);
-
- Logger::self()->log("applications-model", data);
-
- if (result != 0) {
- new KRun(KUrl(data), 0);
- }
-
- ApplicationConnector::self()->hide(true);
-}
-
-QMimeData * Applications::mimeData(int index) const
-{
- if (index >= size()) return NULL;
- if (index < d->submodels.size()) {
- return BaseModel::mimeForUrl("applications:/" +
- d->submodels.at(index)->d->root);
- }
-
- return BaseModel::mimeForUrl(d->items.at(index - d->submodels.size()).desktopFile);
-}
-
-void Applications::setDropActions(int index,
- Qt::DropActions & actions, Qt::DropAction & defaultAction)
-{
- Q_UNUSED(index);
- actions = Qt::CopyAction;
- defaultAction = Qt::CopyAction;
-}
-
-Lancelot::ActionTreeModel * Applications::child(int index)
-{
- if (index >= d->submodels.size())
- return NULL;
- return d->submodels.at(index);
-}
-
-QString Applications::selfTitle() const
-{
- return d->title;
-}
-
-QIcon Applications::selfIcon() const
-{
- return d->icon;
-}
-
-bool Applications::hasContextActions(int index) const
-{
- return !isCategory(index);
-}
-
-void Applications::setContextActions(int index, Lancelot::PopupMenu * menu)
-{
- if (isCategory(index)) {
- return;
- }
-
- menu->addAction(KIcon("list-add"), i18n("Add to Favorites"))
- ->setData(QVariant(0));
-}
-
-void Applications::contextActivate(int index, QAction * context)
-{
- if (!context) {
- return;
- }
-
- int appIndex = index - d->submodels.size();
- if (context->data().toInt() == 0) {
- FavoriteApplications::self()
- ->addFavorite(d->items.at(appIndex).desktopFile);
- }
-}
-
-QMimeData * Applications::selfMimeData() const
-{
- return BaseModel::mimeForUrl("applications:/" + d->root);
-}
-
-} // namespace Models
-} // namespace Lancelot
diff --git a/libs/lancelot-datamodels/Applications.h b/libs/lancelot-datamodels/Applications.h
deleted file mode 100644
index bd5272d..0000000
--- a/libs/lancelot-datamodels/Applications.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTAPP_MODELS_APPLICATIONS_H
-#define LANCELOTAPP_MODELS_APPLICATIONS_H
-
-#include <lancelot/lancelot_export.h>
-
-#include "BaseModel.h"
-#include <lancelot/models/ActionTreeModel.h>
-
-namespace Lancelot {
-namespace Models {
-
-/**
- * Applications data model.
- */
-class LANCELOT_EXPORT Applications : public Lancelot::ActionTreeModel {
- Q_OBJECT
-public:
- /**
- * Creates a new instance of Applications
- * @param root category to show applications for
- * @param title the title of the data model
- * @param icon the icon of the data model
- * @param flat if false, subcategories will behave like normal items
- */
- explicit Applications(QString root = "", QString title = "", QIcon icon = QIcon(), bool flat = false);
-
- /**
- * Destroys this Applications instance
- */
- virtual ~Applications();
-
- L_Override QString title(int index) const;
- L_Override QString description(int index) const;
- L_Override QIcon icon(int index) const;
- L_Override bool isCategory(int index) const;
-
- L_Override int size() const;
-
- L_Override ActionTreeModel * child(int index);
- L_Override QString selfTitle() const;
- L_Override QIcon selfIcon() const;
-
- L_Override bool hasContextActions(int index) const;
- L_Override void setContextActions(int index, Lancelot::PopupMenu * menu);
- L_Override void contextActivate(int index, QAction * context);
-
- L_Override QMimeData * mimeData(int index) const;
- L_Override void setDropActions(int index,
- Qt::DropActions & actions, Qt::DropAction & defaultAction);
- L_Override QMimeData * selfMimeData() const;
-
-public Q_SLOTS:
- virtual void activate(int index);
-
-private:
- class Private;
- Private * const d;
-};
-
-} // namespace Models
-} // namespace Lancelot
-
-#endif /* LANCELOTAPP_MODELS_APPLICATIONS_H */
diff --git a/libs/lancelot-datamodels/Applications_p.h b/libs/lancelot-datamodels/Applications_p.h
deleted file mode 100644
index 54f98f6..0000000
--- a/libs/lancelot-datamodels/Applications_p.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTAPP_MODELS_APPLICATIONS_P_H
-#define LANCELOTAPP_MODELS_APPLICATIONS_P_H
-
-#include "BaseModel.h"
-#include "Applications.h"
-
-namespace Lancelot {
-namespace Models {
-
-class Applications::Private: public QObject {
- Q_OBJECT
-public:
- Private(Applications * parent);
- ~Private();
-
- void load();
- void clear();
-
- class ApplicationData {
- public:
- QString name, description;
- QIcon icon;
- QString desktopFile;
- };
-
- QList < Applications * > submodels;
- QList < ApplicationData > items;
-
- enum Data {
- Title, Description
- };
-
- QString data(int index, Data what);
-
- QString root;
- QString title;
- QIcon icon;
- bool flat;
-
- QString lastTitle, lastDescription;
- int lastIndex;
-
-public Q_SLOTS:
- void sycocaUpdated(const QStringList & resources);
-
-private:
- Applications * const q;
-
-};
-
-} // namespace Models
-} // namespace Lancelot
-
-#endif /* LANCELOTAPP_MODELS_APPLICATIONS_P_H */
diff --git a/libs/lancelot-datamodels/AvailableModels.cpp b/libs/lancelot-datamodels/AvailableModels.cpp
deleted file mode 100644
index 30b11fc..0000000
--- a/libs/lancelot-datamodels/AvailableModels.cpp
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "AvailableModels.h"
-#include <KStandardDirs>
-#include <KFileDialog>
-#include <KDirSelectDialog>
-#include <KIcon>
-#include <KDebug>
-
-#include <Lancelot/Models/Serializator>
-
-namespace Lancelot {
-namespace Models {
-
-AvailableModels * AvailableModels::instance = NULL;
-
-AvailableModels * AvailableModels::self()
-{
- if (!instance) {
- instance = new AvailableModels();
- }
- return instance;
-}
-
-AvailableModels::AvailableModels()
- : StandardActionTreeModel()
-{
- StandardActionTreeModel::Item * item = root();
-
- // Applications model
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Favorite applications"), QString::null,
- KIcon("favorites"),
- "FavoriteApplications");
-
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Applications category..."), QString::null,
- KIcon("plasmaapplet-shelf"),
- "Applications");
-
- // Places
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Places"), QString::null,
- KIcon("folder"),
- "Places");
-
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Folder..."), QString::null,
- KIcon("folder"),
- "Folder");
-
- // Devices
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Removable devices"), QString::null,
- KIcon("media-optical"),
- "Devices/Removable");
-
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Fixed devices"), QString::null,
- KIcon("drive-harddisk"),
- "Devices/Fixed");
-
- // System applications
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("System tools"), QString::null,
- KIcon("computer"),
- "System");
-
- // Documents
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("New documents"), QString::null,
- KIcon("document-new"),
- "NewDocuments");
-
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Open documents"), QString::null,
- KIcon("document-edit"),
- "OpenDocuments");
-
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Recent documents"), QString::null,
- KIcon("document-open-recent"),
- "RecentDocuemnts");
-
- // Contacts
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Online contacts"), QString::null,
- KIcon("kopete"),
- "Contacts");
-
- item->children <<
- new StandardActionTreeModel::Item(
- i18n("Unread messages"), QString::null,
- KIcon("kmail"),
- "Messages");
-
-
-}
-
-AvailableModels::~AvailableModels()
-{
-}
-
-StandardActionTreeModel * AvailableModels::createChild(int index)
-{
- Q_UNUSED(index);
-
- return NULL;
-}
-
-ActionListModel * AvailableModels::modelForSerializedData(const QString & serializedData)
-{
- QMap < QString, QString > data = Lancelot::Models::Serializator::deserialize(serializedData);
-
- return 0;
-}
-
-QString AvailableModels::serializedDataForItem(int index)
-{
- QMap < QString, QString > data;
- data["version"] = "1.0";
- data["type"] = "list";
- data["model"] = itemAt(index)->data.toString();
-
- if (data["model"] == "Folder") {
- QString dir = KFileDialog::getExistingDirectory();
- data["model"] = "Folder " + dir;
- } else if (data["model"] == "Applications") {
- data["model"] = "Folder " +
- KDirSelectDialog::selectDirectory(KUrl("applications:/")).url();
- }
-
- if (data["model"] == "Folder ") {
- return QString::null;
- }
-
- return Serializator::serialize(data);
-}
-
-ActionListModel * AvailableModels::modelForItem(int index)
-{
- return modelForSerializedData(
- serializedDataForItem(index));
-}
-
-QString AvailableModels::titleForModel(const QString & modelId)
-{
- kDebug() << modelId;
-
- if (modelId.startsWith("Folder ")) {
- QString result = modelId;
- result.replace("Folder ", QString());
- return result;
- }
-
- for (int i = 0; i < size(); i++) {
- if (itemAt(i)->data.toString() == modelId) {
- return itemAt(i)->title;
- }
- }
-
- return QString();
-}
-
-} // namespace Models
-} // namespace Lancelot
-
diff --git a/libs/lancelot-datamodels/AvailableModels.h b/libs/lancelot-datamodels/AvailableModels.h
deleted file mode 100644
index bd2b215..0000000
--- a/libs/lancelot-datamodels/AvailableModels.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTAPP_MODELS_AVAILABLEMODELS_H
-#define LANCELOTAPP_MODELS_AVAILABLEMODELS_H
-
-#include <lancelot/lancelot_export.h>
-#include <lancelot/models/StandardActionTreeModel.h>
-
-#include "BaseModel.h"
-
-namespace Lancelot {
-namespace Models {
-
-class LANCELOT_EXPORT AvailableModels : public StandardActionTreeModel {
- Q_OBJECT
-public:
- virtual ~AvailableModels();
-
- static AvailableModels * self();
-
- L_Override StandardActionTreeModel * createChild(int index);
-
- ActionListModel * modelForSerializedData(const QString & data);
- ActionListModel * modelForItem(int index);
-
- QString serializedDataForItem(int index);
-
- QString titleForModel(const QString & modelId);
-
-private:
- AvailableModels();
-
- static AvailableModels * instance;
-
-};
-
-} // namespace Models
-} // namespace Lancelot
-
-#endif /* LANCELOTAPP_MODELS_AVAILABLEMODELS_H */
diff --git a/libs/lancelot-datamodels/BaseMergedModel.cpp b/libs/lancelot-datamodels/BaseMergedModel.cpp
deleted file mode 100644
index b02b57b..0000000
--- a/libs/lancelot-datamodels/BaseMergedModel.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "BaseMergedModel.h"
-#include "Serializator.h"
-
-#include <KUrl>
-#include <KTemporaryFile>
-
-namespace Lancelot {
-namespace Models {
-
-class BaseMergedModel::Private {
-public:
- QList < QString > modelIDs;
-};
-
-BaseMergedModel::BaseMergedModel()
- : Lancelot::MergedActionListModel(),
- d(new Private())
-{
-
-}
-
-BaseMergedModel::~BaseMergedModel()
-{
- delete d;
-}
-
-void BaseMergedModel::addModel(const QString & id, ActionListModel * model)
-{
- addModel(id, model->selfIcon(), model->selfTitle(), model);
-}
-
-void BaseMergedModel::addModel(const QString & id, QIcon icon,
- const QString & title, ActionListModel * model)
-{
- d->modelIDs.append(id);
- Lancelot::MergedActionListModel::addModel(icon, title, model);
-}
-
-QMimeData * BaseMergedModel::modelMimeData(int index) const
-{
- if ((index < 0) || (index >= d->modelIDs.size())) {
- return NULL;
- }
-
- QMap < QString , QString > map;
- map["version"] = "1.0";
- map["type"] = "list";
- map["model"] = d->modelIDs.at(index);
-
- QMimeData * data = new QMimeData();
- data->setData("text/x-lancelotpart", Serializator::serialize(map).toAscii());
- return data;
-}
-
-void BaseMergedModel::setModelDropActions(int index, Qt::DropActions & actions,
- Qt::DropAction & defaultAction)
-{
- Q_UNUSED(index);
- actions = Qt::CopyAction;
- defaultAction = Qt::CopyAction;
-}
-
-} // namespace Models
-} // namespace Lancelot
diff --git a/libs/lancelot-datamodels/BaseMergedModel.h b/libs/lancelot-datamodels/BaseMergedModel.h
deleted file mode 100644
index 1cac406..0000000
--- a/libs/lancelot-datamodels/BaseMergedModel.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTAPP_MODELS_BASEMERGEDMODEL_H
-#define LANCELOTAPP_MODELS_BASEMERGEDMODEL_H
-
-#include <lancelot/lancelot_export.h>
-
-#include <lancelot/models/MergedActionListModel.h>
-
-namespace Lancelot {
-namespace Models {
-
-/**
- * Provides a basic implementation of Lancelot::MergedActionListModel
- * with drag and drop support
- */
-class LANCELOT_EXPORT BaseMergedModel: public Lancelot::MergedActionListModel {
-public:
- /**
- * Creates a new instance of BaseMergedModel
- */
- BaseMergedModel();
-
- /**
- * Deletes this BaseMergedModel
- */
- ~BaseMergedModel();
-
- /**
- * Adds a new model to the merged model
- * @param id id of the model to be added
- * @param icon icon of the model to be added
- * @param title title of the model to be added
- * @param model model to be added
- */
- void addModel(const QString & id, QIcon icon,
- const QString & title, ActionListModel * model);
-
- /**
- * Adds a new model to the merged model.
- * @param id id of the model to be added
- * @param model model to be added
- */
- void addModel(const QString & id, ActionListModel * model);
-
- L_Override QMimeData * modelMimeData(int index) const;
- L_Override void setModelDropActions(int index,
- Qt::DropActions & actions, Qt::DropAction & defaultAction);
-
-private:
- class Private;
- Private * const d;
-};
-
-} // namespace Models
-} // namespace Lancelot
-
-#endif // LANCELOTAPP_MODELS_BASEMERGEDMODEL_H
diff --git a/libs/lancelot-datamodels/BaseModel.cpp b/libs/lancelot-datamodels/BaseModel.cpp
deleted file mode 100644
index 6e519ad..0000000
--- a/libs/lancelot-datamodels/BaseModel.cpp
+++ /dev/null
@@ -1,463 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- * Copyright (C) 2007 Robert Knight <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "BaseModel.h"
-
-#include <QFileInfo>
-#include <QApplication>
-
-#include <KRun>
-#include <KLocalizedString>
-#include <KDesktopFile>
-#include <KDebug>
-#include <KFileItem>
-#include <KIcon>
-#include <KGlobal>
-#include <KMimeType>
-#include <KUrl>
-#include <KToolInvocation>
-
-#include <lancelot/models/PlasmaServiceListModel.h>
-
-#include "Logger.h"
-
-// K_CATALOG_LOADER(liblancelot-datamodels)
-
-// K_CATALOG_LOADER fails for catalogs that have a dash in the name
-
-class KCatalogLoader_liblancelot_datamodels
-{
- public:
- KCatalogLoader_liblancelot_datamodels();
-};
-
-static KCatalogLoader_liblancelot_datamodels catalogLoader_liblancelot_datamodels;
-
-KCatalogLoader_liblancelot_datamodels::KCatalogLoader_liblancelot_datamodels()
-{
- qDebug() << "## Loading catalog liblancelot-datamodels";
- KGlobal::insertCatalog(QLatin1String("liblancelot-datamodels"));
-}
-
-// KCatalogLoader finished
-
-namespace Lancelot {
-namespace Models {
-
-class ApplicationConnector::Private {
-public:
- Private()
- : autohideEnabled(true)
- {}
-
- bool autohideEnabled;
-
- bool applicationNameFirst;
-};
-
-ApplicationConnector * ApplicationConnector::m_instance = NULL;
-
-ApplicationConnector * ApplicationConnector::self()
-{
- if (m_instance == NULL) {
- m_instance = new ApplicationConnector();
- }
- return m_instance;
-}
-
-void ApplicationConnector::setAutohideEnabled(bool value)
-{
- d->autohideEnabled = value;
-}
-
-bool ApplicationConnector::autohideEnabled() const
-{
- return d->autohideEnabled;
-}
-
-bool ApplicationConnector::applicationNameFirst() const
-{
- return d->applicationNameFirst;
-}
-
-void ApplicationConnector::search(const QString & search)
-{
- emit doSearch(search);
-}
-
-void ApplicationConnector::hide(bool immediate)
-{
- if (d->autohideEnabled && !(QApplication::keyboardModifiers() & Qt::ControlModifier)) {
- emit doHide(immediate);
- }
-}
-
-ApplicationConnector::ApplicationConnector()
- : d(new Private())
-{
- KConfig cfg("lancelotrc");
- KConfigGroup cfgGroup = cfg.group("Main");
-
- d->applicationNameFirst = cfgGroup.readEntry("applicationNameFirst", true);
-}
-
-ApplicationConnector::~ApplicationConnector()
-{
- delete d;
-}
-
-class BaseModel::Private {
-public:
- Private()
- : enableDefaultDnD(false),
- mimeData(NULL)
- {
- }
-
- bool enableDefaultDnD;
- QString title;
- QIcon icon;
- QMimeData * mimeData;
-};
-
-BaseModel::BaseModel(bool enableDefaultDnD)
- : d(new Private())
-{
- d->enableDefaultDnD = enableDefaultDnD;
-}
-
-BaseModel::~BaseModel()
-{
- delete d;
-}
-
-void BaseModel::activate(int index)
-{
- QString data = itemAt(index).data.toString();
-
- Logger::self()->log("base-model", data);
-
- int result = -1;
-
- kDebug() << "starting:" << data;
-
- if (result != 0) {
- new KRun(KUrl(data), 0);
- }
-
- hideApplicationWindow();
-}
-
-void BaseModel::hideApplicationWindow()
-{
- ApplicationConnector::self()->hide(true);
-}
-
-void BaseModel::changeApplicationSearchString(const QString & string)
-{
- ApplicationConnector::self()->search(string);
-}
-
-int BaseModel::addServices(const QStringList & serviceNames)
-{
- int result = 0;
- foreach (const QString & serviceAlternatives, serviceNames) {
- foreach (const QString & serviceName, serviceAlternatives.split('|')) {
- if (addService(serviceName)) {
- ++result;
- break;
- }
- }
- }
- return result;
-}
-
-bool BaseModel::addService(const QString & serviceName)
-{
- const KService::Ptr service = KService::serviceByStorageId(serviceName);
-
- // qDebug() << "BaseModel::addService Applic:" << service->isValid() << " " << serviceName;
-
- return addService(service);
-}
-
-bool BaseModel::addService(const KService::Ptr & service)
-{
- if (!service || !service->isValid()) {
- return false;
- }
-
- // kDebug() << service->name()
- // << service->isApplication() << service->exec()
- // << service->isValid();
-
- QString genericName = service->genericName();
- QString appName = service->name();
-
- if (ApplicationConnector::self()->applicationNameFirst()) {
- add(
- appName.isEmpty() ? genericName : appName,
- appName.isEmpty() ? "" : genericName,
- KIcon(service->icon()),
- service->entryPath()
- );
- } else {
- add(
- genericName.isEmpty() ? appName : genericName,
- genericName.isEmpty() ? "" : appName,
- KIcon(service->icon()),
- service->entryPath()
- );
- }
- return true;
-}
-
-int BaseModel::addUrls(const QStringList & urls)
-{
- int result = 0;
- foreach (const QString & url, urls) {
- if (addUrl(url)) {
- ++result;
- }
- }
- return result;
-}
-
-bool BaseModel::addUrl(const QString & url)
-{
- const KUrl kurl(url);
- return addUrl(kurl);
-}
-
-bool BaseModel::addUrl(const KUrl & url)
-{
- // kDebug() << url;
- KFileItem fileItem(KFileItem::Unknown, KFileItem::Unknown, url);
-
- if (url.isLocalFile() && QFileInfo(url.path()).suffix() == "desktop") {
- // .desktop files may be services (type field == 'Application' or 'Service')
- // or they may be other types such as links.
- //
- // first look in the KDE service database to see if this file is a service,
- // otherwise represent it as a generic .desktop file
-
- KDesktopFile desktopFile(url.path());
-
- if ((desktopFile.readType() == "Service" || desktopFile.readType() == "Application")
- && addService(url.path())) {
- return true;
- }
-
- KUrl desktopUrl(desktopFile.readUrl());
-
- add(
- QFileInfo(url.path()).baseName(),
- desktopUrl.isLocalFile() ? desktopUrl.path() : desktopUrl.prettyUrl(),
- KIcon(desktopFile.readIcon()),
- // url.path() //desktopFile.readUrl()
- url.url()
- );
- } else {
- add(
- fileItem.text(),
- url.isLocalFile() ? url.path() : url.prettyUrl(),
- KIcon(fileItem.iconName()),
- url.url()
- );
- }
-
- return true;
-}
-
-// inserts
-int BaseModel::insertServices(int where, const QStringList & serviceNames)
-{
- int result = 0;
- foreach (const QString & serviceAlternatives, serviceNames) {
- foreach (const QString & serviceName, serviceAlternatives.split('|')) {
- if (insertService(where + result, serviceName)) {
- ++result;
- break;
- }
- }
- }
- return result;
-}
-
-bool BaseModel::insertService(int where, const QString & serviceName)
-{
- const KService::Ptr service = KService::serviceByStorageId(serviceName);
- return insertService(where, service);
-}
-
-bool BaseModel::insertService(int where, const KService::Ptr & service)
-{
- if (!service) {
- return false;
- }
-
- QString genericName = service->genericName();
- QString appName = service->name();
-
- insert(
- where,
- genericName.isEmpty() ? appName : genericName,
- genericName.isEmpty() ? "" : appName,
- KIcon(service->icon()),
- service->entryPath()
- );
- return true;
-}
-
-int BaseModel::insertUrls(int where, const QStringList & urls)
-{
- int result = 0;
- foreach (const QString & url, urls) {
- if (insertUrl(where + result, url)) {
- ++result;
- }
- }
- return result;
-}
-
-bool BaseModel::insertUrl(int where, const QString & url)
-{
- const KUrl kurl(url);
- return insertUrl(where, kurl);
-}
-
-bool BaseModel::insertUrl(int where, const KUrl & url)
-{
- KFileItem fileItem(KFileItem::Unknown, KFileItem::Unknown, url);
-
- if (url.isLocalFile() && QFileInfo(url.path()).suffix() == "desktop") {
- // .desktop files may be services (type field == 'Application' or 'Service')
- // or they may be other types such as links.
- //
- // first look in the KDE service database to see if this file is a service,
- // otherwise represent it as a generic .desktop file
-
- KDesktopFile desktopFile(url.path());
-
- if ((desktopFile.readType() == "Service" || desktopFile.readType() == "Application")
- && insertService(where, url.path())) {
- return true;
- }
-
- KUrl desktopUrl(desktopFile.readUrl());
-
- insert(
- where,
- QFileInfo(url.path()).baseName(),
- desktopUrl.isLocalFile() ? desktopUrl.path() : desktopUrl.prettyUrl(),
- KIcon(desktopFile.readIcon()),
- // url.path() //desktopFile.readUrl()
- url.url()
- );
- } else {
- insert(
- where,
- fileItem.text(),
- url.isLocalFile() ? url.path() : url.prettyUrl(),
- KIcon(fileItem.iconName()),
- url.url()
- );
- }
-
- return true;
-}
-
-QMimeData * BaseModel::mimeForUrl(const KUrl & url)
-{
- QMimeData * data = new QMimeData();
- data->setData("text/uri-list", url.url().toAscii());
- data->setData("text/plain", url.url().toAscii());
- return data;
-}
-
-QMimeData * BaseModel::mimeData(int index) const
-{
- if (!d->enableDefaultDnD) {
- return NULL;
- }
-
- return BaseModel::mimeForUrl(itemAt(index).data.toString());
-}
-
-void BaseModel::setDropActions(int index,
- Qt::DropActions & actions, Qt::DropAction & defaultAction)
-{
- Q_UNUSED(index);
- actions = Qt::CopyAction;
- defaultAction = Qt::CopyAction;
-}
-
-
-QMimeData * BaseModel::mimeForUrl(const QString & url)
-{
- return mimeForUrl(KUrl(url));
-}
-
-QMimeData * BaseModel::mimeForService(const KService::Ptr & service)
-{
- if (!service) return NULL;
-
- return mimeForUrl(service->entryPath());
-}
-
-QMimeData * BaseModel::mimeForService(const QString & serviceName)
-{
- const KService::Ptr service = KService::serviceByStorageId(serviceName);
- return mimeForService(service);
-}
-
-
-QString BaseModel::selfTitle() const
-{
- return d->title;
-}
-
-QIcon BaseModel::selfIcon() const
-{
- return d->icon;
-}
-
-QMimeData * BaseModel::selfMimeData() const
-{
- return d->mimeData;
-}
-
-void BaseModel::setSelfTitle(const QString & title)
-{
- d->title = title;
-}
-
-void BaseModel::setSelfIcon(const QIcon & icon)
-{
- d->icon = icon;
-}
-
-void BaseModel::setSelfMimeData(QMimeData * data)
-{
- d->mimeData = data;
-}
-
-} // namespace Models
-} // namespace Lancelot
diff --git a/libs/lancelot-datamodels/BaseModel.h b/libs/lancelot-datamodels/BaseModel.h
deleted file mode 100644
index 1ec4548..0000000
--- a/libs/lancelot-datamodels/BaseModel.h
+++ /dev/null
@@ -1,271 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef LANCELOTAPP_MODELS_BASEMODEL_H
-#define LANCELOTAPP_MODELS_BASEMODEL_H
-
-#include <lancelot/lancelot_export.h>
-
-#include <lancelot/models/StandardActionListModel.h>
-#include <KService>
-#include <KUrl>
-
-namespace Lancelot {
-namespace Models {
-
-/**
- * Common interface from models to the parent application
- */
-class LANCELOT_EXPORT ApplicationConnector: public QObject {
- Q_OBJECT
-public:
- /**
- * @returns singleton instance of ApplicationConnector
- */
- static ApplicationConnector * self();
-
- /**
- * Requests a search
- * @param search string to search for
- */
- void search(const QString & search);
-
- /**
- * Requests window hide
- * @param immediate whether there shouldn't be any
- * delays before hiding
- */
- void hide(bool immediate = false);
-
- /**
- * Sets whether hide() should be ignored
- * @param value if true - hide() will not be ignored
- */
- void setAutohideEnabled(bool value);
-
- /**
- * @see setAutohideEnabled()
- */
- bool autohideEnabled() const;
-
- /**
- * @returns whether the application name should be in the first line,
- * and the description in the second
- */
- bool applicationNameFirst() const;
-
-Q_SIGNALS:
- /**
- * This signal is emitted when searching is requested
- * @param search string to search for
- */
- void doSearch(const QString & search);
-
- /**
- * This signal is emitted when hiding is requested
- * @param immediate whether there shouldn't be any
- * delays before hiding
- */
- void doHide(bool immediate);
-
-private:
- ApplicationConnector();
- ~ApplicationConnector();
-
- static ApplicationConnector * m_instance;
-
- class Private;
- Private * const d;
-};
-
-/**
- * Implements a few useful methods for Lancelot::StandardActionListModel
- */
-class LANCELOT_EXPORT BaseModel : public Lancelot::StandardActionListModel {
- Q_OBJECT
-public:
- /**
- * Creates a new BaseModel
- * @param enableDefaultDnD whether default drag and drop
- * handling should be turned on
- */
- BaseModel(bool enableDefaultDnD = false);
-
- /**
- * Destroys this BaseModel
- */
- virtual ~BaseModel();
-
- L_Override QMimeData * mimeData(int index) const;
- L_Override void setDropActions(int index,
- Qt::DropActions & actions, Qt::DropAction & defaultAction);
-
- L_Override QString selfTitle() const;
- L_Override QIcon selfIcon() const;
- L_Override QMimeData * selfMimeData() const;
-
-protected:
- virtual void activate(int index);
-
- /**
- * Reimplement this function to load the model data
- */
- virtual void load() = 0;
-
- /**
- * Adds a service or application to the model
- * @param service name of the service
- */
- bool addService(const QString & service);
-
- /**
- * Adds a service or application to the model
- * @param service service to add
- */
- bool addService(const KService::Ptr & service);
-
- /**
- * Adds a list of services or applications to the model
- * @param service names of the services
- */
- int addServices(const QStringList & services);
-
- /**
- * Adds an url to the model
- * @param url url to add
- */
- bool addUrl(const QString & url);
-
- /**
- * Adds an url to the model
- * @param url url to add
- */
- bool addUrl(const KUrl & url);
-
- /**
- * Adds a list of urls to the model
- * @param url url to add
- */
- int addUrls(const QStringList & urls);
-
- /**
- * Inserts a service or application to the model
- * @param where where to insert the service
- * @param service name of the service
- */
- bool insertService(int where, const QString & service);
-
- /**
- * Inserts a service or application to the model
- * @param where where to insert the service
- * @param service service
- */
- bool insertService(int where, const KService::Ptr & service);
-
- /**
- * Inserts a list of services or applications to the model
- * @param where where to insert the services
- * @param services names of the services
- */
- int insertServices(int where, const QStringList & services);
-
- /**
- * Inserts an url to the model
- * @param where where to insert the url
- * @param url url to add
- */
- bool insertUrl(int where, const QString & url);
-
- /**
- * Inserts an url to the model
- * @param where where to insert the url
- * @param url url to add
- */
- bool insertUrl(int where, const KUrl & url);
-
- /**
- * Inserts a list of urls to the model
- * @param where where to insert the urls
- * @param urls urls to add
- */
- int insertUrls(int where, const QStringList & urls);
-
- /**
- * Hides the parent application window
- * (if the parent application listens to
- * ApplicationConnector signals)
- */
- static void hideApplicationWindow();
-
- /**
- * Changed the search string of the parent
- * application (if the parent application listens to
- * ApplicationConnector signals)
- */
- static void changeApplicationSearchString(const QString & string);
-
- /**
- * Sets the title for the model
- */
- void setSelfTitle(const QString & title);
-
- /**
- * Sets the icon for the model
- */
- void setSelfIcon(const QIcon & icon);
-
- /**
- * Sets the mime data for the model
- */
- void setSelfMimeData(QMimeData * data);
-
-public:
- /**
- * @param url url
- * @returns the mime data for the specified url
- */
- static QMimeData * mimeForUrl(const KUrl & url);
-
- /**
- * @param url url
- * @returns the mime data for the specified url
- */
- static QMimeData * mimeForUrl(const QString & url);
-
- /**
- * @param service service
- * @returns the mime data for the specified service
- */
- static QMimeData * mimeForService(const KService::Ptr & service);
-
- /**
- * @param service service
- * @returns the mime data for the specified service
- */
- static QMimeData * mimeForService(const QString & service);
-
-private:
- class Private;
- Private * const d;
-};
-
-} // namespace Models
-} // namespace Lancelot
-
-#endif /* LANCELOTAPP_MODELS_BASEMODEL_H */
diff --git a/libs/lancelot-datamodels/CMakeLists.txt b/libs/lancelot-datamodels/CMakeLists.txt
deleted file mode 100644
index 8192682..0000000
--- a/libs/lancelot-datamodels/CMakeLists.txt
+++ /dev/null
@@ -1,175 +0,0 @@
-find_package(KDE4 REQUIRED)
-
-include (KDE4Defaults)
-add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
-
-find_package(Lancelot REQUIRED)
-
-set (ADDITIONAL_LINK_LIBRARIES)
-
-########### are akonadi and pimlibs available? ##########
-
-# find_package(KdepimLibs)
-
-if (KDEPIMLIBS_FOUND)
- set( LANCELOT_DATAMODELS_HAS_PIMLIBS 1 )
-
- include_directories(
- ${AKONADI_INCLUDE_DIR}
- ${KDEPIMLIBS_INCLUDE_DIRS}
- )
-
- set (ADDITIONAL_LINK_LIBRARIES
- ${ADDITIONAL_LINK_LIBRARIES}
- ${KDEPIMLIBS_AKONADI_LIBS}
- )
-endif(KDEPIMLIBS_FOUND)
-
-macro_log_feature(LANCELOT_DATAMODELS_HAS_PIMLIBS
- "Akonadi and KDE PIM Libs"
- "Support for unread messages model"
- "http://www.kde.org/"
- FALSE
- ""
- "STRONGLY_RECOMMENDED: Akonadi and KDE PIM libraries are required for messages datamodel and kmail support"
-)
-
-configure_file(config-lancelot-datamodels.h.cmake
- ${CMAKE_CURRENT_BINARY_DIR}/config-lancelot-datamodels.h )
-
-
-
-########### define variables ##########
-
-set(LANCELOT_DATAMODELS_INCLUDE_DIR
- "${CMAKE_CURRENT_SOURCE_DIR}/.."
- "${CMAKE_CURRENT_SOURCE_DIR}/"
- CACHE STRING
- "Location of liblancelot-datamodels headers"
- FORCE)
-
-set(LANCELOT_DATAMODELS_LIBS
- "lancelot-datamodels"
- CACHE STRING
- "Location of liblancelot-datamodels binary"
- FORCE)
-
-include_directories(
- ${Boost_INCLUDE_DIR}
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_BINARY_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR}
- ${KDE4_INCLUDES}
-
- ${LANCELOT_DATAMODELS_INCLUDE_DIR}
-)
-
-add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
-
-########### libLancelot-datamodels ###############
-
-set(lancelot_datamodels_LIB_SRCS
- Applications.cpp
- BaseMergedModel.cpp
- BaseModel.cpp
- ContactsKopete.cpp
- Devices.cpp
- FavoriteApplications.cpp
- FolderModel.cpp
- AvailableModels.cpp
- Logger.cpp
- MessagesKmail.cpp
- NewDocuments.cpp
- OpenDocuments.cpp
- Places.cpp
- RecentDocuments.cpp
- Runner.cpp
- Serializator.cpp
- SystemActions.cpp
- SystemServices.cpp
- XbelModel.cpp
-)
-
-set(screensaver_xml ${KDE4WORKSPACE_DBUS_INTERFACES_DIR}/org.freedesktop.ScreenSaver.xml)
-if (NOT EXISTS ${screensaver_xml})
- set(screensaver_xml external/org.freedesktop.ScreenSaver.xml)
-endif (NOT EXISTS ${screensaver_xml})
-qt4_add_dbus_interface(lancelot_datamodels_LIB_SRCS ${screensaver_xml} screensaver_interface)
-
-set(kopete_xml ${DBUS_INTERFACES_INSTALL_DIR}/org.kde.Kopete.xml)
-if (NOT EXISTS ${kopete_xml})
- set(kopete_xml external/org.kde.Kopete.xml)
-endif (NOT EXISTS ${kopete_xml})
-qt4_add_dbus_interface(lancelot_datamodels_LIB_SRCS ${kopete_xml} kopete_interface)
-
-
-kde4_add_library(lancelot-datamodels SHARED ${lancelot_datamodels_LIB_SRCS})
-
-target_link_libraries(
- lancelot-datamodels
- ${KDE4_KFILE_LIBS}
- ${KDE4_KIO_LIBS}
- ${KDE4_PLASMA_LIBS}
- ${KDE4_SOLID_LIBS}
- ${KDE4WORKSPACE_TASKMANAGER_LIBRARY}
- ${LANCELOT_LIBS}
- ${ADDITIONAL_LINK_LIBRARIES}
- kworkspace
-)
-
-set_target_properties(lancelot-datamodels PROPERTIES VERSION 1.7.0 SOVERSION 1)
-install(TARGETS lancelot-datamodels ${INSTALL_TARGETS_DEFAULT_ARGS})
-
-########### install files ###############
-
-set(lancelot_datamodels_LIB_INCLUDES
- Applications.h
- BaseMergedModel.h
- BaseModel.h
- ContactsKopete.h
- Devices.h
- FavoriteApplications.h
- FolderModel.h
- AvailableModels.h
- Logger.h
- MessagesKmail.h
- NewDocuments.h
- OpenDocuments.h
- Places.h
- RecentDocuments.h
- Runner.h
- Serializator.h
- SystemActions.h
- SystemServices.h
- XbelModel.h
-)
-
-install(FILES
- ${lancelot_datamodels_LIB_INCLUDES}
- DESTINATION ${INCLUDE_INSTALL_DIR}/lancelot-datamodels COMPONENT Devel
-)
-
-install(FILES
- Lancelot/Models/Applications
- Lancelot/Models/AvailableModels
- Lancelot/Models/BaseMergedModel
- Lancelot/Models/BaseModel
- Lancelot/Models/ContactsKopete
- Lancelot/Models/Devices
- Lancelot/Models/FavoriteApplications
- Lancelot/Models/FolderModel
- Lancelot/Models/Logger
- Lancelot/Models/MessagesKmail
- Lancelot/Models/NewDocuments
- Lancelot/Models/OpenDocuments
- Lancelot/Models/Places
- Lancelot/Models/RecentDocuments
- Lancelot/Models/Runner
- Lancelot/Models/Serializator
- Lancelot/Models/SystemActions
- Lancelot/Models/SystemServices
- Lancelot/Models/XbelModel
- DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Lancelot/Models COMPONENT Devel
-)
-
diff --git a/libs/lancelot-datamodels/ContactsKopete.cpp b/libs/lancelot-datamodels/ContactsKopete.cpp
deleted file mode 100644
index 87ed662..0000000
--- a/libs/lancelot-datamodels/ContactsKopete.cpp
+++ /dev/null
@@ -1,307 +0,0 @@
-/*
- * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser/Library General Public License version 2,
- * or (at your option) any later version, as published by the Free
- * Software Foundation
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser/Library General Public License for more details
- *
- * You should have received a copy of the GNU Lesser/Library General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "ContactsKopete.h"
-
-#include <QDBusServiceWatcher>
-
-#include <KDebug>
-#include <KIcon>
-#include <KStandardDirs>
-
-#include "kopete_interface.h"
-#include "Logger.h"
-
-#define KOPETE_SERVICE "org.kde.kopete"
-#define DELAY_INTERVAL 500
-
-namespace Lancelot {
-namespace Models {
-
-class ContactsKopete::Private {
-public:
- Private(ContactsKopete * parent)
- : interface(NULL), q(parent)
- {}
-
- ~Private()
- {
- }
-
- org::kde::Kopete * interface;
-
- void serviceOnline()
- {
- if (interface) return;
-
- interface = new org::kde::Kopete(
- KOPETE_SERVICE, "/Kopete", QDBusConnection::sessionBus());
- connect(interface, SIGNAL(contactChanged(QString)),
- q, SLOT(contactChanged(QString)));
-
- q->load(true);
- }
-
- void serviceOffline()
- {
- if (!interface) return;
-
- delete interface;
- interface = NULL;
-
- q->load(true);
- }
-
- QDBusServiceWatcher * dbusWatcher;
-
- QBasicTimer delayTimer;
- QStringList contactsToUpdate;
- bool noOnlineContacts : 1;
-
-private:
- ContactsKopete * const q;
-};
-
-ContactsKopete::ContactsKopete()
- : d(new Private(this))
-{
- setSelfTitle(i18n("Contacts"));
- setSelfIcon(KIcon("kopete"));
-
- // service watcher
- d->dbusWatcher = new QDBusServiceWatcher(
- KOPETE_SERVICE, QDBusConnection::sessionBus());
-
- connect(d->dbusWatcher, SIGNAL(serviceOwnerChanged(QString,QString,QString)),
- this, SLOT(kopeteServiceOwnerChanged(QString,QString,QString)));
-
- // other
-
- kopeteServiceOwnerChanged(QString::null, QString::null, QString::null);
-
- load();
-}
-
-ContactsKopete::~ContactsKopete()
-{
- delete d->interface;
- delete d->dbusWatcher;
- delete d;
-}
-
-void ContactsKopete::timerEvent(QTimerEvent * event)
-{
- if (event->timerId() == d->delayTimer.timerId()) {
- d->delayTimer.stop();
- if (d->contactsToUpdate.size() > 5) {
- load(true);
- } else {
- foreach(const QString &contact, d->contactsToUpdate) {
- updateContactData(contact);
- }
- }
- d->contactsToUpdate.clear();
- }
-}
-
-void ContactsKopete::activate(int index)
-{
- if (d->interface && !d->noOnlineContacts) {
- QString data = title(index);
- Logger::self()->log("kopete-model", data);
- d->interface->openChat(data);
- } else {
- BaseModel::activate(index);
- }
- hideApplicationWindow();
-}
-
-void ContactsKopete::load()
-{
- load(false);
-}
-
-void ContactsKopete::load(bool forceReload)
-{
- if (forceReload) {
- d->delayTimer.stop();
- d->contactsToUpdate.clear();
- }
-
- setEmitInhibited(true);
-
- if (!d->interface) {
-
- clear();
-
- if (addService("kopete")) {
- // Item * item = const_cast < Item * > (& itemAt(0));
- // item->title = i18n("Messaging client");
- // item->description = i18n("Messaging client is not running");
- } else {
- add(i18n("Unable to find Kopete"), "",
- KIcon("application-x-executable"), QVariant("http://kopete.kde.org"));
- }
- } else {
- if (forceReload) {
- // kDebug() << "full";
- clear();
- d->noOnlineContacts = false;
-
- QDBusReply < QStringList > contacts = d->interface->contactsByFilter("online");
- if (!contacts.isValid()) {
- return;
- }
-
- foreach (const QString& contact, contacts.value()) {
- updateContactData(contact);
- }
-
- if (size() == 0) {
- add(i18n("No online contacts"), "", KIcon("user-offline"), QVariant());
- d->noOnlineContacts = true;
- setSelfTitle(i18n("Contacts"));
- } else {
- setSelfTitle(i18nc("Contacts (number of online contacts)", "Contacts (%1)", QString::number(size())));
- }
-
- }
- }
-
- setEmitInhibited(false);
- emit updated();
-}
-
-QString ContactsKopete::selfShortTitle() const
-{
- if (d->noOnlineContacts) {
- return QString();
- } else {
- return QString::number(size());
- }
-}
-
-void ContactsKopete::updateContactData(const QString & contact)
-{
- if (d->noOnlineContacts) {
- load(true);
- return;
- }
-
- // Retrieving contact name
- QDBusReply < QString > contactName = d->interface->getDisplayName(contact);
- if (!contactName.isValid()) {
- return;
- }
-
- QDBusReply < QVariantMap > contactProperties = d->interface->contactProperties(contact);
- if (!contactProperties.isValid() || contactProperties.value().size() == 0) {
- return;
- }
-
- QDBusReply < bool > contactOnline = d->interface->isContactOnline(contact);
- if (!contactOnline.isValid()) {
- return;
- }
-
- QString avatarPath = contactProperties.value().value("picture").toString();
- avatarPath = KUrl(avatarPath).toLocalFile();
- if (avatarPath.isEmpty()) {
- avatarPath = "user-online";
- }
- kDebug() << "avatarPath" << avatarPath;
-
- QString status = contactProperties.value().value("stat