Changeset 4451 in ntrip


Ignore:
Timestamp:
Jul 29, 2012, 5:21:34 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/graphwin.cpp

    r4450 r4451  
    151151// Save the Widget as PNG Files
    152152////////////////////////////////////////////////////////////////////////////
    153 void t_graphWin::savePNG() {
     153void t_graphWin::savePNG(const QString& dirName) {
     154  if (dirName.isEmpty()) {
     155    return;
     156  }
    154157  QImage image(_canvas->size(), QImage::Format_RGB32);
    155158  QPainter painter(&image);
  • trunk/BNC/src/rinex/graphwin.h

    r4450 r4451  
    5656  ~t_graphWin();
    5757
    58   void savePNG();
     58  void savePNG(const QString& dirName);
    5959
    6060 signals:
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4450 r4451  
    133133    graphWin->show();
    134134
    135     //// beg test
    136     graphWin->savePNG();
    137     //// end test
     135    bncSettings settings;
     136    QString dirName = settings.value("reqcPlotDir").toString();
     137    if (!dirName.isEmpty()) {
     138      graphWin->savePNG(dirName);
     139    }
    138140  }
    139141}
Note: See TracChangeset for help on using the changeset viewer.