BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assignBondOrderResultsDialog.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_VIEW_DIALOGS_ASSIGNBONDORDERRESULTSDIALOG_H
6 #define BALL_VIEW_DIALOGS_ASSIGNBONDORDERRESULTSDIALOG_H
7 
8 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
10 #endif
11 
12 #ifndef BALL_VIEW_WIDGETS_SDWIDGET_H
14 #endif
15 
16 #ifndef BALL_STRUCTURE_ASSIGNBONDORDERPROCESSOR_H
18 #endif
19 
20 #include <BALL/VIEW/UIC/ui_assignBondOrderResultsDialog.h>
21 
22 #include <QtGui/QDialog>
23 #include <map>
24 
25 namespace BALL
26 {
27  namespace VIEW
28  {
32  public QDialog,
33  public Ui_AssignBondOrderResultsDialogData,
34  public ModularWidget
35  {
36  Q_OBJECT
37 
38  public:
39 
41 
42 
43  AssignBondOrderResultsDialog(QWidget *parent = NULL, const char *name = "AssignBondOrderResultsDialog");
44 
47 
49  virtual void initializeWidget(MainControl& main_control);
50 
52  void setProcessor(AssignBondOrderProcessor* abop);
53 
54  public slots:
55 
57  void show();
58 
60  void addSolutionToStructures();
61 
63  void computeNextSolution();
64 
66  void switchView(QTreeWidgetItem* item, int column);
67 
69  void createEntries();
70 
72  void clearEntries();
73 
75  void finished();
76 
77  protected:
78 
80 
81  // systems, which have already been mapped to 2D
82  std::map<QTreeWidgetItem*, System*> sd_systems_;
83 
84  // system copies with applied solutions
85  std::map<QTreeWidgetItem*, System*> solution_systems_;
86 
87  // the solution number
88  std::map<QTreeWidgetItem*, Position> solution_number_;
89 
90  // the solution description
91  std::map<QTreeWidgetItem*, String> descriptions_;
92 
94 
96 
98  };
99  }
100 }
101 #endif