BALL
1.5.0
include
BALL
VIEW
DIALOGS
generateCrystalDialog.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
4
#ifndef BALL_VIEW_DIALOGS_GENERATECRYSTALDIALOG_H
5
#define BALL_VIEW_DIALOGS_GENERATECRYSTALDIALOG_H
6
7
#include <BALL/VIEW/UIC/ui_generateCrystalDialog.h>
8
9
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
10
# include <
BALL/VIEW/KERNEL/modularWidget.h
>
11
#endif
12
13
#ifndef BALL_DATATYPE_HASHSET_H
14
# include <
BALL/DATATYPE/hashSet.h
>
15
#endif
16
17
#ifndef BALL_KERNEL_SYSTEM_H
18
# include <
BALL/KERNEL/system.h
>
19
#endif
20
21
#ifndef BALL_XRAY_CRYSTALGENERATOR_H
22
# include <
BALL/XRAY/crystalGenerator.h
>
23
#endif
24
25
#ifndef BALL_XRAY_CRYSTALGENERATOR_H
26
# include <
BALL/XRAY/crystalGenerator.h
>
27
#endif
28
29
#ifndef BALL_FORMAT_PARAAMETERSECTION_H
30
# include <
BALL/FORMAT/parameterSection.h
>
31
#endif
32
33
namespace
BALL
34
{
35
36
namespace
VIEW
37
{
38
39
class
GenerateCrystalThread;
40
45
class
BALL_VIEW_EXPORT
GenerateCrystalDialog
46
:
public
QDialog
,
47
public
Ui_GenerateCrystalDialogData,
48
public
ModularWidget
49
{
50
friend
class
GenerateCrystalThread
;
51
52
Q_OBJECT
53
54
public
:
55
BALL_EMBEDDABLE
(
GenerateCrystalDialog
,
ModularWidget
)
56
57
58
GenerateCrystalDialog
(
QWidget
* parent = 0,
const
char
* name =
"GenerateCrystalDialog"
,
59
bool
modal =
false
, Qt::WindowFlags fl = 0 );
60
62
~
GenerateCrystalDialog
();
63
65
//void checkMenu(MainControl& mc);
66
68
bool
initSpaceGroupList();
69
71
bool
generate();
72
74
//virtual void initializeWidget(MainControl& main_control);
75
76
public
Q_SLOTS:
77
79
void
slotOk();
80
82
void
slotCancel();
83
84
85
protected
:
86
87
void
generate_();
88
89
HashMap<String, QImage>
image_cache_
;
90
91
// e.g. gif images if not supported
92
HashSet<String>
unsupported_images_
;
93
94
//QAction* menu_id_;
95
CrystalGenerator
*
generator_
;
96
ParameterSection
sg_list_
;
97
ParameterSection
sg_entry_
;
98
System
*
system_
;
99
100
String
filename_
;
101
102
GenerateCrystalThread
*
thread_
;
103
};
104
105
}
106
}
//namespaces
107
#endif
BALL::VIEW::GenerateCrystalDialog::sg_entry_
ParameterSection sg_entry_
Definition:
generateCrystalDialog.h:97
system.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::VIEW::GenerateCrystalDialog::thread_
GenerateCrystalThread * thread_
Definition:
generateCrystalDialog.h:102
BALL::HashSet< String >
parameterSection.h
QWidget
BALL::HashMap
HashMap class based on the STL map (containing serveral convenience functions)
Definition:
hashMap.h:73
QDialog
BALL::VIEW::GenerateCrystalDialog::filename_
String filename_
Definition:
generateCrystalDialog.h:100
BALL::System
Definition:
KERNEL/system.h:38
BALL::VIEW::GenerateCrystalThread
Definition:
threads.h:140
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition:
embeddable.h:31
BALL
Definition:
constants.h:12
BALL::VIEW::GenerateCrystalDialog::system_
System * system_
Definition:
generateCrystalDialog.h:98
BALL::String
Definition:
string.h:56
BALL::VIEW::GenerateCrystalDialog::generator_
CrystalGenerator * generator_
Definition:
generateCrystalDialog.h:95
BALL::VIEW::GenerateCrystalDialog::sg_list_
ParameterSection sg_list_
Definition:
generateCrystalDialog.h:96
BALL::VIEW::GenerateCrystalDialog
Definition:
generateCrystalDialog.h:45
modularWidget.h
BALL::ParameterSection
Definition:
parameterSection.h:39
hashSet.h
BALL::VIEW::GenerateCrystalDialog::unsupported_images_
HashSet< String > unsupported_images_
Definition:
generateCrystalDialog.h:92
crystalGenerator.h
BALL::VIEW::ModularWidget
Definition:
modularWidget.h:60
BALL::VIEW::GenerateCrystalDialog::image_cache_
HashMap< String, QImage > image_cache_
Definition:
generateCrystalDialog.h:89
BALL::CrystalGenerator
Definition:
crystalGenerator.h:40
Generated by
1.8.16