Changeset 4346 in ntrip


Ignore:
Timestamp:
Jun 24, 2012, 4:31:10 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncapp.cpp

    r4278 r4346  
    120120
    121121  _bncPPPclient = 0;
     122
     123  _mainWindow = 0;
    122124}
    123125
  • trunk/BNC/src/bncapp.h

    r4278 r4346  
    6262    const QString& pgmName() {return _pgmName;}
    6363    const QString& userName() {return _userName;}
     64    QWidget* mainWindow() const {return _mainWindow;};
     65    void setMainWindow(QWidget* mainWindow){_mainWindow = mainWindow;}
    6466  protected:
    6567    virtual bool event(QEvent* ev);
     
    134136    bncComb*            _bncComb;
    135137    e_mode              _mode;
     138    QWidget*            _mainWindow;
    136139 public:
    137140    bncPPPclient*       _bncPPPclient;
  • trunk/BNC/src/bncmain.cpp

    r4278 r4346  
    139139
    140140    bncWindow* bncWin = new bncWindow();
     141    app.setMainWindow(bncWin);
    141142    bncWin->show();
    142143  }
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4345 r4346  
    8787                                     QVector<t_polarPoint*>* dataMP2) {
    8888
    89   if (((bncApp*) qApp)->mode() == bncApp::interactive) {
    90 
    91     t_polarPlot* plotMP1 = new t_polarPlot(QwtText("MP1"), 0);
     89  bncApp* app = dynamic_cast<bncApp*>(qApp);
     90  if (app->mode() == bncApp::interactive) {
     91
     92    t_polarPlot* plotMP1 = new t_polarPlot(QwtText("MP1"), app->mainWindow());
    9293    plotMP1->addCurve(dataMP1);
    9394
    94     t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), 0);
     95    t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), app->mainWindow());
    9596    plotMP2->addCurve(dataMP2);
    9697   
     
    101102    t_graphWin* graphWin = new t_graphWin(0, plots);
    102103
    103     graphWin->show();
     104    graphWin->exec();
    104105  }
    105106}
Note: See TracChangeset for help on using the changeset viewer.