tychoGUI  1.0
 All Data Structures Namespaces Files Functions Variables
filetype_selector.cpp
Go to the documentation of this file.
1 #include "mainwindow.h"
2 #include "ui_mainwindow.h"
3 #include <QFileDialog>
4 #include <QFile>
5 #include <QTextStream>
6 #include <QString>
7 
8 
13 QString MainWindow::filetype_selector(QString filetype){
14 
15  QString number;
16 
17  if (filetype=="TYCHO files") number = "0";
18  if (filetype=="VTK files") number = "1";
19  if (filetype=="AMIRA files") number = "2";
20  if (filetype=="IFRIT files") number = "3";
21 
22  return number;
23 }
24 
25