okular/ui/annotationpropertiesdialog.h

53 lines
1.5 KiB
C
Raw Normal View History

/***************************************************************************
* 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>
class QLineEdit;
class KColorButton;
class KIntNumInput;
class Annotation;
class AnnotationWidget;
class KPDFDocument;
class AnnotsPropertiesDialog : public KPageDialog
{
Q_OBJECT
public:
AnnotsPropertiesDialog( QWidget *parent, KPDFDocument *document, int docpage, Annotation *ann );
~AnnotsPropertiesDialog();
private:
KPDFDocument *m_document;
int m_page;
bool modified;
Annotation* m_annot; //source annotation
//dialog widgets:
QLineEdit *AuthorEdit;
QLineEdit *uniqueNameEdit;
QLineEdit *contentsEdit,
*flagsEdit,
*boundaryEdit;
KColorButton *colorBn;
KIntNumInput *m_opacity;
AnnotationWidget *m_annotWidget;
void setCaptionTextbyAnnotType();
private slots:
void setModified();
void slotapply();
};
#endif