Loading...
Searching...
No Matches
assignBondOrderResultsDialog.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_ASSIGNBONDORDERRESULTSDIALOG_H
#define BALL_VIEW_DIALOGS_ASSIGNBONDORDERRESULTSDIALOG_H
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif
#ifndef BALL_VIEW_WIDGETS_SDWIDGET_H
# include <BALL/VIEW/WIDGETS/SDWidget.h>
#endif
#ifndef BALL_STRUCTURE_ASSIGNBONDORDERPROCESSOR_H
# include <BALL/STRUCTURE/assignBondOrderProcessor.h>
#endif
#include <BALL/VIEW/UIC/ui_assignBondOrderResultsDialog.h>
#include <QtWidgets/QDialog>
#include <map>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT AssignBondOrderResultsDialog :
public QDialog,
public Ui_AssignBondOrderResultsDialogData,
public ModularWidget
{
Q_OBJECT
public:
BALL_EMBEDDABLE(AssignBondOrderResultsDialog, ModularWidget)
AssignBondOrderResultsDialog(QWidget *parent = NULL, const char *name = "AssignBondOrderResultsDialog");
virtual ~AssignBondOrderResultsDialog();
virtual void initializeWidget(MainControl& main_control);
void setProcessor(AssignBondOrderProcessor* abop);
public Q_SLOTS:
void show();
void addSolutionToStructures();
void computeNextSolution();
void switchView(QTreeWidgetItem* item, int column);
void createEntries();
void clearEntries();
void finished();
protected:
SDWidget sdwidget_;
// systems, which have already been mapped to 2D
std::map<QTreeWidgetItem*, System*> sd_systems_;
// system copies with applied solutions
std::map<QTreeWidgetItem*, System*> solution_systems_;
// the solution number
std::map<QTreeWidgetItem*, Position> solution_number_;
// the solution description
std::map<QTreeWidgetItem*, String> descriptions_;
AssignBondOrderProcessor* bond_order_processor_;
QTreeWidgetItem * root_;
QTreeWidgetItem * activated_item_;
};
}
}
#endif
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
SDWidget.h
assignBondOrderProcessor.h
BALL::AssignBondOrderProcessor
Assignment of bond orders from topology information.
Definition assignBondOrderProcessor.h:90
BALL::String
Definition string.h:57
BALL::System
Definition KERNEL/system.h:40
BALL::VIEW::AssignBondOrderResultsDialog::clearEntries
void clearEntries()
BALL::VIEW::AssignBondOrderResultsDialog::initializeWidget
virtual void initializeWidget(MainControl &main_control)
BALL::VIEW::AssignBondOrderResultsDialog::sdwidget_
SDWidget sdwidget_
Definition assignBondOrderResultsDialog.h:79
BALL::VIEW::AssignBondOrderResultsDialog::finished
void finished()
BALL::VIEW::AssignBondOrderResultsDialog::activated_item_
QTreeWidgetItem * activated_item_
Definition assignBondOrderResultsDialog.h:97
BALL::VIEW::AssignBondOrderResultsDialog::sd_systems_
std::map< QTreeWidgetItem *, System * > sd_systems_
Definition assignBondOrderResultsDialog.h:82
BALL::VIEW::AssignBondOrderResultsDialog::switchView
void switchView(QTreeWidgetItem *item, int column)
show the chosen solution
BALL::VIEW::AssignBondOrderResultsDialog::computeNextSolution
void computeNextSolution()
BALL::VIEW::AssignBondOrderResultsDialog::addSolutionToStructures
void addSolutionToStructures()
BALL::VIEW::AssignBondOrderResultsDialog::solution_number_
std::map< QTreeWidgetItem *, Position > solution_number_
Definition assignBondOrderResultsDialog.h:88
BALL::VIEW::AssignBondOrderResultsDialog::AssignBondOrderResultsDialog
AssignBondOrderResultsDialog(QWidget *parent=NULL, const char *name="AssignBondOrderResultsDialog")
Default Constructor.
BALL::VIEW::AssignBondOrderResultsDialog::setProcessor
void setProcessor(AssignBondOrderProcessor *abop)
BALL::VIEW::AssignBondOrderResultsDialog::descriptions_
std::map< QTreeWidgetItem *, String > descriptions_
Definition assignBondOrderResultsDialog.h:91
BALL::VIEW::AssignBondOrderResultsDialog::createEntries
void createEntries()
BALL::VIEW::AssignBondOrderResultsDialog::show
void show()
Show and raise dialog.
BALL::VIEW::AssignBondOrderResultsDialog::solution_systems_
std::map< QTreeWidgetItem *, System * > solution_systems_
Definition assignBondOrderResultsDialog.h:85
BALL::VIEW::AssignBondOrderResultsDialog::root_
QTreeWidgetItem * root_
Definition assignBondOrderResultsDialog.h:95
BALL::VIEW::AssignBondOrderResultsDialog::bond_order_processor_
AssignBondOrderProcessor * bond_order_processor_
Definition assignBondOrderResultsDialog.h:93
BALL::VIEW::MainControl
Definition mainControl.h:118
BALL::VIEW::ModularWidget::ModularWidget
ModularWidget(const char *name="<ModularWidget>")
BALL::VIEW::SDWidget
Definition SDWidget.h:24
QDialog
QTreeWidgetItem
QWidget
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
modularWidget.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Position
BALL_SIZE_TYPE Position
Definition COMMON/global.h:140
std
STL namespace.