compile
[kdegraphics.git] / okular / ui / annotationpropertiesdialog.h
blobd1a1c27694933b6e8586415cdb885e8bd9a5e816
1 /***************************************************************************
2 * Copyright (C) 2006 by Chu Xiaodong <xiaodongchu@gmail.com> *
3 * *
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 *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _ANNOTATIONPROPERTIESDIALOG_H_
11 #define _ANNOTATIONPROPERTIESDIALOG_H_
13 #include <kpagedialog.h>
15 class QLabel;
16 class QLineEdit;
17 class KColorButton;
18 class KIntNumInput;
19 class AnnotationWidget;
21 namespace Okular {
22 class Annotation;
23 class Document;
26 class AnnotsPropertiesDialog : public KPageDialog
28 Q_OBJECT
29 public:
30 AnnotsPropertiesDialog( QWidget *parent, Okular::Document *document, int docpage, Okular::Annotation *ann );
31 ~AnnotsPropertiesDialog();
33 private:
34 Okular::Document *m_document;
35 int m_page;
36 bool modified;
37 Okular::Annotation* m_annot; //source annotation
38 //dialog widgets:
39 QLineEdit *AuthorEdit;
40 KColorButton *colorBn;
41 KIntNumInput *m_opacity;
42 AnnotationWidget *m_annotWidget;
43 QLabel *m_modifyDateLabel;
45 void setCaptionTextbyAnnotType();
47 private slots:
48 void setModified();
49 void slotapply();
53 #endif