![]()  | 
  
    Isis 3 Programmer Reference
    
   | 
 
A colored, grouped cube list. More...
#include <ImageFileListWidget.h>


Classes | |
| class | XmlHandler | 
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... | |
| QProgressBar * | getProgress () | 
| 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 QWidget * | getLongHelp (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... | |
Private Slots | |
| void | saveList () | 
| This method saves the list to the choosen output file.  More... | |
Private Member Functions | |
| void | save (QXmlStreamWriter &stream, QTreeWidgetItem *itemToWrite) const | 
| This method saves the QTreeWidgetItem and the settings associated with the QTreeWidgetItem to the stream.  More... | |
| ImageTreeWidget::ImagePosition | find (const Image *image) const | 
| This method takes an image and finds it's position.  More... | |
| void | restoreExpandedStates (QVariant expandedStates, QTreeWidgetItem *item) | 
| This method returns the QTreeWidgetItem to it's expanded state.  More... | |
| QVariant | saveExpandedStates (QTreeWidgetItem *item) | 
| This method saves the the expanded state of item.  More... | |
Private Attributes | |
| QPointer< ProgressBar > | m_progress | 
| The ProgressBar of the ImageFileListWidget Serialized (file) version of this object.  More... | |
| QScopedPointer< PvlObject > | m_serialized | 
| QToolBar * | m_searchToolbar | 
| Tool bar for the FileList widget to search.  More... | |
| QLineEdit * | m_searchLineEdit | 
| QLabel * | m_fileCount | 
| ImageTreeWidget * | m_tree | 
| Tree item associated with this mosaic item.  More... | |
| Directory * | m_directory | 
| The directory of the project.  More... | |
A colored, grouped cube list.
Definition at line 64 of file ImageFileListWidget.h.
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 | 
Definition at line 46 of file ImageFileListWidget.cpp.
References m_directory, m_progress, m_searchToolbar, and m_tree.
Referenced by getLongHelp().
      
  | 
  virtual | 
Destructor.
Definition at line 98 of file ImageFileListWidget.cpp.
References m_directory, and m_progress.
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.
Definition at line 230 of file ImageFileListWidget.cpp.
References m_tree.
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. | 
Definition at line 342 of file ImageFileListWidget.cpp.
References find(), m_progress, m_tree, Isis::ImageList::name(), restoreExpandedStates(), and saveExpandedStates().
Referenced by Isis::ImageFileListViewWorkOrder::execute(), and Isis::Footprint2DView::onItemsAdded().
      
  | 
  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. | 
Definition at line 474 of file ImageFileListWidget.cpp.
      
  | 
  private | 
This method takes an image and finds it's position.
| image | The image we are trying to find. | 
Definition at line 525 of file ImageFileListWidget.cpp.
References Isis::Image::id(), Isis::PvlKeyword::isNamed(), and Isis::PvlContainer::keywords().
Referenced by addImages().
| 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" | 
Definition at line 119 of file ImageFileListWidget.cpp.
References Isis::IString::Convert(), Isis::PvlObject::hasKeyword(), Isis::IException::Io, m_tree, Isis::PvlContainer::name(), Isis::PvlObject::object(), Isis::PvlObject::objects(), Isis::toBool(), and Isis::IString::ToQt().
This method creates a new QAction which is connected and when triggered will save the cube list.
Definition at line 250 of file ImageFileListWidget.cpp.
References saveList().
This method creates a QWidget that displays a long help message explaining the tool.
Definition at line 268 of file ImageFileListWidget.cpp.
References ImageFileListWidget().
| QProgressBar * Isis::ImageFileListWidget::getProgress | ( | ) | 
This method returns the progress bar.
Definition at line 108 of file ImageFileListWidget.cpp.
References m_progress.
This method calls ImageTreeWidget::getViewActions() which returns a list of FootprintColumns.
Definition at line 240 of file ImageFileListWidget.cpp.
References m_tree.
| void Isis::ImageFileListWidget::load | ( | XmlStackedHandlerReader * | xmlReader | ) | 
This method pushes a new XmlHandler into the parser stack.
| xmlReader | This is the parser stack. | 
Definition at line 613 of file ImageFileListWidget.cpp.
References Isis::XmlStackedHandlerReader::pushContentHandler().
      
  | 
  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 | 
Definition at line 446 of file ImageFileListWidget.cpp.
References m_tree.
Referenced by Isis::Footprint2DView::onItemRemoved(), and Isis::Footprint2DView::onMosItemRemoved().
      
  | 
  private | 
This method returns the QTreeWidgetItem to it's expanded state.
| expandedStates | The expanded state that needs to be restored. | 
| item | The QTreeWidgetItem that will be restored to it's expanded state. | 
Definition at line 558 of file ImageFileListWidget.cpp.
References Isis::toBool().
Referenced by addImages().
| 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. | 
Definition at line 626 of file ImageFileListWidget.cpp.
References m_tree.
Referenced by Isis::Directory::save(), Isis::Footprint2DView::save(), and save().
      
  | 
  private | 
This method saves the QTreeWidgetItem and the settings associated with the QTreeWidgetItem to the stream.
| stream | The stream that is saving the QTreeWidgetItem and the settings. | 
| itemToWrite | The QTreeWidgetItem that is being saved. | 
Definition at line 689 of file ImageFileListWidget.cpp.
References Isis::Image::id(), m_tree, and save().
      
  | 
  private | 
This method saves the the expanded state of item.
| item | The QTreeWidgetItem that we will save the expanded state of. | 
Definition at line 589 of file ImageFileListWidget.cpp.
Referenced by addImages().
      
  | 
  privateslot | 
This method saves the list to the choosen output file.
Definition at line 494 of file ImageFileListWidget.cpp.
References Isis::Image::fileName(), m_tree, and Isis::TextFile::PutLine().
Referenced by getExportActions().
| PvlObject Isis::ImageFileListWidget::toPvl | ( | ) | const | 
This method writes the state of this class to a pvl.
Definition at line 183 of file ImageFileListWidget.cpp.
References Isis::IString::Convert(), Isis::Image::id(), m_tree, Isis::IString::ToQt(), and Isis::toString().
      
  | 
  private | 
The directory of the project.
Definition at line 137 of file ImageFileListWidget.h.
Referenced by ImageFileListWidget(), and ~ImageFileListWidget().
      
  | 
  private | 
The ProgressBar of the ImageFileListWidget Serialized (file) version of this object.
Definition at line 127 of file ImageFileListWidget.h.
Referenced by addImages(), getProgress(), ImageFileListWidget(), and ~ImageFileListWidget().
      
  | 
  private | 
Tool bar for the FileList widget to search.
Definition at line 131 of file ImageFileListWidget.h.
Referenced by ImageFileListWidget().
      
  | 
  private | 
Tree item associated with this mosaic item.
Definition at line 136 of file ImageFileListWidget.h.
Referenced by actions(), addImages(), contextMenuEvent(), fromPvl(), getViewActions(), ImageFileListWidget(), removeImages(), save(), saveList(), and toPvl().