[a85834]: src / gui / annotdialog.h  Maximize  Restore  History

Download this file

134 lines (117 with data), 3.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
* PDFedit - free program for PDF document manipulation.
* Copyright (C) 2006, 2007, 2008 PDFedit team: Michal Hocko,
* Miroslav Jahoda,
* Jozef Misutka,
* Martin Petricek
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (in doc/LICENSE.GPL); if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Project is hosted on http://sourceforge.net/projects/pdfedit
*/
#ifndef __ANNOTDIALOG_H__
#define __ANNOTDIALOG_H__
#include "qtcompat.h"
#include <qvariant.h>
#include <qdialog.h>
#include "qspage.h"
#include "kernel/static.h"
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QPushButton;
class QTabWidget;
class QWidget;
class Q_GroupBox;
class QCheckBox;
class QLabel;
class QLineEdit;
class QComboBox;
class QFrame;
namespace gui {
/**
Dialog for adding annotation to documents.
Dialog expect to receive the annotation rectangle in constructor,
it will solicit the annotation data from user and add the annotation to page,
if user presses Ok
@brief Dialog for adding annotations
*/
class AnnotDialog : public QDialog {
Q_OBJECT
private:
/** Annotation rectangle */
libs::Rectangle rect;
/** Page in which the annotation will be added */
QSPage & page;
public:
AnnotDialog(QSPage & p, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~AnnotDialog();
void setRectangle(double xl, double yl, double width, double height);
public slots:
virtual void fillStates( const QString & current );
virtual void createAnnot();
protected:
/** OK button to accept the dialog */
QPushButton* okBtn;
/** Cancel button to cancel the dialog */
QPushButton* cancelButton;
QTabWidget* tabWidget3;
QWidget* tab;
Q_GroupBox* groupBox1;
QCheckBox* open;
QLabel* textLabel2;
QLineEdit* textContent;
QLabel* textLabel3;
QComboBox* iconName;
QLabel* textLabel4_2;
QComboBox* state;
QLabel* textLabel5_2;
QComboBox* stateModel;
QWidget* tab_2;
QFrame* frame3;
QLabel* textLabel2_3;
QLineEdit* linkContent;
QLabel* textLabel1;
QLineEdit* destination;
QLabel* textLabel2_2;
QComboBox* highLight;
QGridLayout* AnnotDialogLayout;
QHBoxLayout* layout8;
QSpacerItem* spacer8;
QSpacerItem* spacer7;
QSpacerItem* spacer9;
QGridLayout* tabLayout;
QGridLayout* groupBox1Layout;
QVBoxLayout* layout21_2;
QHBoxLayout* layout16_2;
QHBoxLayout* layout18_2;
QHBoxLayout* layout19_2;
QHBoxLayout* layout20_2;
QGridLayout* tabLayout_2;
QGridLayout* frame3Layout;
QVBoxLayout* layout17;
QSpacerItem* spacer4;
QVBoxLayout* layout12;
QHBoxLayout* layout16_2_2;
QHBoxLayout* layout8_2;
QHBoxLayout* layout9;
void createTextAnnot();
void createLinkAnnot();
protected slots:
virtual void languageChange();
};
} // namespace gui
#endif

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks