/usr/include/BALL/VIEW/DIALOGS/assignBondOrderResultsDialog.h is in libballview1.4-dev 1.4.3~beta1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | // -*- 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 <QtGui/QDialog>
#include <map>
namespace BALL
{
namespace VIEW
{
/** Dialog for presenting the bond order assingment sets and generating structures for each found solution
*/
class BALL_VIEW_EXPORT AssignBondOrderResultsDialog :
public QDialog,
public Ui_AssignBondOrderResultsDialogData,
public ModularWidget
{
Q_OBJECT
public:
BALL_EMBEDDABLE(AssignBondOrderResultsDialog, ModularWidget)
/// Default Constructor.
AssignBondOrderResultsDialog(QWidget *parent = NULL, const char *name = "AssignBondOrderResultsDialog");
/// Destructor.
virtual ~AssignBondOrderResultsDialog();
///
virtual void initializeWidget(MainControl& main_control);
///
void setProcessor(AssignBondOrderProcessor* abop);
public slots:
/// Show and raise dialog
void show();
///
void addSolutionToStructures();
///
void computeNextSolution();
/// show the chosen solution
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
|