okular/ui/annotationpropertiesdialog.h
Fabio D'Urso 7f97f9c027 Annotation properties dialog: Moved color and opacity fields from the dialog to the config widget itself
This patch moves the Color and Opacity fields into the AnnotationWidget
class. This will allow future reuse of the same widget to configure
annotation tools.
Note that AnnotationWidget is no longer abstract: a base
AnnotationWidget object only contains the Color and Opacity fields.
2012-12-28 18:08:01 +01:00

50 lines
1.4 KiB
C++

/***************************************************************************
* Copyright (C) 2006 by Chu Xiaodong <xiaodongchu@gmail.com> *
* *
* 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 _ANNOTATIONPROPERTIESDIALOG_H_
#define _ANNOTATIONPROPERTIESDIALOG_H_
#include <kpagedialog.h>
class QLabel;
class QLineEdit;
class AnnotationWidget;
namespace Okular {
class Annotation;
class Document;
}
class AnnotsPropertiesDialog : public KPageDialog
{
Q_OBJECT
public:
AnnotsPropertiesDialog( QWidget *parent, Okular::Document *document, int docpage, Okular::Annotation *ann );
~AnnotsPropertiesDialog();
private:
Okular::Document *m_document;
int m_page;
bool modified;
Okular::Annotation* m_annot; //source annotation
//dialog widgets:
QLineEdit *AuthorEdit;
AnnotationWidget *m_annotWidget;
QLabel *m_modifyDateLabel;
void setCaptionTextbyAnnotType();
private slots:
void setModified();
void slotapply();
};
#endif