Main Page   Class Hierarchy   Compound List   File List   Compound Members  

central.h

00001 #ifndef _CENTRAL_H
00002 #define _CENTRAL_H
00003 
00004 #include "basicframe.h"
00005 #include "midobasic.h"
00006 #include "midotrigger.h"
00007 
00008 #include <qvariant.h>
00009 #include <qwidget.h>
00010 
00011 class QTabWidget;
00012 class Oscilloscope;
00013 class DisplayMultimeter;
00014 class QComboBox;
00015 class Spectrum;
00016 class Led;
00017 class Device;
00018 
00019 class Central : public QWidget
00020 { 
00021     Q_OBJECT
00022 
00023 public:
00024   Central( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00025   ~Central() {}
00026 
00027   Channel *ch1,*ch2;
00028   Oscilloscope *tab;
00029   DisplayMultimeter *tab_2;
00030 
00031 private:
00032   Trigger *trig;
00033   Spectrum *tab_3;
00034 
00035   QTabWidget* TabWidget2;
00036   QPushButton* pbStart, *pbStep;
00037   Led *lStart,*lRec;
00038 
00039   QLabel *labelPort;
00040   QComboBox *device, *interface;
00041 
00042   QTimer *scanTimer, *autoTriggerTimer;
00043   bool ch1On,ch2On,startUp;
00044 
00045   Device *converter;
00046 
00047 
00048 private slots:
00049   void startClicked();
00050   void stepClicked();
00051   void changeDevice(const QString& device);
00052   void changeIntervalRefresh(double tD);
00053   void activeCh1();
00054   void activeCh2();
00055   void deactiveCh1();
00056   void deactiveCh2();
00057 
00058   void setOscilloscopeScaleCh1(double value);
00059   void setOscilloscopeScaleCh2(double value);
00060 
00061   void setOscilloscopeSliderCh1(double value);
00062   void setOscilloscopeSliderCh2(double value);
00063   
00064   void updateDisplay();  // legge SAMPLES_SIZE campioni e manda i dati letti ai vari strumenti elettronici
00065 
00066   void startToggle();
00067 
00068   void AcCh1();
00069   void DcCh1();
00070   void GndCh1();
00071   void AcCh2();
00072   void DcCh2();
00073   void GndCh2();
00074   
00075   void updateAutoTrigger();
00076 
00077   void changePort(const QString&);  
00078 };
00079 
00080 #endif // CENTRAL_H

Generated at Tue Mar 18 13:49:45 2003 for MIDO by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000