Tulip  4.1.0
Better Visualization Through Research
 All Classes Files Functions Variables Enumerations Enumerator Properties Groups Pages
SnapshotDialog.h
1 /*
2  *
3  * This file is part of Tulip (www.tulip-software.org)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 #ifndef _Tulip_SNAPSHOTDIALOG_H
22 #define _Tulip_SNAPSHOTDIALOG_H
23 
24 #include <tulip/tulipconf.h>
25 
26 #include <QtGui/QDialog>
27 
28 
29 
30 namespace Ui {
31 class SnapshotDialogData;
32 }
33 
34 class QGraphicsScene;
35 class QGraphicsPixmapItem;
36 
37 namespace tlp {
38 
39 class LockLabel;
40 class View;
41 
42 class TLP_QT_SCOPE SnapshotDialog : public QDialog {
43 
44  Q_OBJECT
45 
46 
47 
48 public :
49 
50  SnapshotDialog(View &v,QWidget *parent=NULL);
51  ~SnapshotDialog();
52 
53 public slots :
54 
55  void accept();
56 
57 protected slots :
58 
59  void widthSpinBoxValueChanged(int value);
60  void heightSpinBoxValueChanged(int value);
61 
62  void fileNameTextChanged(const QString &);
63  QString browseClicked();
64  void copyClicked();
65 
66 protected :
67 
68  void resizeEvent(QResizeEvent *);
69 
70  void sizeSpinBoxValueChanged();
71 
72  Ui::SnapshotDialogData *ui;
73  View *view;
74 
75  QGraphicsScene *scene;
76  QGraphicsPixmapItem *pixmapItem;
77  LockLabel *lockLabel;
78 
79  float ratio;
80 
81  bool inSizeSpinBoxValueChanged;
82 };
83 
84 }
85 
86 #endif
87 
88 
89 
90 
91 
92 
93 ///@endcond