Main Page | Modules | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

maiaemg.h

Go to the documentation of this file.
00001 
00002 // This code is part of the MaiaProject free software
00003 //
00004 // Keyboard and Mouse Emulator - Virtual keyboard Engine
00005 //
00006 // Copyright (c) 2002-2003 Luca Clivio <luca.clivio@maiaproject.org>
00007 // Tel. +39-347-2538040
00008 // via B.Croce 2, 20037 Paderno Dugnano (Milano) - Italy
00009 //
00010 // Developers:
00011 //    Simone Mangano <simone.mangano@maiaproject.org>
00012 //    Andrea Tosato  <andrea.tosato@maiaproject.org>
00013 //
00014 //  -----------------------------------------------------------------------------
00015 //  This program is free software; This program is free software; 
00016 //  you can redistribute it and/or modify it under the terms of the 
00017 //  GNU General Public License as published by the Free Software Foundation; 
00018 //  either version 2 of the License, or (at your option) any later version.
00019 //  but WITHOUT ANY WARRANTY; without even the implied warranty of                              
00020 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                                
00021 //  GNU General Public License for more details.                                                
00022 //  You should have received a copy of the GNU General Public License                           
00023 //  along with this program; if not, write to the Free Software                                 
00024 //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                                   
00026 
00027 
00028 #ifndef _MaiaEmg_h_
00029 #define _MaiaEmg_h_
00030 
00031 
00032 #include <wx/wx.h>
00033 #include <wx/socket.h>
00034 #include <wx/process.h>
00035 
00036 #include "MaiaEmgPlot.h"
00037 #include "MaiaEmgAnalize.h"
00038 
00039 
00040 
00041 #define DATAVECTORSIZE 1024*30 //Number of data stored
00042 
00043 
00044 
00045 
00047 class MaiaEmg: public wxApp
00048 {
00049  public:
00050   virtual bool OnInit() ;
00051   virtual int OnExit() ;
00052 
00053  private:
00054   bool fromStdInput;//true if data is got from standard input
00055   unsigned short dataVector[DATAVECTORSIZE];
00056   int dataIndex;
00057 
00058   double filteredVector[DATAVECTORSIZE];// pointer to shared filtered data vector
00059 
00060 
00061   MaiaEmgPlot *mainFrame;
00062   MaiaEmgAnalize *fillThread;
00063 
00064   MaiaEmgAnalize *CreateThread(wxString);
00065 
00066   DECLARE_EVENT_TABLE()
00067   
00068 } ;
00069 
00070 DECLARE_APP(MaiaEmg);
00071 
00072 
00073 #endif  // _MaiaEmg_h