source: src/UIElements/Views/Qt4/MoleculeList/QtMoleculeItemFactory.hpp@ aed262

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes
Last change on this file since aed262 was ea2663, checked in by Frederik Heber <heber@…>, 9 years ago

QtMoleculeItemFactory is pure static.

  • QtMoleculeItemFactory was never needed as singleton as it has now state, contains now purely static variables and functions.
  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[bed759]1/*
2 * QtMoleculeItemFactory.hpp
3 *
4 * Created on: Jan 18, 2015
5 * Author: heber
6 */
7
8#ifndef QTMOLECULEITEMFACTORY_HPP_
9#define QTMOLECULEITEMFACTORY_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
[6d1e0a]16#include <QList>
17
18#include <string>
19
20#include "UIElements/Views/Qt4/MoleculeList/QtMoleculeItem.hpp"
21
[ca1535]22#include "UIElements/Qt4/InstanceBoard/QtObservedMolecule.hpp"
23
[6d1e0a]24/** This class is a factory for a list of QtMoleculeItem's.
25 *
26 * QtMoleculeList contains these per row, either a group item which combines
27 * molecules of the same formula, or a molecule item which represents a single
28 * molecule.
29 */
[ea2663]30struct QtMoleculeItemFactory
[bed759]31{
[ea2663]32
[6d1e0a]33 static const int COLUMNCOUNT;
34 static const char *COLUMNNAMES[];
35
36 /** Creates all QtMoleculeItem's that make up the row for a single molecule.
37 *
[ca1535]38 * \param _ObservedMolecule observed representation of the molecule
[6d1e0a]39 * \return list of prepared items to be appended to a group item
40 */
[ea2663]41 static QList<QStandardItem *> createMoleculeItems(
[7993fe]42 QtObservedMolecule::ptr &_ObservedMolecule);
[bed759]43
[6d1e0a]44 /** Creates all QtMoleculeItem's that make up a row of a group item.
45 *
46 * \param _formula chemical formula which describes all molecules in this group
47 * \return list of prepared items to be appended to the invisibleRootItem()
48 */
[ea2663]49 static QList<QStandardItem *> createGroupItems(const std::string &_formula);
[bed759]50};
51
52
53#endif /* QTMOLECULEITEMFACTORY_HPP_ */
Note: See TracBrowser for help on using the repository browser.