Changeset View
Changeset View
Standalone View
Standalone View
ui/formwidgets.h
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 145 | public: | |||
---|---|---|---|---|---|
155 | void setPageItem( PageViewItem *pageItem ); | 155 | void setPageItem( PageViewItem *pageItem ); | ||
156 | PageViewItem* pageItem() const; | 156 | PageViewItem* pageItem() const; | ||
157 | void setFormField( Okular::FormField *field ); | 157 | void setFormField( Okular::FormField *field ); | ||
158 | Okular::FormField* formField() const; | 158 | Okular::FormField* formField() const; | ||
159 | 159 | | |||
160 | virtual void setFormWidgetsController( FormWidgetsController *controller ); | 160 | virtual void setFormWidgetsController( FormWidgetsController *controller ); | ||
161 | 161 | | |||
162 | protected: | 162 | protected: | ||
163 | virtual void slotRefresh( Okular::FormField *form ); | ||||
164 | | ||||
163 | FormWidgetsController * m_controller; | 165 | FormWidgetsController * m_controller; | ||
164 | Okular::FormField * m_ff; | 166 | Okular::FormField * m_ff; | ||
165 | 167 | | |||
166 | private: | 168 | private: | ||
167 | QWidget * m_widget; | 169 | QWidget * m_widget; | ||
168 | PageViewItem * m_pageItem; | 170 | PageViewItem * m_pageItem; | ||
169 | }; | 171 | }; | ||
170 | 172 | | |||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 211 | { | |||
219 | public Q_SLOTS: | 221 | public Q_SLOTS: | ||
220 | void slotHandleTextChangedByUndoRedo( int pageNumber, | 222 | void slotHandleTextChangedByUndoRedo( int pageNumber, | ||
221 | Okular::FormFieldText* textForm, | 223 | Okular::FormFieldText* textForm, | ||
222 | const QString & contents, | 224 | const QString & contents, | ||
223 | int cursorPos, | 225 | int cursorPos, | ||
224 | int anchorPos ); | 226 | int anchorPos ); | ||
225 | private Q_SLOTS: | 227 | private Q_SLOTS: | ||
226 | void slotChanged(); | 228 | void slotChanged(); | ||
227 | void slotRefresh(Okular::FormField* form); | 229 | | ||
230 | protected: | ||||
231 | void slotRefresh( Okular::FormField* form ) override; | ||||
228 | 232 | | |||
229 | private: | 233 | private: | ||
230 | int m_prevCursorPos; | 234 | int m_prevCursorPos; | ||
231 | int m_prevAnchorPos; | 235 | int m_prevAnchorPos; | ||
232 | }; | 236 | }; | ||
233 | 237 | | |||
234 | class TextAreaEdit : public KTextEdit, public FormWidgetIface | 238 | class TextAreaEdit : public KTextEdit, public FormWidgetIface | ||
235 | { | 239 | { | ||
Show All 10 Lines | 249 | void slotHandleTextChangedByUndoRedo( int pageNumber, | |||
246 | Okular::FormFieldText * textForm, | 250 | Okular::FormFieldText * textForm, | ||
247 | const QString & contents, | 251 | const QString & contents, | ||
248 | int cursorPos, | 252 | int cursorPos, | ||
249 | int anchorPos ); | 253 | int anchorPos ); | ||
250 | void slotUpdateUndoAndRedoInContextMenu( QMenu* menu ); | 254 | void slotUpdateUndoAndRedoInContextMenu( QMenu* menu ); | ||
251 | 255 | | |||
252 | private Q_SLOTS: | 256 | private Q_SLOTS: | ||
253 | void slotChanged(); | 257 | void slotChanged(); | ||
254 | void slotRefresh(Okular::FormField* form); | 258 | | ||
259 | protected: | ||||
260 | void slotRefresh( Okular::FormField* form ) override; | ||||
255 | 261 | | |||
256 | private: | 262 | private: | ||
257 | int m_prevCursorPos; | 263 | int m_prevCursorPos; | ||
258 | int m_prevAnchorPos; | 264 | int m_prevAnchorPos; | ||
259 | }; | 265 | }; | ||
260 | 266 | | |||
261 | 267 | | |||
262 | class FileEdit : public KUrlRequester, public FormWidgetIface | 268 | class FileEdit : public KUrlRequester, public FormWidgetIface | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |