Loading...
Searching...
No Matches
generateCrystalDialog.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
#ifndef BALL_VIEW_DIALOGS_GENERATECRYSTALDIALOG_H
#define BALL_VIEW_DIALOGS_GENERATECRYSTALDIALOG_H
#include <BALL/VIEW/UIC/ui_generateCrystalDialog.h>
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif
#ifndef BALL_DATATYPE_HASHSET_H
# include <BALL/DATATYPE/hashSet.h>
#endif
#ifndef BALL_KERNEL_SYSTEM_H
# include <BALL/KERNEL/system.h>
#endif
#ifndef BALL_XRAY_CRYSTALGENERATOR_H
# include <BALL/XRAY/crystalGenerator.h>
#endif
#ifndef BALL_XRAY_CRYSTALGENERATOR_H
# include <BALL/XRAY/crystalGenerator.h>
#endif
#ifndef BALL_FORMAT_PARAAMETERSECTION_H
# include <BALL/FORMAT/parameterSection.h>
#endif
namespace BALL
{
namespace VIEW
{
class GenerateCrystalThread;
class BALL_VIEW_EXPORT GenerateCrystalDialog
: public QDialog,
public Ui_GenerateCrystalDialogData,
public ModularWidget
{
friend class GenerateCrystalThread;
Q_OBJECT
public:
BALL_EMBEDDABLE(GenerateCrystalDialog, ModularWidget)
GenerateCrystalDialog(QWidget* parent = 0, const char* name = "GenerateCrystalDialog",
bool modal = false, Qt::WindowFlags fl = 0 );
~GenerateCrystalDialog();
//void checkMenu(MainControl& mc);
bool initSpaceGroupList();
bool generate();
//virtual void initializeWidget(MainControl& main_control);
public Q_SLOTS:
void slotOk();
void slotCancel();
protected:
void generate_();
HashMap<String, QImage> image_cache_;
// e.g. gif images if not supported
HashSet<String> unsupported_images_;
//QAction* menu_id_;
CrystalGenerator* generator_;
ParameterSection sg_list_;
ParameterSection sg_entry_;
System* system_;
String filename_;
GenerateCrystalThread* thread_;
};
}
} //namespaces
#endif
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
system.h
BALL::CrystalGenerator
Definition crystalGenerator.h:41
BALL::HashMap
HashMap class based on the STL map (containing serveral convenience functions).
Definition hashMap.h:74
BALL::HashSet
Definition hashSet.h:46
BALL::ParameterSection
Definition parameterSection.h:40
BALL::String
Definition string.h:57
BALL::System
Definition KERNEL/system.h:40
BALL::VIEW::GenerateCrystalDialog::slotOk
void slotOk()
BALL::VIEW::GenerateCrystalDialog::filename_
String filename_
Definition generateCrystalDialog.h:100
BALL::VIEW::GenerateCrystalDialog::unsupported_images_
HashSet< String > unsupported_images_
Definition generateCrystalDialog.h:92
BALL::VIEW::GenerateCrystalDialog::sg_list_
ParameterSection sg_list_
Definition generateCrystalDialog.h:96
BALL::VIEW::GenerateCrystalDialog::slotCancel
void slotCancel()
BALL::VIEW::GenerateCrystalDialog::GenerateCrystalThread
friend class GenerateCrystalThread
Definition generateCrystalDialog.h:50
BALL::VIEW::GenerateCrystalDialog::image_cache_
HashMap< String, QImage > image_cache_
Definition generateCrystalDialog.h:89
BALL::VIEW::GenerateCrystalDialog::generate_
void generate_()
BALL::VIEW::GenerateCrystalDialog::thread_
GenerateCrystalThread * thread_
Definition generateCrystalDialog.h:102
BALL::VIEW::GenerateCrystalDialog::initSpaceGroupList
bool initSpaceGroupList()
BALL::VIEW::GenerateCrystalDialog::generate
bool generate()
BALL::VIEW::GenerateCrystalDialog::sg_entry_
ParameterSection sg_entry_
Definition generateCrystalDialog.h:97
BALL::VIEW::GenerateCrystalDialog::system_
System * system_
Definition generateCrystalDialog.h:98
BALL::VIEW::GenerateCrystalDialog::generator_
CrystalGenerator * generator_
Definition generateCrystalDialog.h:95
BALL::VIEW::GenerateCrystalDialog::GenerateCrystalDialog
GenerateCrystalDialog(QWidget *parent=0, const char *name="GenerateCrystalDialog", bool modal=false, Qt::WindowFlags fl=0)
BALL::VIEW::GenerateCrystalThread
Definition threads.h:142
BALL::VIEW::ModularWidget::ModularWidget
ModularWidget(const char *name="<ModularWidget>")
QDialog
QWidget
crystalGenerator.h
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
hashSet.h
modularWidget.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
parameterSection.h