Changeset View
Changeset View
Standalone View
Standalone View
ui/formwidgets.h
Show All 32 Lines | |||||
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; | ||
43 | class SignatureInfo; | ||||
42 | } | 44 | } | ||
43 | 45 | | |||
44 | struct RadioData | 46 | struct RadioData | ||
45 | { | 47 | { | ||
46 | RadioData() {} | 48 | RadioData() {} | ||
47 | 49 | | |||
48 | QList< int > ids; | 50 | QList< int > ids; | ||
49 | QButtonGroup *group; | 51 | QButtonGroup *group; | ||
▲ Show 20 Lines • Show All 291 Lines • ▼ Show 20 Line(s) | 338 | void slotHandleFormComboChangedByUndoRedo( int pageNumber, | |||
341 | ); | 343 | ); | ||
342 | 344 | | |||
343 | private: | 345 | private: | ||
344 | int m_prevCursorPos; | 346 | int m_prevCursorPos; | ||
345 | int m_prevAnchorPos; | 347 | int m_prevAnchorPos; | ||
346 | DECLARE_ADDITIONAL_ACTIONS | 348 | DECLARE_ADDITIONAL_ACTIONS | ||
347 | }; | 349 | }; | ||
348 | 350 | | |||
351 | class SignatureEdit : public QAbstractButton, public FormWidgetIface | ||||
352 | { | ||||
353 | Q_OBJECT | ||||
354 | | ||||
355 | public: | ||||
356 | explicit SignatureEdit( Okular::FormFieldSignature * signature, QWidget * parent = nullptr ); | ||||
357 | Okular::SignatureInfo *validate(); | ||||
358 | | ||||
359 | protected: | ||||
360 | bool event( QEvent * e ) override; | ||||
361 | void contextMenuEvent( QContextMenuEvent * event ) override; | ||||
362 | void paintEvent( QPaintEvent * event ) override; | ||||
363 | | ||||
364 | private Q_SLOTS: | ||||
365 | void slotShowSummary(); | ||||
366 | void slotShowProperties(); | ||||
367 | | ||||
368 | private: | ||||
369 | Okular::SignatureInfo *m_sigInfo; | ||||
370 | bool m_lefMouseButtonPressed; | ||||
371 | | ||||
372 | DECLARE_ADDITIONAL_ACTIONS | ||||
373 | }; | ||||
374 | | ||||
349 | #undef DECLARE_ADDITIONAL_ACTIONS | 375 | #undef DECLARE_ADDITIONAL_ACTIONS | ||
350 | 376 | | |||
351 | #endif | 377 | #endif |