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 _maiaButtonData_ 00029 #define _maiaButtonData_ 00030 00031 #include <openmaia/libopenmaia.h> 00032 #include <openmaia/libopenmaiaui.h> 00033 00034 #include <wx/wx.h> 00035 #include <vector> 00036 00040 class maiaButtonData: public omObject { 00041 private: 00042 int nActions ; 00043 int currAction ; 00044 00045 public: 00046 wxString name ; 00047 int x,y,w,h ; 00048 wxString normalImage, scanImage, selImage ; 00049 wxString selSound, scanSound; 00050 // wxString code; // simulation code 00051 std::vector<omCommand *> actions ; 00052 00053 00054 maiaButtonData() ; 00055 void AddAction(omCommand *) ; 00056 omCommand *GetNextAction() ; 00057 bool MoreActions(); 00058 void ResetActionFetchCounter(); 00059 00060 } ; 00061 00062 #endif // _maiaButtonData_
Copyright © by Luca Clivio |