Isis Developer Reference
|
A colored, grouped cube list. More...
#include <ImageFileListWidget.h>
Public Slots | |
void | addImages (ImageList *images) |
This method adds the new images to the tree. | |
void | removeImages (ImageList *images) |
Removes an imagelist from the FileListWidget. | |
void | clear () |
void | filterFileList () |
Public Member Functions | |
ImageFileListWidget (Directory *directory=0, QWidget *parent=0) | |
Constructor. | |
virtual | ~ImageFileListWidget () |
Destructor. | |
QProgressBar * | getProgress () |
This method returns the progress bar. | |
void | fromPvl (PvlObject &pvl) |
This method loads the state of this class from the pvl. | |
PvlObject | toPvl () const |
This method writes the state of this class to a pvl. | |
void | save (QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const |
This method saves the FootprintColumns in the project and the settings associated with every column. | |
QList< QAction * > | actions () |
This method calls ImageTreeWidget::actions() which sets up a QAction that sets a default for the file list columns and returns a QList of QPointers that point to the QAction. | |
QList< QAction * > | getViewActions () |
This method calls ImageTreeWidget::getViewActions() which returns a list of FootprintColumns. | |
QList< QAction * > | getExportActions () |
This method creates a new QAction which is connected and when triggered will save the cube list. | |
Static Public Member Functions | |
static QWidget * | getLongHelp (QWidget *fileListContainer=NULL) |
This method creates a QWidget that displays a long help message explaining the tool. | |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) |
This method takes an event and gets all of the FootprintColumns, adds them to the menu, then it pops up the menu at the location of event. | |
A colored, grouped cube list.
Constructor.
This method sets up the QWidget to show the ImageTreeWidget that is created using directory.
directory | The directory where you want the ImageTreeWidget to be made |
parent | The QWidget parent |
References clear(), and filterFileList().
Referenced by getLongHelp().
|
virtual |
Destructor.
This method calls ImageTreeWidget::actions() which sets up a QAction that sets a default for the file list columns and returns a QList of QPointers that point to the QAction.
References Isis::ImageTreeWidget::actions().
Referenced by contextMenuEvent().
|
slot |
This method adds the new images to the tree.
images | ImageList containing all of the images that need to be added to the tree. |
References Isis::ImageTreeWidget::createGroup(), Isis::ImageTreeWidget::createImageListNameItem(), Isis::ImageTreeWidget::groupInList(), Isis::ImageTreeWidget::ImageGroupType, Isis::ImageTreeWidget::ImageListNameType, Isis::ImageTreeWidget::imagesInView(), Isis::ImageList::name(), Isis::ImageTreeWidget::prepCube(), and Isis::ImageTreeWidget::refit().
|
slot |
Referenced by ImageFileListWidget().
|
protected |
This method takes an event and gets all of the FootprintColumns, adds them to the menu, then it pops up the menu at the location of event.
event | A QContextMenuEvent that is used to find the position of the mouse. |
References actions(), and Isis::ImageTreeWidget::getViewActions().
|
slot |
Referenced by ImageFileListWidget().
void Isis::ImageFileListWidget::fromPvl | ( | PvlObject & | pvl | ) |
This method loads the state of this class from the pvl.
pvl | The pvl that we are reading the state from. |
IException::Io | "Unable to read image file's list widget settings from Pvl" |
References _FILEINFO_, Isis::ImageTreeWidget::addGroup(), Isis::ImageTreeWidgetItem::BlankColumn, Isis::IString::Convert(), Isis::ImageTreeWidgetItem::FootprintColumn, Isis::IException::Io, Isis::PvlObject::object(), Isis::toBool(), Isis::IString::ToQt(), Isis::ImageTreeWidgetItem::treeColumnToString(), and Isis::ImageTreeWidget::updateViewActs().
This method creates a new QAction which is connected and when triggered will save the cube list.
This method creates a QWidget that displays a long help message explaining the tool.
References ImageFileListWidget().
QProgressBar * Isis::ImageFileListWidget::getProgress | ( | ) |
This method returns the progress bar.
This method calls ImageTreeWidget::getViewActions() which returns a list of FootprintColumns.
References Isis::ImageTreeWidget::getViewActions().
|
slot |
Removes an imagelist from the FileListWidget.
This would normally be handled elsewhere but for IPCE it needs a method to hide images and update the tree.
ImageList | containing the images to remove from the tree |
void Isis::ImageFileListWidget::save | ( | QXmlStreamWriter & | stream, |
Project * | project, | ||
FileName | newProjectRoot ) const |
This method saves the FootprintColumns in the project and the settings associated with every column.
stream | The QXmlStreamWriter that saves the FootprintColumns. |
project | The current project being saved. |
newProjectRoot | This is not used. |
References Isis::ImageTreeWidgetItem::BlankColumn, Isis::ImageTreeWidgetItem::FootprintColumn, save(), and Isis::ImageTreeWidgetItem::treeColumnToString().
Referenced by Isis::Directory::save(), Isis::Footprint2DView::save(), and save().
PvlObject Isis::ImageFileListWidget::toPvl | ( | ) | const |
This method writes the state of this class to a pvl.
References Isis::ImageTreeWidgetItem::BlankColumn, Isis::IString::Convert(), Isis::ImageTreeWidgetItem::FootprintColumn, Isis::ImageTreeWidgetItem::NameColumn, Isis::IString::ToQt(), Isis::toString(), and Isis::ImageTreeWidgetItem::treeColumnToString().