source: fact/trigger/gui/t72/main.h@ 14855

Last change on this file since 14855 was 77, checked in by rissim, 15 years ago
trigger: gui added, interface modified
File size: 1.3 KB
Line 
1#include <QtNetwork/QTcpSocket>
2#include <QtNetwork/QAbstractSocket>
3#include <QWidget>
4#include <QtGui>
5#include "tpixel.h"
6#include "tempsens.h"
7#include "humidity.h"
8#include <QString>
9#define SOCKET_TIMEOUT 10000 // Milliseconds to wait for socket connection
10#define MAX_OUTPUT_LINES 200 // Maximum number of lines in socket output window
11#define MAX_COM_SIZE 10000
12#define INITIAL_DIRECTORY ""
13
14 class MyWidget : public QWidget
15 {
16
17 Q_OBJECT
18 Tpixel **pixels;
19 Tempsens **tempsens;
20 Humidity **humidity;
21 public:
22 int* PixelToTriggerPixel;
23 int* ListToTemperaturePixel;
24 MyWidget( QWidget *parent=0 );
25 QTcpSocket *Socket;
26 QPlainTextEdit *RunHeaderDisplay, *EventHeaderDisplay, *SocketOutput;
27 QSpinBox *Port;
28 QLineEdit *IPAddress,*Command;
29 QWidget *SocketWindow;
30 QFormLayout *CommandLayout, *PortLayout, *AddressLayout;
31 QPushButton *GetButton, *SocketButton, *Connect;
32 QGridLayout *SocketLayout;
33 QAction *ConnectAction;
34 private:
35 void ParseData(QString data);
36 bool WaitForData,ManualDisconnect;
37 private slots:
38 void OpenSocketWindow();
39 void GetSignalFromSocket();
40 void MakeConnection();
41 void SendToSocket();
42 void ReadFromSocket();
43 void GotDisconnected();
44 void updateRates();
45 /* void MenuAbout();*/
46};
47
48
Note: See TracBrowser for help on using the repository browser.