Changeset View
Changeset View
Standalone View
Standalone View
core/form.h
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | * Copyright (C) 2007 by Pino Toscano <pino@kde.org> * | 2 | * Copyright (C) 2007 by Pino Toscano <pino@kde.org> * | ||
3 | * * | 3 | * * | ||
4 | * This program is free software; you can redistribute it and/or modify * | 4 | * This program is free software; you can redistribute it and/or modify * | ||
5 | * it under the terms of the GNU General Public License as published by * | 5 | * it under the terms of the GNU General Public License as published by * | ||
6 | * the Free Software Foundation; either version 2 of the License, or * | 6 | * the Free Software Foundation; either version 2 of the License, or * | ||
7 | * (at your option) any later version. * | 7 | * (at your option) any later version. * | ||
8 | ***************************************************************************/ | 8 | ***************************************************************************/ | ||
9 | 9 | | |||
10 | #ifndef _OKULAR_FORM_H_ | 10 | #ifndef _OKULAR_FORM_H_ | ||
11 | #define _OKULAR_FORM_H_ | 11 | #define _OKULAR_FORM_H_ | ||
12 | 12 | | |||
13 | #include "okularcore_export.h" | 13 | #include "okularcore_export.h" | ||
14 | #include "area.h" | 14 | #include "area.h" | ||
15 | #include "annotations.h" | ||||
15 | 16 | | |||
16 | #include <QtCore/QStringList> | 17 | #include <QtCore/QStringList> | ||
17 | 18 | | |||
18 | namespace Okular { | 19 | namespace Okular { | ||
19 | 20 | | |||
20 | class Action; | 21 | class Action; | ||
21 | class Page; | 22 | class Page; | ||
22 | class PagePrivate; | 23 | class PagePrivate; | ||
▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | 44 | public: | |||
122 | 123 | | |||
123 | /** | 124 | /** | ||
124 | * Returns the additional action of the given @p type or @c nullptr if no action has been defined. | 125 | * Returns the additional action of the given @p type or @c nullptr if no action has been defined. | ||
125 | * | 126 | * | ||
126 | * @since 1.1 | 127 | * @since 1.1 | ||
127 | */ | 128 | */ | ||
128 | Action* additionalAction( AdditionalActionType type ) const; | 129 | Action* additionalAction( AdditionalActionType type ) const; | ||
129 | 130 | | |||
131 | /* Returns the additional action of the given @p type or @c nullptr if no action has been defined. | ||||
132 | * | ||||
133 | * This is for actions of annotation widgets associated with the FormField | ||||
134 | * | ||||
135 | * @since 1.5 | ||||
136 | */ | ||||
137 | Action* additionalAction( Annotation::AdditionalActionType type ) const; | ||||
138 | | ||||
130 | protected: | 139 | protected: | ||
131 | /// @cond PRIVATE | 140 | /// @cond PRIVATE | ||
132 | FormField( FormFieldPrivate &dd ); | 141 | FormField( FormFieldPrivate &dd ); | ||
133 | Q_DECLARE_PRIVATE( FormField ) | 142 | Q_DECLARE_PRIVATE( FormField ) | ||
134 | FormFieldPrivate *d_ptr; | 143 | FormFieldPrivate *d_ptr; | ||
135 | /// @endcond | 144 | /// @endcond | ||
136 | 145 | | |||
137 | void setActivationAction( Action *action ); | 146 | void setActivationAction( Action *action ); | ||
138 | void setAdditionalAction( AdditionalActionType type, Action *action ); | 147 | void setAdditionalAction( AdditionalActionType type, Action *action ); | ||
148 | void setAdditionalAction( Annotation::AdditionalActionType type, Action *action ); | ||||
139 | 149 | | |||
140 | private: | 150 | private: | ||
141 | Q_DISABLE_COPY( FormField ) | 151 | Q_DISABLE_COPY( FormField ) | ||
142 | }; | 152 | }; | ||
143 | 153 | | |||
144 | 154 | | |||
145 | /** | 155 | /** | ||
146 | * @short Interface of a button form field. | 156 | * @short Interface of a button form field. | ||
▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines |