Isis Developer Reference
Isis::ImageTreeWidget Class Reference

#include <ImageTreeWidget.h>

Inheritance diagram for Isis::ImageTreeWidget:
Inheritance graph
Collaboration diagram for Isis::ImageTreeWidget:
Collaboration graph

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 ()
 
QTreeWidgetItemaddGroup (QString imageListName, QString groupName="", int index=-1)
 
QTreeWidgetItemcreateGroup (QTreeWidgetItem *imageListItem, QString groupName="", int index=-1)
 
QTreeWidgetItemcreateImageListNameItem (QString name)
 
void refit ()
 
void disableSort ()
 
void enqueueReadDisplayProperties (ImageTreeWidgetItem *)
 
QList< QAction * > getViewActions ()
 
bool groupInList (QList< QTreeWidgetItem * >)
 
void updateViewActs ()
 
ImageTreeWidgetItemprepCube (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)
 

Detailed Description

Author
????-??-?? Unknown

Member Enumeration Documentation

◆ TreeItemContainerType

Enumerator
ImageGroupType 
ImageListNameType 

Constructor & Destructor Documentation

◆ ImageTreeWidget()

◆ ~ImageTreeWidget()

Isis::ImageTreeWidget::~ImageTreeWidget ( )
virtual

References actions().

Member Function Documentation

◆ actions()

QList< QAction * > Isis::ImageTreeWidget::actions ( )

◆ addGroup()

QTreeWidgetItem * Isis::ImageTreeWidget::addGroup ( QString imageListName,
QString groupName = "",
int index = -1 )

◆ contextMenuEvent()

void Isis::ImageTreeWidget::contextMenuEvent ( QContextMenuEvent * event)
protected

◆ createGroup()

QTreeWidgetItem * Isis::ImageTreeWidget::createGroup ( QTreeWidgetItem * imageListItem,
QString groupName = "",
int index = -1 )

◆ createImageListNameItem()

QTreeWidgetItem * Isis::ImageTreeWidget::createImageListNameItem ( QString name)

◆ disableSort()

void Isis::ImageTreeWidget::disableSort ( )

◆ dropEvent()

void Isis::ImageTreeWidget::dropEvent ( QDropEvent * event)
protected

References disableSort(), and groupInList().

◆ enqueueReadDisplayProperties()

void Isis::ImageTreeWidget::enqueueReadDisplayProperties ( ImageTreeWidgetItem * item)

◆ getViewActions()

◆ groupInList()

bool Isis::ImageTreeWidget::groupInList ( QList< QTreeWidgetItem * > items)

◆ imagesInView()

ImageList Isis::ImageTreeWidget::imagesInView ( )

◆ mousePressEvent()

void Isis::ImageTreeWidget::mousePressEvent ( QMouseEvent * event)
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.

◆ prepCube()

ImageTreeWidgetItem * Isis::ImageTreeWidget::prepCube ( ImageList * imageList,
Image * image )

◆ queueReadDisplayProperties

void Isis::ImageTreeWidget::queueReadDisplayProperties ( )
signal

◆ queueSelectionChanged

void Isis::ImageTreeWidget::queueSelectionChanged ( )
signal

Referenced by ImageTreeWidget().

◆ refit()

◆ updateViewActs()


The documentation for this class was generated from the following files: