00001 00002 // -*- Mode: C++; tab-width: 2; -*- 00003 // vi: set ts=2: 00004 // 00005 // -------------------------------------------------------------------------- 00006 // OpenMS Mass Spectrometry Framework 00007 // -------------------------------------------------------------------------- 00008 // Copyright (C) 2003-2008 -- Oliver Kohlbacher, Knut Reinert 00009 // 00010 // This library is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Lesser General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2.1 of the License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 // 00024 // -------------------------------------------------------------------------- 00025 // $Maintainer: Marc Sturm $ 00026 // -------------------------------------------------------------------------- 00027 00028 #ifndef OPENMS_VISUAL_DIALOGS_SAVEIMAGEDIALOG_H 00029 #define OPENMS_VISUAL_DIALOGS_SAVEIMAGEDIALOG_H 00030 00031 #include <OpenMS/config.h> 00032 00033 #include <QtGui/QDialog> 00034 #include <QtGui/QComboBox> 00035 #include <QtGui/QLineEdit> 00036 #include <QtGui/QCheckBox> 00037 00038 namespace OpenMS 00039 { 00047 class SaveImageDialog : public QDialog 00048 { 00049 Q_OBJECT 00050 00051 public: 00053 SaveImageDialog( QWidget * parent = 0 ); 00055 void setSize(int x, int y); 00057 int getXSize(); 00059 int getYSize(); 00061 QString getFormat(); 00062 00063 public slots: 00065 void xSizeChanged(const QString& s); 00067 void ySizeChanged(const QString& s); 00069 void proportionsActivated(bool state); 00071 void checkSize(); 00072 00073 private: 00074 //format 00075 QComboBox* format_; 00076 //size 00077 QLineEdit* size_x_; 00078 QLineEdit* size_y_; 00079 QCheckBox* size_proportions_; 00080 //ratio size_x_/size_y_ 00081 float size_ratio_; 00082 00083 //set the size ratio (width/height) 00084 void setSizeRatio_(float r); 00085 }; 00086 } 00087 #endif 00088 00089
Generated Tue Apr 1 15:36:37 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |