OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
file_type_dialog.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2011 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef OST_GUI_FILE_TYPE_DIALOG_HH
20 #define OST_GUI_FILE_TYPE_DIALOG_HH
21 
22 /*
23  Author: Stefan Scheuber, Marco Biasini
24  */
25 
26 #include <ost/gui/module_config.hh>
27 
28 
29 
33 #if OST_IMG_ENABLED
34 #include <ost/io/map_io_handler.hh>
35 #endif
36 
37 #include <QDialog>
38 #include <QMetaType>
39 
40 class QTableWidget;
41 class QLabel;
42 namespace ost { namespace gui {
43 
45 class DLLEXPORT_OST_GUI FileTypeDialog : public QDialog {
46  Q_OBJECT
47 public:
48  FileTypeDialog(const QString& file_name, QWidget* parent=NULL);
49  io::EntityIOHandlerP GetEntityHandler();
50  io::SequenceIOHandlerPtr GetSequenceHandler();
51  io::SurfaceIOHandlerPtr GetSurfaceHandler();
52 #if OST_IMG_ENABLED
53  io::MapIOHandlerPtr GetMapHandler();
54 #endif
55 public slots:
56  virtual void accept();
57 private:
58  QTableWidget* list_;
59  QLabel* label_;
60  io::EntityIOHandlerP entity_handler_;
61  io::SequenceIOHandlerPtr seq_handler_;
62  io::SurfaceIOHandlerPtr surf_handler_;
63 #if OST_IMG_ENABLED
64  io::MapIOHandlerPtr map_handler_;
65 #endif
66 
67 };
68 
69 }}
70 
74 #if OST_IMG_ENABLED
76 #endif
77 
78 #endif