Changeset 36220


Ignore:
Timestamp:
Mar 6, 2009, 2:53:41 PM (15 years ago)
Author:
martinl
Message:

wxGUI osgeo4w patch applied (by jef)

http://trac.osgeo.org/grass/ticket/519

Location:
grass/branches/develbranch_6/gui/wxpython
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • grass/branches/develbranch_6/gui/wxpython/nviz/nviz.h

    r35952 r36220  
    11#ifndef WXNVIZ_H
    22#define WXNVIZ_H
     3
     4// For compilers that support precompilation, includes "wx.h".
     5#include <wx/wxprec.h>
    36
    47#include <vector>
     
    1114}
    1215
    13 // For compilers that support precompilation, includes "wx.h".
    14 #include <wx/wxprec.h>
    1516
    1617#ifdef __BORLANDC__
  • grass/branches/develbranch_6/gui/wxpython/vdigit/digit.cpp

    r35894 r36220  
    1515#include "driver.h"
    1616#include "digit.h"
     17
     18#ifdef _WIN32
     19#ifndef _CPPRTTI
     20#error "compile with /GR!"
     21#endif
     22#endif
    1723
    1824/**
  • grass/branches/develbranch_6/gui/wxpython/vdigit/driver.h

    r35955 r36220  
    2525#include <Python.h>
    2626#include "pseudodc.h"
     27#include <wx/gdicmn.h>
    2728
    2829extern "C" {
  • grass/branches/develbranch_6/gui/wxpython/vdigit/driver_draw.cpp

    r35894 r36220  
    1919
    2020#include "driver.h"
     21
    2122
    2223/**
     
    194195
    195196    // convert EN -> xy
    196     wxPoint wxPoints[points->n_points];
     197    wxPoint *wxPoints = new wxPoint[points->n_points];
    197198
    198199    for (int i = 0; i < points->n_points; i++) {
     
    204205    // draw polygon
    205206    dc->DrawPolygon(points->n_points, wxPoints);
     207
     208    delete [] wxPoints;
    206209
    207210    return 1;
     
    353356            }
    354357            else {
    355                 wxPoint wxPoints[pointsScreen->GetCount()];
     358                wxPoint *wxPoints = new wxPoint[pointsScreen->GetCount()];
    356359                for (size_t i = 0; i < pointsScreen->GetCount(); i++) {
    357360                    wxPoint *point_beg = (wxPoint *) pointsScreen->Item(i)->GetData();
     
    360363               
    361364                pdc->DrawLines(pointsScreen->GetCount(), wxPoints);
     365
     366                delete [] wxPoints;
    362367
    363368                if (!IsSelected(line) && settings.direction.enabled) {
     
    680685
    681686    angle_symb = angle - M_PI / 2.;
    682     x = x1 + size * std::cos(angle_symb);
    683     y = y1 - size * std::sin(angle_symb);
     687    x = x1 + size * cos(angle_symb);
     688    y = y1 - size * sin(angle_symb);
    684689    dc->DrawLine((wxCoord) x, (wxCoord) y, (wxCoord) x0, (wxCoord) y0);
    685690   
    686691    angle_symb = M_PI / 2. + angle;
    687     x = x1 + size * std::cos(angle_symb);
    688     y = y1 - size * std::sin(angle_symb);
     692    x = x1 + size * cos(angle_symb);
     693    y = y1 - size * sin(angle_symb);
    689694    dc->DrawLine((wxCoord) x0, (wxCoord) y0, (wxCoord) x, (wxCoord) y);
    690695
  • grass/branches/develbranch_6/gui/wxpython/vdigit/message.cpp

    r35894 r36220  
    9292{
    9393    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."),
    9695               wxString (bgmap, wxConvUTF8).c_str());
    9796    wxMessageDialog dlg(parentWin, msg,
Note: See TracChangeset for help on using the changeset viewer.