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. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _ANNOTSPROPERTIESDIALOG_H_
|
|
|
|
#define _ANNOTSPROPERTIESDIALOG_H_
|
|
|
|
|
|
|
|
#include <kpagedialog.h>
|
2006-08-10 06:32:03 +00:00
|
|
|
|
2006-09-05 20:22:19 +00:00
|
|
|
class QLineEdit;
|
|
|
|
class KColorButton;
|
|
|
|
class KIntNumInput;
|
|
|
|
class Annotation;
|
2006-09-12 20:21:34 +00:00
|
|
|
class AnnotationWidget;
|
2006-08-08 15:42:12 +00:00
|
|
|
class KPDFDocument;
|
2006-09-05 20:22:19 +00:00
|
|
|
|
2006-08-08 15:42:12 +00:00
|
|
|
class AnnotsPropertiesDialog : public KPageDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2006-08-10 15:12:37 +00:00
|
|
|
AnnotsPropertiesDialog( QWidget *parent,Annotation* ann );
|
2006-08-10 06:32:03 +00:00
|
|
|
~AnnotsPropertiesDialog();
|
|
|
|
bool modified;
|
2006-08-08 15:42:12 +00:00
|
|
|
|
|
|
|
private:
|
2006-08-10 06:32:03 +00:00
|
|
|
Annotation* m_annot; //source annotation
|
|
|
|
//dialog widgets:
|
2006-08-08 15:42:12 +00:00
|
|
|
QLineEdit *AuthorEdit;
|
2006-08-10 06:32:03 +00:00
|
|
|
QLineEdit *uniqueNameEdit;
|
2006-08-10 15:12:37 +00:00
|
|
|
QLineEdit *contentsEdit,
|
|
|
|
*flagsEdit,
|
|
|
|
*boundaryEdit;
|
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-08-10 06:32:03 +00:00
|
|
|
|
|
|
|
void setCaptionTextbyAnnotType();
|
2006-08-08 15:42:12 +00:00
|
|
|
|
|
|
|
public slots:
|
2006-08-10 15:12:37 +00:00
|
|
|
void slotapply();
|
2006-08-08 15:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|