8#include "inserttabledialog.h"
9#include "inserttablewidget.h"
11#include <KLocalizedString>
14#include <QDialogButtonBox>
18using namespace KPIMTextEdit;
20class InsertTableDialog::InsertTableDialogPrivate
23 explicit InsertTableDialogPrivate(InsertTableDialog *qq)
26 q->setWindowTitle(
i18nc(
"@title:window",
"Insert Table"));
27 auto mainLayout =
new QVBoxLayout(q);
29 insertTableWidget =
new InsertTableWidget(q);
30 mainLayout->addWidget(insertTableWidget);
32 auto sep =
new KSeparator(q);
33 mainLayout->addWidget(sep);
42 mainLayout->addWidget(buttonBox);
45 InsertTableWidget *insertTableWidget =
nullptr;
46 InsertTableDialog *
const q;
49InsertTableDialog::InsertTableDialog(
QWidget *parent)
51 , d(new InsertTableDialogPrivate(this))
55InsertTableDialog::~InsertTableDialog() =
default;
57int InsertTableDialog::columns()
const
59 return d->insertTableWidget->columns();
62int InsertTableDialog::rows()
const
64 return d->insertTableWidget->rows();
67int InsertTableDialog::border()
const
69 return d->insertTableWidget->border();
74 return d->insertTableWidget->typeOfLength();
77int InsertTableDialog::length()
const
79 return d->insertTableWidget->length();
82void InsertTableDialog::setColumns(
int col)
84 d->insertTableWidget->setColumns(col);
87void InsertTableDialog::setRows(
int rows)
89 d->insertTableWidget->setRows(rows);
92void InsertTableDialog::setBorder(
int border)
94 d->insertTableWidget->setBorder(border);
97void InsertTableDialog::setLength(
int val)
99 d->insertTableWidget->setLength(val);
104 d->insertTableWidget->setTypeOfLength(type);
107#include "moc_inserttabledialog.cpp"
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
void setText(const QString &text)