Isis 3 Developer Reference
Isis::ImageFileListWidget Class Reference

A colored, grouped cube list. More...

#include <ImageFileListWidget.h>

Inheritance diagram for Isis::ImageFileListWidget:
Inheritance graph
Collaboration diagram for Isis::ImageFileListWidget:
Collaboration graph

Public Slots

void addImages (ImageList *images)
 This method adds the new images to the tree. More...
 
void removeImages (ImageList *images)
 Removes an imagelist from the FileListWidget. More...
 
void clear ()
 
void filterFileList ()
 

Public Member Functions

 ImageFileListWidget (Directory *directory=0, QWidget *parent=0)
 Constructor. More...
 
virtual ~ImageFileListWidget ()
 Destructor. More...
 
QProgressBargetProgress ()
 This method returns the progress bar. More...
 
void fromPvl (PvlObject &pvl)
 This method loads the state of this class from the pvl. More...
 
PvlObject toPvl () const
 This method writes the state of this class to a pvl. More...
 
void load (XmlStackedHandlerReader *xmlReader)
 This method pushes a new XmlHandler into the parser stack. More...
 
void save (QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const
 This method saves the FootprintColumns in the project and the settings associated with every column. More...
 
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. More...
 
QList< QAction * > getViewActions ()
 This method calls ImageTreeWidget::getViewActions() which returns a list of FootprintColumns. More...
 
QList< QAction * > getExportActions ()
 This method creates a new QAction which is connected and when triggered will save the cube list. More...
 

Static Public Member Functions

static QWidgetgetLongHelp (QWidget *fileListContainer=NULL)
 This method creates a QWidget that displays a long help message explaining the tool. More...
 

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. More...
 

Detailed Description

A colored, grouped cube list.

Author
2011-07-29 Steven Lambright

Constructor & Destructor Documentation

◆ ImageFileListWidget()

Isis::ImageFileListWidget::ImageFileListWidget ( Directory directory = 0,
QWidget parent = 0 
)

Constructor.

This method sets up the QWidget to show the ImageTreeWidget that is created using directory.

Parameters
directoryThe directory where you want the ImageTreeWidget to be made
parentThe QWidget parent

References clear(), and filterFileList().

Referenced by getLongHelp().

◆ ~ImageFileListWidget()

Isis::ImageFileListWidget::~ImageFileListWidget ( )
virtual

Destructor.

Member Function Documentation

◆ actions()

QList< QAction * > Isis::ImageFileListWidget::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.

Returns
QList<QAction *> The QList of QPointers that point to the QAction set up by ImageTreeWidget::actions().

References Isis::ImageTreeWidget::actions().

Referenced by contextMenuEvent().

◆ addImages

◆ clear

void Isis::ImageFileListWidget::clear ( )
slot

Referenced by ImageFileListWidget().

◆ contextMenuEvent()

void Isis::ImageFileListWidget::contextMenuEvent ( QContextMenuEvent *  event)
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.

Parameters
eventA QContextMenuEvent that is used to find the position of the mouse.

References actions(), and Isis::ImageTreeWidget::getViewActions().

◆ filterFileList

void Isis::ImageFileListWidget::filterFileList ( )
slot

◆ fromPvl()

void Isis::ImageFileListWidget::fromPvl ( PvlObject pvl)

◆ getExportActions()

QList< QAction * > Isis::ImageFileListWidget::getExportActions ( )

This method creates a new QAction which is connected and when triggered will save the cube list.

Returns
QList<QAction *> The QList of the new QAction.

◆ getLongHelp()

QWidget * Isis::ImageFileListWidget::getLongHelp ( QWidget fileListContainer = NULL)
static

This method creates a QWidget that displays a long help message explaining the tool.

Returns
QWidget Returns the message QWidget that was made.

References ImageFileListWidget().

◆ getProgress()

QProgressBar * Isis::ImageFileListWidget::getProgress ( )

This method returns the progress bar.

Returns
QProgressBar * Returns the ProgressBar

◆ getViewActions()

QList< QAction * > Isis::ImageFileListWidget::getViewActions ( )

This method calls ImageTreeWidget::getViewActions() which returns a list of FootprintColumns.

Returns
QList<QAction *> The QList of FootprintColumns.

References Isis::ImageTreeWidget::getViewActions().

◆ load()

void Isis::ImageFileListWidget::load ( XmlStackedHandlerReader xmlReader)

This method pushes a new XmlHandler into the parser stack.

Parameters
xmlReaderThis is the parser stack.

References Isis::XmlStackedHandlerReader::pushContentHandler().

◆ removeImages

void Isis::ImageFileListWidget::removeImages ( ImageList images)
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.

Parameters
ImageListcontaining the images to remove from the tree

References Isis::ImageTreeWidgetItem::image().

◆ save()

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.

Parameters
streamThe QXmlStreamWriter that saves the FootprintColumns.
projectThe current project being saved.
newProjectRootThis is not used.

References Isis::ImageTreeWidgetItem::BlankColumn, Isis::ImageTreeWidgetItem::FootprintColumn, and Isis::ImageTreeWidgetItem::treeColumnToString().

Referenced by Isis::Footprint2DView::save(), and Isis::Directory::save().

◆ toPvl()


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