SciDAVis  1.D4
importOPJ.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : importOPJ.h
3  Project : SciDAVis
4  --------------------------------------------------------------------
5  Copyright : (C) 2010 Miquel Garriga (gbmiquel*gmail.com)
6  Copyright : (C) 2006-2007 by Ion Vasilief (ion_vasilief*yahoo.fr)
7  Copyright : (C) 2006-2007 by Alex Kargovsky (kargovsky*yumr.phys.msu.su)
8  Copyright : (C) 2006-2007 by Tilman Benkert (thzs*gmx.net)
9  Description : Origin project import class
10 
11  ***************************************************************************/
12 
13 /***************************************************************************
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * *
20  * This program is distributed in the hope that it will be useful, *
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
23  * GNU General Public License for more details. *
24  * *
25  * You should have received a copy of the GNU General Public License *
26  * along with this program; if not, write to the Free Software *
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
28  * Boston, MA 02110-1301 USA *
29  * *
30  ***************************************************************************/
31 #ifndef IMPORTOPJ_H
32 #define IMPORTOPJ_H
33 
34 #include "ApplicationWindow.h"
35 #include <OriginFile.h>
36 
38 class ImportOPJ
39 {
40 public:
41  ImportOPJ(ApplicationWindow *app, const QString& filename);
42 
43  bool createProjectTree(const OriginFile& opj);
44  bool importTables (const OriginFile& opj);
45  bool importGraphs (const OriginFile& opj);
46  bool importNotes (const OriginFile& opj);
47  int error(){return parse_error;};
48 
49 private:
50  int translateOrigin2ScidavisLineStyle(int linestyle);
51  QString parseOriginText(const QString &str);
52  QString parseOriginTags(const QString &str);
54  int xoffset;
56 };
57 
58 #endif //IMPORTOPJ_H