-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainWindow.h
149 lines (125 loc) · 3.26 KB
/
MainWindow.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <string>
#include "UiVariables.h"
//#include "MainPanel.h"
class AbstractGraph;
class FastaReader;
class GtfReader;
class GLWidget;
class QAction;
class QLabel;
class QActionGroup;
class QDockWidget;
class QTextEdit;
class QLineEdit;
class QComboBox;
class QPushButton;
class QProgressBar;
class QScrollArea;
class QScrollBar;
class QFrame;
class QTabWidget;
class QCheckBox;
class ViewManager;
class QSignalMapper;
class MainWindow : public QMainWindow
{
friend class ViewManager;
Q_OBJECT
public:
QFrame* glHandler;
FastaReader* fastaReader;
GtfReader* trackReader;
MainWindow();
public slots:
void showUpdateButton();
void closeAndUpdateSkittle();
void removeGraphButton(QAction* presetAction);
void open();
void open(QString fileName);
void updateProgress(int);
void updateState(QString);
void updateStatus(QString);
void changeWindowName(std::string name);
void openGtf();
void doubleWidth();
void halveWidth();
void addDisplayActions(AbstractGraph*);
void addDisplayDivider();
void helpDialog();
void setGlobalTexture(bool);
//testing:
void reportFinished();
signals:
void newFileOpen(QString name);
void newGtfFileOpen(QString name);
void colorSelected(int);
protected:
void closeEvent(QCloseEvent *event);
private:
void createUiVars();
void createActions();
void createMenus();
void ensureDocksAreVisible();
void createDocks();
void createContextMenus();
void createToolbars();
QAction* createColorPalleteAction(QString label, int colorPalletes, QIcon palleteIcon, QActionGroup* group, QSignalMapper *signalMapper);
void createStatusBar();
void createUiConnections();
void createFileConnections();
bool loadfile(const QString &filename);
void readSettings();
void writeSettings();
void print(const char* str);
void print(QString);
UiVariables* ui;
ViewManager* viewManager;
QMenu *annotationMenu;
QMenu *fileMenu;
QMenu *presetMenu;
QMenu *searchMenu;
QMenu *toolMenu;
QMenu *colorSettingsMenu;
QMenu *viewMenu;
QActionGroup *toolActionGroup;
QActionGroup *colorGroup;
QToolBar *fileToolBar;
QToolBar *presetToolBar;
QToolBar *toolToolBar;
QToolBar *settingToolBar;
QDockWidget *infoDock;
QTextEdit* textArea;
QTabWidget *tabWidget;
QPushButton *doubleDisplayWidth;
QPushButton *halveDisplayWidth;
QPushButton *zoomExtents;
QAction *moveAction;
QAction *resizeAction;
QAction *zoomAction;
QAction *selectAction;
QAction *findAction;
QAction *screenCaptureAction;
QAction* updateSkittle;
// QAction *browseCommunityAction;
// QAction *delAnnotationAction;
QAction *findSequenceAction;
QAction *findNextAction;
QAction *findPrevAction;
QAction *addViewAction;
QAction *openAction;
QAction *openGtfAction;
QAction *addAnnotationAction;
QAction *nextAnnotationAction;
QAction *prevAnnotationAction;
QAction* textureToggleAction;
QAction *exitAction;
QAction *helpAction;
QAction *aboutQtAct;
QLabel *statusTip;
//QProgressBar *processStatus;
//QLabel *processState;
};
#endif