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 _omDialog_ 00028 #define _omDialog_ 00029 00030 #include <wx/wx.h> 00031 #include <wx/xrc/xmlres.h> 00032 00033 #include <openmaia/omObject.h> 00034 00035 00036 #define omOK_BUTTON 0 00037 #define omCANCEL_BUTTON 1 00038 #define omYES_BUTTON 2 00039 #define omNO_BUTTON 3 00040 #define omSAVE_BUTTON 4 00041 00042 00043 00044 00098 class omDialog: public wxDialog, public omObject 00099 { 00100 public: 00101 omDialog(wxWindow *, wxString, wxString) ; 00102 int ShowModal(); 00103 bool IsButtonPressed(); 00104 int GetButtonPressed(); 00105 bool Destroy(); 00106 00107 00108 DECLARE_EVENT_TABLE() 00109 00110 00111 private: 00112 00113 // variables 00114 bool isPressed; 00115 int buttonPressed; 00116 00117 //void OnCloseDialog(wxCloseEvent& WXUNUSED(event)); 00118 void OnYesButton(wxCommandEvent& WXUNUSED(event)); 00119 void OnNoButton(wxCommandEvent& WXUNUSED(event)); 00120 void OnCancelButton(wxCommandEvent& WXUNUSED(event)); 00121 void OnOkButton(wxCommandEvent& WXUNUSED(event)); 00122 void OnSaveButton(wxCommandEvent& WXUNUSED(event)); 00123 00124 00125 } ; 00126 00127 00128 #endif // _omDialog_
Copyright © by Luca Clivio |