Isis Developer Reference
|
#include <ImageTreeWidget.h>
Classes | |
class | ImagePosition |
Public Types | |
enum | TreeItemContainerType { ImageGroupType = 1 , ImageListNameType } |
Signals | |
void | queueSelectionChanged () |
void | queueReadDisplayProperties () |
Public Member Functions | |
ImageTreeWidget (Directory *directory=0, QWidget *parent=0) | |
ImageTreeWidget constructor. | |
virtual | ~ImageTreeWidget () |
QList< QAction * > | actions () |
QTreeWidgetItem * | addGroup (QString imageListName, QString groupName="", int index=-1) |
QTreeWidgetItem * | createGroup (QTreeWidgetItem *imageListItem, QString groupName="", int index=-1) |
QTreeWidgetItem * | createImageListNameItem (QString name) |
void | refit () |
void | disableSort () |
void | enqueueReadDisplayProperties (ImageTreeWidgetItem *) |
QList< QAction * > | getViewActions () |
bool | groupInList (QList< QTreeWidgetItem * >) |
void | updateViewActs () |
ImageTreeWidgetItem * | prepCube (ImageList *imageList, Image *image) |
ImageList | imagesInView () |
Protected Member Functions | |
void | dropEvent (QDropEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
This is why we needed to subclass the QTreeWidget class. | |
void | contextMenuEvent (QContextMenuEvent *event) |
ImageTreeWidget constructor.
ImageTreeWidget is derived from QTreeWidget
parent |
References Isis::ImageTreeWidgetItem::AspectRatioColumn, Isis::ImageTreeWidgetItem::BlankColumn, Isis::ImageTreeWidgetItem::EmissionAngleColumn, Isis::ImageTreeWidgetItem::FootprintColumn, Isis::ImageTreeWidgetItem::ImageColumn, Isis::ImageTreeWidgetItem::IncidenceAngleColumn, Isis::ImageTreeWidgetItem::LabelColumn, Isis::ImageTreeWidgetItem::LineResolutionColumn, Isis::ImageTreeWidgetItem::NameColumn, Isis::ImageTreeWidgetItem::NorthAzimuthColumn, Isis::ImageTreeWidgetItem::PhaseAngleColumn, queueReadDisplayProperties(), queueSelectionChanged(), Isis::ImageTreeWidgetItem::ResolutionColumn, Isis::ImageTreeWidgetItem::SampleResolutionColumn, Isis::toBool(), and Isis::ImageTreeWidgetItem::treeColumnToString().
|
virtual |
References actions().
Referenced by Isis::ImageFileListWidget::actions(), and ~ImageTreeWidget().
QTreeWidgetItem * Isis::ImageTreeWidget::addGroup | ( | QString | imageListName, |
QString | groupName = "", | ||
int | index = -1 ) |
References createGroup(), and disableSort().
Referenced by contextMenuEvent(), Isis::ImageFileListWidget::fromPvl(), and queueReadDisplayProperties().
|
protected |
References addGroup(), groupInList(), Isis::Directory::project(), and Isis::Directory::supportedActions().
QTreeWidgetItem * Isis::ImageTreeWidget::createGroup | ( | QTreeWidgetItem * | imageListItem, |
QString | groupName = "", | ||
int | index = -1 ) |
References ImageGroupType.
Referenced by addGroup(), and Isis::ImageFileListWidget::addImages().
QTreeWidgetItem * Isis::ImageTreeWidget::createImageListNameItem | ( | QString | name | ) |
References ImageListNameType.
Referenced by Isis::ImageFileListWidget::addImages().
void Isis::ImageTreeWidget::disableSort | ( | ) |
References Isis::ImageTreeWidgetItem::BlankColumn.
Referenced by addGroup(), and dropEvent().
|
protected |
References disableSort(), and groupInList().
void Isis::ImageTreeWidget::enqueueReadDisplayProperties | ( | ImageTreeWidgetItem * | item | ) |
References queueReadDisplayProperties().
bool Isis::ImageTreeWidget::groupInList | ( | QList< QTreeWidgetItem * > | items | ) |
Referenced by Isis::ImageFileListWidget::addImages(), contextMenuEvent(), and dropEvent().
ImageList Isis::ImageTreeWidget::imagesInView | ( | ) |
Referenced by Isis::ImageFileListWidget::addImages().
|
protected |
This is why we needed to subclass the QTreeWidget class.
We needed our own dropEvent for the dragging and dropping of the tree widget items. This is re-implemented to make right clicks on white space also unselect the current selection.
ImageTreeWidgetItem * Isis::ImageTreeWidget::prepCube | ( | ImageList * | imageList, |
Image * | image ) |
References Isis::Image::displayProperties().
Referenced by Isis::ImageFileListWidget::addImages().
|
signal |
References addGroup().
Referenced by enqueueReadDisplayProperties(), and ImageTreeWidget().
|
signal |
Referenced by ImageTreeWidget().
void Isis::ImageTreeWidget::refit | ( | ) |
References Isis::ImageTreeWidgetItem::BlankColumn, and Isis::ImageTreeWidgetItem::NameColumn.
Referenced by Isis::ImageFileListWidget::addImages().
void Isis::ImageTreeWidget::updateViewActs | ( | ) |