[Gcblue-commits] gcb_wx/include/graphics tcMapMissionObject.h, NONE, 1.1 tcOOBView.h, 1.9, 1.10
Status: Alpha
Brought to you by:
ddcforge
From: Dewitt C. <ddc...@us...> - 2006-12-15 03:38:50
|
Update of /cvsroot/gcblue/gcb_wx/include/graphics In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv32056/include/graphics Modified Files: tcOOBView.h Added Files: tcMapMissionObject.h Log Message: --- NEW FILE: tcMapMissionObject.h --- /** ** @file tcMapMissionObject.h */ /* Copyright (C) 2006 Dewitt Colclough (de...@gc...) ** All rights reserved. ** This file is part of the Global Conflict Blue (GCB) program. ** GCB is free software; you can redistribute it and/or modify ** it under the terms of version 2 of the GNU General Public License as ** published by the Free Software Foundation. ** GCB is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** You should have received a copy of the GNU General Public License ** along with GCB; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _TCMAPMISSIONOBJECT_H_ #define _TCMAPMISSIONOBJECT_H_ #if _MSC_VER > 1000 #pragma once #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif // WX_PRECOMP #include "tcMapObject.h" class tc3DWindow; class tcStream; class tcCommandStream; class tcCreateStream; class tcUpdateStream; namespace ai { class tcMission; } /** * Class for displaying text */ class tcMapMissionObject : public tcMapObject { public: virtual void Draw(tc3DWindow* host); virtual tcUpdateStream& operator<<(tcUpdateStream& stream); virtual tcUpdateStream& operator>>(tcUpdateStream& stream); virtual void MoveToScreenPoint(const wxPoint& pos); void SetDragActive(bool state); bool ProcessKey(int keyCode); tcMapMissionObject(long platformId_, unsigned int missionId_); virtual ~tcMapMissionObject(); private: std::string caption; ///< text to display const long platformId; ///< platform id of mission host const unsigned int missionId; int updateCounter; ai::tcMission* GetMission(); void Update(); }; #endif Index: tcOOBView.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/graphics/tcOOBView.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** tcOOBView.h 2 Dec 2006 02:23:48 -0000 1.9 --- tcOOBView.h 15 Dec 2006 03:38:49 -0000 1.10 *************** *** 103,106 **** --- 103,107 ---- void Draw(); void OnLButtonDown(wxMouseEvent& event); + void OnLButtonDClick(wxMouseEvent& event); void OnLButtonUp(wxMouseEvent& event); void OnMouseMove(wxMouseEvent& event); |