okular/core/form_p.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.3 KiB
C
Raw Normal View History

/***************************************************************************
* Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#ifndef OKULAR_FORM_P_H
#define OKULAR_FORM_P_H
#include "form.h"
2018-08-31 09:23:45 +00:00
#include <QString>
namespace Okular
{
class Action;
class FormField;
class FormFieldPrivate
{
public:
2018-09-01 08:25:57 +00:00
explicit FormFieldPrivate(FormField::FieldType type);
virtual ~FormFieldPrivate();
2020-02-21 15:11:42 +00:00
FormFieldPrivate(const FormFieldPrivate &) = delete;
FormFieldPrivate &operator=(const FormFieldPrivate &) = delete;
void setDefault();
virtual void setValue(const QString &) = 0;
virtual QString value() const = 0;
FormField::FieldType m_type;
QString m_default;
Action *m_activateAction;
2017-03-02 23:41:06 +00:00
QHash<int, Action *> m_additionalActions;
QHash<int, Action *> m_additionalAnnotActions;
Q_DECLARE_PUBLIC(FormField)
FormField *q_ptr;
};
}
#endif