- Timestamp:
- Jun 24, 2012, 4:31:10 PM (13 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncapp.cpp
r4278 r4346 120 120 121 121 _bncPPPclient = 0; 122 123 _mainWindow = 0; 122 124 } 123 125 -
trunk/BNC/src/bncapp.h
r4278 r4346 62 62 const QString& pgmName() {return _pgmName;} 63 63 const QString& userName() {return _userName;} 64 QWidget* mainWindow() const {return _mainWindow;}; 65 void setMainWindow(QWidget* mainWindow){_mainWindow = mainWindow;} 64 66 protected: 65 67 virtual bool event(QEvent* ev); … … 134 136 bncComb* _bncComb; 135 137 e_mode _mode; 138 QWidget* _mainWindow; 136 139 public: 137 140 bncPPPclient* _bncPPPclient; -
trunk/BNC/src/bncmain.cpp
r4278 r4346 139 139 140 140 bncWindow* bncWin = new bncWindow(); 141 app.setMainWindow(bncWin); 141 142 bncWin->show(); 142 143 } -
trunk/BNC/src/rinex/reqcanalyze.cpp
r4345 r4346 87 87 QVector<t_polarPoint*>* dataMP2) { 88 88 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()); 92 93 plotMP1->addCurve(dataMP1); 93 94 94 t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), 0);95 t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), app->mainWindow()); 95 96 plotMP2->addCurve(dataMP2); 96 97 … … 101 102 t_graphWin* graphWin = new t_graphWin(0, plots); 102 103 103 graphWin-> show();104 graphWin->exec(); 104 105 } 105 106 }
Note:
See TracChangeset
for help on using the changeset viewer.