[Gcblue-commits] gcb_wx/src/common AError.cpp, 1.9, 1.10 nsNav.cpp, 1.10, 1.11 tcOptionsView.cpp, 1
Status: Alpha
Brought to you by:
ddcforge
From: Dewitt C. <ddc...@us...> - 2006-08-17 01:28:07
|
Update of /cvsroot/gcblue/gcb_wx/src/common In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv21820/src/common Modified Files: AError.cpp nsNav.cpp tcOptionsView.cpp Log Message: Update for server name change Index: tcOptionsView.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/common/tcOptionsView.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** tcOptionsView.cpp 28 Mar 2006 23:58:12 -0000 1.16 --- tcOptionsView.cpp 17 Aug 2006 01:28:03 -0000 1.17 *************** *** 162,165 **** --- 162,167 ---- } + int startMapMode = mpOptions->mnMapMode; + // TranslatePoint(point); // adjust for flipped up/down bButtonClicked = ButtonContainingPoint(event.GetPosition(), nOption, nValue); *************** *** 191,194 **** --- 193,204 ---- } + if (mpOptions->mnMapMode != startMapMode) + { + wxCommandEvent command(wxEVT_COMMAND_BUTTON_CLICKED, ID_REFRESHMAPS); + command.SetEventObject(this); + + AddPendingEvent(command); + } + } /******************************************************************************/ Index: AError.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/common/AError.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** AError.cpp 23 Mar 2006 01:11:01 -0000 1.9 --- AError.cpp 17 Aug 2006 01:28:03 -0000 1.10 *************** *** 30,33 **** --- 30,34 ---- #include <stdio.h> #include <string.h> + #include <wx/string.h> *************** *** 79,84 **** if (logfile==NULL) { logfile = fopen("log\\log.txt","wt"); ! if (logfile==NULL) { ! wxMkdir(L"log"); logfile = fopen("log\\log.txt","wt"); if (logfile==NULL) { --- 80,86 ---- if (logfile==NULL) { logfile = fopen("log\\log.txt","wt"); ! if (logfile==NULL) ! { // create directory and try again ! wxMkdir("log"); // wxMkdir(L"log") caused link errors on laptop !? logfile = fopen("log\\log.txt","wt"); if (logfile==NULL) { *************** *** 99,102 **** --- 101,105 ---- return; + } Index: nsNav.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/common/nsNav.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** nsNav.cpp 4 May 2006 22:47:26 -0000 1.10 --- nsNav.cpp 17 Aug 2006 01:28:03 -0000 1.11 *************** *** 97,101 **** float fDeltaLat = afLatA_rad - afLatB_rad; float fDeltaLon = afLonA_rad - afLonB_rad; ! float fDeltaAlt = 0.001f*C_KMTORAD*(afAltA_m - afAltB_m); if (fDeltaLon > C_PI) {fDeltaLon -= C_TWOPI;} else if (fDeltaLon < -C_PI) {fDeltaLon += C_TWOPI;} --- 97,101 ---- float fDeltaLat = afLatA_rad - afLatB_rad; float fDeltaLon = afLonA_rad - afLonB_rad; ! float fDeltaAlt = C_MTORAD*(afAltA_m - afAltB_m); if (fDeltaLon > C_PI) {fDeltaLon -= C_TWOPI;} else if (fDeltaLon < -C_PI) {fDeltaLon += C_TWOPI;} |