Commit b2515fad authored by Jeannie Backer's avatar Jeannie Backer
Browse files

Readding BundleSolutionInfoTreeWidgetItem files with correct permissions.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/ipce@6134 41f8697f-d340-4b68-9986-7bafba869bb8
parent 6b326e1d
Loading
Loading
Loading
Loading
+43 −0
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());
  }
}
+38 −0
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