Qucs-GUI  0.0.18
 All Data Structures 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>
22 #include <QDateTime>
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
QString Script
Definition: qucsdoc.h:54
bool GridOn
Definition: qucsdoc.h:64
bool SimOpenDpl
Definition: qucsdoc.h:61
float Scale
Definition: qucsdoc.h:58
int showBias
Definition: qucsdoc.h:63
virtual bool load()
Definition: qucsdoc.h:38
QString fileSuffix(void)
Definition: qucsdoc.cpp:107
virtual ~QucsDoc()
Definition: qucsdoc.h:35
const char * smallsave_xpm[]
Definition: qucsdoc.cpp:28
virtual void print(QPrinter *, QPainter *, bool, bool)
Definition: qucsdoc.h:40
bool SimRunScript
Definition: qucsdoc.h:62
const char * empty_xpm[]
Definition: qucsdoc.cpp:65
bool DocChanged
Definition: qucsdoc.h:60
virtual void becomeCurrent(bool)
Definition: qucsdoc.h:41
virtual void showNoZoom()
Definition: qucsdoc.h:44
QucsApp * App
Definition: qucsdoc.h:59
QDateTime lastSaved
Definition: qucsdoc.h:56
virtual void showAll()
Definition: qucsdoc.h:43
virtual int save()
Definition: qucsdoc.h:39
QString SimTime
Definition: qucsdoc.h:55
QString DataSet
Definition: qucsdoc.h:52
virtual float zoomBy(float)
Definition: qucsdoc.h:42
QString fileBase(void)
Definition: qucsdoc.cpp:116
QString DocName
Definition: qucsdoc.h:51
virtual void setName(const QString &)
Definition: qucsdoc.h:37
int tmpPosY
Definition: qucsdoc.h:65
Definition: qucs.h:61
int tmpPosX
Definition: qucsdoc.h:65
QString DataDisplay
Definition: qucsdoc.h:53
QucsDoc(QucsApp *, const QString &)
Definition: qucsdoc.cpp:70