qse  0.5.4
Public Slots | Signals | Public Member Functions | Protected Attributes | Private Slots | Private Member Functions | Private Attributes | List of all members
QseController Class Reference

#include <qsecontroller.h>

Inheritance diagram for QseController:
Inheritance graph

Public Slots

void message (const QString &message)
 
void setProgress (int level)
 
void openCompleted (void)
 
void runNormalizer (void)
 
void averageSelectedScans ()
 
void openDataFile ()
 
void appendDataFile ()
 
void openControlFile ()
 
void saveSplitDataFile ()
 
void saveNormalizedFile ()
 
void saveAveragedFile ()
 
void saveControlFile ()
 
void exitApplication ()
 
void readDataFile (const QString &name)
 
void appendDataFile (const QString &name)
 
void readControlFile (const QString &name)
 
void writeControlFile (const QString &name)
 

Signals

void currentScanChanged (int)
 
void normalizedScansChanged ()
 
void averagedScansChanged ()
 
int openFile (QString fileName)
 
void writeScans (const QString &fileName)
 

Public Member Functions

 QseController (QseProcessorMain *w, QObject *parent=0)
 
 ~QseController ()
 
void readSettings (QSettings *settings)
 
void writeSettings (QSettings *settings)
 

Protected Attributes

QProgressBar * m_Progress
 

Private Slots

void openQSEHomePage ()
 

Private Member Functions

void setupActions ()
 
QseScanscan (int n)
 
QseScancurrentScan ()
 

Private Attributes

QseDataFlowm_DataFlow
 
QseProcessorMainm_MainWindow
 
int m_CurrentScan
 
QseGraphControllerm_InputDataUI
 
QseDataDeglitcherUIm_DeglitcherUI
 
QseNormalizerUIm_NormalizerUI
 
QseEdgeAlignerUIm_EdgeAlignerUI
 
QseScanAveragerUIm_ScanAveragerUI
 
QseGraphControllerm_NormalizedController
 
QseGraphControllerm_AveragedController
 

Detailed Description

Definition at line 25 of file qsecontroller.h.

Constructor & Destructor Documentation

QseController::QseController ( QseProcessorMain w,
QObject *  parent = 0 
)

Definition at line 41 of file qsecontroller.cpp.

