[Gcblue-commits] gcb_wx/include/sim tcMapView.h,1.17,1.18
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-04-03 15:51:50
|
Update of /cvsroot/gcblue/gcb_wx/include/sim In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22160/include/sim Modified Files: tcMapView.h Log Message: selection box drawing Index: tcMapView.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcMapView.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** tcMapView.h 20 Mar 2004 18:46:46 -0000 1.17 --- tcMapView.h 3 Apr 2004 15:39:31 -0000 1.18 *************** *** 244,253 **** float mfScrollDirection; ! unsigned long mnHookID; UINT mnHookAlliance; float mfHookLon,mfHookLat; int mbMapCmdActive; teMapCmdType meMapCmd; ! wxPoint mpointMouse; tcPoint mpointGeoDatum; ///< for MC_DATUM map command to store user-selected location float mfMapCmdHeading; --- 244,253 ---- float mfScrollDirection; ! long mnHookID; UINT mnHookAlliance; float mfHookLon,mfHookLat; int mbMapCmdActive; teMapCmdType meMapCmd; ! wxPoint mpointMouse; ///< current location of mouse cursor tcPoint mpointGeoDatum; ///< for MC_DATUM map command to store user-selected location float mfMapCmdHeading; *************** *** 277,280 **** --- 277,281 ---- void DrawGrid(Gdiplus::Graphics *apGraphics); void DrawScaleBar(Gdiplus::Graphics *apGraphics); + void DrawSelectionBox(Gdiplus::Graphics *graphics); void DrawTerrainText(Gdiplus::Graphics *apGraphics); void DrawMapCmd(Gdiplus::Graphics *apGraphics, tcMapObj *pMO, teMapCmdType type); *************** *** 287,290 **** --- 288,292 ---- void OnLeaveWindow(wxMouseEvent& event); void OnLButtonDown(wxMouseEvent& event); + void OnLButtonUp(wxMouseEvent& event); void OnLButtonDownMapCmd(wxPoint point); void OnMouseMove(wxMouseEvent& event); *************** *** 299,302 **** --- 301,305 ---- void ToggleShowTrackTags() {mbShowTrackID = !mbShowTrackID;} void UpdateViewBounds() {mpMapData->GetTheaterArea(mrectViewBounds);} + tcTacticalMapView(wxWindow *parent, const wxPoint& pos, const wxSize& size, *************** *** 313,319 **** teSymbology meSymbology; float mfSymbolXOffset, mfSymbolYOffset; ! void Build2525(void); ! void BuildNTDS(void); UINT32 GetAffiliationColor(teAffiliation a); Gdiplus::Image* GetSymbol(teAffiliation aeAffiliation, teSymbol aeSymbol); --- 316,325 ---- teSymbology meSymbology; float mfSymbolXOffset, mfSymbolYOffset; + bool isLButtonDown; ///< true if left mouse button is down while in window (dragging) + wxPoint buttonDownPoint; ///< start point for click-drag operations ! ! void Build2525(); ! void BuildNTDS(); UINT32 GetAffiliationColor(teAffiliation a); Gdiplus::Image* GetSymbol(teAffiliation aeAffiliation, teSymbol aeSymbol); |