Revert the applet browser import to fix the build
CCMAIL: ivan.cukic+kde@gmail.com svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=717225
This commit is contained in:
parent
30b2cd64fc
commit
67322b0367
@ -3,7 +3,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${KDEBASE_WORKSPACE_SOURCE_DIR}/
|
|||||||
find_package(OpenGL)
|
find_package(OpenGL)
|
||||||
|
|
||||||
add_subdirectory( widgets )
|
add_subdirectory( widgets )
|
||||||
#add_subdirectory( appletbrowser )
|
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
@ -53,19 +52,6 @@ set(plasma_LIB_SRCS
|
|||||||
widgets/widget.cpp
|
widgets/widget.cpp
|
||||||
widgets/signalplotter.cpp
|
widgets/signalplotter.cpp
|
||||||
widgets/meter.cpp
|
widgets/meter.cpp
|
||||||
|
|
||||||
appletbrowser.cpp
|
|
||||||
appletbrowser/appletbrowserwindow.cpp
|
|
||||||
appletbrowser/kcategorizeditemsview.cpp
|
|
||||||
appletbrowser/kcategorizeditemsviewdelegate.cpp
|
|
||||||
appletbrowser/kcategorizeditemsviewmodels.cpp
|
|
||||||
appletbrowser/plasmaappletitemmodel.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
kde4_add_ui_files(
|
|
||||||
plasma_LIB_SRCS
|
|
||||||
appletbrowser/kcategorizeditemsviewbase.ui
|
|
||||||
appletbrowser/appletbrowserwindowbase.ui
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(krunner_xml ${KDEBASE_WORKSPACE_SOURCE_DIR}/krunner/org.kde.krunner.Interface.xml)
|
set(krunner_xml ${KDEBASE_WORKSPACE_SOURCE_DIR}/krunner/org.kde.krunner.Interface.xml)
|
||||||
@ -106,7 +92,6 @@ set(plasma_LIB_INCLUDES
|
|||||||
abstractrunner.h
|
abstractrunner.h
|
||||||
animator.h
|
animator.h
|
||||||
applet.h
|
applet.h
|
||||||
appletbrowser.h
|
|
||||||
configxml.h
|
configxml.h
|
||||||
containment.h
|
containment.h
|
||||||
corona.h
|
corona.h
|
||||||
|
@ -49,8 +49,6 @@
|
|||||||
#include "ksmserver_interface.h"
|
#include "ksmserver_interface.h"
|
||||||
#include "screensaver_interface.h"
|
#include "screensaver_interface.h"
|
||||||
|
|
||||||
#include "appletbrowser.h"
|
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -86,11 +84,9 @@ public:
|
|||||||
QPixmap* bitmapBackground;
|
QPixmap* bitmapBackground;
|
||||||
QString wallpaperPath;
|
QString wallpaperPath;
|
||||||
QAction *engineExplorerAction;
|
QAction *engineExplorerAction;
|
||||||
QAction *appletBrowserAction;
|
|
||||||
QAction *runCommandAction;
|
QAction *runCommandAction;
|
||||||
QAction *lockAction;
|
QAction *lockAction;
|
||||||
QAction *logoutAction;
|
QAction *logoutAction;
|
||||||
AppletBrowser *appletBrowser;
|
|
||||||
QSize size;
|
QSize size;
|
||||||
int screen;
|
int screen;
|
||||||
bool immutable;
|
bool immutable;
|
||||||
@ -102,19 +98,16 @@ Containment::Containment(QGraphicsItem* parent,
|
|||||||
: Applet(parent, serviceId, containmentId),
|
: Applet(parent, serviceId, containmentId),
|
||||||
d(new Private)
|
d(new Private)
|
||||||
{
|
{
|
||||||
d->appletBrowser = new AppletBrowser(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Containment::Containment(QObject* parent, const QVariantList& args)
|
Containment::Containment(QObject* parent, const QVariantList& args)
|
||||||
: Applet(parent, args),
|
: Applet(parent, args),
|
||||||
d(new Private)
|
d(new Private)
|
||||||
{
|
{
|
||||||
d->appletBrowser = new AppletBrowser(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Containment::~Containment()
|
Containment::~Containment()
|
||||||
{
|
{
|
||||||
delete d->appletBrowser;
|
|
||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,11 +187,6 @@ void Containment::launchExplorer()
|
|||||||
KRun::run("plasmaengineexplorer", KUrl::List(), 0);
|
KRun::run("plasmaengineexplorer", KUrl::List(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Containment::launchAppletBrowser()
|
|
||||||
{
|
|
||||||
d->appletBrowser->show();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Containment::runCommand()
|
void Containment::runCommand()
|
||||||
{
|
{
|
||||||
if (!KAuthorized::authorizeKAction("run_command")) {
|
if (!KAuthorized::authorizeKAction("run_command")) {
|
||||||
@ -251,16 +239,15 @@ QSizeF Containment::contentSizeHint() const
|
|||||||
QList<QAction*> Containment::contextActions()
|
QList<QAction*> Containment::contextActions()
|
||||||
{
|
{
|
||||||
//FIXME: several items here ... probably all junior jobs =)
|
//FIXME: several items here ... probably all junior jobs =)
|
||||||
|
// - engineExplorerAction is going to go away, so the !d->engineExplorerAction below needs to
|
||||||
|
// go
|
||||||
// - pretty up the menu with separators
|
// - pretty up the menu with separators
|
||||||
// - should we offer "Switch User" here?
|
// - should we offer "Switch User" here?
|
||||||
|
|
||||||
if (!d->appletBrowserAction) {
|
if (!d->engineExplorerAction) {
|
||||||
d->engineExplorerAction = new QAction(i18n("Engine Explorer"), this);
|
d->engineExplorerAction = new QAction(i18n("Engine Explorer"), this);
|
||||||
connect(d->engineExplorerAction, SIGNAL(triggered(bool)), this, SLOT(launchExplorer()));
|
connect(d->engineExplorerAction, SIGNAL(triggered(bool)), this, SLOT(launchExplorer()));
|
||||||
|
|
||||||
d->appletBrowserAction = new QAction(i18n("Add widget to desktop"), this);
|
|
||||||
connect(d->appletBrowserAction, SIGNAL(triggered(bool)), this, SLOT(launchAppletBrowser()));
|
|
||||||
|
|
||||||
d->runCommandAction = new QAction(i18n("Run Command..."), this);
|
d->runCommandAction = new QAction(i18n("Run Command..."), this);
|
||||||
connect(d->runCommandAction, SIGNAL(triggered(bool)), this, SLOT(runCommand()));
|
connect(d->runCommandAction, SIGNAL(triggered(bool)), this, SLOT(runCommand()));
|
||||||
|
|
||||||
@ -276,7 +263,6 @@ QList<QAction*> Containment::contextActions()
|
|||||||
QList<QAction*> actions;
|
QList<QAction*> actions;
|
||||||
|
|
||||||
actions.append(d->engineExplorerAction);
|
actions.append(d->engineExplorerAction);
|
||||||
actions.append(d->appletBrowserAction);
|
|
||||||
|
|
||||||
if (KAuthorized::authorizeKAction("run_command")) {
|
if (KAuthorized::authorizeKAction("run_command")) {
|
||||||
actions.append(d->runCommandAction);
|
actions.append(d->runCommandAction);
|
||||||
|
@ -229,7 +229,6 @@ class PLASMA_EXPORT Containment : public Applet
|
|||||||
*/
|
*/
|
||||||
void appletDestroyed(QObject*);
|
void appletDestroyed(QObject*);
|
||||||
void launchExplorer();
|
void launchExplorer();
|
||||||
void launchAppletBrowser();
|
|
||||||
void runCommand();
|
void runCommand();
|
||||||
void lockScreen();
|
void lockScreen();
|
||||||
void logout();
|
void logout();
|
||||||
|
Loading…
Reference in New Issue
Block a user