Isis Developer Reference
CnetDisplayProperties.h
Go to the documentation of this file.
1#ifndef CnetDisplayProperties_H
2#define CnetDisplayProperties_H
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QObject>
13
14
15class QAtomicInt;
16template< typename T > class QFutureWatcher;
17template< typename A, typename B > class QMap;
18class QReadWriteLock;
19class QString;
20class QTimer;
21
22
23namespace Isis {
24 class ControlNet;
25
42 Q_OBJECT
43
44 public:
45 // this is a singleton class!
47 virtual ~CnetDisplayProperties();
48
49 bool currentlyComposing() const;
50
51 QList<QString> getCubeList(ControlNet *cnet) const;
52 QString getFileName(QString fileName, bool forceFullPaths = false) const;
53 QString getImageName(QString cubeSerialNumber,
54 bool forceFullPaths = false) const;
55 QString getSerialNumber(QString imageId);
56 bool getShowsFullPaths() const;
57
58 void setCubeList(QString fileName);
59 void setFileNameUsage(bool preferFileNames);
60 void setShowsFullPaths(bool newState);
61
62
63 private:
65
66
67 private: // not implemented
70
71
72 signals:
76
77
78 private:
79 QMap< QString, QString > composeSerialNumbers(QStringList fileNames);
80 void nullify();
81
82
83 private slots:
84 void composeStatusUpdated();
85 void serialNumbersComposed();
86
87
88 private:
89 bool useFileNames;
90 QMap< QString, QString > * m_serialNumberToFileNameMap;
91
92 QFutureWatcher< QMap< QString, QString > > * m_composeWatcher;
93 QTimer *m_composeStatusPoller;
94
95 QAtomicInt *m_composedCount;
96 QAtomicInt *m_interruptFlag;
97 bool m_curComposing;
98 bool m_showFullPath;
99 QReadWriteLock *m_readWriteLock;
100
101 static CnetDisplayProperties *m_instance;
102 };
103}
104
105#endif
Handles how control networks should be displayed to the user.
Definition CnetDisplayProperties.h:41
bool currentlyComposing() const
Definition CnetDisplayProperties.cpp:99
QList< QString > getCubeList(ControlNet *cnet) const
TODO comment me.
Definition CnetDisplayProperties.cpp:112
QString getImageName(QString cubeSerialNumber, bool forceFullPaths=false) const
Definition CnetDisplayProperties.cpp:152
QString getFileName(QString fileName, bool forceFullPaths=false) const
Definition CnetDisplayProperties.cpp:128
static CnetDisplayProperties * getInstance()
Definition CnetDisplayProperties.cpp:37
QString getSerialNumber(QString imageId)
Definition CnetDisplayProperties.cpp:175
virtual ~CnetDisplayProperties()
Definition CnetDisplayProperties.cpp:84
void setCubeList(QString fileName)
Definition CnetDisplayProperties.cpp:203
void composeProgressRangeChanged(int, int)
bool getShowsFullPaths() const
Definition CnetDisplayProperties.cpp:198
void setShowsFullPaths(bool newState)
Definition CnetDisplayProperties.cpp:255
void setFileNameUsage(bool preferFileNames)
Definition CnetDisplayProperties.cpp:237
a control network
Definition ControlNet.h:258
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 CubeIoHandler.h:22
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16