${CMAKE_BINARY_DIR}/libs/kworkspace
)
-if(ENABLE_TESTING)
- add_subdirectory(tests)
-endif()
-
set(appletbrowserdialog_SRCS
widgetsexplorer/kcategorizeditemsviewmodels.cpp
widgetsexplorer/plasmaappletitemmodel.cpp
${QT_QTUITOOLS_LIBRARY}
kworkspace
)
-
-if(Q_WS_X11)
- target_link_libraries(plasmagenericshell PRIVATE ${X11_LIBRARIES})
-endif(Q_WS_X11)
+target_link_libraries(plasmagenericshell PRIVATE ${X11_LIBRARIES})
set_target_properties(plasmagenericshell PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
+++ /dev/null
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}/..
- ${CMAKE_CURRENT_SOURCE_DIR}/../widgetsexplorer
-)
-
-add_definitions(-DPLASMAGENERICSHELL_EXPORT=)
-
-set(appletexplorer_SRCS
- ../widgetsexplorer/kcategorizeditemsviewmodels.cpp
- ../widgetsexplorer/plasmaappletitemmodel.cpp
- ../widgetsexplorer/widgetexplorer.cpp
- main.cpp
-)
-add_executable(plasmaappletexplorer ${appletexplorer_SRCS})
-target_link_libraries(plasmaappletexplorer
- KDE4::plasma
- KDE4::kdeui
- KDE4::kfile
- ${QT_QTDECLARATIVE_LIBRARY}
-)
-
-set(backgrounddialog_SRCS
- background.cpp
- ../backgrounddialog.cpp
- ../mouseinputbutton.cpp
- ../mouseplugins.cpp
- ../mousepluginwidget.cpp
- ../wallpaperpreview.cpp
- ../MousePlugins.ui
- ../MousePlugins.ui
- ../BackgroundDialog.ui
-)
-
-kde4_add_kcfg_files(backgrounddialog_SRCS ${CMAKE_SOURCE_DIR}/plasma/shells/plasma-desktop/data/plasma-shell-desktop.kcfgc)
-
-add_executable(plasmabackgrounddialog ${backgrounddialog_SRCS})
-target_link_libraries(plasmabackgrounddialog KDE4::plasma ${QT_QTUITOOLS_LIBRARY} KDE4::kfile kworkspace)
-
+++ /dev/null
-/*
- * Copyright 2009 Aaron J. Seigo
- *
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library General Public License as
- * published by the Free Software Foundation; either version 2 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 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 <QCoreApplication>
-
-#include <KAboutData>
-#include <KApplication>
-#include <KCmdLineArgs>
-#include <KComponentData>
-#include <KConfig>
-#include <KDebug>
-
-#include "../backgrounddialog.h"
-#include "plasma-shell-desktop.h"
-
-static const char description[] = "Background settings dialog";
-static const char version[] = "1.0";
-
-int main(int argc, char *argv[])
-{
- KAboutData aboutData("plasmbackgrounddialog", 0, ki18n("Plasma"),
- version, ki18n( description ), KAboutData::License_GPL,
- ki18n("(C) 2008, Aaron Seigo"));
- KCmdLineArgs::init(argc, argv, &aboutData);
- KApplication app;
-
- QSize res(1024, 768);
- QString id("foo");
- BackgroundDialog b(res, 0, 0, 0, id, AppSettings::self());
- b.show();
-
- return app.exec();
-}
-
+++ /dev/null
-#include <QtGui>
-// #include "customwidgets.h"
-#include <plasma/applet.h>
-#include "widgetsexplorer/widgetexplorer.h"
-#include <plasma/containment.h>
-#include <QDesktopWidget>
-#include <plasma/corona.h>
-#include <plasma/view.h>
-#include <plasma/containment.h>
-
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv);
-
- Plasma::Containment *containment = new Plasma::Containment();
-
- Plasma::WidgetExplorer *appletBrowser;
-
- Qt::Orientation orientation = Qt::Vertical;
-// Qt::Orientation orientation = Qt::Horizontal;
-
- appletBrowser = new Plasma::WidgetExplorer();
- appletBrowser->setContainment(containment);
- appletBrowser->setLocation(Plasma::BottomEdge);
- appletBrowser->populateWidgetList();
-
- Plasma::Corona *scene = new Plasma::Corona();
- scene->addItem(appletBrowser);
- scene->setSceneRect(QRectF(0, 0, appletBrowser->minimumWidth(), appletBrowser->minimumHeight()));
-
- Plasma::View *view = new Plasma::View(appletBrowser->containment(), 0);
- view->setScene(scene);
- view->setWindowFlags(Qt::FramelessWindowHint);
- view->setAttribute(Qt::WA_TranslucentBackground, true);
- view->setStyleSheet("background: transparent");
-
- QDesktopWidget *screen = new QDesktopWidget();
-
- view->setMinimumWidth(appletBrowser->minimumWidth());
- view->setMaximumWidth(appletBrowser->minimumWidth());
- view->setMinimumHeight(appletBrowser->minimumHeight());
- view->setMaximumHeight(appletBrowser->minimumHeight());
-
- if(orientation == Qt::Horizontal) {
- view->move(0, screen->height() - view->maximumHeight());
- } else {
- view->move(0, 0);
- }
-
- view->show();
-
- view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
- view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
-
- return app.exec();
-}