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

omUIOptions.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 #ifndef _omUIOptions_
00028 #define _omUIOptions_
00029 
00030 #include <openmaia/omObject.h>
00031 #include <openmaia/omOptions.h>
00032 #include <openmaia/omXMLParser.h>
00033 #include <openmaia/omFunctions.h>
00034 #include <openmaia/omcommon.h>
00035 #include <openmaia/omemukeys.h>
00036 
00037 #include <wx/wx.h>
00038 
00039 
00049 class omUIOptions: public omOptions{
00050   
00051  public:  
00052   omUIOptions() ;
00053   virtual void Init() ;
00054 
00055   bool SetParameter(wxString, wxString);
00056   wxString GetParameter(wxString);
00057   wxString GenerateOptionsXMLString();
00058 
00059   // ----------------------- INTERNAL OPTIONS ----------------------
00060 
00061   // ------ Display options ---------------
00062 
00063   int screenWidth;                      
00064   int screenHeight;                     
00065 
00066   wxString keyboardName;                
00067 
00068   bool scanReverseDirection ;           
00069 
00070 
00071 
00072 
00073   // ----- GENERAL ---
00075   int actionKey ;
00077   int leftKey, 
00078     rightKey, 
00079     upKey, 
00080     downKey ;
00081 
00084   bool grabKeys ;   
00085 
00089   bool actionOnPress;
00090 
00091   bool soundEnabled;                          
00092 
00094   bool serialEnabled ;
00096   wxString serialPort ;
00098   bool joystickEnabled ;
00099 
00101   bool keyboardEnabled ;
00102 
00104   bool autoscan ;
00106   bool joystick ;
00108   bool direct ;
00109 
00110   // ------ SCAN ---
00111   // ------ Automatic scan options --------
00113   int scanTime;
00114 
00116   int scanLoopsNumber;
00118   bool delayAfterClick ;
00122   bool delayAfterAction;
00123 
00125   bool delayAfterEndBlock ;
00129   int scanResumeFrom;
00131   bool exitBlockAfterClick ;
00132 
00133 } ;
00134 
00135 
00136 #endif // _omUIOptions_