Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 qucsdoc.h 00003 ----------- 00004 begin : Wed Sep 3 2003 00005 copyright : (C) 2003 by Michael Margraf 00006 email : michael.margraf@alumni.tu-berlin.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef QUCSDOC_H 00019 #define QUCSDOC_H 00020 00021 #include <QString> 00022 #include <QDateTime> 00023 00024 class QucsApp; 00025 class QPrinter; 00026 class QPainter; 00027 00028 class QucsDoc { 00029 public: 00030 QucsDoc(QucsApp*, const QString&); 00031 virtual ~QucsDoc() {}; 00032 00033 virtual void setName(const QString&) {}; 00034 virtual bool load() { return true; }; 00035 virtual int save() { return 0; }; 00036 virtual void print(QPrinter*, QPainter*, bool, bool) {}; 00037 virtual void becomeCurrent(bool) {}; 00038 virtual float zoomBy(float) { return 1.0; }; 00039 virtual void showAll() {}; 00040 virtual void showNoZoom() {}; 00041 00042 static QString fileSuffix (const QString&); 00043 QString fileSuffix (void); 00044 static QString fileBase (const QString&); 00045 QString fileBase (void); 00046 00047 QString DocName; 00048 QString DataSet; // name of the default dataset 00049 QString DataDisplay; // name of the default data display 00050 QString Script; 00051 QString SimTime; // used for VHDL simulation, but stored in datadisplay 00052 QDateTime lastSaved; 00053 00054 float Scale; 00055 QucsApp *App; 00056 bool DocChanged; 00057 bool SimOpenDpl; // open data display after simulation ? 00058 bool SimRunScript; // run script after simulation ? 00059 int showBias; // -1=no, 0=calculation running, >0=show DC bias points 00060 bool GridOn; 00061 int tmpPosX, tmpPosY; 00062 }; 00063 00064 #endif