Tulip  4.6.0
Better Visualization Through Research
library/tulip-gui/include/tulip/SnapshotDialog.h
00001 /*
00002  *
00003  * This file is part of Tulip (www.tulip-software.org)
00004  *
00005  * Authors: David Auber and the Tulip development Team
00006  * from LaBRI, University of Bordeaux
00007  *
00008  * Tulip is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation, either version 3
00011  * of the License, or (at your option) any later version.
00012  *
00013  * Tulip is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  * See the GNU General Public License for more details.
00017  *
00018  */
00019 ///@cond DOXYGEN_HIDDEN
00020 
00021 #ifndef _Tulip_SNAPSHOTDIALOG_H
00022 #define _Tulip_SNAPSHOTDIALOG_H
00023 
00024 #include <QDialog>
00025 
00026 #include <tulip/tulipconf.h>
00027 
00028 namespace Ui {
00029 class SnapshotDialogData;
00030 }
00031 
00032 class QGraphicsScene;
00033 class QGraphicsPixmapItem;
00034 
00035 namespace tlp {
00036 
00037 class LockLabel;
00038 class View;
00039 
00040 class TLP_QT_SCOPE SnapshotDialog : public QDialog {
00041 
00042   Q_OBJECT
00043 
00044 
00045 
00046 public :
00047 
00048   SnapshotDialog(const View *v,QWidget *parent=NULL);
00049   ~SnapshotDialog();
00050 
00051 public slots :
00052 
00053   void accept();
00054 
00055 protected slots :
00056 
00057   void widthSpinBoxValueChanged(int value);
00058   void heightSpinBoxValueChanged(int value);
00059 
00060   void fileNameTextChanged(const QString &);
00061   void copyClicked();
00062 
00063 protected :
00064 
00065   void resizeEvent(QResizeEvent *);
00066 
00067   void sizeSpinBoxValueChanged();
00068 
00069   Ui::SnapshotDialogData *ui;
00070   const View *view;
00071 
00072   QGraphicsScene *scene;
00073   QGraphicsPixmapItem *pixmapItem;
00074   LockLabel *lockLabel;
00075 
00076   float ratio;
00077 
00078   bool inSizeSpinBoxValueChanged;
00079 };
00080 
00081 }
00082 
00083 #endif
00084 
00085 
00086 
00087 
00088 
00089 
00090 ///@endcond
 All Classes Files Functions Variables Enumerations Enumerator Properties