Commit da7500d6 authored by Tyler Wilson's avatar Tyler Wilson
Browse files

PROG: Deleted ProjectTreeWidget directory + associated helper classes because...

PROG:  Deleted ProjectTreeWidget directory + associated helper classes because they are deprecated.  References #3986, #4027.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/ipce@6813 41f8697f-d340-4b68-9986-7bafba869bb8
parent 07c3dd9c
Loading
Loading
Loading
Loading
+0 −43
Original line number Diff line number Diff line
#include "BundleResultsTreeWidgetItem.h"

#include <QDebug>

#include "BundleResults.h"
//#include "BundleResultsDisplayProperties.h"

namespace Isis {

  /**
   * BundleResultsTreeWidgetItem constructor.
   * BundleResultsTreeWidgetItem is derived from QTreeWidgetItem
   *
   *
   * @param parent
   */
  BundleResultsTreeWidgetItem::BundleResultsTreeWidgetItem(BundleResults *bundleResults,
      QTreeWidget *parent) : QTreeWidgetItem(parent, UserType) {
    m_bundleResults = bundleResults;

//  setText(0, m_control->displayProperties()->displayName());
    setText(0, "Results");
    setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
    setIcon(0, QIcon(":results"));

    connect(m_bundleResults, SIGNAL(destroyed(QObject *)), this, SLOT(deleteLater()));
  }


  BundleResultsTreeWidgetItem::~BundleResultsTreeWidgetItem() {
    m_bundleResults = NULL;
  }


  BundleResults *BundleResultsTreeWidgetItem::bundleResults() {
    return m_bundleResults;
  }


  void BundleResultsTreeWidgetItem::selectionChanged() {
//    m_control->displayProperties()->setSelected(isSelected());
  }
}
+0 −36
Original line number Diff line number Diff line
#ifndef BundleResultsTreeWidgetItem_H
#define BundleResultsTreeWidgetItem_H

#include <QObject>
#include <QTreeWidgetItem>


namespace Isis {
  class BundleResults;

  /**
   * @brief A control in the project tree widget
   *
   * This class visualizes a BundleResults * from the project in the project tree widget.
   *
   * @author 2014-07-23 Ken Edmundson
   *
   * @internal
   *   @history 2015-02-20 Jeannie Backer - Name changed from BundleStatistics to BundleResults.
   */
  class BundleResultsTreeWidgetItem : public QObject, public QTreeWidgetItem {
    Q_OBJECT
    public:
      BundleResultsTreeWidgetItem(BundleResults *bundleResults, QTreeWidget *parent = 0);
      virtual ~BundleResultsTreeWidgetItem();

      BundleResults *bundleResults();
      void selectionChanged();

    private:
      BundleResults *m_bundleResults;
  };
}

#endif
+0 −40
Original line number Diff line number Diff line
#include "BundleSettingsTreeWidgetItem.h"

#include <QDebug>

//#include "BundleResultsDisplayProperties.h"

namespace Isis {

  /**
   * BundleSettingsTreeWidgetItem constructor.
   * BundleSettingsTreeWidgetItem is derived from QTreeWidgetItem
   *
   *
   * @param parent
   */
  BundleSettingsTreeWidgetItem::BundleSettingsTreeWidgetItem(BundleSettingsQsp bundleSettings,
      QTreeWidget *parent) : QTreeWidgetItem(parent, UserType) {
    m_bundleSettings = bundleSettings;

    setText(0, "Settings");
    setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
    setIcon(0, QIcon(":settings"));

//    connect(m_bundleSettings, SIGNAL(destroyed(QObject *)), this, SLOT(deleteLater()));
  }


  BundleSettingsTreeWidgetItem::~BundleSettingsTreeWidgetItem() {
  }


  BundleSettingsQsp BundleSettingsTreeWidgetItem::bundleSettings() {
    return m_bundleSettings;
  }


  void BundleSettingsTreeWidgetItem::selectionChanged() {
//    m_control->displayProperties()->setSelected(isSelected());
  }
}
+0 −36
Original line number Diff line number Diff line
#ifndef BundleSettingsTreeWidgetItem_H
#define BundleSettingsTreeWidgetItem_H

#include <QObject>
#include <QTreeWidgetItem>

#include "BundleSettings.h"


namespace Isis {

  /**
   * @brief A control in the project tree widget
   *
   * This class visualizes a BundleSettings * from the project in the project tree widget.
   *
   * @author 2014-07-23 Ken Edmundson
   *
   * @internal
   */
  class BundleSettingsTreeWidgetItem : public QObject, public QTreeWidgetItem {
    Q_OBJECT
    public:
      BundleSettingsTreeWidgetItem(BundleSettingsQsp bundleSettings, QTreeWidget *parent = 0);
      virtual ~BundleSettingsTreeWidgetItem();

      BundleSettingsQsp bundleSettings();
      void selectionChanged();

    private:
      BundleSettingsQsp m_bundleSettings;
  };
}

#endif
+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());
  }
}
Loading