Changeset 4aed01
- Timestamp:
- Sep 9, 2016, 10:09:47 AM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fixes, 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, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- d88397
- Parents:
- 562b0a
- git-author:
- Frederik Heber <heber@…> (09/01/16 14:14:18)
- git-committer:
- Frederik Heber <heber@…> (09/09/16 10:09:47)
- Location:
- src/UIElements
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Makefile.am
r562b0a r4aed01 193 193 UIElements/Views/Qt4/QtInfoBox.cpp \ 194 194 UIElements/Views/Qt4/QtLogBox.cpp \ 195 UIElements/Views/Qt4/QtNumericalItem.cpp \ 195 196 UIElements/Views/Qt4/QtShapeController.cpp \ 196 197 UIElements/Views/Qt4/QtShapeList.cpp \ … … 227 228 UIElements/Views/Qt4/QtInfoBox.hpp \ 228 229 UIElements/Views/Qt4/QtLogBox.hpp \ 230 UIElements/Views/Qt4/QtNumericalItem.hpp \ 229 231 UIElements/Views/Qt4/QtShapeController.hpp \ 230 232 UIElements/Views/Qt4/QtShapeList.hpp \ -
src/UIElements/Views/Qt4/QtFragmentList.cpp
r562b0a r4aed01 34 34 35 35 #include "Views/Qt4/QtFragmentList.hpp" 36 #include "Views/Qt4/QtNumericalItem.hpp" 37 38 #include <QAbstractItemView> 39 40 #include "CodePatterns/MemDebug.hpp" 36 41 37 42 #include <iterator> 38 43 #include <iostream> 39 44 40 #include <QAbstractItemView> 41 42 #include "CodePatterns/MemDebug.hpp" 45 #include <boost/assign.hpp> 43 46 44 47 #include "CodePatterns/Log.hpp" … … 54 57 using namespace std; 55 58 59 using namespace boost::assign; 60 56 61 const int QtFragmentList::COLUMNCOUNT = COLUMNTYPES_MAX; 57 62 const char *QtFragmentList::COLUMNNAMES[QtFragmentList::COLUMNCOUNT]={"Number","KeySet","Formula","Energy value","Energy contribution"}; … … 67 72 header << COLUMNNAMES[i]; 68 73 setHeaderLabels(header); 69 sortByColumn(0 );74 sortByColumn(0, Qt::AscendingOrder); 70 75 71 76 setSelectionMode( MultiSelection ); … … 122 127 ++keyiter,++resultiter,++count) { 123 128 124 QTreeWidgetItem *treeItem = new QTreeWidgetItem(this); 129 std::vector<int> numerical_columns; 130 numerical_columns += ENERGYVALUE, ENERGYCONTRIBUTION; 131 QTreeWidgetItem *treeItem = new QtNumericalItem(NUMBER, numerical_columns, this); 125 132 treeItem->setText(NUMBER, QString::number(count)); 126 133 { -
src/UIElements/Views/Qt4/QtHomologyList.cpp
r562b0a r4aed01 34 34 35 35 #include "Views/Qt4/QtHomologyList.hpp" 36 37 #include <iterator> 38 #include <iostream> 36 #include "Views/Qt4/QtNumericalItem.hpp" 39 37 40 38 #include <QAbstractItemView> … … 46 44 47 45 #include "CodePatterns/MemDebug.hpp" 46 47 #include <iterator> 48 #include <iostream> 49 50 #include <boost/assign.hpp> 48 51 49 52 #include "CodePatterns/Log.hpp" … … 66 69 67 70 using namespace std; 71 72 using namespace boost::assign; 68 73 69 74 const int QtHomologyList::COLUMNCOUNT = COLUMNTYPES_MAX; … … 178 183 179 184 // create item 180 QTreeWidgetItem *treeItem = new QTreeWidgetItem(treewidget); 185 std::vector<int> numerical_columns; 186 numerical_columns += OCCURRENCE; 187 QTreeWidgetItem *treeItem = new QtNumericalItem(NUMBER, numerical_columns, treewidget); 181 188 treeItem->setText(NUMBER, QString::number(count)); 182 189 {
Note:
See TracChangeset
for help on using the changeset viewer.