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 #ifndef Q_MOC_RUN
29 
33 #if OST_IMG_ENABLED
35 #endif
36 
37 #endif
38 
39 #include <QDialog>
40 #include <QMetaType>
41 
42 class QTableWidget;
43 class QLabel;
44 namespace ost { namespace gui {
45 
47 class DLLEXPORT_OST_GUI FileTypeDialog : public QDialog {
48  Q_OBJECT
49 public:
50  FileTypeDialog(const QString& file_name, QWidget* parent=NULL);
51  io::EntityIOHandlerP GetEntityHandler();
52  io::SequenceIOHandlerPtr GetSequenceHandler();
53  io::SurfaceIOHandlerPtr GetSurfaceHandler();
54 #if OST_IMG_ENABLED
55  io::MapIOHandlerPtr GetMapHandler();
56 #endif
57 public slots:
58  virtual void accept();
59 private:
60  QTableWidget* list_;
61  QLabel* label_;
62  io::EntityIOHandlerP entity_handler_;
63  io::SequenceIOHandlerPtr seq_handler_;
64  io::SurfaceIOHandlerPtr surf_handler_;
65 #if OST_IMG_ENABLED
66  io::MapIOHandlerPtr map_handler_;
67 #endif
68 
69 };
70 
71 }}
72 
76 #if OST_IMG_ENABLED
78 #endif
79 
80 #endif
boost::shared_ptr< SequenceIOHandler > SequenceIOHandlerPtr
dialog to select a file type
boost::shared_ptr< EntityIOHandler > EntityIOHandlerP
boost::shared_ptr< SurfaceIOHandlerFactoryBase > SurfaceIOHandlerFactoryBasePtr
boost::shared_ptr< MapIOHandlerFactoryBase > MapIOHandlerFactoryBasePtr
#define DLLEXPORT_OST_GUI
boost::shared_ptr< EntityIOHandlerFactoryBase > EntityIOHandlerFactoryBaseP
boost::shared_ptr< MapIOHandler > MapIOHandlerPtr
boost::shared_ptr< SurfaceIOHandler > SurfaceIOHandlerPtr
boost::shared_ptr< SequenceIOHandlerFactoryBase > SequenceIOHandlerFactoryBasePtr
Q_DECLARE_METATYPE(ost::io::EntityIOHandlerFactoryBaseP)