My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
qucsdoc.h
Go to the documentation of this file.
1 /***************************************************************************
2  qucsdoc.h
3  -----------
4  begin : Wed Sep 3 2003
5  copyright : (C) 2003 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QUCSDOC_H
19 #define QUCSDOC_H
20 
21 #include <qstring.h>
22 #include <qdatetime.h>
23 
24 class QucsApp;
25 class QPrinter;
26 class QPainter;
27 
28 extern const char *smallsave_xpm[];// icon for unsaved files (diskette)
29 extern const char *empty_xpm[]; // provides same height than "smallsave_xpm"
30 
31 
32 class QucsDoc {
33 public:
34  QucsDoc(QucsApp*, const QString&);
35  virtual ~QucsDoc() {};
36 
37  virtual void setName(const QString&) {};
38  virtual bool load() { return true; };
39  virtual int save() { return 0; };
40  virtual void print(QPrinter*, QPainter*, bool, bool) {};
41  virtual void becomeCurrent(bool) {};
42  virtual float zoomBy(float) { return 1.0; };
43  virtual void showAll() {};
44  virtual void showNoZoom() {};
45 
46  static QString fileSuffix (const QString&);
47  QString fileSuffix (void);
48  static QString fileBase (const QString&);
49  QString fileBase (void);
50 
51  QString DocName;
52  QString DataSet; // name of the default dataset
53  QString DataDisplay; // name of the default data display
54  QString Script;
55  QString SimTime; // used for VHDL simulation, but stored in datadisplay
56  QDateTime lastSaved;
57 
58  float Scale;
60  bool DocChanged;
61  bool SimOpenDpl; // open data display after simulation ?
62  bool SimRunScript; // run script after simulation ?
63  int showBias; // -1=no, 0=calculation running, >0=show DC bias points
64  bool GridOn;
66 };
67 
68 #endif