Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
diagramdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  diagramdialog.h
3  -----------------
4  begin : Sun Oct 5 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 DIAGRAMDIALOG_H
19 #define DIAGRAMDIALOG_H
20 #include <QtGui>
21 #include "diagram.h"
22 #include "node.h"
23 
24 #ifndef M_PI
25 #define M_PI 3.1415926535897932384626433832795029
26 #endif
27 
28 #include <QDialog>
29 #include <QRegExp>
30 #include <QVBoxLayout>
31 #include <QLabel>
32 #include <Q3PtrList>
33 
34 class Cross3D;
35 class QLabel;
36 class QLineEdit;
37 class QCheckBox;
38 class QComboBox;
39 class QDoubleValidator;
40 class QIntValidator;
41 class QRegExpValidator;
42 class QSlider;
43 
44 
45 class DiagramDialog : public QDialog {
46 Q_OBJECT
47 public:
48  DiagramDialog(Diagram *d, const QString& _DataSet, QWidget *parent=0,
49  Graph *currentGraph=0);
51 
52  bool loadVarData(const QString&);
53  void copyDiagramGraphs();
54 
55 private slots:
56  void slotReadVars(int);
57  void slotTakeVar(QTableWidgetItem *item);
58 // void slotSelectGraph(int index);
59  void slotSelectGraph(QListWidgetItem*);
60  void slotNewGraph();
61  void slotDeleteGraph();
62  void slotOK();
63  void slotApply();
64  void slotCancel();
65  void slotSetColor();
66  void slotSetGridColor();
67  void slotResetToTake(const QString&);
68  void slotSetProp2(const QString&);
69  void slotSetNumMode(int);
70  void slotSetGridBox(int);
71  void slotSetGraphStyle(int);
72  void slotSetYAxis(int);
73  void slotManualX(int);
74  void slotManualY(int);
75  void slotManualZ(int);
76  void slotChangeTab(QWidget*);
77 
78  void slotNewRotX(int);
79  void slotNewRotY(int);
80  void slotNewRotZ(int);
81  void slotEditRotX(const QString&);
82  void slotEditRotY(const QString&);
83  void slotEditRotZ(const QString&);
84 
85 protected slots:
86  void reject();
87 
88 private:
89  void SelectGraph(Graph*);
90 
92  QString defaultDataSet;
93 
94  QRegExp Expr;
95  QDoubleValidator *ValDouble;
96  QIntValidator *ValInteger;
97  QRegExpValidator *Validator;
98 
99  QComboBox *ChooseData;
100  //Q3ListView *ChooseVars;
101  QTableWidget *ChooseVars;
102  QListWidget *GraphList;
103 
104  QVBoxLayout *all; // the mother of all widgets
106  QCheckBox *GridOn, *GridLogX, *GridLogY, *GridLogZ;
108  QLineEdit *startX, *stepX, *stopX;
109  QLineEdit *startY, *stepY, *stopY;
110  QLineEdit *startZ, *stepZ, *stopZ;
111  QLineEdit *rotationX, *rotationY, *rotationZ;
114  QPushButton *ColorButt, *GridColorButt;
118  Q3PtrList<Graph> Graphs;
119 };
120 
121 #endif
QLabel * Label2
QSlider * SliderRotZ
QCheckBox * GridOn
void slotManualY(int)
QCheckBox * manualX
void slotNewRotX(int)
QLineEdit * startY
QLineEdit * startZ
void slotSetProp2(const QString &)
void slotManualZ(int)
QLineEdit * yrLabel
QComboBox * ChooseData
Definition: diagramdialog.h:99
void slotReadVars(int)
QIntValidator * ValInteger
Definition: diagramdialog.h:96
void slotManualX(int)
QLineEdit * stepY
Definition: graph.h:57
QLineEdit * stopY
QLabel * Label1
QPushButton * GridColorButt
void slotNewRotY(int)
void slotChangeTab(QWidget *)
QLineEdit * stopX
QLineEdit * stepZ
Diagram * Diag
Definition: diagramdialog.h:91
QLineEdit * rotationY
QPushButton * ColorButt
QCheckBox * hideInvisible
Q3PtrList< Graph > Graphs
QCheckBox * manualZ
void slotSetGraphStyle(int)
void slotTakeVar(QTableWidgetItem *item)
QCheckBox * manualY
QLabel * GridLabel2
QComboBox * GridStyleBox
QLineEdit * startX
QCheckBox * GridLogZ
void slotEditRotY(const QString &)
void slotDeleteGraph()
void slotSetNumMode(int)
QComboBox * yAxisBox
QLabel * Label4
QLineEdit * stepX
QLabel * Label3
QLineEdit * Property2
void slotEditRotX(const QString &)
QLineEdit * xLabel
QDoubleValidator * ValDouble
Definition: diagramdialog.h:95
QCheckBox * GridLogY
QTableWidget * ChooseVars
QLabel * GridLabel1
void slotResetToTake(const QString &)
QString defaultDataSet
Definition: diagramdialog.h:92
void slotSetGridBox(int)
void copyDiagramGraphs()
QRegExpValidator * Validator
Definition: diagramdialog.h:97
void SelectGraph(Graph *)
void slotSetYAxis(int)
QSlider * SliderRotY
QVBoxLayout * all
QLineEdit * rotationX
QLineEdit * rotationZ
Cross3D * DiagCross
void slotEditRotZ(const QString &)
QListWidget * GraphList
void slotSelectGraph(QListWidgetItem *)
QLineEdit * ylLabel
QSlider * SliderRotX
QLineEdit * stopZ
bool loadVarData(const QString &)
DiagramDialog(Diagram *d, const QString &_DataSet, QWidget *parent=0, Graph *currentGraph=0)
void slotNewRotZ(int)
QLineEdit * GraphInput
QCheckBox * GridLogX
QComboBox * PropertyBox