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

openmaiaFrame.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 _openmaiaFrame_
00028 #define _openmaiaFrame_
00029 
00030 #include <wx/wx.h>
00031 #include <wx/xrc/xmlres.h>
00032 
00033 class openmaiaMain;
00034 class openmaiaOptions;
00035 
00036 #include "openmaiaOptions.h"
00037 #include "openmaia.h"
00038 
00045 class openmaiaFrame: public wxFrame
00046 {
00047  public:
00048   // ------------------------------------------------ public attributes ----
00049   wxArrayString extraProcessesStarted;    
00050 
00051 
00052   // ------------------------------------------------ public methods ----
00053   openmaiaFrame() ;
00054   void Init();
00055   void ProfileStopped();
00056   void ProfileStarted();
00057   bool Destroy();
00058   bool CanClose();
00059   void EnableMaiaconfig();
00060   void DisableMaiaconfig();
00061 
00062   DECLARE_EVENT_TABLE()
00063 
00064 
00065  private:
00066   // ------------------------------------------------ private attributes ----
00067   bool saved;
00068   openmaiaOptions *options;
00069 
00070   wxString savedTitle, nosavedTitle;
00071 
00072   
00073   // dialogs
00074   omDialog *startServerHelpDialog,  
00075     *connectToServerHelpDialog,
00076     *autostartProfileHelpDialog,
00077     *openmaiaHelpDialog,
00078     *maiaHelpDialog,
00079     *maiasmsHelpDialog,
00080     *confirmExitDialog,
00081     *autoiconizeHelpDialog;
00082 
00083   // combo boxes
00084   wxComboBox *selectedProfile,      
00085     *profileToAutostart;
00086     
00087   // check boxes
00088   wxCheckBox *startServerFlag,      
00089     *autostartProfileFlag,
00090     *connectToServerFlag,
00091     *startMaia,
00092     *startMaiasms,
00093     *autoiconize;
00094 
00095   // text controls
00096   wxTextCtrl *serverToConnect,      
00097     *portToConnect;
00098 
00099   // buttons
00100   wxButton *saveButton, 
00101     *startProfile,
00102     *stopProfile,
00103     *startMaiaconf;
00104 
00105   
00106   // ------------------------------------------------ private methods ----
00107   // buttons handlers
00108   void OnStartServerHelp(wxCommandEvent& WXUNUSED(event));
00109   void OnConnectToServerHelp(wxCommandEvent& WXUNUSED(event));
00110   void OnAutostartProfileHelp(wxCommandEvent& WXUNUSED(event));
00111   void OnAutoiconizeHelp(wxCommandEvent& WXUNUSED(event));
00112 
00113 
00114   // check boxes handers
00115   void OnStartServerFlag(wxCommandEvent& WXUNUSED(event));
00116   void OnAutostartProfileFlag(wxCommandEvent& WXUNUSED(event));
00117   void OnConnectToServerFlag(wxCommandEvent& WXUNUSED(event));
00118   void OnAutoiconize(wxCommandEvent& WXUNUSED(event));
00119   void OnOpenmaiaHelp(wxCommandEvent& WXUNUSED(event));
00120   void OnMaiaHelp(wxCommandEvent& WXUNUSED(event));
00121   void OnMaiasmsHelp(wxCommandEvent& WXUNUSED(event));
00122 
00123 
00124   void OnStartProfile(wxCommandEvent& WXUNUSED(event));
00125   void OnStopProfile(wxCommandEvent& WXUNUSED(event));
00126   void OnSaveButton(wxCommandEvent& WXUNUSED(event));
00127   void OnStartMaia(wxCommandEvent& WXUNUSED(event));
00128   void OnStartMaiasms(wxCommandEvent& WXUNUSED(event));
00129   void OnStartMaiaconf(wxCommandEvent& WXUNUSED(event));
00130 
00131   void OnCloseFrame(wxCloseEvent);
00132   
00133   
00134 
00135   
00136 } ;
00137 
00138 
00139 
00140 
00141 #endif  // _openmaiaFrame_