File indexing completed on 2024-04-28 15:51:42
0001 /* 0002 SPDX-FileCopyrightText: 2006 Pino Toscano <toscano.pino@tiscali.it> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "dlgannotations.h" 0008 0009 #include "widgetannottools.h" 0010 0011 #include <KLocalizedString> 0012 0013 #include <QComboBox> 0014 #include <QFormLayout> 0015 #include <QLabel> 0016 #include <QLineEdit> 0017 0018 DlgAnnotations::DlgAnnotations(QWidget *parent) 0019 : QWidget(parent) 0020 { 0021 QFormLayout *layout = new QFormLayout(this); 0022 0023 // BEGIN Annotation toolbar: Combo box to set the annotation toolbar associated to annotation action in tool menu 0024 QComboBox *primaryAnnotationToolBar = new QComboBox(this); 0025 primaryAnnotationToolBar->addItem(i18nc("item:inlistbox Config dialog, general page", "Full Annotation Toolbar")); 0026 primaryAnnotationToolBar->addItem(i18nc("item:inlistbox Config dialog, general page", "Quick Annotation Toolbar")); 0027 primaryAnnotationToolBar->setObjectName(QStringLiteral("kcfg_PrimaryAnnotationToolBar")); 0028 layout->addRow(i18nc("label:listbox Config dialog, general page", "Annotation toolbar:"), primaryAnnotationToolBar); 0029 // END Annotation toolbar 0030 0031 // BEGIN Author row: Line edit to set the annotation’s default author value. 0032 QLineEdit *authorLineEdit = new QLineEdit(this); 0033 authorLineEdit->setObjectName(QStringLiteral("kcfg_IdentityAuthor")); 0034 layout->addRow(i18nc("@label:textbox Config dialog, annotations page", "Author:"), authorLineEdit); 0035 0036 QLabel *authorInfoLabel = new QLabel(this); 0037 authorInfoLabel->setText( 0038 i18nc("@info Config dialog, annotations page", "<b>Note:</b> the information here is used only for annotations. The information is saved in annotated documents, and so will be transmitted together with the document.")); 0039 authorInfoLabel->setWordWrap(true); 0040 layout->addRow(authorInfoLabel); 0041 // END Author row 0042 0043 // Silly 1Em spacer: 0044 layout->addRow(new QLabel(this)); 0045 0046 // BEGIN Quick annotation tools section: WidgetAnnotTools manages tools. 0047 QLabel *toolsLabel = new QLabel(this); 0048 toolsLabel->setText(i18nc("@label Config dialog, annotations page, heading line for Quick Annotations tool manager", "<h3>Quick Annotation Tools</h3>")); 0049 layout->addRow(toolsLabel); 0050 0051 WidgetAnnotTools *kcfg_QuickAnnotationTools = new WidgetAnnotTools(this); 0052 kcfg_QuickAnnotationTools->setObjectName(QStringLiteral("kcfg_QuickAnnotationTools")); 0053 layout->addRow(kcfg_QuickAnnotationTools); 0054 // END Quick annotation tools section 0055 }