Changeset 36220
- Timestamp:
- Mar 6, 2009, 2:53:41 PM (15 years ago)
- Location:
- grass/branches/develbranch_6/gui/wxpython
- Files:
-
- 2 added
- 5 edited
-
nviz/nviz.h (modified) (2 diffs)
-
nviz/setup.py (added)
-
vdigit/digit.cpp (modified) (1 diff)
-
vdigit/driver.h (modified) (1 diff)
-
vdigit/driver_draw.cpp (modified) (6 diffs)
-
vdigit/message.cpp (modified) (1 diff)
-
vdigit/setup.py (added)
Legend:
- Unmodified
- Added
- Removed
-
grass/branches/develbranch_6/gui/wxpython/nviz/nviz.h
r35952 r36220 1 1 #ifndef WXNVIZ_H 2 2 #define WXNVIZ_H 3 4 // For compilers that support precompilation, includes "wx.h". 5 #include <wx/wxprec.h> 3 6 4 7 #include <vector> … … 11 14 } 12 15 13 // For compilers that support precompilation, includes "wx.h".14 #include <wx/wxprec.h>15 16 16 17 #ifdef __BORLANDC__ -
grass/branches/develbranch_6/gui/wxpython/vdigit/digit.cpp
r35894 r36220 15 15 #include "driver.h" 16 16 #include "digit.h" 17 18 #ifdef _WIN32 19 #ifndef _CPPRTTI 20 #error "compile with /GR!" 21 #endif 22 #endif 17 23 18 24 /** -
grass/branches/develbranch_6/gui/wxpython/vdigit/driver.h
r35955 r36220 25 25 #include <Python.h> 26 26 #include "pseudodc.h" 27 #include <wx/gdicmn.h> 27 28 28 29 extern "C" { -
grass/branches/develbranch_6/gui/wxpython/vdigit/driver_draw.cpp
r35894 r36220 19 19 20 20 #include "driver.h" 21 21 22 22 23 /** … … 194 195 195 196 // convert EN -> xy 196 wxPoint wxPoints[points->n_points];197 wxPoint *wxPoints = new wxPoint[points->n_points]; 197 198 198 199 for (int i = 0; i < points->n_points; i++) { … … 204 205 // draw polygon 205 206 dc->DrawPolygon(points->n_points, wxPoints); 207 208 delete [] wxPoints; 206 209 207 210 return 1; … … 353 356 } 354 357 else { 355 wxPoint wxPoints[pointsScreen->GetCount()];358 wxPoint *wxPoints = new wxPoint[pointsScreen->GetCount()]; 356 359 for (size_t i = 0; i < pointsScreen->GetCount(); i++) { 357 360 wxPoint *point_beg = (wxPoint *) pointsScreen->Item(i)->GetData(); … … 360 363 361 364 pdc->DrawLines(pointsScreen->GetCount(), wxPoints); 365 366 delete [] wxPoints; 362 367 363 368 if (!IsSelected(line) && settings.direction.enabled) { … … 680 685 681 686 angle_symb = angle - M_PI / 2.; 682 x = x1 + size * std::cos(angle_symb);683 y = y1 - size * s td::sin(angle_symb);687 x = x1 + size * cos(angle_symb); 688 y = y1 - size * sin(angle_symb); 684 689 dc->DrawLine((wxCoord) x, (wxCoord) y, (wxCoord) x0, (wxCoord) y0); 685 690 686 691 angle_symb = M_PI / 2. + angle; 687 x = x1 + size * std::cos(angle_symb);688 y = y1 - size * s td::sin(angle_symb);692 x = x1 + size * cos(angle_symb); 693 y = y1 - size * sin(angle_symb); 689 694 dc->DrawLine((wxCoord) x0, (wxCoord) y0, (wxCoord) x, (wxCoord) y); 690 695 -
grass/branches/develbranch_6/gui/wxpython/vdigit/message.cpp
r35894 r36220 92 92 { 93 93 wxString msg; 94 msg.Printf(_("Unable to open background vector map <%s>. " 95 "Please check digitizer settings."), 94 msg.Printf(_("Unable to open background vector map <%s>. Please check digitizer settings."), 96 95 wxString (bgmap, wxConvUTF8).c_str()); 97 96 wxMessageDialog dlg(parentWin, msg,
Note:
See TracChangeset
for help on using the changeset viewer.
