CalendarSupport
calprinter.cpp
32CalPrinter::CalPrinter(QWidget *parent, const KCalendarCore::Calendar::Ptr &calendar, bool uniqItem)
82void CalPrinter::print(int type, QDate fd, QDate td, const KCalendarCore::Incidence::List &selectedIncidences, bool preview)
89 QPointer<CalPrintDialog> printDialog = new CalPrintDialog(type, mPrintPlugins, mParent, mUniqItem);
112void CalPrinter::doPrint(PrintPlugin *selectedStyle, CalPrinter::ePrintOrientation dlgorientation, bool preview)
115 KMessageBox::error(mParent, i18nc("@info", "Unable to print, an invalid print style was specified."), i18nc("@title:window", "Printing error"));
137 connect(printPreview.data(), &QPrintPreviewDialog::paintRequested, this, [selectedStyle, &printer]() {
155CalPrintDialog::CalPrintDialog(int initialPrintType, const PrintPlugin::List &plugins, QWidget *parent, bool uniqItem)
199 mOrientationSelection->addItem(i18nc("@item:inlistbox", "Use Default Orientation of Selected Style"));
212 for (PrintPlugin::List::ConstIterator it = plugins.constBegin(), total = plugins.constEnd(); it != total; ++it) {
303 mOrientation = static_cast<CalPrinter::ePrintOrientation>(mOrientationSelection->currentIndex());
CalPrinter(QWidget *par, const KCalendarCore::Calendar::Ptr &calendar, bool uniqItem=false)
Definition calprinter.cpp:32
virtual bool enabled() const
Returns true if the plugin should be enabled; false otherwise.
Definition printplugin.h:103
virtual QString description() const =0
Returns short description of print format.
virtual void doPrint(QPrinter *printer)=0
Actually do the printing.
virtual QPageLayout::Orientation defaultOrientation() const
Orientation of printout.
Definition printplugin.h:132
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QAction * end(const QObject *recvr, const char *slot, QObject *parent)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QAction * printPreview(const QObject *recvr, const char *slot, QObject *parent)
KGuiItem print()
void setChecked(bool)
void setText(const QString &text)
QVariant data() const const
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void insertStretch(int index, int stretch)
QAbstractButton * button(int id) const const
void buttonClicked(QAbstractButton *button)
int id(QAbstractButton *button) const const
void setCurrentIndex(int index)
Accepted
virtual void accept()
virtual void reject()
void accepted()
void rejected()
ConstIterator
Iterator
iterator begin()
void clear()
const_iterator constBegin() const const
const_iterator constEnd() const const
iterator end()
void prepend(parameter_type value)
ConstIterator
Key key(const T &value, const Key &defaultKey) const const
T value(const Key &key, const T &defaultValue) const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual bool setPageOrientation(QPageLayout::Orientation orientation)
Portrait
void paintRequested(QPrinter *printer)
void setCurrentIndex(int index)
QWidget * currentWidget() const const
AlignRight
Key_Return
CTRL
Horizontal
void raise()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.