OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
stage
include
ost
gui
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
30
#include <
ost/io/entity_io_handler.hh
>
31
#include <
ost/io/sequence_io_handler.hh
>
32
#include <
ost/io/surface_io_handler.hh
>
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
71
Q_DECLARE_METATYPE
(
ost::io::EntityIOHandlerFactoryBaseP
);
72
Q_DECLARE_METATYPE
(
ost::io::SequenceIOHandlerFactoryBasePtr
);
73
Q_DECLARE_METATYPE
(
ost::io::SurfaceIOHandlerFactoryBasePtr
);
74
#if OST_IMG_ENABLED
75
Q_DECLARE_METATYPE
(
ost::io::MapIOHandlerFactoryBasePtr
);
76
#endif
77
78
#endif
Generated on Mon Nov 5 2012 13:30:59 for OpenStructure by
1.8.1.1