42  : QObject(parent),
43  m_DataFlow(0),
44  m_MainWindow(w),
45  m_CurrentScan(0),
46  m_InputDataUI(NULL),
47  m_DeglitcherUI(NULL),
48  m_NormalizerUI(NULL),
49  m_EdgeAlignerUI(NULL),
50  m_ScanAveragerUI(NULL),
53  m_Progress(NULL)
54 {
55  m_DataFlow = new QseDataFlow();
56  int tab = 0;
57 
59  m_MainWindow -> m_TabWidget -> insertTab(tab++, m_InputDataUI, "Input Data");
60 
61 // m_DeglitcherUI = new QseDataDeglitcherUI(m_DataFlow->m_Deglitcher, NULL);
62 // m_MainWindow -> m_TabWidget -> insertTab(tab++, m_DeglitcherUI, "Deglitched Data");
63 
65  m_MainWindow -> m_TabWidget -> insertTab(tab++, m_NormalizerUI, "Normalization");
66 
69  m_MainWindow -> m_TabWidget ->
70  insertTab(tab++, m_NormalizedController, "Normalized Data");
71 
72 // m_EdgeAlignerUI = new QseEdgeAlignerUI(m_DataFlow->m_EdgeAligner, NULL);
73 // m_MainWindow -> m_TabWidget -> insertTab(tab++, m_EdgeAlignerUI, "Aligned Data");
74 
76  m_MainWindow -> m_TabWidget -> insertTab(tab++, m_ScanAveragerUI, "Averaging");
77 
80  m_MainWindow -> m_TabWidget ->
81  insertTab(tab++, m_AveragedController, "Averaged Data");
82 
83  m_MainWindow -> m_TabWidget -> setCurrentIndex(0);
84 
85  m_NormalizedController -> addContextMenuAction(m_MainWindow->actionAverageSelectedScans);
86 
87  setupActions();
88 
89  connect(m_MainWindow -> actionRunNormalizer, SIGNAL(triggered()),
90  this, SLOT(runNormalizer(void)));
91 
92  connect(m_DataFlow->m_InputData, SIGNAL(message(const QString&)),
93  this, SLOT(message(const QString&)));
94 
95  connect(m_DataFlow->m_Normalizer, SIGNAL(message(const QString&)),
96  this, SLOT(message(const QString&)));
97 
98  connect(m_DataFlow->m_InputData, SIGNAL(madeProgress(int)), this, SLOT(setProgress(int)));
99 
100  m_NormalizedController->setTitle("Normalized Scans");
101 
102  m_AveragedController->setTitle("Averaged Data");
103 
104  m_Progress = new QProgressBar(NULL);
105  m_Progress -> setMinimumWidth(150);
106  m_Progress -> setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
107 
108  m_MainWindow -> statusBar() -> addPermanentWidget(m_Progress);
109 
110  QStringList args = QApplication::arguments();
111  int nargs = args.size();
112 
113  for (int i=1; i<nargs; i++) {
114  appendDataFile(args.at(i));
115  }
116 }
QseEdgeAlignerUI * m_EdgeAlignerUI
Definition: qsecontroller.h:86
QseNormalizer * m_Normalizer
Definition: qsedataflow.h:35
QseInputFile * m_InputData
Definition: qsedataflow.h:32
QseDataSet * m_NormalizedData
Definition: qsedataflow.h:36
void setProgress(int level)
QseNormalizerUI * m_NormalizerUI
Definition: qsecontroller.h:85
QseGraphController * m_InputDataUI
Definition: qsecontroller.h:83
QseScanAveragerUI * m_ScanAveragerUI
Definition: qsecontroller.h:87
void runNormalizer(void)
QseDataSet * m_AveragedData
Definition: qsedataflow.h:40
void setTitle(const QString &title)
QseGraphController * m_NormalizedController
Definition: qsecontroller.h:88
QProgressBar * m_Progress
Definition: qsecontroller.h:93
void message(const QString &message)
QseScanAverager * m_ScanAverager
Definition: qsedataflow.h:39
QseGraphController * m_AveragedController
Definition: qsecontroller.h:89
QseProcessorMain * m_MainWindow
Definition: qsecontroller.h:80
QseDataDeglitcherUI * m_DeglitcherUI
Definition: qsecontroller.h:84
QseDataFlow * m_DataFlow
Definition: qsecontroller.h:79
QseController::~QseController ( )

Definition at line 118 of file qsecontroller.cpp.

References m_AveragedController, and m_NormalizedController.

119 {
120  delete m_NormalizedController;
121  delete m_AveragedController;
122 }
QseGraphController * m_NormalizedController
Definition: qsecontroller.h:88
QseGraphController * m_AveragedController
Definition: qsecontroller.h:89

Member Function Documentation

void QseController::appendDataFile ( )
slot

Definition at line 231 of file qsecontroller.cpp.

References m_MainWindow.

Referenced by setupActions().

232 {
233  QString filename = QFileDialog::getOpenFileName(m_MainWindow, tr("Append Data File"), ".", "");
234 
235  if (filename != "") {
236  appendDataFile(filename);
237  }
238 }
QseProcessorMain * m_MainWindow
Definition: qsecontroller.h:80
void QseController::appendDataFile ( const QString &  name)
slot

Definition at line 240 of file qsecontroller.cpp.

References m_DataFlow, message(), and openCompleted().

241 {
242  m_DataFlow -> m_InputReader -> appendFile(name);
243 
244  openCompleted();
245 
246  message(tr("New Data File appended %1").arg(name));
247 }
void openCompleted(void)
void message(const QString &message)
QseDataFlow * m_DataFlow
Definition: qsecontroller.h:79
void QseController::averagedScansChanged ( )
signal
void QseController::averageSelectedScans ( )
slot

Definition at line 461 of file qsecontroller.cpp.

Referenced by setupActions().

