Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/imagewriter.h
Go to the documentation of this file.
00001 /*
00002  * imagewriter.h - declaraction of writer to image
00003  *
00004  * Copyright (C) 2014, Yodalee, lc85301@gmail.com
00005  *
00006  * This file is part of Qucs
00007  *
00008  * Qucs is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2, or (at your option)
00011  * any later version.
00012  *
00013  * This software 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.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with Qucs.  If not, see <http://www.gnu.org/licenses/>.
00020  *
00021  */
00022 
00023 #ifndef IMAGEWRITER_H_
00024 #define IMAGEWRITER_H_ value
00025 
00026 #include <QString>
00027 
00028 class QWidget;
00029 
00030 class ImageWriter
00031 {
00032 public:
00033   ImageWriter (QString lastfile);
00034   virtual ~ImageWriter ();
00035   int print(QWidget *);
00036   void noGuiPrint(QWidget *, QString printFile, QString color);
00037 
00038   QString getLastSavedFile();
00039 
00040   void setDiagram(bool diagram) { onlyDiagram = diagram; };
00041 private:
00042   bool onlyDiagram;
00043   QString lastExportFilename;
00044 
00045   void getSchWidthAndHeight(Schematic *sch, int &w, int &h, int &xmin, int &ymin);
00046 };
00047 
00048 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines