mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
f2684504bc
add a ' %' suffix for the opacity spinbox svn path=/trunk/KDE/kdegraphics/okular/; revision=720873
53 lines
1.5 KiB
C++
53 lines
1.5 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 _ANNOTATIONSSPROPERTIESDIALOG_H_
|
|
#define _ANNOTATIONSSPROPERTIESDIALOG_H_
|
|
|
|
#include <kpagedialog.h>
|
|
|
|
class QLabel;
|
|
class QLineEdit;
|
|
class KColorButton;
|
|
class KIntNumInput;
|
|
class AnnotationWidget;
|
|
|
|
namespace Okular {
|
|
class Annotation;
|
|
class Document;
|
|
}
|
|
|
|
class AnnotsPropertiesDialog : public KPageDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
AnnotsPropertiesDialog( QWidget *parent, Okular::Document *document, int docpage, Okular::Annotation *ann );
|
|
~AnnotsPropertiesDialog();
|
|
|
|
private:
|
|
Okular::Document *m_document;
|
|
int m_page;
|
|
bool modified;
|
|
Okular::Annotation* m_annot; //source annotation
|
|
//dialog widgets:
|
|
QLineEdit *AuthorEdit;
|
|
KColorButton *colorBn;
|
|
KIntNumInput *m_opacity;
|
|
AnnotationWidget *m_annotWidget;
|
|
QLabel *m_modifyDateLabel;
|
|
|
|
void setCaptionTextbyAnnotType();
|
|
|
|
private slots:
|
|
void setModified();
|
|
void slotapply();
|
|
};
|
|
|
|
|
|
#endif
|