462 {
463 // QTableWidget *t = m_MainWindow->normalizedScanTable;
464 
465 // QList<QTableWidgetSelectionRange> selections = t -> selectedRanges();
466 // QTableWidgetSelectionRange selection;
467 
468 // int nscans = 0;
469 // QseScan *result = m_DataFlow->m_AveragedDataSet -> appendScan();
470 
471 // foreach (selection, selections) {
472 // int r0 = selection.topRow();
473 // int r1 = selection.bottomRow();
474 
475 // for (int i = r0; i<=r1; i++) {
476 // QseScan *s = m_DataFlow->m_NormalizedDataSet->scan(i);
477 
478 // if (s) {
479 // if (m_DataFlow->m_Averager->addScans(result, s)) {
480 // nscans++;
481 // }
482 // }
483 // }
484 // }
485 
486 // if (nscans > 0) {
487 // m_DataFlow->m_Averager->divideScan(result, nscans);
488 
489 // emit averagedScansChanged();
490 // } else {
491 // delete result;
492 // }
493 }
QseScan * QseController::currentScan ( )
private

Definition at line 199 of file qsecontroller.cpp.

References m_CurrentScan, m_DataFlow, QseDataFlow::m_InputData, and QseDataSet::scan().

200 {
202 }
QseScan * scan(int n) const
Definition: qsedataset.cpp:70
QseInputFile * m_InputData
Definition: qsedataflow.h:32
QseDataFlow * m_DataFlow
Definition: qsecontroller.h:79
void QseController::currentScanChanged ( int  )
signal
void QseController::exitApplication ( )
slot

Definition at line 296 of file qsecontroller.cpp.

Referenced by setupActions().

297 {
298 }
void QseController::message ( const QString &  message)
slot

Definition at line 158 of file qsecontroller.cpp.

References m_MainWindow.

Referenced by appendDataFile(), and readDataFile().

159 {
160  m_MainWindow->statusBar()->showMessage(message, 5000);
161  m_MainWindow->outputMessageView->append(message);
162 }
void message(const QString &message)
QseProcessorMain * m_MainWindow
Definition: qsecontroller.h:80
void QseController::normalizedScansChanged ( )
signal

Referenced by runNormalizer().

void QseController::openCompleted ( void  )
slot

Definition at line 173 of file qsecontroller.cpp.

References QseDataFlow::m_AveragedData, m_DataFlow, QseDataFlow::m_InputData, m_MainWindow, and QseDataFlow::m_NormalizedData.

Referenced by appendDataFile(), and readDataFile().

174 {
175  m_MainWindow -> loadedFile -> setText(m_DataFlow->m_InputData -> filePath());
176 
177  QString fname = m_DataFlow->m_InputData -> fileName();
178  QStringList hdr = m_DataFlow->m_InputData -> header();
179 
180  m_DataFlow->m_NormalizedData -> setFileName(fname+"_norm");
181  m_DataFlow->m_NormalizedData -> setHeader(hdr);
182 
183  m_DataFlow->m_AveragedData -> setFileName(fname+"_avg");
184  m_DataFlow->m_AveragedData -> setHeader(hdr);
185 }
QseInputFile * m_InputData
Definition: qsedataflow.h:32
QseDataSet * m_NormalizedData
Definition: qsedataflow.h:36
QseDataSet * m_AveragedData
Definition: qsedataflow.h:40
QseProcessorMain * m_MainWindow
Definition: qsecontroller.h:80
QseDataFlow * m_DataFlow
Definition: qsecontroller.h:79
void QseController::openControlFile ( )
slot

Definition at line 249 of file qsecontroller.cpp.

References m_MainWindow, and readControlFile().

Referenced by setupActions().

250 {
251  QString filename = QFileDialog::getOpenFileName(m_MainWindow, tr("Open Control File"), ".", "");
252 
253  if (filename != "") {
254  readControlFile(filename);
255  }
256 }
void readControlFile(const QString &name)
QseProcessorMain * m_MainWindow
Definition: qsecontroller.h:80
void QseController::openDataFile ( )
slot

Definition at line 211 of file qsecontroller.cpp.

References m_MainWindow, and readDataFile().

Referenced by setupActions().

212 {
213  QString filename = QFileDialog::getOpenFileName(m_MainWindow, tr("Open Data File"), ".", "");
214 
215  if (filename != "") {
216  readDataFile(filename);
217  }
218 }
void readDataFile(const QString &name)
QseProcessorMain * m_MainWindow
Definition: qsecontroller.h:80
int QseController::openFile ( QString  fileName)
signal

Referenced by readDataFile().

void QseController::openQSEHomePage ( )
privateslot

Definition at line 495 of file qsecontroller.cpp.

Referenced by setupActions().

496 {
497  QDesktopServices::openUrl(QUrl("http://qse.sourceforge.net"));
498 }
void QseController::readControlFile ( const QString &  name)
slot

Definition at line 258 of file qsecontroller.cpp.

References readSettings().

Referenced by openControlFile().

259 {
260  QSettings settings(name, QSettings::IniFormat);
261 
262  readSettings(&settings);
263 }
void readSettings(QSettings *settings)
void QseController::readDataFile ( const QString &  name)
slot

Definition at line 220 of file qsecontroller.cpp.

References m_DataFlow, message(), openCompleted(), and openFile().

Referenced by openDataFile().

221 {
222 // setCurrentScan(0);
223 
224  m_DataFlow -> m_InputReader -> openFile(name);
225 
226  openCompleted();
227 
228  message(tr("New Data File loaded %1").arg(name));
229 }
void openCompleted(void)
int openFile(QString fileName)
void message(const QString &message)
QseDataFlow * m_DataFlow
Definition: qsecontroller.h:79
void QseController::readSettings ( QSettings *  settings)

Definition at line 300 of file qsecontroller.cpp.

Referenced by readControlFile().

301 {
302 // QString scanPattern = settings->value("scanPattern").toString();
303 // QString energyPattern = settings->value("energyPattern").toString();
304 // QString detectorPattern = settings->value("detectorPattern").toString();
305 // QString normalizationPattern = settings->value("normalizationPattern").toString();
306 // QString secondsPattern = settings->value("secondsPattern").toString();
307 // QString minScanRowCount = settings->value("minScanRowCount").toString();
308 // QString maxScanRowCount = settings->value("maxScanRowCount").toString();
309 
310 // int inputEnergyUnits = settings->value("inputEnergyUnits").toInt();
311 // int outputEnergyUnits = settings->value("outputEnergyUnits").toInt();
312 
313 // bool scanRegexp = settings->value("scanRegexp").toBool();
314 // bool energyRegexp = settings->value("energyRegexp").toBool();
315 // bool detectorRegexp = settings->value("detectorRegexp").toBool();
316 // bool normalizationRegexp = settings->value("normalizationRegexp").toBool();
317 // bool secondsRegexp = settings->value("secondsRegexp").toBool();
318 
319 // m_DataFlow->m_AveragerRole->setScanPattern(scanPattern);
320 // m_DataFlow->m_AveragerRole->setEnergyPattern(energyPattern);
321 // m_DataFlow->m_AveragerRole->setDetectorPattern(detectorPattern);
322 // m_DataFlow->m_AveragerRole->setNormalizationPattern(normalizationPattern);
323 // m_DataFlow->m_AveragerRole->setSecondsPattern(secondsPattern);
324 // m_DataFlow->m_AveragerRole->setMinScanRowCount(minScanRowCount);
325 // m_DataFlow->m_AveragerRole->setMaxScanRowCount(maxScanRowCount);
326 
327 // m_DataFlow->m_AveragerRole->setInputEnergyUnits(inputEnergyUnits);
328 // m_DataFlow->m_AveragerRole->setOutputEnergyUnits(outputEnergyUnits);
329 
330 // m_DataFlow->m_AveragerRole->setScanRegexp(scanRegexp);
331 // m_DataFlow->m_AveragerRole->setEnergyRegexp(energyRegexp);
332 // m_DataFlow->m_AveragerRole->setDetectorRegexp(detectorRegexp);
333 // m_DataFlow->m_AveragerRole->setNormalizationRegexp(normalizationRegexp);
334 // m_DataFlow->m_AveragerRole->setSecondsRegexp(secondsRegexp);
335 
336 // if (m_DataFlow->m_InputData) {
337 // if (m_DataFlow->m_InputData->filePath() == settings->value("inputfile").toString()) {
338 // settings->beginReadArray("overrides");
339 // int ns = m_DataFlow->m_InputData -> scanCount();
340 
341 // m_DataFlow->m_InputData -> setDefaultRoles();
342 
343 // for (int i=0; i<ns; i++) {
344 // QseScan *s = m_DataFlow->m_InputData->scan(i);
345 
346 // if (s) {
347 // settings->setArrayIndex(i);
348 
349 // if (settings->contains("scanrole")) {
350 // QseScan::QseScanRole r = (QseScan::QseScanRole) settings->value("scanrole").toInt();
351 // int nc = s -> columnCount();
352 
353 // s -> setScanRole(r);
354 
355 // settings->beginReadArray("roles");
356 
357 // for (int j=0; j<nc; j++) {
358 // QseColumn *c = s->column(j);
359 
360 // settings->setArrayIndex(j);
361 
362 // if (settings->contains("role")) {
363 // QseColumn::QseColumnRole r = (QseColumn::QseColumnRole) settings->value("role").toInt();
364 
365 // c -> setColumnRole(r);
366 // }
367 // }
368 
369 // settings -> endArray();
370 // }
371 // }
372 // }
373 
374 // settings -> endArray();
375 // } else {
376 // printf("overridden file name does not match\n");
377 // }
378 // }
379 
380 // // revertPatternDisplay();
381 
382 // emit defaultRolesChanged();
383 }
void QseController::runNormalizer ( void  )
slot

Definition at line 204 of file qsecontroller.cpp.

References QseNormalizer::exec(), m_DataFlow, QseDataFlow::m_Normalizer, and normalizedScansChanged().

205 {
207 
208  emit normalizedScansChanged();
209 }
void normalizedScansChanged()
QseNormalizer * m_Normalizer
Definition: qsedataflow.h:35
QseDataFlow * m_DataFlow
Definition: qsecontroller.h:79
void QseController::saveAveragedFile ( )
slot

Definition at line 275 of file qsecontroller.cpp.

References m_AveragedController.

Referenced by setupActions().

276 {
277  m_AveragedController -> saveSelectedScans();
278 }
QseGraphController * m_AveragedController
Definition: qsecontroller.h:89
void QseController::saveControlFile ( )
slot

Definition at line 280 of file qsecontroller.cpp.

References m_MainWindow, and writeControlFile().

Referenced by setupActions().

281 {
282  QString filename = QFileDialog::getSaveFileName(m_MainWindow, tr("Save Control File"), ".", "");
283 
284  if (filename != "") {
285  writeControlFile(filename);
286  }
287 }
void writeControlFile(const QString &name)
QseProcessorMain * m_MainWindow
Definition: qsecontroller.h:80
void QseController::saveNormalizedFile ( )
slot

Definition at line 270 of file qsecontroller.cpp.

References m_NormalizedController.

Referenced by setupActions().

271 {
272  m_NormalizedController -> saveSelectedScans();
273 }
QseGraphController * m_NormalizedController
Definition: qsecontroller.h:88
void QseController::saveSplitDataFile ( )
slot

Definition at line 265 of file qsecontroller.cpp.

Referenced by setupActions().

266 {
267 // m_MainController -> saveSelectedScans();
268 }
QseScan * QseController::scan ( int  n)
private

Definition at line 191 of file qsecontroller.cpp.

References m_DataFlow, QseDataFlow::m_InputData, and QseDataSet::scan().

192 {
193  return m_DataFlow->m_InputData->scan(n);
194 }
QseScan * scan(int n) const
Definition: qsedataset.cpp:70
QseInputFile * m_InputData
Definition: qsedataflow.h:32
QseDataFlow * m_DataFlow
Definition: qsecontroller.h:79
void QseController::setProgress ( int  level)
slot

Definition at line 164 of file qsecontroller.cpp.

References m_Progress.

165 {
166  if (level > 100) {
167  m_Progress -> reset();
168  } else {
169  m_Progress -> setValue(level);
170  }
171 }
QProgressBar * m_Progress
Definition: qsecontroller.h:93
void QseController::setupActions ( )
private

Definition at line 124 of file qsecontroller.cpp.

References appendDataFile(), averageSelectedScans(), exitApplication(), m_AveragedController, m_MainWindow, m_NormalizedController, openControlFile(), openDataFile(), openQSEHomePage(), saveAveragedFile(), saveControlFile(), saveNormalizedFile(), and saveSplitDataFile().

125 {
126  connect(m_MainWindow->actionOpenDataFile, SIGNAL(triggered()),
127  this, SLOT(openDataFile()));
128  connect(m_MainWindow->actionAppendDataFile, SIGNAL(triggered()),
129  this, SLOT(appendDataFile()));
130  connect(m_MainWindow->actionOpenControlFile, SIGNAL(triggered()),
131  this, SLOT(openControlFile()));
132  connect(m_MainWindow->actionSaveSplitDataFiles, SIGNAL(triggered()),
133  this, SLOT(saveSplitDataFile()));
134  connect(m_MainWindow->actionSaveNormalizedFiles, SIGNAL(triggered()),
135  this, SLOT(saveNormalizedFile()));
136  connect(m_MainWindow->actionSaveAveragedFiles, SIGNAL(triggered()),
137  this, SLOT(saveAveragedFile()));
138  connect(m_MainWindow->actionSaveControlFile, SIGNAL(triggered()),
139  this, SLOT(saveControlFile()));
140  connect(m_MainWindow->actionExit, SIGNAL(triggered()),
141  this, SLOT(exitApplication()));
142 
143  connect(m_MainWindow->actionPrintNormalizedGraph, SIGNAL(triggered()),
144  m_NormalizedController, SLOT(printGraph()));
145  connect(m_MainWindow->actionPrintAveragedGraph, SIGNAL(triggered()),
146  m_AveragedController, SLOT(printGraph()));
147 
148  connect(m_MainWindow->actionQSEHomePage, SIGNAL(triggered()),
149  this, SLOT(openQSEHomePage()));
150 
151  connect(m_MainWindow->actionExit, SIGNAL(triggered()),
152  qApp, SLOT(quit()));
153 
154  connect(m_MainWindow->actionAverageSelectedScans, SIGNAL(triggered()),
155  this, SLOT(averageSelectedScans()));
156 }
void saveSplitDataFile()
void saveNormalizedFile()
void saveControlFile()
void averageSelectedScans()
void openControlFile()
void openQSEHomePage()
QseGraphController * m_NormalizedController
Definition: qsecontroller.h:88
QseGraphController * m_AveragedController
Definition: qsecontroller.h:89
QseProcessorMain * m_MainWindow
Definition: qsecontroller.h:80
void exitApplication()
void saveAveragedFile()
void QseController::writeControlFile ( const QString &  name)
slot

Definition at line 289 of file qsecontroller.cpp.

References writeSettings().

Referenced by saveControlFile().

290 {
291  QSettings settings(name, QSettings::IniFormat);
292 
293  writeSettings(&settings);
294 }
void writeSettings(QSettings *settings)
void QseController::writeScans ( const QString &  fileName)
signal
void QseController::writeSettings ( QSettings *  settings)

Definition at line 385 of file qsecontroller.cpp.

Referenced by writeControlFile().

386 {
387 // settings->setValue("scanPattern", m_DataFlow->m_AveragerRole->scanPattern());
388 // settings->setValue("energyPattern", m_DataFlow->m_AveragerRole->energyPattern());
389 // settings->setValue("detectorPattern", m_DataFlow->m_AveragerRole->detectorPattern());
390 // settings->setValue("normalizationPattern", m_DataFlow->m_AveragerRole->normalizationPattern());
391 // settings->setValue("secondsPattern", m_DataFlow->m_AveragerRole->secondsPattern());
392 // settings->setValue("minScanRowCount", m_DataFlow->m_AveragerRole->minScanRowCount());
393 // settings->setValue("maxScanRowCount", m_DataFlow->m_AveragerRole->maxScanRowCount());
394 // settings->setValue("inputEnergyUnits", m_DataFlow->m_AveragerRole->inputEnergyUnits());
395 // settings->setValue("outputEnergyUnits", m_DataFlow->m_AveragerRole->outputEnergyUnits());
396 
397 // settings->setValue("scanRegexp", m_DataFlow->m_AveragerRole->scanRegexp());
398 // settings->setValue("energyRegexp", m_DataFlow->m_AveragerRole->energyRegexp());
399 // settings->setValue("detectorRegexp", m_DataFlow->m_AveragerRole->detectorRegexp());
400 // settings->setValue("normalizationRegexp", m_DataFlow->m_AveragerRole->normalizationRegexp());
401 // settings->setValue("secondsRegexp", m_DataFlow->m_AveragerRole->secondsRegexp());
402 
403 // if (m_DataFlow->m_InputData) {
404 // settings->setValue("inputfile", m_DataFlow->m_InputData->filePath());
405 // int ns = m_DataFlow->m_InputData -> scanCount();
406 // settings->setValue("inputscancount", ns);
407 
408 // if (ns > 0) {
409 // settings->beginWriteArray("overrides");
410 
411 // for (int i=0; i<ns; i++) {
412 // settings -> setArrayIndex(i);
413 
414 // QseScan *s = m_DataFlow->m_InputData -> scan(i);
415 
416 // if (s) {
417 // int nc = s->columnCount();
418 // int ovr = false;
419 
420 // for (int j=0; j<nc; j++) {
421 // QseColumn *c = s->column(j);
422 // if (c) {
423 // QseColumn::QseColumnRole r = c->columnRole();
424 
425 // if (r != QseColumn::UnspecifiedRole) {
426 // ovr = true;
427 // break;
428 // }
429 // }
430 // }
431 
432 // if (ovr) {
433 // QseScan::QseScanRole r = s->scanRole();
434 // settings->setValue("scanrole", r);
435 
436 // settings->beginWriteArray("roles");
437 
438 // for (int j=0; j<nc; j++) {
439 // QseColumn *c = s->column(j);
440 // if (c) {
441 // QseColumn::QseColumnRole r = c->columnRole();
442 
443 // if (r != QseColumn::UnspecifiedRole) {
444 // settings->setArrayIndex(j);
445 // settings->setValue("name", c->name());
446 // settings->setValue("role", r);
447 // }
448 // }
449 // }
450 
451 // settings->endArray();
452 // }
453 // }
454 // }
455 
456 // settings->endArray();
457 // }
458 // }
459 }

Member Data Documentation

QseGraphController* QseController::m_AveragedController
private

Definition at line 89 of file qsecontroller.h.

Referenced by saveAveragedFile(), setupActions(), and ~QseController().

int QseController::m_CurrentScan
private

Definition at line 81 of file qsecontroller.h.

Referenced by currentScan().

QseDataFlow* QseController::m_DataFlow
private
QseDataDeglitcherUI* QseController::m_DeglitcherUI
private

Definition at line 84 of file qsecontroller.h.

QseEdgeAlignerUI* QseController::m_EdgeAlignerUI
private

Definition at line 86 of file qsecontroller.h.

QseGraphController* QseController::m_InputDataUI
private

Definition at line 83 of file qsecontroller.h.

QseProcessorMain* QseController::m_MainWindow
private
QseGraphController* QseController::m_NormalizedController
private

Definition at line 88 of file qsecontroller.h.

Referenced by saveNormalizedFile(), setupActions(), and ~QseController().

QseNormalizerUI* QseController::m_NormalizerUI
private

Definition at line 85 of file qsecontroller.h.

QProgressBar* QseController::m_Progress
protected

Definition at line 93 of file qsecontroller.h.

Referenced by setProgress().

QseScanAveragerUI* QseController::m_ScanAveragerUI
private

Definition at line 87 of file qsecontroller.h.


The documentation for this class was generated from the following files: