2006-08-08 15:42:12 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* 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. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2007-07-15 13:53:26 +00:00
|
|
|
#ifndef _ANNOTATIONSSPROPERTIESDIALOG_H_
|
|
|
|
#define _ANNOTATIONSSPROPERTIESDIALOG_H_
|
2006-08-08 15:42:12 +00:00
|
|
|
|
|
|
|
#include <kpagedialog.h>
|
2006-08-10 06:32:03 +00:00
|
|
|
|
2006-09-17 09:27:01 +00:00
|
|
|
class QLabel;
|
2006-09-05 20:22:19 +00:00
|
|
|
class QLineEdit;
|
|
|
|
class KColorButton;
|
|
|
|
class KIntNumInput;
|
2006-09-12 20:21:34 +00:00
|
|
|
class AnnotationWidget;
|
2006-09-21 08:45:36 +00:00
|
|
|
|
|
|
|
namespace Okular {
|
|
|
|
class Annotation;
|
|
|
|
class Document;
|
|
|
|
}
|
2006-09-05 20:22:19 +00:00
|
|
|
|
2006-08-08 15:42:12 +00:00
|
|
|
class AnnotsPropertiesDialog : public KPageDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2006-09-21 08:45:36 +00:00
|
|
|
AnnotsPropertiesDialog( QWidget *parent, Okular::Document *document, int docpage, Okular::Annotation *ann );
|
2006-08-10 06:32:03 +00:00
|
|
|
~AnnotsPropertiesDialog();
|
2006-08-08 15:42:12 +00:00
|
|
|
|
|
|
|
private:
|
2006-09-21 08:45:36 +00:00
|
|
|
Okular::Document *m_document;
|
2006-09-13 19:52:46 +00:00
|
|
|
int m_page;
|
|
|
|
bool modified;
|
2006-09-21 08:45:36 +00:00
|
|
|
Okular::Annotation* m_annot; //source annotation
|
2006-08-10 06:32:03 +00:00
|
|
|
//dialog widgets:
|
2006-08-08 15:42:12 +00:00
|
|
|
QLineEdit *AuthorEdit;
|
2006-09-05 20:22:19 +00:00
|
|
|
KColorButton *colorBn;
|
|
|
|
KIntNumInput *m_opacity;
|
2006-09-12 20:21:34 +00:00
|
|
|
AnnotationWidget *m_annotWidget;
|
2006-09-17 09:27:01 +00:00
|
|
|
QLabel *m_modifyDateLabel;
|
2006-08-10 06:32:03 +00:00
|
|
|
|
|
|
|
void setCaptionTextbyAnnotType();
|
2006-08-08 15:42:12 +00:00
|
|
|
|
2006-09-13 19:52:46 +00:00
|
|
|
private slots:
|
|
|
|
void setModified();
|
2006-08-10 15:12:37 +00:00
|
|
|
void slotapply();
|
2006-08-08 15:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|