Loading isis/src/qisis/objs/ProjectTreeWidget/BundleSolutionInfoTreeWidgetItem.cppdeleted 100755 → 0 +0 −43 Original line number Diff line number Diff line #include "BundleSolutionInfoTreeWidgetItem.h" #include <QDebug> #include "BundleSolutionInfo.h" //#include "BundleSolutionInfoDisplayProperties.h" namespace Isis { /** * BundleSolutionInfoTreeWidgetItem constructor. * BundleSolutionInfoTreeWidgetItem is derived from QTreeWidgetItem * * * @param parent */ BundleSolutionInfoTreeWidgetItem::BundleSolutionInfoTreeWidgetItem(BundleSolutionInfo *bundleSolutionInfo, QTreeWidget *parent) : QTreeWidgetItem(parent, UserType) { m_bundleSolutionInfo = bundleSolutionInfo; // setText(0, m_control->displayProperties()->displayName()); setText(0, m_bundleSolutionInfo->runTime()); setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable); setIcon(0, QIcon(":results")); connect(m_bundleSolutionInfo, SIGNAL(destroyed(QObject *)), this, SLOT(deleteLater())); } BundleSolutionInfoTreeWidgetItem::~BundleSolutionInfoTreeWidgetItem() { m_bundleSolutionInfo = NULL; } BundleSolutionInfo *BundleSolutionInfoTreeWidgetItem::bundleSolutionInfo() { return m_bundleSolutionInfo; } void BundleSolutionInfoTreeWidgetItem::selectionChanged() { // m_control->displayProperties()->setSelected(isSelected()); } } isis/src/qisis/objs/ProjectTreeWidget/BundleSolutionInfoTreeWidgetItem.hdeleted 100755 → 0 +0 −38 Original line number Diff line number Diff line #ifndef BundleSolutionInfoTreeWidgetItem_H #define BundleSolutionInfoTreeWidgetItem_H #include <QObject> #include <QTreeWidgetItem> namespace Isis { class BundleSolutionInfo; /** * @brief A control in the project tree widget * * This class visualizes a BundleSolutionInfo * from the project in the project tree widget. * * @author 2014-07-22 Ken Edmundson * * @internal * @history 2015-02-20 Jeannie Backer - Name changed from BundleResults to * BundleSolutionInfo. */ class BundleSolutionInfoTreeWidgetItem : public QObject, public QTreeWidgetItem { Q_OBJECT public: BundleSolutionInfoTreeWidgetItem(BundleSolutionInfo *bundleSolutionInfo, QTreeWidget *parent = 0); virtual ~BundleSolutionInfoTreeWidgetItem(); BundleSolutionInfo *bundleSolutionInfo(); void selectionChanged(); private: BundleSolutionInfo *m_bundleSolutionInfo; }; } #endif Loading
isis/src/qisis/objs/ProjectTreeWidget/BundleSolutionInfoTreeWidgetItem.cppdeleted 100755 → 0 +0 −43 Original line number Diff line number Diff line #include "BundleSolutionInfoTreeWidgetItem.h" #include <QDebug> #include "BundleSolutionInfo.h" //#include "BundleSolutionInfoDisplayProperties.h" namespace Isis { /** * BundleSolutionInfoTreeWidgetItem constructor. * BundleSolutionInfoTreeWidgetItem is derived from QTreeWidgetItem * * * @param parent */ BundleSolutionInfoTreeWidgetItem::BundleSolutionInfoTreeWidgetItem(BundleSolutionInfo *bundleSolutionInfo, QTreeWidget *parent) : QTreeWidgetItem(parent, UserType) { m_bundleSolutionInfo = bundleSolutionInfo; // setText(0, m_control->displayProperties()->displayName()); setText(0, m_bundleSolutionInfo->runTime()); setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable); setIcon(0, QIcon(":results")); connect(m_bundleSolutionInfo, SIGNAL(destroyed(QObject *)), this, SLOT(deleteLater())); } BundleSolutionInfoTreeWidgetItem::~BundleSolutionInfoTreeWidgetItem() { m_bundleSolutionInfo = NULL; } BundleSolutionInfo *BundleSolutionInfoTreeWidgetItem::bundleSolutionInfo() { return m_bundleSolutionInfo; } void BundleSolutionInfoTreeWidgetItem::selectionChanged() { // m_control->displayProperties()->setSelected(isSelected()); } }
isis/src/qisis/objs/ProjectTreeWidget/BundleSolutionInfoTreeWidgetItem.hdeleted 100755 → 0 +0 −38 Original line number Diff line number Diff line #ifndef BundleSolutionInfoTreeWidgetItem_H #define BundleSolutionInfoTreeWidgetItem_H #include <QObject> #include <QTreeWidgetItem> namespace Isis { class BundleSolutionInfo; /** * @brief A control in the project tree widget * * This class visualizes a BundleSolutionInfo * from the project in the project tree widget. * * @author 2014-07-22 Ken Edmundson * * @internal * @history 2015-02-20 Jeannie Backer - Name changed from BundleResults to * BundleSolutionInfo. */ class BundleSolutionInfoTreeWidgetItem : public QObject, public QTreeWidgetItem { Q_OBJECT public: BundleSolutionInfoTreeWidgetItem(BundleSolutionInfo *bundleSolutionInfo, QTreeWidget *parent = 0); virtual ~BundleSolutionInfoTreeWidgetItem(); BundleSolutionInfo *bundleSolutionInfo(); void selectionChanged(); private: BundleSolutionInfo *m_bundleSolutionInfo; }; } #endif