21 setWindowTitle(tr(
"%1 Properties from %2")
22 .arg(objp->pathName())
23 .arg(e->get_ExperimentName()));
25 setWindowTitle(tr(
"%1 Properties")
26 .arg(objp->pathName()));
28 setWindowTitle(
"Unknown Properties");
32 m_Model = QSharedPointer<QcepPropertiesModel>(
36 m_TableView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
37 m_TableView->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
40 m_TableView->setModel(m_Model.data());
43 if (objp && m_Model) {
44 connect(objp.data(), SIGNAL(dataObjectChanged()),
45 m_Model.data(), SLOT(onDataObjectChanged()));
48 setAttribute(Qt::WA_DeleteOnClose,
true);
54 printf(
"Deleting Properties Window\n");
69 return QMessageBox::question(
this, tr(
"Really Close?"),
70 tr(
"Do you really want to close the window %1 ?")
72 QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok;
QcepDataObjectPropertiesWindow(QcepExperimentWPtr expt, QcepDataObjectWPtr obj, QWidget *parent=0)
QWeakPointer< QcepExperiment > QcepExperimentWPtr
virtual ~QcepDataObjectPropertiesWindow()
void closeEvent(QCloseEvent *event)
QWeakPointer< QcepDataObject > QcepDataObjectWPtr
QSharedPointer< QcepDataObject > QcepDataObjectPtr
QSharedPointer< QcepExperiment > QcepExperimentPtr