mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-30 04:25:53 +00:00
e207d0d6f4
svn path=/trunk/playground/graphics/okular/; revision=571630
61 lines
1.7 KiB
C++
61 lines
1.7 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 _ANNOTSPROPERTIESDIALOG_H_
|
|
#define _ANNOTSPROPERTIESDIALOG_H_
|
|
|
|
#include <qabstractitemmodel.h>
|
|
#include <QTextStream>
|
|
#include <QtCore/QVariant>
|
|
#include <QtGui/QAction>
|
|
#include <QtGui/QApplication>
|
|
#include <QtGui/QButtonGroup>
|
|
#include <QtGui/QDialog>
|
|
#include <QtGui/QHBoxLayout>
|
|
#include <QtGui/QLabel>
|
|
#include <QtGui/QLineEdit>
|
|
#include <QtGui/QPushButton>
|
|
#include <QtGui/QSlider>
|
|
#include <QtGui/QSpacerItem>
|
|
#include <QtGui/QTabWidget>
|
|
#include <QtGui/QWidget>
|
|
|
|
#include <kpagedialog.h>
|
|
|
|
class KPDFDocument;
|
|
class AnnotsPropertiesDialog : public KPageDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
AnnotsPropertiesDialog( QWidget *parent, KPDFDocument *doc, Annotation* ann );
|
|
~AnnotsPropertiesDialog();
|
|
bool modified;
|
|
|
|
private:
|
|
|
|
Annotation* m_annot; //source annotation
|
|
//dialog widgets:
|
|
QFrame *m_page[3];
|
|
KPageWidgetItem *m_tabitem[3];
|
|
QGridLayout * m_layout[3];
|
|
QLineEdit *opacityEdit;
|
|
QLineEdit *AuthorEdit;
|
|
QLineEdit *uniqueNameEdit;
|
|
QLineEdit *contentsEdit;
|
|
QPushButton* colorBn;
|
|
QSlider *opacitySlider;
|
|
|
|
void setCaptionTextbyAnnotType();
|
|
|
|
public slots:
|
|
void slotChooseColor();
|
|
};
|
|
|
|
|
|
#endif
|