shell package partly working

wilder-5.14
Marco Martin 13 years ago
parent 68cfab8194
commit fa5b181ba9
  1. 4
      desktopcorona.cpp
  2. 2
      desktopcorona.h
  3. 7
      main.cpp
  4. 2
      panelview.cpp
  5. 2
      qmlpackages/desktop/CMakeLists.txt
  6. 0
      qmlpackages/desktop/contents/components/AppletError.qml
  7. 0
      qmlpackages/desktop/contents/components/CompactApplet.qml
  8. 0
      qmlpackages/desktop/contents/components/ConfigCategoryDelegate.qml
  9. 0
      qmlpackages/desktop/contents/components/Configuration.qml
  10. 0
      qmlpackages/desktop/contents/components/ConfigurationContainmentActions.qml
  11. 0
      qmlpackages/desktop/contents/components/ConfigurationContainmentAppearance.qml
  12. 0
      qmlpackages/desktop/contents/components/ConfigurationShortcuts.qml
  13. 0
      qmlpackages/desktop/contents/components/DefaultCompactRepresentation.qml
  14. 0
      qmlpackages/desktop/contents/views/Desktop.qml
  15. 0
      qmlpackages/desktop/contents/views/Panel.qml
  16. 5
      qmlpackages/desktop/metadata.desktop
  17. 3
      shellpackage.cpp
  18. 2
      view.cpp

@ -24,7 +24,6 @@
#include <QDesktopWidget>
#include "panelview.h"
#include "shellpluginloader.h"
#include "view.h"
@ -34,9 +33,6 @@ DesktopCorona::DesktopCorona(QObject *parent)
: Plasma::Corona(parent),
m_desktopWidget(QApplication::desktop())
{
m_pluginLoader = new ShellPluginLoader();
Plasma::PluginLoader::setPluginLoader(m_pluginLoader);
connect(m_desktopWidget, SIGNAL(resized(int)),
this, SLOT(screenResized(int)));
connect(m_desktopWidget, SIGNAL(screenCountChanged(int)),

@ -30,7 +30,6 @@ class View;
namespace Plasma
{
class Applet;
class PluginLoader;
} // namespace Plasma
@ -77,7 +76,6 @@ private:
QDesktopWidget *m_desktopWidget;
QList <View *> m_views;
QHash<Plasma::Containment *, PanelView *> m_panelViews;
Plasma::PluginLoader *m_pluginLoader;
};
#endif

@ -25,10 +25,11 @@
#include <kcmdlineargs.h>
#include <klocalizedstring.h>
#include <Plasma/Containment>
#include "desktopcorona.h"
#include <plasma/containment.h>
#include "shellpluginloader.h"
static const char description[] = "Plasma2 library tests";
static const char version[] = "1.0";
@ -46,7 +47,7 @@ int main(int argc, char** argv)
QApplication app(argc, argv);
Plasma::PluginLoader::setPluginLoader(new ShellPluginLoader);
DesktopCorona *corona = new DesktopCorona();
corona->loadLayout();
if (corona->containments().isEmpty()) {

@ -89,7 +89,7 @@ void PanelView::init()
}
setResizeMode(View::SizeRootObjectToView);
setSource(QUrl::fromLocalFile(corona()->package().filePath("ui", "PanelView.qml")));
setSource(QUrl::fromLocalFile(corona()->package().filePath("views", "Panel.qml")));
}
void PanelView::positionPanel()

@ -1,5 +1,5 @@
project(desktop_homescreen)
install(DIRECTORY . DESTINATION ${DATA_INSTALL_DIR}/plasma/packages/org.kde.homescreen.desktop PATTERN .svn EXCLUDE PATTERN CMakeLists.txt EXCLUDE PATTERN Messages.sh EXCLUDE)
install(DIRECTORY . DESTINATION ${DATA_INSTALL_DIR}/plasma/shells/org.kde.desktop PATTERN .svn EXCLUDE PATTERN CMakeLists.txt EXCLUDE PATTERN Messages.sh EXCLUDE)

@ -21,13 +21,12 @@ Name[uk]=Стільниця
Name[x-test]=xxDesktopxx
Type=Service
X-KDE-ServiceTypes=Plasma/GenericPackage
X-KDE-ServiceTypes=Plasma/Shell
X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Marco Martin
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Email=mart@kde.org
X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.kde.homescreen.desktop
X-KDE-PluginInfo-Name=org.kde.desktop
X-KDE-PluginInfo-Version=
X-KDE-PluginInfo-Website=
X-Plasma-MainScript=ui/main.qml

@ -44,8 +44,9 @@ void ShellPackageStructure::initPackage(Plasma::Package *package)
package->addFileDefinition("appleterror", "components/AppletError.qml", i18n("Error message shown when an applet fails loading"));
package->addFileDefinition("compactapplet", "components/CompactApplet.qml", i18n("QML component that shows an applet in a popup"));
package->addFileDefinition("configurationui", "components/Configuration.qml", i18n("QML component for the configuratuion dialog"));
package->addFileDefinition("defaultcompactrepresentation", "components/DefaultCompactRepresentation.qml", i18n("Compact representation of an applet when collapsed in a popup, for instance as an icon. applets can override this component."));
package->addFileDefinition("widgetexplorer", "components/WidgetExplorer.qml", i18n("Widgets explorer ui"));
package->addFileDefinition("widgetexplorer", "components/WidgetExplorer.qml", i18n("Widgets explorer UI"));
//package->setRequired("mainscript", true);
}

@ -63,7 +63,7 @@ void View::init()
}
setResizeMode(View::SizeRootObjectToView);
setSource(QUrl::fromLocalFile(m_corona->package().filePath("mainscript")));
setSource(QUrl::fromLocalFile(m_corona->package().filePath("views", "Desktop.qml")));
}
void View::setContainment(Plasma::Containment *cont)

Loading…
Cancel
Save