1#ifndef ConcurrentControlNetReader_h
2#define ConcurrentControlNetReader_h
50 void read(QString filename);
62 void updateProgressValue();
63 void mappedFinished();
70 QFutureWatcher<Control *> * m_watcher;
73 QList<Progress *> m_progress;
74 QPointer<ProgressBar> m_progressBar;
75 QPointer<QTimer> m_progressUpdateTimer;
84 class FileNameToControlFunctor :
public std::function<
85 Control *(const QPair<FileName, Progress *> &)> {
87 FileNameToControlFunctor(
QThread *);
88 FileNameToControlFunctor(
const FileNameToControlFunctor &);
89 ~FileNameToControlFunctor();
90 Control * operator()(
const QPair<FileName, Progress *> &)
const;
91 FileNameToControlFunctor & operator=(
const FileNameToControlFunctor &);
This reads a control net in the background.
Definition ConcurrentControlNetReader.h:44
void read(QString filename)
Definition ConcurrentControlNetReader.cpp:79
ProgressBar * progressBar()
Definition ConcurrentControlNetReader.cpp:71
void networksReady(QList< Control * >)
ConcurrentControlNetReader()
Allocates memory at construction instead of as needed.
Definition ConcurrentControlNetReader.cpp:39
~ConcurrentControlNetReader()
This destructor will cancel all running threads and block.
Definition ConcurrentControlNetReader.cpp:56
This represents an ISIS control net in a project-based GUI interface.
Definition Control.h:65
Definition ProgressBar.h:15
This is free and unencumbered software released into the public domain.
Definition ConcurrentControlNetReader.h:21
This is free and unencumbered software released into the public domain.
Definition AbstractTableModel.h:24
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16