Isis Developer Reference
ImageFileListWidget.h
Go to the documentation of this file.
1#ifndef ImageFileListWidget_H
2#define ImageFileListWidget_H
3
4#include <QWidget>
5
6#include <QPointer>
7#include <QScopedPointer>
8
9#include "ImageList.h"
10#include "ImageTreeWidget.h"
11#include "PvlObject.h"
12
13class QLabel;
14class QLineEdit;
15class QProgressBar;
16class QSettings;
17class QToolBar;
18class QTreeWidgetItem;
19
20namespace Isis {
21 class Directory;
22 class ImageTreeWidgetItem;
23 class ProgressBar;
24
65 Q_OBJECT
66 public:
67 ImageFileListWidget(Directory *directory = 0, QWidget *parent = 0);
68 virtual ~ImageFileListWidget();
69
71 void fromPvl(PvlObject &pvl);
72 PvlObject toPvl() const;
73 void save(QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const;
74
75 QList<QAction *> actions();
76 QList<QAction *> getViewActions();
77 QList<QAction *> getExportActions();
78
79 static QWidget *getLongHelp(QWidget *fileListContainer = NULL);
80
81 public slots:
82 void addImages(ImageList *images);
83 void removeImages(ImageList *images);
84 void clear();
85 void filterFileList();
86
87 protected:
88 void contextMenuEvent(QContextMenuEvent *event);
89
90 private slots:
91 void saveList();
92
93 private:
94 void save(QXmlStreamWriter &stream, QTreeWidgetItem *itemToWrite) const;
95
96 ImageTreeWidget::ImagePosition find(const Image *image) const;
97 void restoreExpandedStates(QVariant expandedStates, QTreeWidgetItem *item);
98 QVariant saveExpandedStates(QTreeWidgetItem *item);
99
100 private:
101 QPointer<ProgressBar> m_progress;
103 QScopedPointer<PvlObject> m_serialized;
104
105 QToolBar *m_searchToolbar;
106 QLineEdit *m_searchLineEdit;
107 QLabel *m_fileCount;
108
109
110 ImageTreeWidget *m_tree;
111 Directory *m_directory;
112 };
113}
114
115#endif
Definition Directory.h:271
File name manipulation and expansion.
Definition FileName.h:100
A colored, grouped cube list.
Definition ImageFileListWidget.h:64
virtual ~ImageFileListWidget()
Destructor.
Definition ImageFileListWidget.cpp:97
void addImages(ImageList *images)
This method adds the new images to the tree.
Definition ImageFileListWidget.cpp:341
void clear()
Definition ImageFileListWidget.cpp:754
QList< QAction * > actions()
This method calls ImageTreeWidget::actions() which sets up a QAction that sets a default for the file...
Definition ImageFileListWidget.cpp:229
void removeImages(ImageList *images)
Removes an imagelist from the FileListWidget.
Definition ImageFileListWidget.cpp:445
void contextMenuEvent(QContextMenuEvent *event)
This method takes an event and gets all of the FootprintColumns, adds them to the menu,...
Definition ImageFileListWidget.cpp:473
PvlObject toPvl() const
This method writes the state of this class to a pvl.
Definition ImageFileListWidget.cpp:182
static QWidget * getLongHelp(QWidget *fileListContainer=NULL)
This method creates a QWidget that displays a long help message explaining the tool.
Definition ImageFileListWidget.cpp:267
QList< QAction * > getViewActions()
This method calls ImageTreeWidget::getViewActions() which returns a list of FootprintColumns.
Definition ImageFileListWidget.cpp:239
ImageFileListWidget(Directory *directory=0, QWidget *parent=0)
Constructor.
Definition ImageFileListWidget.cpp:45
void filterFileList()
Definition ImageFileListWidget.cpp:726
QProgressBar * getProgress()
This method returns the progress bar.
Definition ImageFileListWidget.cpp:107
void fromPvl(PvlObject &pvl)
This method loads the state of this class from the pvl.
Definition ImageFileListWidget.cpp:118
void save(QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const
This method saves the FootprintColumns in the project and the settings associated with every column.
Definition ImageFileListWidget.cpp:615
QList< QAction * > getExportActions()
This method creates a new QAction which is connected and when triggered will save the cube list.
Definition ImageFileListWidget.cpp:249
This represents a cube in a project-based GUI interface.
Definition Image.h:105
Internalizes a list of images and allows for operations on the entire list.
Definition ImageList.h:53
Definition ImageTreeWidget.h:82
Definition ImageTreeWidget.h:42
The main project for ipce.
Definition Project.h:287
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16