Scribus
Open source desktop publishing at your fingertips
docinfo.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef DOCINFOS_H
8 #define DOCINFOS_H
9 
10 #include <QTabWidget>
11 
12 #include "scribusapi.h"
13 #include "documentinformation.h"
14 
15 class QLineEdit;
16 class QTextEdit;
17 class QLabel;
18 class QWidget;
19 class QGridLayout;
20 
21 
25 class SCRIBUS_API DocInfos : public QTabWidget
26 {
27  Q_OBJECT
28 
29 public:
30  DocInfos( QWidget* parent, DocumentInformation& docInfo );
31  ~DocInfos() {};
32 
34  DocumentInformation infos;
35 
39  DocumentInformation getDocInfo();
40 
43  void restoreDefaults();
44 
45 protected:
46  QLineEdit* publisherEdit;
47  QLineEdit* dateEdit;
48  QLineEdit* typeEdit;
49  QLineEdit* formatEdit;
50  QLineEdit* identifierEdit;
51  QLineEdit* sourceEdit;
52  QLineEdit* languageEdit;
53  QLineEdit* relationEdit;
54  QLineEdit* coverageEdit;
55  QLineEdit* rightsEdit;
56  QLineEdit* titleEdit;
57  QLineEdit* authorEdit;
58  QLineEdit* subjectEdit;
59 
60  QTextEdit* descriptionEdit;
61  QTextEdit* keywordsEdit;
62  QTextEdit* contributorsEdit;
63 
64  QLabel* authorLabel;
65  QLabel* subjectLabel;
66  QLabel* titleLabel;
67  QLabel* publisherLabel;
68  QLabel* dateLabel;
69  QLabel* typeLabel;
70  QLabel* formatLabel;
71  QLabel* identifierLabel;
72  QLabel* sourceLabel;
73  QLabel* languageLabel;
74  QLabel* relationLabel;
75  QLabel* coverageLabel;
76  QLabel* rightsLabel;
77  QLabel* descriptionLabel;
78  QLabel* keywordsLabel;
79  QLabel* contributorsLabel;
80 
81  QGridLayout* layout1;
82  QGridLayout* layout2;
83 
84  QWidget* page1;
85  QWidget* page2;
86 };
87 
88 #endif // DOCINFOS_H
Definition: documentinformation.h:28
The DocInfos class is now part of the ReformDoc multi widgets storage. See reformdoc.h as reference. The return values are handled via. getDocInfo() method. It can be used as standalone widget.
Definition: docinfo.h:25