[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [declarative-plasmoids] tasks: rm tasks, it's now in workspace branch
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-11 4:40:32
Message-ID: 20120211044032.05898A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 6bdddcd0a61bf63b407b0b1c1cfdf00794f32bb0 by Shaun Reich.
Committed on 11/02/2012 at 05:40.
Pushed by sreich into branch 'master'.

rm tasks, it's now in workspace branch

D  +0    -39   tasks/CMakeLists.txt
D  +0    -4    tasks/Messages.sh
D  +0    -20   tasks/package/contents/config/main.xml
D  +0    -243  tasks/package/contents/ui/main.qml
D  +0    -30   tasks/package/metadata.desktop
D  +0    -172  tasks/plasma-applet-tasks.desktop
D  +0    -63   tasks/tasks.cpp
D  +0    -42   tasks/tasks.h

http://commits.kde.org/declarative-plasmoids/6bdddcd0a61bf63b407b0b1c1cfdf00794f32bb0

diff --git a/tasks/CMakeLists.txt b/tasks/CMakeLists.txt
deleted file mode 100644
index 6b2b01c..0000000
--- a/tasks/CMakeLists.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-project(tasks)
-
-
-set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
-
-find_package(KDE4 REQUIRED)
-include (KDE4Defaults)
-include(MacroLibrary)
-include(MacroOptionalDependPackage)
-
-macro_optional_find_package(KDE4Workspace)
-macro_log_feature(KDE4WORKSPACE_FOUND "kdebase workspace" "KDE base workspace \
libraries" "http://www.kde.org" FALSE "" "Needed for building several Plasma \
                plugins")
-
-add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
-add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
-include_directories (${KDE4_INCLUDES}
-                     ${KDE4WORKSPACE_INCLUDE_DIR}
-                     ${KDEPIMLIBS_INCLUDE_DIR}
-                     ${CMAKE_CURRENT_SOURCE_DIR}/libs)
-
-macro_display_feature_log()
-
-
-set(tasks_SRCS tasks.cpp)
-message(FATAL_ERROR ${KDEBASE_WORKSPACE_SOURCEDIR})
-
-kde4_add_plugin(plasma_applet_org_kde_tasks ${tasks_SRCS})
-
-include_directories(${KDEBASE_WORKSPACE_SOURCEDIR}/libs \
                ${KDEBASE_WORKSPACE_SOURCEDIR}/libs/taskmanager)
-target_link_libraries(plasma_applet_org_kde_tasks
-                      ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasmagenericshell)
-
-install(TARGETS plasma_applet_org_kde_tasks
-        DESTINATION ${PLUGIN_INSTALL_DIR})
-
-install(FILES plasma-applet-tasks.desktop
-        DESTINATION ${SERVICES_INSTALL_DIR})
-
-install(DIRECTORY package/ DESTINATION \
                ${DATA_INSTALL_DIR}/plasma/packages/org.kde.tasks)
diff --git a/tasks/Messages.sh b/tasks/Messages.sh
deleted file mode 100644
index d5fcd8c..0000000
--- a/tasks/Messages.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /usr/bin/env bash
-$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp
-$XGETTEXT `find . -name \*.qml -o -name \*.cpp` -o $podir/org.kde.tasks.pot
-rm -f rc.cpp
diff --git a/tasks/package/contents/config/main.xml \
b/tasks/package/contents/config/main.xml deleted file mode 100644
index eb11686..0000000
--- a/tasks/package/contents/config/main.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
-      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-      xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
-      http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
-  <kcfgfile name=""/>
-
-  <group name="General">
-    <entry name="removableDevices" type="Bool">
-      <default>true</default>
-    </entry>
-    <entry name="nonRemovableDevices" type="Bool">
-      <default>false</default>
-    </entry>
-    <entry name="allDevices" type="Bool">
-      <default>false</default>
-    </entry>
-  </group>
-
-</kcfg>
diff --git a/tasks/package/contents/ui/main.qml b/tasks/package/contents/ui/main.qml
deleted file mode 100644
index 426b0e5..0000000
--- a/tasks/package/contents/ui/main.qml
+++ /dev/null
@@ -1,243 +0,0 @@
-
-/*****************************************************************************
- *   Copyright (C) 2011, 2012 by Shaun Reich <shaun.reich@kdemail.net>        *
- *                                                                            *
- *   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, see <http://www.gnu.org/licenses/>.    *
- *****************************************************************************/
-
-import QtQuick 1.1
-import org.kde.qtextracomponents 0.1
-
-import org.kde.plasma.core 0.1 as PlasmaCore
-import org.kde.plasma.components 0.1 as PlasmaComponents
-import org.kde.plasma.components 0.1
-
-Item {
-    id: tasks
-
-    property int minimumWidth: 300
-    property int minimumHeight: 300
-
-    PlasmaCore.DataSource {
-        id: tasksSource
-        engine: "tasks"
-        onSourceAdded: connectSource(source)
-        onSourceRemoved: disconnectSource(source)
-
-        Component.onCompleted: connectedSources = sources
-    }
-
-    PlasmaCore.DataModel {
-        id: tasksModel
-        dataSource: tasksSource
-    }
-
-    Component.onCompleted: {
-//        plasmoid.popupIcon = "utilities-terminal";
- //       plasmoid.aspectRatioMode = IgnoreAspectRatio;
-    }
-
-    GridView {
-        id: tasksGrid
-
-        anchors.fill: parent
-
-        model: tasksModel
-        delegate: tasksDelegate
-
-        cellWidth: 300; cellHeight: 30
-
-        focus: true
-        interactive: false
-
-
-
-        MouseArea {
-            property string currentId: "-1"                       // Original \
                position in model
-            property int newIndex                            // Current Position in \
                model
-            property int index: tasksGrid.indexAt(mouseX, mouseY) // Item underneath \
                cursor
-            id: loc
-            anchors.fill: parent
-            onPressAndHold: currentId =tasksModel.get(1).name \
                //tasksModel.get(newIndex = index).gridId.
-            onReleased: currentId = -1
-            onMousePositionChanged:
-            if (loc.currentId != "-1" && index != -1 && index != newIndex) {
-                
-                console.log("DEBUG" + "newindex: " + newIndex + " INDEX: " + index)
-                tasksModel.move(0 , 1, 1)//newIndex, newIndex = index, 1)
-            }
-        }
-    }
-
-    Component {
-        id: contextMenuComponent
-        PlasmaComponents.ContextMenu {
-            PlasmaComponents.MenuItem {
-                text: "White"
-              //  onClicked: {
-                    //contentMenuButton.parent.color = "White"
-               // }
-            }
-            PlasmaComponents.MenuItem {
-                text: "Red"
- //               onClicked: contentMenuButton.parent.color = "Red"
-            }
-            PlasmaComponents.MenuItem {
-                text: "LightBlue"
-  //              onClicked: contentMenuButton.parent.color = "LightBlue"
-            }
-            PlasmaComponents.MenuItem {
-                text: "LightGreen"
-   //             onClicked: contentMenuButton.parent.color = "LightGreen"
-            }
-        }
-    }
-
-    Component {
-        id: tasksDelegate
-
-        Item {
-            id: wrapper
-            width: 300
-            height: 30
-
-            //FIXME: make it not be created in the first place..
-            visible: model.onCurrentDesktop
-
-            GridView.onRemove: SequentialAnimation {
-                PropertyAction { target: wrapper ; property: "GridView.delayRemove"; \
                value: true }
-                NumberAnimation { target: taskBackground; property: "opacity"; to: \
                0; duration: 2500; easing.type: Easing.InOutQuad }
-                PropertyAction { target: wrapper; property: "GridView.delayRemove"; \
                value: false }
-            }
-
-            states: [
-                State {
-                    name: "none"
-                    when: !hovered && !model.minimized
-
-                    PropertyChanges {
-                        target: taskBackground
-                        prefix: "normal"
-                    }
-                },
-                State {
-                    name: "hovered"
-                    when: hovered && !model.minimized
-
-                    PropertyChanges {
-                        target: taskBackground
-                        prefix: "hover"
-                    }
-                },
-                State {
-                    name: "minimized"
-                    when: model.minimized
-
-                    PropertyChanges {
-                        target: taskBackground
-                        prefix: "focus"
-                    }
-                }
-            ]
-
-            property bool hovered: false
-            property ContextMenu contextMenu
-            MouseArea {
-                id: mouseArea
-                anchors.fill: parent
-                hoverEnabled: true
-
-  
-
-                onClicked: {
-                   // if (!contextMenu) {
-                    if (mouse.button == Qt.RightButton) {
-                        contextMenu = contextMenuComponent.createObject(wrapper)
-                        contextMenu.open()
-                    }
-                   // }
-                }
-
-                onEntered: {
-                    hovered = true;
-                }
-
-                onExited: {
-                    hovered = false;
-                }
-            }
-
-            PlasmaCore.FrameSvgItem {
-                id: taskBackground
-
-                anchors { left: icon.left; right: text.right; top: icon.top; bottom: \
                icon.bottom }
-
-                imagePath: "widgets/tasks"
-//                prefix: {
-//                    if (model.minimized) {
-//                        "focus"
-//                    } else {
-//                        if (hovered) {
-//                            "hover"
-//                        } else {
-//                            "normal"
-//                        }
-//                    }
-//                }
-            }
-
-            QIconItem {
-                id: icon
-
-                anchors { left: taskBackground.left; verticalCenter: \
                taskBackground.verticalCenter }
-
-                icon: model.icon
-                width: 22
-                height: 22
-            }
-
-            PlasmaComponents.Label {
-                id: text
-
-                anchors { left: icon.right; top: icon.top; bottom: icon.bottom }
-
-                height: tasksGrid.cellHeight
-                width: 200
-
-                verticalAlignment: Text.AlignVCenter
-
-                clip: true
-                text: model.name
-            }
-        }
-    }
-
-
-//        PlasmaComponents.Label {
-//            id: header
-//            text: i18n("Konsole Profiles")
-//            anchors { horizontalCenter: parent.horizontalCenter }
-//            horizontalAlignment: Text.AlignHCenter
-//        }
-//
-
-//
-//    Text {
-//        id: textMetric
-//        visible: false
-//        // translated but not used, we just need length/height
-//        text: i18n("Arbitrary String Which Says The Something")
-//    }
-//
-}
diff --git a/tasks/package/metadata.desktop b/tasks/package/metadata.desktop
deleted file mode 100644
index 23e2874..0000000
--- a/tasks/package/metadata.desktop
+++ /dev/null
@@ -1,30 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=Tasks (QML)
-Name[cs]=Slovník (QML)
-Name[de]=Wörterbuch (QML)
-Name[es]=Diccionario (QML)
-Name[et]=Sõnaraamat (QML)
-Name[fr]=Dictionnaire (QML)
-Name[nds]=Wöörbook (QML)
-Name[nl]=Woordenboek (QML)
-Name[pl]=Słownik (QML)
-Name[pt]=Dicionário (QML)
-Name[pt_BR]=Dicionário (QML)
-Name[sv]=Ordlista (QML)
-Name[uk]=Словник (QML)
-Name[x-test]=xxDictionary (QML)xx
-Type=Service
-ServiceTypes=Plasma/Applet,Plasma/PopupApplet
-Icon=accessories-dictionary
-X-Plasma-MainScript=ui/main.qml
-X-Plasma-DefaultSize=300,200
-X-KDE-PluginInfo-Author=Shaun M. Reich
-X-KDE-PluginInfo-Email=shaun.reich@kdemail.net
-X-KDE-PluginInfo-Name=org.kde.tasks
-X-KDE-PluginInfo-Version=1.0
-X-KDE-PluginInfo-Website=http://plasma.kde.org/
-X-KDE-PluginInfo-Category=Examples
-X-KDE-PluginInfo-Depends=
-X-KDE-PluginInfo-License=GPL
-X-KDE-PluginInfo-EnabledByDefault=true
diff --git a/tasks/plasma-applet-tasks.desktop b/tasks/plasma-applet-tasks.desktop
deleted file mode 100644
index f78f5e3..0000000
--- a/tasks/plasma-applet-tasks.desktop
+++ /dev/null
@@ -1,172 +0,0 @@
-[Desktop Entry]
-Name=Task Manager
-Name[af]=Taakbestuurder
-Name[ar]=مدير المهام
-Name[ast]=Xestor de xeres
-Name[be]=Кіраванне заданнямі
-Name[be@latin]=Kiraŭnik zadańniaŭ
-Name[bg]=Управление на задачи
-Name[bn]=টাস্ক ম্যানেজার
-Name[bs]=menadžer zadataka
-Name[ca]=Gestor de tasques
-Name[ca@valencia]=Gestor de tasques
-Name[cs]=Správce úloh
-Name[csb]=Menedżer dzejaniów
-Name[da]=Opgavelinje
-Name[de]=Fensterleiste
-Name[el]=Διαχειριστής εργασιών
-Name[en_GB]=Task Manager
-Name[eo]=Taskadministrilo
-Name[es]=Gestor de tareas
-Name[et]=Tegumihaldur
-Name[eu]=Ataza kudeatzailea
-Name[fi]=Tehtävienhallinta
-Name[fr]=Gestionnaire de tâches
-Name[fy]=Taakbehearder
-Name[ga]=Bainisteoir na dTascanna
-Name[gl]=Xestor de tarefas
-Name[gu]=ટાસ્ક વ્યવસ્થાપક
-Name[he]=מ הל משימות
-Name[hi]=कार्य प्रबंधक
-Name[hne]=काम प्रबंधक
-Name[hr]=Upravljanje zadacima
-Name[hsb]=Rjadowar nadawkow
-Name[hu]=Feladatkezelő
-Name[ia]=Gerente de carga
-Name[id]=Manajer Tugas
-Name[is]=Verkefnastjóri
-Name[it]=Gestore dei processi
-Name[ja]=タスクマネージャ
-Name[kk]=Тапсырмалар менеджері
-Name[km]=កម្មវិធី​គ្រប់គ្រង​ភារកិច្ច
                
-Name[kn]=ಕಾರ್ಯ ವ್ಯವಸ್ಥಾಪಕ (ಟಾಸ್ಕ್ \
                ಮ್ಯಾನೇಜರ್)
-Name[ko]=작업 관리자
-Name[lt]=Užduočių tvarkyklė
-Name[lv]=Uzdevumu pārvaldnieks
-Name[mk]=Менаџер на апликации
-Name[ml]=ടാസ്ക് മാനേജര്‍
-Name[mr]=कार्य व्यवस्थपाक
-Name[nb]=Oppgavebehandler
-Name[nds]=Opgavenpleger
-Name[ne]=कार्य प्रबन्धक
-Name[nl]=Takenbeheer
-Name[nn]=Oppgåvehandsamar
-Name[or]=କାର୍ଯ୍ୟ ପରିଚାଳକ
-Name[pa]=ਟਾਸਕ ਮੈਨੇਜਰ
-Name[pl]=Menedżer zadań
-Name[pt]=Gestor de Tarefas
-Name[pt_BR]=Gerenciador de tarefas
-Name[ro]=Gestionar de sarcini
-Name[ru]=Панель задач
-Name[se]=Bargogieđahalli
-Name[si]=කාර්‍යය කළමණාකරු
-Name[sk]=Správca úloh
-Name[sl]=Upravitelj opravil
-Name[sr]=менаџер задатака
-Name[sr@ijekavian]=менаџер задатака
-Name[sr@ijekavianlatin]=menadžer zadataka
-Name[sr@latin]=menadžer zadataka
-Name[sv]=Aktivitetshanterare
-Name[ta]=பணி மேலாளர்
-Name[te]=కర్తవ్య నిర్వాహకి
-Name[tg]=Мудири вазифаҳо
-Name[th]=จัดการงาน
-Name[tr]=Görev Yöneticisi
-Name[ug]=ۋەزىپە باشقۇرغۇچ
-Name[uk]=Менеджер задач
-Name[uz]=Vazifa boshqaruvchisi
-Name[uz@cyrillic]=Вазифа бошқарувчиси
-Name[wa]=Manaedjeu des bouyes
-Name[x-test]=xxTask Managerxx
-Name[zh_CN]=任务管理器
-Name[zh_TW]=工作管理員
-Comment=Switch between running applications
-Comment[ar]=بدّل بين التطبيقات التي تعمل
-Comment[ast]=Camudar ente aplicaciones n'execución
-Comment[be@latin]=Pieraklučeńnie dziejnych aplikacyjaŭ
-Comment[bg]=Превключване между стартирани \
                програми
-Comment[bs]=Prebacujte između programa u radu
-Comment[ca]=Commuta entre aplicacions en execució
-Comment[ca@valencia]=Commuta entre aplicacions en execució
-Comment[cs]=Přepínač mezi běžícími aplikacemi
-Comment[da]=Skift mellem kørende programmer
-Comment[de]=Ermöglicht den wechselnden Zugriff auf laufende Programme.
-Comment[el]=Εναλλαγή μεταξύ εκτελούμενων \
                εφαρμογών
-Comment[en_GB]=Switch between running applications
-Comment[eo]=Komuti inter funkciantaj aplikaĵoj
-Comment[es]=Cambiar entre aplicaciones en ejecución
-Comment[et]=Lülitumine töötavate rakenduste vahel
-Comment[eu]=Aldatu abian dauden aplikazioez
-Comment[fi]=Vaihda avoinna olevien ohjelmien välillä
-Comment[fr]=Passe d'une application   l'autre
-Comment[fy]=Wikselje tusken rinnende programma's
-Comment[ga]=Athraigh idir feidhmchláir atá ag rith
-Comment[gl]=Troca entre programas en execución
-Comment[gu]=ચાલતાં કાર્યક્રમો વચ્ચે \
                ફેરબદલી કરો
-Comment[he]=מעבר בין יישומים פעילים
-Comment[hi]=चल रहे अनुप्रयोगों के बीच \
                स्विच करें
-Comment[hne]=चलत अनुपरयोग मं स्विच करव
-Comment[hr]=Promjena među pokrenutim aplikacijama
-Comment[hsb]= altuje mjez běžacymi aplikacijemi
-Comment[hu]=A futó alkalmazások között lehet vele váltani
-Comment[ia]=Commuta  inter applicationes que on exeque
-Comment[id]=Berpindah di antara aplikasi yang berjalan
-Comment[is]=Skipta á milli forrita sem eru í gangi
-Comment[it]=Passa ad altre applicazioni in esecuzione
-Comment[ja]=実行中のアプリケーションを切り替えます
-Comment[kk]=Жегілген қолданбаларды ақтару
-Comment[km]=ប្ដូរ​រវាង​កម្មវិធី​ដែល​កំពុង​រត់
                
-Comment[kn]=ಚಾಲ್ತಿಯಲ್ಲಿರುವ ಅನ್ವಯಗಳ \
                ನಡುವೆ ಅಂತರಿಸು
-Comment[ko]=실행 중인 프로그램을  환합니다
-Comment[lt]=Perjungimas tarp veikiančių programų
-Comment[lv]=Pārslēdzas starp palaistajām programmām
-Comment[mk]=Движете се низ активните апликации
-Comment[ml]=പ്രവര്‍ത്തിക്കുന്ന \
പ്രവര്‍ത്തങ്ങള്‍ തമ്മില്‍ \
                മാറുക
-Comment[mr]=कार्यरत अनुप्रयोग अंतर्गत \
                बदलाव करा
-Comment[nb]=Bytt mellom kjørende programmer
-Comment[nds]=Twischen lopen Programmen wesseln
-Comment[nl]=Schakel tussen draaiende programma's
-Comment[nn]=Byt mellom program som køyrer
-Comment[or]=ଚାଲୁଥିବା ପ୍ରୟୋଗଗୁଡ଼ିକ \
                ମଧ୍ଯରେ ଅଦଳ ବଦଳ କରନ୍ତୁ
-Comment[pa]=ਚੱਲਦੀਆਂ ਐਪਲੀਕੇਸ਼ਨਾਂ ਬਦਲੋ
-Comment[pl]=Przełączanie między działającymi programami
-Comment[pt]=Mudar de aplicações em execução
-Comment[pt_BR]=Alterna entre os aplicativos em execução
-Comment[ro]=Comută printre aplicațiile ce rulează
-Comment[ru]=Переключение между запущенными \
                приложениями
-Comment[si]=ක්‍රියාත්මක වන යෙදුම් අතරේ \
                මාරුවන්න
-Comment[sk]=Prepínanie medzi bežiacimi aplikáciami
-Comment[sl]=Preklapljajte med zagnanimi programi
-Comment[sr]=Пребацујте између програма у раду
-Comment[sr@ijekavian]=Пребацујте између програма у раду
-Comment[sr@ijekavianlatin]=Prebacujte između programa u radu
-Comment[sr@latin]=Prebacujte između programa u radu
-Comment[sv]=Byt mellan program som kör
-Comment[ta]=Switch between running applications
-Comment[te]=నడుస్తున్న అనువర్తనముల \
                మద్యన మారుము
-Comment[tg]=Переключение между рабочими столами
-Comment[th]=สลับการทำงานระหว่างโปรแกรมต่าง \
                ๆ
-Comment[tr]=Çalışan uygulamalar arasında gezin
-Comment[ug]=ئىجرا بولۇۋاتقان پروگراممىلارنى \
                ئالماشتۇر
-Comment[uk]=Перемкніть запущені програми
-Comment[wa]=Passer d' on programe ovrant a èn ôte
-Comment[x-test]=xxSwitch between running applicationsxx
-Comment[zh_CN]=在已运行的程序间切换
-Comment[zh_TW]=在執行中的應用程式間切換
-Icon=preferences-system-windows
-Type=Service
-X-KDE-ServiceTypes=Plasma/Applet
-
-X-KDE-Library=plasma_applet_org_kde_tasks
-X-KDE-PluginInfo-Author=Shaun M. Reich
-X-KDE-PluginInfo-Email=shaun.reich@kdemail.net
-X-KDE-PluginInfo-Name=org.kde.tasks
-X-KDE-PluginInfo-Version=0.1
-X-KDE-PluginInfo-Website=http://plasma.kde.org/
-X-KDE-PluginInfo-Category=Windows and Tasks
-X-KDE-PluginInfo-Depends=
-X-KDE-PluginInfo-License=GPL v2+
-X-KDE-PluginInfo-EnabledByDefault=true
-X-Plasma-Requires-FileDialog=Unused
-X-Plasma-Requires-LaunchApp=Unused
-
diff --git a/tasks/tasks.cpp b/tasks/tasks.cpp
deleted file mode 100644
index 9374b68..0000000
--- a/tasks/tasks.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2012 by Shaun M. Reich <shaun.reich@kdemail.net>        *
- *                                                                         *
- *   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 .        *
- ***************************************************************************/
-
-#include "tasks.h"
-
-#include <Plasma/Containment>
-#include <Plasma/Corona>
-
-#include <QGraphicsView>
-#include <QDeclarativeEngine>
-#include <QDeclarativeView>
-#include <QDeclarativeComponent>
-#include <QGraphicsLinearLayout>
-#include <QUrl>
-
-#include <KDebug>
-
-#include <Plasma/DeclarativeWidget>
-#include <Plasma/Package>
-
-#include <plasmagenericshell/taskmanager/tasksmodel.h>
-//    libs/taskmanager/tasksmodel.h
-K_EXPORT_PLASMA_APPLET(tasks, Tasks)
-
-Tasks::Tasks(QObject *parent, const QVariantList &args)
-    : Plasma::Applet(parent, args)
-{
-    resize(192, 128);
-
-    setAspectRatioMode(Plasma::IgnoreAspectRatio);
-    setHasConfigurationInterface(false);
-
-    QGraphicsLinearLayout *lay = new QGraphicsLinearLayout(this);
-    m_declarativeWidget = new Plasma::DeclarativeWidget(this);
-    lay->addItem(m_declarativeWidget);
-
-    Plasma::PackageStructure::Ptr structure = \
                Plasma::PackageStructure::load("Plasma/Generic");
-    m_package = new Plasma::Package(QString(), "org.kde.tasks", structure);
-    m_declarativeWidget->setQmlPath(m_package->filePath("mainscript"));
-}
-
-Tasks::~Tasks()
-{
-
-}
-
-#include "tasks.moc"
diff --git a/tasks/tasks.h b/tasks/tasks.h
deleted file mode 100644
index 8975a45..0000000
--- a/tasks/tasks.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2012 by Shaun M. Reich <shaun.reich@kdemail.net>        *
- *                                                                         *
- *   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 .        *
- ***************************************************************************/
-
-#ifndef TASKS_H
-#define TASKS_H
-
-#include <Plasma/Applet>
-
-namespace Plasma {
-    class Package;
-    class DeclarativeWidget;
-}
-
-class Tasks : public Plasma::Applet
-{
-Q_OBJECT
-public:
-    Tasks(QObject *parent, const QVariantList &args);
-    ~Tasks();
-
-private:
-    Plasma::Package *m_package;
-    Plasma::DeclarativeWidget *m_declarativeWidget;
-};
-
-#endif


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic