OpenStructure
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-2020 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 
34 
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);
53 public slots:
54  virtual void accept();
55 private:
56  QTableWidget* list_;
57  QLabel* label_;
58  io::EntityIOHandlerP entity_handler_;
59  io::SequenceIOHandlerPtr seq_handler_;
60  io::SurfaceIOHandlerPtr surf_handler_;
61  io::MapIOHandlerPtr map_handler_;
62 
63 };
64 
65 }}
66 
71 
72 #endif
dialog to select a file type
io::EntityIOHandlerP GetEntityHandler()
io::SurfaceIOHandlerPtr GetSurfaceHandler()
io::MapIOHandlerPtr GetMapHandler()
FileTypeDialog(const QString &file_name, QWidget *parent=NULL)
io::SequenceIOHandlerPtr GetSequenceHandler()
Q_DECLARE_METATYPE(ost::io::EntityIOHandlerFactoryBaseP)
#define DLLEXPORT_OST_GUI
boost::shared_ptr< MapIOHandlerFactoryBase > MapIOHandlerFactoryBasePtr
boost::shared_ptr< SurfaceIOHandler > SurfaceIOHandlerPtr
boost::shared_ptr< SequenceIOHandler > SequenceIOHandlerPtr
boost::shared_ptr< SequenceIOHandlerFactoryBase > SequenceIOHandlerFactoryBasePtr
boost::shared_ptr< SurfaceIOHandlerFactoryBase > SurfaceIOHandlerFactoryBasePtr
boost::shared_ptr< MapIOHandler > MapIOHandlerPtr
boost::shared_ptr< EntityIOHandlerFactoryBase > EntityIOHandlerFactoryBaseP
boost::shared_ptr< EntityIOHandler > EntityIOHandlerP
Definition: base.dox:1