Isis 3 Programmer 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. More... | |
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. More... | |
void | contextMenuEvent (QContextMenuEvent *event) |
Private Slots | |
QTreeWidgetItem * | addGroup () |
void | deleteSelectedGroups () |
void | imageDeleted (QObject *image) |
void | onItemChanged (QTreeWidgetItem *, int) |
void | onSelectionChanged () |
void | onQueuedReadDisplayProperties () |
void | onQueuedSelectionChanged () |
void | propertiesChanged (DisplayProperties *) |
void | renameSelectedGroup () |
void | requestCloseSelected () |
void | toggleColumnVisible () |
void | updateDragAndDropability () |
void | setDefaultFileListCols () |
Private Member Functions | |
bool | mosaicItemInList (QList< QTreeWidgetItem * >) |
ImageList | selectedDisplays () |
QTreeWidgetItem * | imageListTreeItem (QString imageListName) |
This will get the image list tree item for the given image list (by name). More... | |
ImageTreeWidgetItem * | treeItem (DisplayProperties *) |
ImageTreeWidgetItem * | treeItem (Image *) |
Private Attributes | |
Directory * | m_directory |
QList< QAction * > | m_viewActs |
QPointer< QAction > | m_setFileListColsAct |
QMap< DisplayProperties *, ImageTreeWidgetItem * > | m_displayPropsToTreeItemLookup |
bool | m_queuedSelectionChanged |
QList< ImageTreeWidgetItem * > | m_queuedReadDisplayPropertiesItems |
Selection changes are very slow (time complexity in our code is delta-selected, but there is a very high constant that scales to the tree size - maybe an N complexity? making a total time complexity of [delta selected]*[items in view] – as bad as N^2). https://bugreports.qt-project.org/browse/QTBUG-26143. If we want this tree to no longer be a performance problem, we're going to have to rewrite it completely.
Definition at line 42 of file ImageTreeWidget.h.
ImageTreeWidget constructor.
ImageTreeWidget is derived from QTreeWidget
parent |
Definition at line 32 of file ImageTreeWidget.cpp.
References Isis::toBool().
|
privateslot |
Definition at line 700 of file ImageTreeWidget.cpp.
References Isis::toInt().
|
private |
This will get the image list tree item for the given image list (by name).
This requires unique names for the image lists. If the image list name is an empty string, this will return the invisible root item (qmos). If the image list name isn't blank, but there is no such image list item in the tree, then this will create one, add it, and return it.
imageListName | The name of the image list to get the tree item for |
Definition at line 927 of file ImageTreeWidget.cpp.
|
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.
Definition at line 597 of file ImageTreeWidget.cpp.