Commit bed9a075 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Remove dead print plugins

They are not built/not actually implemented
parent 1aa81146
Pipeline #75536 passed with stage
in 4 minutes and 2 seconds
<ui version="4.0" >
<author>Reinhold Kainhofer &lt;reinhold@kainhofer.com></author>
<comment>Configuration page for the print item list mode.</comment>
<class>CalPrintItemListConfig_Base</class>
<widget class="QWidget" name="CalPrintItemListConfig_Base" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>427</width>
<height>294</height>
</rect>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="mDateRangeGroup" >
<property name="title" >
<string>Date &amp;&amp; Time Range</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>16</width>
<height>23</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="mFromDateLabel" >
<property name="text" >
<string>&amp;Start date:</string>
</property>
<property name="buddy" >
<cstring>mFromDate</cstring>
</property>
</widget>
</item>
<item>
<widget class="KDateComboBox" name="mFromDate" >
<property name="focusPolicy" >
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mToDateLabel" >
<property name="text" >
<string>&amp;End date:</string>
</property>
<property name="buddy" >
<cstring>mToDate</cstring>
</property>
</widget>
</item>
<item>
<widget class="KDateComboBox" name="mToDate" >
<property name="focusPolicy" >
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>193</width>
<height>23</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox1" >
<property name="title" >
<string>Print Incidences of Type</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="mEvents" >
<property name="text" >
<string>&amp;Events</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mTodos" >
<property name="text" >
<string>&amp;To-dos</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mJournals" >
<property name="text" >
<string>&amp;Journals</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>409</width>
<height>111</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KDateComboBox</class>
<extends>QComboBox</extends>
<header>kdatecombobox.h</header>
<container>0</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>mFromDate</tabstop>
<tabstop>mToDate</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
/*
This file is part of KOrganizer.
SPDX-FileCopyrightText: 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
*/
#include "itemlistprint.h"
class ItemListPrintFactory : public KOrg::PrintPluginFactory
{
public:
KOrg::PrintPlugin *createPluginFactory()
{
return new CalPrintItemList;
}
};
/**************************************************************
* Print Item List
**************************************************************/
QWidget *CalPrintItemList::createConfigWidget(QWidget *w)
{
return new CalPrintItemListConfig(w);
}
void CalPrintItemList::readSettingsWidget()
{
CalPrintItemListConfig *cfg = dynamic_cast<CalPrintItemListConfig *>((QWidget *)mConfigWidget);
if (cfg) {
mFromDate = cfg->mFromDate->date();
mToDate = cfg->mToDate->date();
}
}
void CalPrintItemList::setSettingsWidget()
{
CalPrintItemListConfig *cfg = dynamic_cast<CalPrintItemListConfig *>((QWidget *)mConfigWidget);
if (cfg) {
cfg->mFromDate->setDate(mFromDate);
cfg->mToDate->setDate(mToDate);
}
}
void CalPrintItemList::loadConfig()
{
if (mConfig) {
KConfigGroup config(mConfig, "Itemlistprint");
// TODO: Read in settings
}
setSettingsWidget();
}
void CalPrintItemList::saveConfig()
{
qCDebug(CALENDARSUPPORT_LOG);
readSettingsWidget();
if (mConfig) {
KConfigGroup config(mConfig, "Itemlistprint");
// TODO: Write out settings
}
}
void CalPrintItemList::setDateRange(const QDate &from, const QDate &to)
{
CalPrintPluginBase::setDateRange(from, to);
CalPrintItemListConfig *cfg = dynamic_cast<CalPrintItemListConfig *>((QWidget *)mConfigWidget);
if (cfg) {
cfg->mFromDate->setDate(from);
cfg->mToDate->setDate(to);
}
}
void CalPrintItemList::print(QPainter &p, int width, int height)
{
Q_UNUSED(p)
Q_UNUSED(width)
Q_UNUSED(height)
// TODO: Print something!
}
/*
This file is part of KOrganizer.
SPDX-FileCopyrightText: 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
*/
#pragma once
#include "calprintpluginbase.h"
#include "ui_calprintitemlistconfig_base.h"
using namespace KOrg;
class CalPrintItemList : public CalPrintPluginBase
{
public:
CalPrintItemList()
: CalPrintPluginBase()
{
}
virtual ~CalPrintItemList()
{
}
virtual QString description()
{
return i18n("Print Item list");
}
virtual QString info() const
{
return i18n("Prints a list of events and to-dos");
}
virtual QWidget *createConfigWidget(QWidget *);
virtual int sortID()
{
return CalPrinterBase::ItemList;
}
virtual bool enabled()
{
return true;
}
public:
virtual void print(QPainter &p, int width, int height);
virtual void readSettingsWidget();
virtual void setSettingsWidget();
virtual void loadConfig();
virtual void saveConfig();
virtual void setDateRange(const QDate &from, const QDate &to);
protected:
bool mUseDateRange;
};
class CalPrintItemListConfig : public QWidget, public Ui::CalPrintItemListConfig_Base
{
public:
explicit CalPrintItemListConfig(QWidget *parent)
: QWidget(parent)
{
setupUi(this);
}
};
[Desktop Entry]
X-KDE-Library=korg_listprint
Name=List Print Style
Name[ar]=نمط الطّباعة ”قائمة“
Name[az]=Çap Üslubu Siyahısı
Name[ca]=Estil d'impressió en llista
Name[ca@valencia]=Estil d'impressió en llista
Name[cs]=Styl deníku - seznam
Name[da]=Listeudskriftsstil
Name[de]=Listen-Druckstil
Name[el]=Στιλ εκτύπωσης λίστας
Name[en_GB]=List Print Style
Name[es]=Estilo de impresión de lista
Name[et]=Nimekirja trükkimise stiil
Name[eu]=«Zerrenda» inprimaketa estiloa
Name[fi]=Listatulostustyyli
Name[fr]=Impression en liste
Name[gl]=Estilo de impresión das listas
Name[ia]=Lista de stilos de imprimer
Name[it]=Stile di stampa ad elenco
Name[ja]=リスト印刷スタイル
Name[ko]=목록 인쇄 양식
Name[nb]=Utskriftsstil for liste
Name[nl]=Printstijl voor lijsten
Name[nn]=Utskriftsstil for lister
Name[pl]=Styl drukowania listy
Name[pt]=Estilo de Impressão em Lista
Name[pt_BR]=Estilo de impressão em lista
Name[ru]=Список событий и задач
Name[sk]=Štýl tlače zoznamu
Name[sl]=Slog tiskanja v obliki seznama
Name[sr]=Стил штампања по списку
Name[sr@ijekavian]=Стил штампања по списку
Name[sr@ijekavianlatin]=Stil štampanja po spisku
Name[sr@latin]=Stil štampanja po spisku
Name[sv]=List-utskriftsstil
Name[tr]=Liste Yazdırma Biçimi
Name[uk]=Стиль друку списком
Name[x-test]=xxList Print Stylexx
Name[zh_CN]=列表打印样式
Name[zh_TW]=列出列印樣式
Comment=This plugin allows you to print out events and to-dos in list form.
Comment[ar]=تتيح لك هذه الملحقة طباعة الأحداث والمهامّ بصيغة قائمة.
Comment[az]=Bu əlavə sizə tədbir və tapşırırqları siyahı formasında çap etməyə imkan verir.
Comment[ca]=Aquest connector permet imprimir esdeveniments i tasques pendents en forma de llista.
Comment[ca@valencia]=Aquest connector permet imprimir esdeveniments i tasques pendents en forma de llista.
Comment[cs]=tento modul umožňuje tisknout události a úlohy do seznamu.
Comment[da]=Dette plugin gør at du kan udskrive begivenheder og opgaver på en liste.
Comment[de]=Mit diesem Modul können Termine und Aufgaben in Listenform ausgedruckt werden.
Comment[el]=Αυτό το πρόσθετο σάς επιτρέπει να εκτυπώνετε γεγονότα και εργασίες σε μορφή λίστας.
Comment[en_GB]=This plugin allows you to print out events and to-dos in list form.
Comment[es]=Este complemento le permite imprimir eventos y tareas pendientes en formato lista.
Comment[et]=See plugin võimaldab trükkida sündmusi ja ülesandeid nimekirjana.
Comment[eu]=Plugin honek gertaerak eta zereginak zerrenda moduan inprimatzen uzten dizu.
Comment[fi]=Tämä liitännäinen mahdollistaa tapahtumien ja tehtävien tulostuksen listana.
Comment[fr]=Ce module vous permet d'imprimer les évènements et les tâches sous forme de liste
Comment[gl]=Este complemento permite imprimir os eventos e as tarefas en forma de lista.
Comment[ia]=Iste plug-in permitte imprimer eventos e cargas a facer como listas.
Comment[it]=Questa estensione ti permette di stampare eventi e cose da fare in modalità elenco.
Comment[ja]=このプラグインにより、リストフォーム内のイベントや To-Do を印刷できるようになります。
Comment[ko]=이 플러그인은 할 일과 기념일을 목록 형태로 인쇄할 수 있도록 해 줍니다.
Comment[nb]=Med dette programtillegget kan du skrive ut hendelser og gjørelister på liste-form.
Comment[nl]=Deze plug-in maakt het mogelijk om evenementen en taken in lijstvorm uit te printen.
Comment[nn]=Dette programtillegget lèt deg skriva ut hendingar og hugselister på listeform.
Comment[pl]=Ta wtyczka pozwala drukować zdarzenia i zadania w postaci listy.
Comment[pt]=Este 'plugin' permite-lhe imprimir os eventos e itens por-fazer sob a forma de uma lista.
Comment[pt_BR]=Este plugin permite-lhe imprimir eventos e tarefas em forma de lista.
Comment[ru]=Этот модуль позволяет печатать список событий и задач.
Comment[sk]=Tento modul umožní vytlačiť udalosti a úlohy vo forme zoznamu.
Comment[sl]=Ta vstavek vam omogoča natis dogodkov in opravil v obliki seznama.
Comment[sr]=Помоћу овог прикључка можете да одштампате догађаје и обавезе у облику списка.
Comment[sr@ijekavian]=Помоћу овог прикључка можете да одштампате догађаје и обавезе у облику списка.
Comment[sr@ijekavianlatin]=Pomoću ovog priključka možete da odštampate događaje i obaveze u obliku spiska.
Comment[sr@latin]=Pomoću ovog priključka možete da odštampate događaje i obaveze u obliku spiska.
Comment[sv]=Det här insticksprogrammet gör att du kan skriva ut händelser och uppgifter i en lista.
Comment[tr]=Bu eklenti, olayları ve yapılacaklar listesini bir liste biçiminde yazdırmanızı sağlar.
Comment[uk]=Цей додаток надає змогу друкувати список подій і завдань.
Comment[x-test]=xxThis plugin allows you to print out events and to-dos in list form.xx
Comment[zh_CN]=此插件允许您以列表格式打印事件和待办事项。
Comment[zh_TW]=這個附加元件讓你能列印列表表格內的活動和待辦事項
Type=Service
X-KDE-ServiceTypes=Calendar/Plugin,KOrganizer/PrintPlugin
X-KDE-KOrganizer-HasSettings=false
X-KDE-PluginInterfaceVersion=2
<ui version="4.0" >
<author>Reinhold Kainhofer &lt;reinhold@kainhofer.com></author>
<comment>Configuration page for the print whatsnext mode.</comment>
<class>CalPrintWhatsNextConfig_Base</class>
<widget class="QWidget" name="CalPrintWhatsNextConfig_Base" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>337</width>
<height>285</height>
</rect>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="mDateRangeGroup" >
<property name="title" >
<string>Date &amp;&amp; Time Range</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>16</width>
<height>23</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="mFromDateLabel" >
<property name="text" >
<string>&amp;Start date:</string>
</property>
<property name="buddy" >
<cstring>mFromDate</cstring>
</property>
</widget>
</item>
<item>
<widget class="KDateComboBox" name="mFromDate" >
<property name="focusPolicy" >
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mToDateLabel" >
<property name="text" >
<string>&amp;End date:</string>
</property>
<property name="buddy" >
<cstring>mToDate</cstring>
</property>
</widget>
</item>
<item>
<widget class="KDateComboBox" name="mToDate" >
<property name="focusPolicy" >
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>324</width>
<height>21</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>21</width>
<height>201</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KDateComboBox</class>
<extends>QComboBox</extends>
<header>kdatecombobox.h</header>
<container>0</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>mFromDate</tabstop>
<tabstop>mToDate</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
/*
This file is part of KOrganizer.
SPDX-FileCopyrightText: 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
*/
#include "whatsnextprint.h"
class WhatsNextPrintFactory : public KOrg::PrintPluginFactory
{
public:
KOrg::PrintPlugin *createPluginFactory()
{
return new CalPrintWhatsNext;
}
};
/**************************************************************
* Print What's Next
**************************************************************/
QWidget *CalPrintWhatsNext::createConfigWidget(QWidget *w)
{
return new CalPrintWhatsNextConfig(w);
}
void CalPrintWhatsNext::readSettingsWidget()
{
CalPrintWhatsNextConfig *cfg = dynamic_cast<CalPrintWhatsNextConfig *>((QWidget *)mConfigWidget);
if (cfg) {
mFromDate = cfg->mFromDate->date();
mToDate = cfg->mToDate->date();
}
}
void CalPrintWhatsNext::setSettingsWidget()
{
CalPrintWhatsNextConfig *cfg = dynamic_cast<CalPrintWhatsNextConfig *>((QWidget *)mConfigWidget);
if (cfg) {
cfg->mFromDate->setDate(mFromDate);
cfg->mToDate->setDate(mToDate);
}
}
void CalPrintWhatsNext::loadConfig()
{
if (mConfig) {
KConfigGroup config(mConfig, "Whatsnextprint");
// TODO: Read in settings
}
setSettingsWidget();
}
void CalPrintWhatsNext::saveConfig()
{
qCDebug(CALENDARSUPPORT_LOG);
readSettingsWidget();
if (mConfig) {
KConfigGroup config(mConfig, "Whatsnextprint");
// TODO: Write out settings
}
}
void CalPrintWhatsNext::setDateRange(const QDate &from, const QDate &to)
{
CalPrintPluginBase::setDateRange(from, to);
CalPrintWhatsNextConfig *cfg = dynamic_cast<CalPrintWhatsNextConfig *>((QWidget *)mConfigWidget);
if (cfg) {
cfg->mFromDate->setDate(from);
cfg->mToDate->setDate(to);
}
}