Changeset View
Changeset View
Standalone View
Standalone View
ui/formwidgets.h
Show All 17 Lines | |||||
18 | #include <qcheckbox.h> | 18 | #include <qcheckbox.h> | ||
19 | #include <qcombobox.h> | 19 | #include <qcombobox.h> | ||
20 | #include <qlineedit.h> | 20 | #include <qlineedit.h> | ||
21 | #include <qlistwidget.h> | 21 | #include <qlistwidget.h> | ||
22 | #include <qpushbutton.h> | 22 | #include <qpushbutton.h> | ||
23 | #include <qradiobutton.h> | 23 | #include <qradiobutton.h> | ||
24 | #include <ktextedit.h> | 24 | #include <ktextedit.h> | ||
25 | #include <kurlrequester.h> | 25 | #include <kurlrequester.h> | ||
26 | 26 | #include <QPushButton> | |||
27 | class ComboEdit; | 27 | class ComboEdit; | ||
28 | class QMenu; | 28 | class QMenu; | ||
29 | class QButtonGroup; | 29 | class QButtonGroup; | ||
30 | class FormWidgetIface; | 30 | class FormWidgetIface; | ||
31 | class PageViewItem; | 31 | class PageViewItem; | ||
32 | class RadioButtonEdit; | 32 | class RadioButtonEdit; | ||
33 | class QEvent; | 33 | class QEvent; | ||
34 | 34 | | |||
35 | namespace Okular { | 35 | namespace Okular { | ||
36 | class Action; | 36 | class Action; | ||
37 | class FormField; | 37 | class FormField; | ||
38 | class FormFieldButton; | 38 | class FormFieldButton; | ||
39 | class FormFieldChoice; | 39 | class FormFieldChoice; | ||
40 | class FormFieldText; | 40 | class FormFieldText; | ||
41 | class FormFieldSignature; | ||||
41 | class Document; | 42 | class Document; | ||
42 | } | 43 | } | ||
43 | 44 | | |||
44 | struct RadioData | 45 | struct RadioData | ||
45 | { | 46 | { | ||
46 | RadioData() {} | 47 | RadioData() {} | ||
47 | 48 | | |||
48 | QList< int > ids; | 49 | QList< int > ids; | ||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 121 | void slotFormButtonsChangedByUndoRedo( int pageNumber, | |||
121 | const QList< Okular::FormFieldButton* > & formButtons ); | 122 | const QList< Okular::FormFieldButton* > & formButtons ); | ||
122 | 123 | | |||
123 | private: | 124 | private: | ||
124 | friend class TextAreaEdit; | 125 | friend class TextAreaEdit; | ||
125 | friend class FormLineEdit; | 126 | friend class FormLineEdit; | ||
126 | friend class FileEdit; | 127 | friend class FileEdit; | ||
127 | friend class ListEdit; | 128 | friend class ListEdit; | ||
128 | friend class ComboEdit; | 129 | friend class ComboEdit; | ||
130 | friend class SignatureEdit; | ||||
129 | 131 | | |||
130 | QList< RadioData > m_radios; | 132 | QList< RadioData > m_radios; | ||
131 | QHash< int, QAbstractButton* > m_buttons; | 133 | QHash< int, QAbstractButton* > m_buttons; | ||
132 | Okular::Document* m_doc; | 134 | Okular::Document* m_doc; | ||
133 | }; | 135 | }; | ||
134 | 136 | | |||
135 | 137 | | |||
136 | class FormWidgetFactory | 138 | class FormWidgetFactory | ||
▲ Show 20 Lines • Show All 205 Lines • ▼ Show 20 Line(s) | 339 | void slotHandleFormComboChangedByUndoRedo( int pageNumber, | |||
342 | ); | 344 | ); | ||
343 | 345 | | |||
344 | private: | 346 | private: | ||
345 | int m_prevCursorPos; | 347 | int m_prevCursorPos; | ||
346 | int m_prevAnchorPos; | 348 | int m_prevAnchorPos; | ||
347 | DECLARE_ADDITIONAL_ACTIONS | 349 | DECLARE_ADDITIONAL_ACTIONS | ||
348 | }; | 350 | }; | ||
349 | 351 | | |||
352 | class SignatureEdit : public QPushButton, public FormWidgetIface | ||||
353 | { | ||||
354 | Q_OBJECT | ||||
355 | public: | ||||
356 | SignatureEdit( Okular::FormFieldSignature *fs, QWidget *p = nullptr ); | ||||
357 | }; | ||||
358 | | ||||
350 | #undef DECLARE_ADDITIONAL_ACTIONS | 359 | #undef DECLARE_ADDITIONAL_ACTIONS | ||
351 | 360 | | |||
352 | #endif | 361 | #endif |