Changeset View
Changeset View
Standalone View
Standalone View
ui/formwidgets.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 67 | Q_SIGNALS: | |||
---|---|---|---|---|---|
108 | 108 | | |||
109 | void formButtonsChangedByWidget( int pageNumber, | 109 | void formButtonsChangedByWidget( int pageNumber, | ||
110 | const QList< Okular::FormFieldButton* > & formButtons, | 110 | const QList< Okular::FormFieldButton* > & formButtons, | ||
111 | const QList< bool > & newButtonStates ); | 111 | const QList< bool > & newButtonStates ); | ||
112 | 112 | | |||
113 | 113 | | |||
114 | void action( Okular::Action *action ); | 114 | void action( Okular::Action *action ); | ||
115 | 115 | | |||
116 | void refreshFormWidget( Okular::FormField * form ); | ||||
117 | | ||||
116 | private Q_SLOTS: | 118 | private Q_SLOTS: | ||
117 | void slotButtonClicked( QAbstractButton *button ); | 119 | void slotButtonClicked( QAbstractButton *button ); | ||
118 | void slotFormButtonsChangedByUndoRedo( int pageNumber, | 120 | void slotFormButtonsChangedByUndoRedo( int pageNumber, | ||
119 | const QList< Okular::FormFieldButton* > & formButtons ); | 121 | const QList< Okular::FormFieldButton* > & formButtons ); | ||
120 | 122 | | |||
121 | private: | 123 | private: | ||
122 | friend class TextAreaEdit; | 124 | friend class TextAreaEdit; | ||
123 | friend class FormLineEdit; | 125 | friend class FormLineEdit; | ||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 210 | { | |||
218 | public Q_SLOTS: | 220 | public Q_SLOTS: | ||
219 | void slotHandleTextChangedByUndoRedo( int pageNumber, | 221 | void slotHandleTextChangedByUndoRedo( int pageNumber, | ||
220 | Okular::FormFieldText* textForm, | 222 | Okular::FormFieldText* textForm, | ||
221 | const QString & contents, | 223 | const QString & contents, | ||
222 | int cursorPos, | 224 | int cursorPos, | ||
223 | int anchorPos ); | 225 | int anchorPos ); | ||
224 | private Q_SLOTS: | 226 | private Q_SLOTS: | ||
225 | void slotChanged(); | 227 | void slotChanged(); | ||
228 | void slotRefresh(Okular::FormField* form); | ||||
226 | 229 | | |||
227 | private: | 230 | private: | ||
228 | int m_prevCursorPos; | 231 | int m_prevCursorPos; | ||
229 | int m_prevAnchorPos; | 232 | int m_prevAnchorPos; | ||
230 | }; | 233 | }; | ||
231 | 234 | | |||
232 | class TextAreaEdit : public KTextEdit, public FormWidgetIface | 235 | class TextAreaEdit : public KTextEdit, public FormWidgetIface | ||
233 | { | 236 | { | ||
Show All 10 Lines | 246 | void slotHandleTextChangedByUndoRedo( int pageNumber, | |||
244 | Okular::FormFieldText * textForm, | 247 | Okular::FormFieldText * textForm, | ||
245 | const QString & contents, | 248 | const QString & contents, | ||
246 | int cursorPos, | 249 | int cursorPos, | ||
247 | int anchorPos ); | 250 | int anchorPos ); | ||
248 | void slotUpdateUndoAndRedoInContextMenu( QMenu* menu ); | 251 | void slotUpdateUndoAndRedoInContextMenu( QMenu* menu ); | ||
249 | 252 | | |||
250 | private Q_SLOTS: | 253 | private Q_SLOTS: | ||
251 | void slotChanged(); | 254 | void slotChanged(); | ||
255 | void slotRefresh(Okular::FormField* form); | ||||
252 | 256 | | |||
253 | private: | 257 | private: | ||
254 | int m_prevCursorPos; | 258 | int m_prevCursorPos; | ||
255 | int m_prevAnchorPos; | 259 | int m_prevAnchorPos; | ||
256 | }; | 260 | }; | ||
257 | 261 | | |||
258 | 262 | | |||
259 | class FileEdit : public KUrlRequester, public FormWidgetIface | 263 | class FileEdit : public KUrlRequester, public FormWidgetIface | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |