forked from jfnavarro/st_viewer
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstVi.h
More file actions
executable file
·94 lines (71 loc) · 2.23 KB
/
stVi.h
File metadata and controls
executable file
·94 lines (71 loc) · 2.23 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
Copyright (C) 2012 Spatial Transcriptomics AB,
read LICENSE for licensing terms.
Contact : Jose Fernandez Navarro <jose.fernandez.navarro@scilifelab.se>
*/
#ifndef stVi_H
#define stVi_H
#include <QMainWindow>
#include <QPointer>
#include "data/DataProxy.h"
class QSettings;
class QCloseEvent;
class QAction;
class QStatusBar;
class QMenu;
class Error;
class QVBoxLayout;
class ExtendedTabWidget;
class QWidget;
class AuthorizationManager;
class stVi : public QMainWindow
{
Q_OBJECT
public:
explicit stVi(QWidget* parent = 0);
~stVi();
//initialize main visual components
void init();
// check that the host has all the required hardware (true yes : false no )
bool checkSystemRequirements() const;
//system settings
void loadSettings();
void saveSettings() const;
private slots:
// exit the application
void slotExit();
//clear the cache and local stored files
void slotClearCache();
// opens pop up static widget to show info about the application
void slotShowAbout();
// to handle when the min version is downloaded (if not supported app will close)
// status the status of the network request
// type is the type of request
void slotDownloadFinished(const DataProxy::DownloadStatus status,
const DataProxy::DownloadType type);
private:
// create all the widgets
void setupUi();
// initialize and configure layout
void createLayouts();
// load style sheets
void initStyle();
// create keyboard shortcuts
void createShorcuts();
// create some connections
void createConnections();
// overloaded close Event function to handle the exit
void closeEvent(QCloseEvent* event) override;
//reference to some UI elements
QPointer<QAction> m_actionExit;
QPointer<QAction> m_actionHelp;
QPointer<QAction> m_actionVersion;
QPointer<QAction> m_actionAbout;
QPointer<QAction> m_actionClear_Cache;
//main tab is a tab manager type of widget that contains all the pages view
QPointer<ExtendedTabWidget> m_mainTab;
//stVi owns dataProxy and AuthorizationManager
QPointer<DataProxy> m_dataProxy;
QPointer<AuthorizationManager> m_authManager;
};
#endif // stVi_H