-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscircossession.h
45 lines (34 loc) · 952 Bytes
/
scircossession.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef SCIRCOSSESSION_H
#define SCIRCOSSESSION_H
#include <QObject>
#include <QProcess>
#include <QToolBox>
class SCircosSession : public QObject
{
Q_OBJECT
public:
static SCircosSession* getInstance();
QString getFileName(){
return m_loadedFile;
}
QString getOutputFile();
/** @brief: Load a new file
* @param: name - Full path of file to load
* @param: toolBox - Pointer to toolbox widget
*/
int loadFile(QString name, QToolBox* loadBox);
bool updateCircosPlot();
public slots:
void updateDone(int exitCode, QProcess::ExitStatus exitStatus);
signals:
void newPlotAvailable(QString fileName);
private:
SCircosSession();
SCircosSession(SCircosSession const&){};
SCircosSession &operator=(SCircosSession const&){};
static SCircosSession* m_pInstance;
QString m_loadedFile;
QProcess* m_pProcess;
QToolBox* m_pToolBox;
};
#endif // SCIRCOSSESSION_H