MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mnertclientsquidcontroldgl.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef MNERTCLIENTSQUIDCONTROLDGL_H
37 #define MNERTCLIENTSQUIDCONTROLDGL_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "../ui_mnertclientsquidcontroldgl.h"
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // QT INCLUDES
50 //=============================================================================================================
51 
52 #include <QDialog>
53 
54 
55 //*************************************************************************************************************
56 //=============================================================================================================
57 // DEFINE NAMESPACE MneRtClientPlugin
58 //=============================================================================================================
59 
60 namespace MneRtClientPlugin //Ui
61 {
62 //*************************************************************************************************************
63 //=============================================================================================================
64 // FORWARD DECLARATIONS
65 //=============================================================================================================
66 class MneRtClient;
67 
68 //*************************************************************************************************************
69 //=============================================================================================================
70 // Structure definitions
71 //=============================================================================================================
72 struct FLLPara{
73  int Bias;
74  int Mod;
75  int Mode;
76  int PreGain;
77  int PostGain;
78  int slew;
79  int offset;
80  int LoPass;
81  int LPBW;
82  int HiPass;
83  int HPBW;
84  int AutoReset;
85  int ResetLock;
86  QString channame;
87 };
88 
89 struct FLLConfig{
90  QList < FLLPara > m_Fll;
91 
92 };
93 
94 //*************************************************************************************************************
95 //=============================================================================================================
96 // GUI Status Machine Structure definitions
97 //=============================================================================================================
99  int CommType;
100  int ChannelSel;
101  int ChannelStat;
102  int OperMode;
103  int Retune;
104  int HeatThis;
105  int Atune;
106  int Reset;
107  int HeatAndTune;
108  int Save;
109  int _Save;
110  int GroupHeat;
111  int Last;
112  int Default;
113 
114  int HighPass;
115  int LowPass;
116  int PreGain;
117  int PostGain;
118  int Slew;
119  float HeatTime;
120  float CoolTime;
121 
122  int AutoRest;
123  int ResetLock;
124  float offset;
125  float bias;
126  float modulation;
127 
128  int TuneCheck;
129  int Amp;
130  int IntegratorReset;
131  int MicroReset;
132 
133 
134 };
135 //=============================================================================================================
141 class mnertclientSQUIDControlDgl : public QDialog
142 {
143  Q_OBJECT
144 
145 
146 public:
147  explicit mnertclientSQUIDControlDgl(MneRtClient* p_pMneRtClient,QWidget *parent = 0);
149 
150 private:
152 
153 public:
154  MneRtClient* m_pMneRtClient;
155  FLLConfig m_FLLConfig;
156  GUIStatMachine m_GUISM;
157 
158  void SendRetune();
159  void Cancel();
160  void SendCMD(QString CMDSTR);
161  void Init();
162  void InitChannels(QString sReply);
163  void InitGUIConfig(QString sFLLPara);
164  void ReplyCmdProc(QString sReply);
165  void UpdateGUI();
166  void SyncGUI();
167  QString GenChnInfo(QString);
168 };
169 
170 }//namespace
171 #endif // MNERTCLIENTSQUIDCONTROLDGL_H
The MneRtClient class provides a RT server connection.
Definition: mnertclient.h:115
The mnertclientSQUIDControlDgl class provides the SQUID control dialog.