Commit 8bb49718 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Remove remnants from old part system

Following 1856b09d
parent fd83c5d4
Pipeline #211011 passed with stage
in 9 minutes and 17 seconds
......@@ -13,16 +13,19 @@
#pragma once
#include "korganizerprivate_export.h"
#include "part.h"
#include <Akonadi/ETMCalendar>
#include <Akonadi/Item>
#include <KViewStateMaintainer>
#include <KXMLGUIClient>
#include <QUrl>
#include <QObject>
#include "mainwindow.h"
class AkonadiCollectionView;
class CalendarView;
class KOWindowList;
......
......@@ -26,5 +26,3 @@ set_target_properties(korganizer_interfaces PROPERTIES
install(TARGETS
korganizer_interfaces ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP
)
install(FILES korganizerpart.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPESDIR})
[Desktop Entry]
Name=KOrganizer Part Interface
Name[ar]=واجهة «جزء منظّمك»
Name[az]=KOrganizer tərkib hissələri
Name[bg]=Интерфейс на модула KOrganizer
Name[bs]=Dio Sučelja KOrganizatora
Name[ca]=Interfície de la part del KOrganizer
Name[ca@valencia]=Interfície de la part de KOrganizer
Name[cs]=Rozhraní komponenty KOrganizeru
Name[da]=Grænseflade til KOrganizer Part
Name[de]=KOrganizer-Komponenten-Schnittstelle
Name[el]=Διασύνδεση KOrganizer Part
Name[en_GB]=KOrganizer Part Interface
Name[es]=Interfaz de parte de KOrganizer
Name[et]=KOrganizeri komponendi liides
Name[fi]=KOrganizer-osaliittymä
Name[fr]=Interface de composant KOrganizer
Name[ga]=Comhéadan Comhpháirte KOrganizer
Name[gl]=Interface da Parte KOrganizer
Name[hu]=KOrganizer objektumfelület
Name[ia]=Interfacie pro parte de KOrganizer
Name[it]=Interfaccia del componente di KOrganizer
Name[ja]=KOrganizer コンポーネントのインターフェース
Name[kk]=KOrganizer бөлшегінің интерфейсі
Name[km]=ចំណុច​ប្រទាក់​ផ្នែក​របស់ KOrganizer
Name[ko]=KOrganizer 부분 인터페이스
Name[lt]=KOrganizer dalies sąsaja
Name[lv]=KOrganizer daļas saskarne
Name[mr]=के-ऑर्गनायझर पार्ट संवाद
Name[nb]=KOrganizer Part-grensesnitt
Name[nds]=KOrganizer-Komponent-Koppelsteed
Name[nl]=KOrganizer-componentuiterlijk
Name[nn]=Grensesnitt til KOrganizer-del
Name[pa]=ਕੇ-ਪਰਬੰਧਕ ਭਾਗ ਇੰਟਰਫੇਸ
Name[pl]=Moduł interfejsu KOrganizera
Name[pt]=Interface de Componente do KOrganizer
Name[pt_BR]=Interface do componente do KOrganizer
Name[ro]=Interfață Componentă KOrganizer
Name[ru]=Компонент органайзера
Name[sk]=Rozhranie KOrganizer Part
Name[sl]=KOrganizerjev vmesnik za Dele
Name[sr]=Сучеље К‑организатора дела
Name[sr@ijekavian]=Сучеље К‑организатора дијела
Name[sr@ijekavianlatin]=Sučelje K‑organizatora dijela
Name[sr@latin]=Sučelje K‑organizatora dela
Name[sv]=Korganizers delgränssnitt
Name[ta]=கேயார்கனைசர் பாகத்திற்கான இடைமுகப்பு
Name[tr]=KOrganizer Part Arayüzü
Name[uk]=Інтерфейс складової KOrganizer
Name[wa]=Eterface di KOrganizer Part
Name[x-test]=xxKOrganizer Part Interfacexx
Name[zh_CN]=KOrganizer 部件界面
Name[zh_TW]=KOrganizer 組件介面
Type=ServiceType
X-KDE-ServiceType=KOrganizer/Part
Comment=KOrganizer Part
Comment[af]=Korganizer Deel
Comment[ar]=جزء منظّمك
Comment[az]=KOrganizer komponenti
Comment[bg]=Модул KOrganizer
Comment[br]=Perzh KOrganizer
Comment[bs]=Dio KOrganizatora
Comment[ca]=Part del KOrganizer
Comment[ca@valencia]=Part de KOrganizer
Comment[cs]=KOrganizer Part
Comment[cy]=KTrefnydd Part
Comment[da]=KOrganizer Part
Comment[de]=KOrganizer-Komponente
Comment[el]=KOrganizer Part
Comment[en_GB]=KOrganizer Part
Comment[eo]=Organizilo-parto
Comment[es]=Parte de KOrganizer
Comment[et]=KOrganizeri komponent
Comment[eu]=KOrganizer zatia
Comment[fa]=بخش KOrganizer
Comment[fi]=KOrganizer-osa
Comment[fr]=Composant KOrganizer
Comment[fy]=KOrganizer Part
Comment[ga]=Comhpháirt KOrganizer
Comment[gl]=Parte KOrganizer
Comment[he]=רכיב KOrganizer
Comment[hr]=KOrganizer komponenta
Comment[hu]=KOrganizer objektum
Comment[ia]=Parte pro KOrganizer
Comment[is]=KOrganizer hluti
Comment[it]=Componente di KOrganizer
Comment[ja]=KOrganizer コンポーネント
Comment[ka]=KOrganizer კომპონენტი
Comment[kk]=KOrganizer бөлшегі
Comment[km]=ផ្នែក​របស់ KOrganizer
Comment[ko]=KOrganizer 부분
Comment[lt]=KOrganizer dalis
Comment[lv]=KOrganizer daļa
Comment[mk]=Дел од КОрганизатор
Comment[mr]=के-ऑर्गनायझर पार्ट
Comment[ms]=Bahagian KOrganizer
Comment[nb]=KOrganizer Part
Comment[nds]=KOrganizer-Komponent
Comment[ne]=केडीई आयोजक भाग
Comment[nl]=KOrganizer-component
Comment[nn]=KOrganizer-del
Comment[pa]=ਕੇ-ਪਰਬੰਧਕ ਭਾਗ
Comment[pl]=Moduł KOrganizera
Comment[pt]=Componente do KOrganizer
Comment[pt_BR]=Componente do KOrganizer
Comment[ro]=Componentă KOrganizer
Comment[ru]=Компонент органайзера
Comment[se]=KOrganizer-oassi
Comment[sk]=Part KOrganizer
Comment[sl]=Del KOrganizerja
Comment[sr]=К‑организатор део
Comment[sr@ijekavian]=К‑организатор дио
Comment[sr@ijekavianlatin]=K‑organizator dio
Comment[sr@latin]=K‑organizator deo
Comment[sv]=Korganizer-del
Comment[ta]=கேயார்கனைசர் பாகம்
Comment[tg]=Қисмати органайзер
Comment[tr]=KOrganizer Parçası
Comment[uk]=Складова KOrganizer
Comment[vi]=KOrganizer Part
Comment[wa]=KOrganizer Part
Comment[xh]=Indawana yeKOrganizer
Comment[x-test]=xxKOrganizer Partxx
Comment[zh_CN]=KOrganizer 部件
Comment[zh_TW]=KOrganizer 組件
[PropertyDef::X-KDE-KOrganizer-HasSettings]
Type=bool
[PropertyDef::X-KDE-PluginInterfaceVersion]
Type=int
/*
This file is part of the KOrganizer interfaces.
SPDX-FileCopyrightText: 2001, 2003 Cornelius Schumacher <schumacher@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "mainwindow.h"
#include <KParts/Part>
#include <KPluginFactory>
#include <QWidget>
namespace KOrg
{
class Part : public KParts::Part
{
Q_OBJECT
public:
static int interfaceVersion()
{
return 2;
}
static QString serviceType()
{
return QStringLiteral("KOrganizer/Part");
}
using List = QList<Part *>;
explicit Part(MainWindow *parent)
: KParts::Part(parent ? (parent->topLevelWidget()) : nullptr)
, mMainWindow(parent)
{
}
~Part() override = default;
virtual QString info() = 0;
/** short name of the part, used as category in the keybindings dialog */
virtual QString shortInfo() = 0;
MainWindow *mainWindow()
{
return mMainWindow;
}
private:
MainWindow *const mMainWindow;
};
}
......@@ -10,6 +10,8 @@
#include "kocore.h"
#include "prefs/koprefs.h"
#include <KPluginFactory>
#include <CalendarSupport/IdentityManager>
#include "korganizer_debug.h"
......
......@@ -10,7 +10,9 @@
#pragma once
#include "korganizer_core_export.h"
#include "part.h"
#include <KPluginMetaData>
#include <KXMLGUIClient>
#include <EventViews/CalendarDecoration>
......
......@@ -14,7 +14,6 @@
#pragma once
#include "mainwindow.h"
#include "part.h"
#include <KParts/MainWindow>
......@@ -103,7 +102,6 @@ protected:
private:
CalendarView *const mCalendarView; // Main view widget
KOrg::Part::List mParts; // List of parts loaded
ActionManager *mActionManager = nullptr;
};
......@@ -22,8 +22,9 @@
#include "korgmigrateapplication.h"
#endif
#include <KParts/StatusBarExtension>
#include <QStatusBar>
#include <KPluginFactory>
#include <QStatusBar>
#include <QVBoxLayout>
K_PLUGIN_FACTORY(KOrganizerFactory, registerPlugin<KOrganizerPart>();)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment