43 setWindowTitle(tr(
"%1 Data from %2")
44 .arg(objp->pathName())
45 .arg(e->get_ExperimentName()));
47 setWindowTitle(tr(
"%1 Data")
48 .arg(objp->pathName()));
50 setWindowTitle(
"Unknown Data");
54 QSharedPointer<QcepImageDataBase> data = qSharedPointerDynamicCast<QcepImageDataBase>(objp);
57 m_Model = QSharedPointer<QcepSpreadsheetModel>(
64 m_Model = QSharedPointer<QcepSpreadsheetModel>(
71 m_Model = QSharedPointer<QcepSpreadsheetModel>(
78 m_Model = QSharedPointer<QcepSpreadsheetModel>(
84 m_Model = QSharedPointer<QcepSpreadsheetModel>(
90 m_Model = QSharedPointer<QcepSpreadsheetModel>(
100 m_TableView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
103 m_TableView->setModel(
m_Model.data());
107 connect(objp.data(), SIGNAL(dataObjectChanged()),
m_Model.data(), SLOT(onDataObjectChanged()));
110 setAttribute(Qt::WA_DeleteOnClose,
true);
116 printf(
"Deleting Spreadsheet Window\n");
131 return QMessageBox::question(
this, tr(
"Really Close?"),
132 tr(
"Do you really want to close the window %1 ?")
134 QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok;
QSharedPointer< QcepDataArray > QcepDataArrayPtr
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QSharedPointer< QcepDataColumnScan > QcepDataColumnScanPtr
QSharedPointer< QcepDataColumn > QcepDataColumnPtr
QSharedPointer< QcepIntegratedData > QcepIntegratedDataPtr
QWeakPointer< QcepExperiment > QcepExperimentWPtr
void closeEvent(QCloseEvent *event)
QcepDataObjectWPtr m_Object
QWeakPointer< QcepDataObject > QcepDataObjectWPtr
QcepDataObjectSpreadsheetWindow(QcepExperimentWPtr expt, QcepDataObjectWPtr obj, QWidget *parent=0)
QcepExperimentWPtr m_Experiment
QSharedPointer< QcepSpreadsheetModel > m_Model
QSharedPointer< QcepDataObject > QcepDataObjectPtr
virtual ~QcepDataObjectSpreadsheetWindow()
QSharedPointer< QcepExperiment > QcepExperimentPtr