-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.h
executable file
·101 lines (81 loc) · 2.44 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
#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_
/* MainWindow
* code for the main window and docking widgets.
*/
#include <QtGui>
#include <Quarter/QuarterWidget.h>
#include <QActionGroup>
#include <QKeySequence>
//#include "ColourBarForm.h"
#include "BrainQuarter.h"
#include "ResourceForm.h"
// #include "TagForm.h"
using namespace SIM::Coin3D::Quarter;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
// constructor
MainWindow();
// destructor
virtual ~MainWindow();
// opens file based on extension
// QFile nullfile(".db");
// bool openFile(QFile &filename, bool cylinder_flag=false, char* dbfile=NULL);
bool openFile(QFile &filename);
void saveTagFileFunc(QFile &filename);
public slots:
// prompts user for filename from file dialog
void openFileFromDialog();
// exits the application
void quitApplication();
// void getTagFilename();
void saveTagFromDialog();
void createTagFunc();
void addTagFunc();
void setTagOptionFromDialog0(){viewer->setTagOpt(0);};
void setTagOptionFromDialog1(){viewer->setTagOpt(1);};
void setTagOptionFromDialog2(){viewer->setTagOpt(2);};
void verboseStatus();
// void setTagOptionFromDialog(int tagopt);
private:
// set up the actions (file open, etc.)
void createActions();
// set up the menu
void createMenus();
// create the colourbars if they don't already exist
void initColourbars();
/* //creat buttons to create a new tag point or save tags in a file
void createTagbuttons();*/
QMenu *fileMenu;
QAction *openAction;
QAction *saveTagAction;
QAction *quitAction;
QMenu *tagMenu;
QActionGroup *tagGroup;
QAction *surfaceAction;
QAction *midpointAction;
QAction *backsurfaceAction;
QMenu *outMenu;
QAction *verboseAction; //to be used in ResourceForm definition and by BrainQuarter, GeometryScene and textureFileItem
// QPushButton *createTagbutton;
// QPushButton *saveTagFilebutton;
// holds the main viewer application
BrainQuarter *viewer;
// holds the widget to display the colour bar
//ColourBarForm *colourBar;
// dock for the colour bar widget
//QDockWidget *colourBarDock;
// tree to keep track of open resources
//QTreeView *treeview;
ResourceForm *resourceForm;
// TagForm *tagForm;
// dock to hold the tree view
QDockWidget *resourceDock;
// QDockWidget *tagDock;
//void sampleTreeSetup();
QVector <float> tagsVect;
float *Tagpoint;
double Tagsize;
};
#endif /*MAINWINDOW_H_*/