Changes in / [cd032d:ed58ad]
- Files:
-
- 20 deleted
- 18 edited
-
configure.ac (modified) (1 diff)
-
doc/Doxyfile (modified) (1 diff)
-
doc/class structure.uxf (modified) (19 diffs)
-
m4/acx_pthread.m4 (deleted)
-
m4/ax_check_gl.m4 (deleted)
-
m4/ax_check_glu.m4 (deleted)
-
m4/gwqt4.m4 (deleted)
-
src/Actions/Process.cpp (modified) (2 diffs)
-
src/Actions/small_actions.hpp (modified) (1 diff)
-
src/Makefile.am (modified) (5 diffs)
-
src/Menu/QT4/QTMenu.cpp (deleted)
-
src/Menu/QT4/QTMenu.hpp (deleted)
-
src/UIElements/Dialog.cpp (modified) (4 diffs)
-
src/UIElements/Dialog.hpp (modified) (9 diffs)
-
src/UIElements/QT4/QTDialog.cpp (deleted)
-
src/UIElements/QT4/QTDialog.hpp (deleted)
-
src/UIElements/QT4/QTMainWindow.cpp (deleted)
-
src/UIElements/QT4/QTMainWindow.hpp (deleted)
-
src/UIElements/QT4/QTUIFactory.cpp (deleted)
-
src/UIElements/QT4/QTUIFactory.hpp (deleted)
-
src/UIElements/TextDialog.cpp (modified) (3 diffs)
-
src/UIElements/TextDialog.hpp (modified) (6 diffs)
-
src/UIElements/TextUIFactory.hpp (modified) (1 diff)
-
src/UIElements/UIFactory.cpp (modified) (2 diffs)
-
src/UIElements/UIFactory.hpp (modified) (1 diff)
-
src/Views/QT4/GLMoleculeView.cpp (deleted)
-
src/Views/QT4/GLMoleculeView.hpp (deleted)
-
src/Views/QT4/QTMoleculeView.cpp (deleted)
-
src/Views/QT4/QTMoleculeView.hpp (deleted)
-
src/Views/QT4/QTStatusBar.cpp (deleted)
-
src/Views/QT4/QTStatusBar.hpp (deleted)
-
src/Views/QT4/QTWorldView.cpp (deleted)
-
src/Views/QT4/QTWorldView.hpp (deleted)
-
src/builder.cpp (modified) (4 diffs)
-
src/defs.hpp (modified) (1 diff)
-
src/unittests/Makefile.am (modified) (2 diffs)
-
src/vector.cpp (modified) (2 diffs)
-
src/vector.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rcd032d red58ad 34 34 #AX_BOOST_PROGRAM_OPTIONS 35 35 #AX_BOOST_SERIALIZATION 36 37 #QT4 libraries38 gw_CHECK_QT439 AX_CHECK_GLU40 AC_MSG_NOTICE(["GLU_CFLAGS: $GLU_CFLAGS, GLU_CXXFLAGS: $GLU_CXXFLAGS, GLU_LDFLAGS: $GLU_LDFLAGS, GLU_LIBS: $GLU_LIBS"])41 42 36 43 37 # Checks for header files. -
doc/Doxyfile
rcd032d red58ad 127 127 #--------------------------------------------------------------------------- 128 128 SOURCE_BROWSER = YES 129 INLINE_SOURCES = YES130 STRIP_CODE_COMMENTS = NO129 INLINE_SOURCES = NO 130 STRIP_CODE_COMMENTS = YES 131 131 REFERENCED_BY_RELATION = NO 132 132 REFERENCES_RELATION = NO -
doc/class structure.uxf
rcd032d red58ad 21 21 22 22 23 // This text will be stored with each diagram; use it for notes.</help_text><zoom_level>7</zoom_level><element><type>com.umlet.element.base.Class</type><coordinates><x>1855</x><y>2 10</y><w>147</w><h>70</h></coordinates><panel_attributes>AtomInfo23 // This text will be stored with each diagram; use it for notes.</help_text><zoom_level>7</zoom_level><element><type>com.umlet.element.base.Class</type><coordinates><x>1855</x><y>294</y><w>147</w><h>70</h></coordinates><panel_attributes>AtomInfo 24 24 -- 25 25 -x,v,F: Vector … … 28 28 #AtomInfo(); 29 29 #~AtomInfo(); 30 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1645</x><y> 231</y><w>223</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>210;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1274</x><y>63</y><w>392</w><h>259</h></coordinates><panel_attributes>Element30 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1645</x><y>315</y><w>223</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>210;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1274</x><y>147</y><w>392</w><h>259</h></coordinates><panel_attributes>Element 31 31 -- 32 32 mass: double … … 49 49 #~element(); 50 50 #Output(ofstream * const out) const: bool 51 #Checkout(ofstream * const out, const int No, const int NoOfAtoms) const: bool</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1960</x><y> 448</y><w>280</w><h>161</h></coordinates><panel_attributes>BondedParticle51 #Checkout(ofstream * const out, const int No, const int NoOfAtoms) const: bool</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1960</x><y>532</y><w>280</w><h>161</h></coordinates><panel_attributes>BondedParticle 52 52 -- 53 53 -- … … 63 63 #OutputBondOfAtom() const 64 64 #OutputAdjacency(ofstream *AdjacencyFile) const 65 #OutputOrder(ofstream *file) const</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2184</x><y> 259</y><w>258</w><h>202</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>245;21;245;154;21;154;21;189</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1925</x><y>259</y><w>293</w><h>202</h></coordinates><panel_attributes>lt=<<-66 </panel_attributes><additional_attributes>21;21;21;154;280;154;280;189</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2184</x><y> 259</y><w>34</w><h>202</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;189</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2359</x><y>210</y><w>147</w><h>70</h></coordinates><panel_attributes>BondedParticleInfo65 #OutputOrder(ofstream *file) const</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2184</x><y>343</y><w>258</w><h>202</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>245;21;245;154;21;154;21;189</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1925</x><y>343</y><w>293</w><h>202</h></coordinates><panel_attributes>lt=<<- 66 </panel_attributes><additional_attributes>21;21;21;154;280;154;280;189</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2184</x><y>343</y><w>34</w><h>202</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;189</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2359</x><y>294</y><w>147</w><h>70</h></coordinates><panel_attributes>BondedParticleInfo 67 67 -- 68 68 AdaptiveOrder: unsigned char … … 71 71 #BondedParticleInfo() 72 72 #~BondedParticleInfo() 73 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2079</x><y> 196</y><w>217</w><h>84</h></coordinates><panel_attributes>ParticleInfo73 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2079</x><y>280</y><w>217</w><h>84</h></coordinates><panel_attributes>ParticleInfo 74 74 -- 75 75 nr: int … … 79 79 #~ParticleInfo() 80 80 #ostream & operator << (ostream &ost) const 81 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2485</x><y> 231</y><w>174</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;161;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2646</x><y>161</y><w>147</w><h>133</h></coordinates><panel_attributes>BondList81 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2485</x><y>315</y><w>174</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;161;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2646</x><y>245</y><w>147</w><h>133</h></coordinates><panel_attributes>BondList 82 82 {Some Properties} 83 83 -- … … 90 90 Responsibilities 91 91 -- Resp1 92 *-- Resp2*</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1372</x><y> 343</y><w>147</w><h>105</h></coordinates><panel_attributes>GraphNodeInfo92 *-- Resp2*</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1372</x><y>427</y><w>147</w><h>105</h></coordinates><panel_attributes>GraphNodeInfo 93 93 -- 94 94 -- … … 102 102 #GraphNodeInfo() 103 103 #~GraphNodeInfo() 104 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1484</x><y> 525</y><w>126</w><h>70</h></coordinates><panel_attributes>GraphNode104 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1484</x><y>609</y><w>126</w><h>70</h></coordinates><panel_attributes>GraphNode 105 105 -- 106 106 -- … … 109 109 #OutputGraphInfo() const 110 110 #OutputComponentNumber() const 111 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1484</x><y> 259</y><w>748</w><h>279</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>735;21;735;70;217;70;217;210;21;210;21;266</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1484</x><y>427</y><w>34</w><h>111</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;98</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1288</x><y>672</y><w>588</w><h>245</h></coordinates><panel_attributes>Atom111 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1484</x><y>343</y><w>748</w><h>279</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>735;21;735;70;217;70;217;210;21;210;21;266</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1484</x><y>511</y><w>34</w><h>111</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;98</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1288</x><y>756</y><w>588</w><h>245</h></coordinates><panel_attributes>Atom 112 112 -- 113 113 sort: int* … … 129 129 #DistanceToVector(const Vector &origin) const: double 130 130 #DistanceSquaredToVector(const Vector &origin) const: double 131 #IsInParallelepiped(const Vector offset, const double *parallelepiped) const: bool</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1379</x><y> 427</y><w>83</w><h>258</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;21;182;70;182;70;245</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2226</x><y>665</y><w>504</w><h>210</h></coordinates><panel_attributes>TrajectoryParticle131 #IsInParallelepiped(const Vector offset, const double *parallelepiped) const: bool</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1379</x><y>511</y><w>83</w><h>258</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;21;182;70;182;70;245</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2226</x><y>749</y><w>504</w><h>210</h></coordinates><panel_attributes>TrajectoryParticle 132 132 -- 133 133 -- … … 147 147 #Thermostat_Berendsen(int Step, double ScaleTempFactor, double *ekin, config *configuration) 148 148 #Thermostat_NoseHoover_init(int Step, double *delta_alpha) 149 #Thermostat_NoseHoover_scale(int Step, double *ekin, config *configuration)</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2149</x><y> 259</y><w>209</w><h>419</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;112;196;112;196;406</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1967</x><y>259</y><w>391</w><h>419</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;112;378;112;378;406</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1617</x><y>490</y><w>203</w><h>70</h></coordinates><panel_attributes>TrajectoryParticleInfo149 #Thermostat_NoseHoover_scale(int Step, double *ekin, config *configuration)</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>2149</x><y>343</y><w>209</w><h>419</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;112;196;112;196;406</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1967</x><y>343</y><w>391</w><h>419</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;112;378;112;378;406</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1617</x><y>574</y><w>203</w><h>70</h></coordinates><panel_attributes>TrajectoryParticleInfo 150 150 -- 151 151 Trajectory: struct {vector<Vector> R,U,V} … … 153 153 -- 154 154 #TrajectoryParticleInfo() 155 #~TrajectoryParticleInfo()</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1757</x><y> 539</y><w>601</w><h>139</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;105;588;105;588;126</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>539</y><w>34</w><h>146</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;133</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1519</x><y>574</y><w>244</w><h>111</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;56;231;56;231;98</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1736</x><y>364</y><w>147</w><h>112</h></coordinates><panel_attributes>TesselPoint155 #~TrajectoryParticleInfo()</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1757</x><y>623</y><w>601</w><h>139</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;105;588;105;588;126</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>623</y><w>34</w><h>146</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;133</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1519</x><y>658</y><w>244</w><h>111</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>21;21;21;56;231;56;231;98</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1736</x><y>448</y><w>147</w><h>112</h></coordinates><panel_attributes>TesselPoint 156 156 -- 157 157 -id: Long … … 163 163 Responsibilities 164 164 -- Resp1 165 *-- Resp2*</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y> 455</y><w>146</w><h>230</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>133;21;133;175;21;175;21;217</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>588</y><w>398</w><h>97</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>385;21;385;42;21;42;21;84</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>259</y><w>398</w><h>426</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>385;21;385;168;196;168;196;371;21;371;21;413</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>259</y><w>209</w><h>426</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>196;21;196;371;21;371;21;413</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>833</x><y>770</y><w>357</w><h>224</h></coordinates><panel_attributes>Bond165 *-- Resp2*</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>539</y><w>146</w><h>230</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>133;21;133;175;21;175;21;217</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>672</y><w>398</w><h>97</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>385;21;385;42;21;42;21;84</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>343</y><w>398</w><h>426</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>385;21;385;168;196;168;196;371;21;371;21;413</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1729</x><y>343</y><w>209</w><h>426</h></coordinates><panel_attributes>lt=<<-</panel_attributes><additional_attributes>196;21;196;371;21;371;21;413</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>833</x><y>854</y><w>357</w><h>224</h></coordinates><panel_attributes>Bond 166 166 -- 167 167 HydrogenBond: int … … 182 182 #bond() 183 183 #bond(atom *left, atom *right, const int degree=1, const int number=0) 184 #~bond()</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1834</x><y> 623</y><w>107</w><h>125</h></coordinates><panel_attributes>lt=<<<<-185 3</panel_attributes><additional_attributes>42;112;91;112;91;35;21;35;21;49</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1169</x><y>8 12</y><w>132</w><h>49</h></coordinates><panel_attributes>lt=<<<<-186 2</panel_attributes><additional_attributes>21;35;119;35</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>770</x><y> 658</y><w>111</w><h>167</h></coordinates><panel_attributes>lt=<<<<-187 2</panel_attributes><additional_attributes>63;154;28;154;28;35;98;35;98;112</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1113</x><y>1 246</y><w>504</w><h>168</h></coordinates><panel_attributes>BondGraph184 #~bond()</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1834</x><y>707</y><w>107</w><h>125</h></coordinates><panel_attributes>lt=<<<<- 185 3</panel_attributes><additional_attributes>42;112;91;112;91;35;21;35;21;49</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1169</x><y>896</y><w>132</w><h>49</h></coordinates><panel_attributes>lt=<<<<- 186 2</panel_attributes><additional_attributes>21;35;119;35</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>770</x><y>742</y><w>111</w><h>167</h></coordinates><panel_attributes>lt=<<<<- 187 2</panel_attributes><additional_attributes>63;154;28;154;28;35;98;35;98;112</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1113</x><y>1330</y><w>504</w><h>168</h></coordinates><panel_attributes>BondGraph 188 188 -- 189 189 max_distance: double … … 199 199 double &MinDistance, double &MaxDistance, bool IsAngstroem) 200 200 #CovalentMinMaxDistance(BondedParticle * const Walker, BondedParticle * const OtherWalker, 201 double &MinDistance, double &MaxDistance, bool IsAngstroem)</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1596</x><y>1 323</y><w>167</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;154;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1750</x><y>1281</y><w>147</w><h>133</h></coordinates><panel_attributes>MatrixContainer201 double &MinDistance, double &MaxDistance, bool IsAngstroem)</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1596</x><y>1407</y><w>167</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;154;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1750</x><y>1365</y><w>147</w><h>133</h></coordinates><panel_attributes>MatrixContainer 202 202 -- 203 203 -id: Long … … 209 209 Responsibilities 210 210 -- Resp1 211 *-- Resp2*</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>0</x><y> 455</y><w>511</w><h>1050</h></coordinates><panel_attributes>config211 *-- Resp2*</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>0</x><y>539</y><w>511</w><h>1050</h></coordinates><panel_attributes>config 212 212 -- 213 213 PsiType: int … … 297 297 #SetDefaultPath(const char * const path); 298 298 #InitThermostats(); 299 #ParseThermostats(class ConfigFileBuffer * const fb);</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>490</x><y>1 344</y><w>636</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;623;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1596</x><y>0</y><w>121</w><h>139</h></coordinates><panel_attributes>lt=<<<<-300 2</panel_attributes><additional_attributes>70;126;105;126;105;35;21;35;21;63</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2520</x><y> 896</y><w>224</w><h>140</h></coordinates><panel_attributes><<Singleton>>299 #ParseThermostats(class ConfigFileBuffer * const fb);</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>490</x><y>1428</y><w>636</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;623;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1596</x><y>84</y><w>121</w><h>139</h></coordinates><panel_attributes>lt=<<<<- 300 2</panel_attributes><additional_attributes>70;126;105;126;105;35;21;35;21;63</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2520</x><y>980</y><w>224</w><h>140</h></coordinates><panel_attributes><<Singleton>> 301 301 errorLogger 302 302 -- … … 310 310 #static setVerbosity(int verbosityLevel); 311 311 #protected errorLogger() 312 #protected ~errorLogger()</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2093</x><y> 980</y><w>364</w><h>35</h></coordinates><panel_attributes>KeyCompare312 #protected ~errorLogger()</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>2093</x><y>1064</y><w>364</w><h>35</h></coordinates><panel_attributes>KeyCompare 313 313 -- 314 314 -- 315 315 #operator() (const KeySet SubgraphA, const KeySet SubgraphB) const: bool 316 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1169</x><y>1 134</y><w>147</w><h>105</h></coordinates><panel_attributes>UniqueFragments316 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1169</x><y>1218</y><w>147</w><h>105</h></coordinates><panel_attributes>UniqueFragments 317 317 -- 318 318 ANOVAOrder: int … … 322 322 ShortestPathList: int * 323 323 UsedList: bool ** 324 BondsPerSPCount: int *</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>490</x><y>1 169</y><w>692</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>679;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1120</x><y>896</y><w>251</w><h>307</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>49;294;21;294;21;224;238;224;238;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>840</x><y>1043</y><w>245</w><h>28</h></coordinates><panel_attributes>Graph324 BondsPerSPCount: int *</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>490</x><y>1253</y><w>692</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>679;21;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1120</x><y>980</y><w>251</w><h>307</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>49;294;21;294;21;224;238;224;238;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>840</x><y>1127</y><w>245</w><h>28</h></coordinates><panel_attributes>Graph 325 325 {map <KeySet, NumberValuePair, KeyCompare>} 326 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>861</x><y>1 050</y><w>321</w><h>153</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>308;140;21;140;21;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>945</x><y>1106</y><w>56</w><h>28</h></coordinates><panel_attributes>KeySet327 {set<int>}</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>945</x><y>11 13</y><w>237</w><h>90</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>224;77;21;77;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1085</x><y>973</y><w>99</w><h>230</h></coordinates><panel_attributes>lt=<<<<-328 0...N X 0...N</panel_attributes><additional_attributes>84;217;56;217;56;112;21;112;21;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1736</x><y>2 198</y><w>147</w><h>42</h></coordinates><panel_attributes>LSQ_params326 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>861</x><y>1134</y><w>321</w><h>153</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>308;140;21;140;21;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>945</x><y>1190</y><w>56</w><h>28</h></coordinates><panel_attributes>KeySet 327 {set<int>}</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>945</x><y>1197</y><w>237</w><h>90</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>224;77;21;77;21;21</additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1085</x><y>1057</y><w>99</w><h>230</h></coordinates><panel_attributes>lt=<<<<- 328 0...N X 0...N</panel_attributes><additional_attributes>84;217;56;217;56;112;21;112;21;21</additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1736</x><y>2282</y><w>147</w><h>42</h></coordinates><panel_attributes>LSQ_params 329 329 -- 330 330 vectors: const Vector ** 331 331 num: int 332 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1043</x><y> 182</y><w>147</w><h>35</h></coordinates><panel_attributes>lsq_params333 -- 334 x: gsl_vector *</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1169</x><y> 182</y><w>118</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;105;21</additional_attributes></element></umlet_diagram>332 </panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Class</type><coordinates><x>1043</x><y>266</y><w>147</w><h>35</h></coordinates><panel_attributes>lsq_params 333 -- 334 x: gsl_vector *</panel_attributes><additional_attributes></additional_attributes></element><element><type>com.umlet.element.base.Relation</type><coordinates><x>1169</x><y>266</y><w>118</w><h>34</h></coordinates><panel_attributes>lt=<<<<-</panel_attributes><additional_attributes>21;21;105;21</additional_attributes></element></umlet_diagram> -
src/Actions/Process.cpp
rcd032d red58ad 38 38 39 39 int Process::getCurrStep(){ 40 OBSERVE; 40 41 return currStep; 41 42 } 42 43 43 44 void Process::setCurrStep(int _currStep){ 44 OBSERVE;45 45 currStep = _currStep; 46 46 } … … 52 52 return 0; 53 53 } 54 54 55 int Process::getMaxSteps(){ 55 56 return maxSteps; -
src/Actions/small_actions.hpp
rcd032d red58ad 25 25 }; 26 26 27 27 28 #endif // _SMALL_ACTIONS_HPP -
src/Makefile.am
rcd032d red58ad 8 8 ANALYSISHEADER = analysis_bonds.hpp analysis_correlation.hpp 9 9 10 # only include Actions that are free of user interaction at this point 11 # the UIFactory et. al. wont be known for the libmolecuilder, so the user interaction cannot be done. 12 ACTIONSSOURCE = Actions/Action.cpp Actions/Process.cpp Actions/MethodAction.cpp Actions/ActionSequence.cpp Actions/MakroAction.cpp Actions/ManipulateAtomsProcess.cpp Actions/ActionRegistry.cpp 13 ACTIONSHEADER = Actions/Action.hpp Actions/Process.hpp Actions/Calculation.hpp Actions/Calculation_impl.hpp Actions/MethodAction.hpp Actions/ActionSequence.hpp Actions/MakroAction.hpp Actions/ManipulateAtomsProcess.hpp Actions/ActionRegistry.hpp 14 15 # All actions that need user interaction go here 16 MENUACTIONSSOURCE = Actions/ErrorAction.cpp Actions/small_actions.cpp 17 MENUACTIONSHEADER = Actions/ErrorAction.hpp Actions/small_actions.hpp 10 ACTIONSSOURCE = Actions/Action.cpp Actions/Process.cpp Actions/MethodAction.cpp Actions/ActionSequence.cpp Actions/MakroAction.cpp Actions/ErrorAction.cpp Actions/small_actions.cpp Actions/ManipulateAtomsProcess.cpp Actions/ActionRegistry.cpp 11 ACTIONSHEADER = Actions/Action.hpp Actions/Process.hpp Actions/Calculation.hpp Actions/Calculation_impl.hpp Actions/MethodAction.hpp Actions/ActionSequence.hpp Actions/MakroAction.hpp Actions/ErrorAction.hpp Actions/small_actions.hpp Actions/ManipulateAtomsProcess.hpp Actions/ActionRegistry.hpp 18 12 19 13 PATTERNSOURCE = Patterns/Observer.cpp … … 28 22 MENUHEADER = Menu/Menu.hpp Menu/TextMenu.hpp Menu/MenuItem.hpp Menu/SubMenuItem.hpp Menu/ActionMenuItem.hpp Menu/SeperatorItem.hpp Menu/DisplayMenuItem.hpp 29 23 30 UISOURCE = ${MENUACTIONSSOURCE} ${VIEWSOURCE} ${MENUSOURCE} UIElements/TextUIFactory.cpp UIElements/MainWindow.cpp UIElements/TextWindow.cpp UIElements/Dialog.cpp UIElements/TextDialog.cpp UIElements/TextStatusIndicator.cpp 31 UIHEADER = ${MENUACTIONSHEADER} ${VIEWHEADER} ${MENUHEADER} UIElements/TextUIFactory.hpp UIElements/MainWindow.hpp UIElements/TextWindow.hpp UIElements/Dialog.hpp UIElements/TextDialog.hpp UIElements/TextStatusIndicator.hpp 32 33 FACTORYSOURCE = UIElements/UIFactory.cpp 34 FACTORYHEADER = UIElements/UIFactory.hpp 24 UISOURCE = ${ACTIONSSOURCE} ${VIEWSOURCE} ${MENUSOURCE} UIElements/UIFactory.cpp UIElements/TextUIFactory.cpp UIElements/MainWindow.cpp UIElements/TextWindow.cpp UIElements/TextStatusIndicator.cpp UIElements/Dialog.cpp UIElements/TextDialog.cpp 25 UIHEADER = ${ACTIONSHEADER} ${VIEWHEADER} ${MENUHEADER} UIElements/UIFactory.hpp UIElements/TextUIFactory.hpp UIElements/MainWindow.hpp UIElements/TextWindow.hpp UIElements/TextStatusIndicator.hpp UIElements/Dialog.hpp UIElements/TextDialog.hpp 35 26 36 27 # all these files are only used for legacy reasons while the transition is in progress … … 39 30 LEGACYSOURCE = Legacy/oldmenu.cpp 40 31 LEGACYHEADER = Legacy/oldmenu.hpp 41 42 QTUIMOC_HEADER = UIElements/QT4/QTDialog.hpp \43 UIElements/QT4/QTMainWindow.hpp \44 Menu/QT4/QTMenu.hpp \45 Views/QT4/QTWorldView.hpp \46 Views/QT4/GLMoleculeView.hpp \47 Views/QT4/QTMoleculeView.hpp \48 Views/QT4/QTStatusBar.hpp49 50 QTUIMOC_TARGETS = QTMainWindow.moc.cpp \51 QTMenu.moc.cpp\52 QTDialog.moc.cpp \53 QTWorldView.moc.cpp \54 GLMoleculeView.moc.cpp \55 QTMoleculeView.moc.cpp \56 QTStatusBar.moc.cpp57 32 58 33 DESCRIPTORSOURCE = Descriptors/AtomDescriptor.cpp \ … … 68 43 Descriptors/MoleculeIdDescriptor.hpp 69 44 70 QTUISOURCE = ${QTUIMOC_TARGETS} \ 71 UIElements/QT4/QTMainWindow.cpp \ 72 UIElements/QT4/QTDialog.cpp \ 73 UIElements/QT4/QTUIFactory.cpp \ 74 Menu/QT4/QTMenu.cpp \ 75 Views/QT4/QTWorldView.cpp \ 76 Views/QT4/GLMoleculeView.cpp \ 77 Views/QT4/QTMoleculeView.cpp \ 78 Views/QT4/QTStatusBar.cpp 79 80 QTUIHEADER = ${QTUIMOC_HEADER} UIElements/QT4/QTUIFactory.hpp 81 82 QTUI_DEFS = 83 84 SOURCE = ${ANALYSISSOURCE} ${ATOMSOURCE} ${PATTERNSOURCE} ${ACTIONSSOURCE} ${DESCRIPTORSOURCE} bond.cpp bondgraph.cpp boundary.cpp config.cpp element.cpp ellipsoid.cpp errorlogger.cpp graph.cpp helpers.cpp info.cpp leastsquaremin.cpp linkedcell.cpp lists.cpp log.cpp logger.cpp memoryusageobserver.cpp moleculelist.cpp molecule.cpp molecule_dynamics.cpp molecule_fragmentation.cpp molecule_geometry.cpp molecule_graph.cpp molecule_pointcloud.cpp parser.cpp periodentafel.cpp tesselation.cpp tesselationhelpers.cpp vector.cpp verbose.cpp World.cpp WorldIterators.cpp 85 HEADER = ${ANALYSISHEADER} ${ATOMHEADER} ${PATTERNHEADER} ${ACTIONSHEADER} ${DESCRIPTORHEADER} ${LEGACYHEADER} bond.hpp bondgraph.hpp boundary.hpp config.hpp defs.hpp element.hpp ellipsoid.hpp errorlogger.hpp graph.hpp helpers.hpp info.hpp leastsquaremin.hpp linkedcell.hpp lists.hpp log.hpp logger.hpp memoryallocator.hpp memoryusageobserver.hpp molecule.hpp molecule_template.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp verbose.hpp World.hpp 45 SOURCE = ${ANALYSISSOURCE} ${ATOMSOURCE} ${PATTERNSOURCE} ${UISOURCE} ${DESCRIPTORSOURCE} ${LEGACYSOURCE} bond.cpp bondgraph.cpp boundary.cpp config.cpp element.cpp ellipsoid.cpp errorlogger.cpp graph.cpp helpers.cpp info.cpp leastsquaremin.cpp linkedcell.cpp lists.cpp log.cpp logger.cpp memoryusageobserver.cpp moleculelist.cpp molecule.cpp molecule_dynamics.cpp molecule_fragmentation.cpp molecule_geometry.cpp molecule_graph.cpp molecule_pointcloud.cpp parser.cpp periodentafel.cpp tesselation.cpp tesselationhelpers.cpp vector.cpp verbose.cpp World.cpp WorldIterators.cpp 46 HEADER = ${ANALYSISHEADER} ${ATOMHEADER} ${PATTERNHEADER} ${UIHEADER} ${DESCRIPTORHEADER} ${LEGACYHEADER} bond.hpp bondgraph.hpp boundary.hpp config.hpp defs.hpp element.hpp ellipsoid.hpp errorlogger.hpp graph.hpp helpers.hpp info.hpp leastsquaremin.hpp linkedcell.hpp lists.hpp log.hpp logger.hpp memoryallocator.hpp memoryusageobserver.hpp molecule.hpp molecule_template.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp verbose.hpp World.hpp 86 47 87 48 BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) 88 GUI_LIBS = ${QT_LDADD} ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS}89 49 INCLUDES = -I$(top_srcdir)/src/unittests 90 50 91 noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a libmenu.a92 bin_PROGRAMS = molecuilder molecuildergui joiner analyzer51 noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a 52 bin_PROGRAMS = molecuilder joiner analyzer 93 53 molecuilderdir = ${bindir} 94 95 54 libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER} 96 97 libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER}98 99 55 libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER} 100 101 56 molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db 102 103 molecuilder_CXXFLAGS = $(BOOST_CPPFLAGS) 104 #molecuilder_CXXFLAGS += -DNO_CACHING 105 molecuilder_LDFLAGS = $(BOOST_LIB) 106 molecuilder_SOURCES = ${FACTORYSOURCE} ${LEGACYSOURCE} builder.cpp 107 molecuilder_SOURCES += $(srcdir)/version.c 108 molecuilder_LDADD = libmolecuilder.a libgslwrapper.a libmenu.a ${BOOST_THREAD_LIB} 109 110 #Stuff for building the GUI using QT 111 molecuildergui_SOURCES = ${QTUISOURCE} ${FACTORYSOURCE} ${LEGACYSOURCE} builder.cpp 112 molecuildergui_SOURCES += $(srcdir)/version.c 113 molecuildergui_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} -DUSE_GUI_QT 114 molecuildergui_LDFLAGS = $(BOOST_LIB) ${QT_LDFLAGS} ${GLU_LDFLAGS} 115 molecuildergui_LDADD = libmolecuilder.a libgslwrapper.a libmenu.a ${BOOST_THREAD_LIB} ${GUI_LIBS} 116 57 molecuilder_LDFLAGS = $(BOOST_LDFLAGS) 58 molecuilder_SOURCES = builder.cpp 59 molecuilder_LDADD = libmolecuilder.a libgslwrapper.a $(BOOST_LIB) ${BOOST_THREAD_LIB} 117 60 joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp 118 61 joiner_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB} 119 120 62 analyzer_SOURCES = analyzer.cpp datacreator.cpp parser.cpp helpers.hpp periodentafel.hpp parser.hpp datacreator.hpp 121 63 analyzer_LDADD = libmolecuilder.a $(BOOST_LIB) ${BOOST_THREAD_LIB} 122 64 123 #Rules needed for QT4124 # UI-Files are scattered throughout several subdirectories125 # Therfore `%'-rules do not seem to work126 #Quick fix to get it done otherwise127 ${QTUIMOC_TARGETS}: ${QTUIMOC_HEADER}128 list='$(QTUIMOC_HEADER)'; for header in $$list; do \129 echo "Making mocfile for $$header"; \130 target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\131 $(MOC) $(srcdir)/$$header -o $$target \132 || eval $$failcom; \133 done;134 135 MOSTLYCLEANFILES = ${QTUIMOC_TARGETS}136 137 65 #EXTRA_DIST = ${molecuilder_DATA} 138 66 … … 151 79 echo "const char *ESPACKVersion = \"$(PACKAGE_NAME) -- git version: "`cat $(srcdir)/.git-version`"\";" > $@ 152 80 153 81 molecuilder_SOURCES += $(srcdir)/version.c -
src/UIElements/Dialog.cpp
rcd032d red58ad 31 31 32 32 bool Dialog::display(){ 33 if(checkAll()){34 setAll();35 return true;36 }37 else{38 return false;39 }40 }41 42 bool Dialog::checkAll(){43 33 list<Query*>::iterator iter; 44 34 bool retval = true; … … 49 39 break; 50 40 } 41 if (retval){ 42 // if all queries succeeded we can set the targets to appropriate values 43 for(iter=queries.begin(); iter!=queries.end(); iter++) { 44 (*iter)->setResult(); 45 } 46 } 51 47 return retval; 52 }53 54 void Dialog::setAll(){55 list<Query*>::iterator iter;56 for(iter=queries.begin(); iter!=queries.end(); iter++) {57 (*iter)->setResult();58 }59 48 } 60 49 … … 87 76 88 77 Dialog::StringQuery::StringQuery(string title,string *_target) : 89 Query(title), 90 target(_target), 91 tmp("") 78 Query(title), target(_target) 92 79 {} 93 80 … … 146 133 *target = *tmp; 147 134 } 148 149 // Element Queries150 Dialog::ElementQuery::ElementQuery(std::string title, element **_target) :151 Query(title),152 target(_target),153 tmp(0)154 {}155 156 Dialog::ElementQuery::~ElementQuery(){}157 158 void Dialog::ElementQuery::setResult(){159 *target=tmp;160 } -
src/UIElements/Dialog.hpp
rcd032d red58ad 15 15 class molecule; 16 16 class Vector; 17 class element;18 17 19 18 class Dialog … … 28 27 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*)=0; 29 28 virtual void queryVector(const char*,Vector *,const double *const,bool)=0; 30 virtual void queryElement(const char*,element **)=0;31 29 32 30 virtual bool display(); 33 34 virtual bool checkAll();35 virtual void setAll();36 31 37 32 protected: … … 50 45 public: 51 46 Query(std::string _title); 52 virtual~Query();47 ~Query(); 53 48 virtual bool handle()=0; 54 49 virtual void setResult()=0; … … 63 58 public: 64 59 IntQuery(std::string title,int *_target); 65 virtual~IntQuery();60 ~IntQuery(); 66 61 virtual bool handle()=0; 67 62 virtual void setResult(); … … 75 70 public: 76 71 DoubleQuery(std::string title,double *_target); 77 virtual~DoubleQuery();72 ~DoubleQuery(); 78 73 virtual bool handle()=0; 79 74 virtual void setResult(); … … 87 82 public: 88 83 StringQuery(std::string title,std::string *_target); 89 virtual~StringQuery();84 ~StringQuery(); 90 85 virtual bool handle()=0; 91 86 virtual void setResult(); … … 100 95 public: 101 96 MoleculeQuery(std::string title, molecule **_target, MoleculeListClass *_molecules); 102 virtual~MoleculeQuery();97 ~MoleculeQuery(); 103 98 virtual bool handle()=0; 104 99 virtual void setResult(); … … 113 108 public: 114 109 VectorQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check); 115 virtual~VectorQuery();110 ~VectorQuery(); 116 111 virtual bool handle()=0; 117 112 virtual void setResult(); … … 124 119 }; 125 120 126 class ElementQuery : public Query {127 public:128 ElementQuery(std::string title, element**_target);129 virtual ~ElementQuery();130 virtual bool handle()=0;131 virtual void setResult();132 protected:133 element *tmp;134 private:135 element **target;136 };137 138 121 void registerQuery(Query* query); 139 122 -
src/UIElements/TextDialog.cpp
rcd032d red58ad 10 10 #include "UIElements/TextDialog.hpp" 11 11 12 #include "World.hpp"13 #include "periodentafel.hpp"14 12 #include "atom.hpp" 15 13 #include "molecule.hpp" … … 47 45 void TextDialog::queryVector(const char* title, Vector *target,const double *const cellSize, bool check) { 48 46 registerQuery(new VectorTextQuery(title,target,cellSize,check)); 49 }50 51 void TextDialog::queryElement(const char* title, element **target){52 registerQuery(new ElementTextQuery(title,target));53 47 } 54 48 … … 119 113 120 114 bool TextDialog::VectorTextQuery::handle() { 121 Log() << Verbose(0) << getTitle();122 115 tmp->AskPosition(cellSize,check); 123 116 return true; 124 117 } 125 126 127 TextDialog::ElementTextQuery::ElementTextQuery(std::string title, element **target) :128 Dialog::ElementQuery(title,target)129 {}130 131 TextDialog::ElementTextQuery::~ElementTextQuery()132 {}133 134 bool TextDialog::ElementTextQuery::handle() {135 int Z;136 Log() << Verbose(0) << getTitle();137 cin >> Z;138 tmp = World::getInstance().getPeriode()->FindElement(Z);139 return tmp;140 } -
src/UIElements/TextDialog.hpp
rcd032d red58ad 24 24 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*); 25 25 virtual void queryVector(const char*,Vector *,const double * const,bool); 26 virtual void queryElement(const char*,element **);27 26 28 27 protected: … … 31 30 public: 32 31 IntTextQuery(std::string title, int *_target); 33 virtual~IntTextQuery();32 ~IntTextQuery(); 34 33 virtual bool handle(); 35 34 }; … … 38 37 public: 39 38 DoubleTextQuery(std::string title, double *_target); 40 virtual~DoubleTextQuery();39 ~DoubleTextQuery(); 41 40 virtual bool handle(); 42 41 }; … … 45 44 public: 46 45 StringTextQuery(std::string title, std::string *_target); 47 virtual~StringTextQuery();46 ~StringTextQuery(); 48 47 virtual bool handle(); 49 48 }; … … 52 51 public: 53 52 MoleculeTextQuery(std::string title, molecule **_target, MoleculeListClass *_molecules); 54 virtual~MoleculeTextQuery();53 ~MoleculeTextQuery(); 55 54 virtual bool handle(); 56 55 }; … … 59 58 public: 60 59 VectorTextQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check); 61 virtual ~VectorTextQuery(); 62 virtual bool handle(); 63 }; 64 65 class ElementTextQuery : public Dialog::ElementQuery { 66 public: 67 ElementTextQuery(std::string title, element **_target); 68 virtual ~ElementTextQuery(); 60 ~VectorTextQuery(); 69 61 virtual bool handle(); 70 62 }; -
src/UIElements/TextUIFactory.hpp
rcd032d red58ad 13 13 class TextUIFactory : public UIFactory 14 14 { 15 friend class UIFactory;15 friend class UIFactory; 16 16 17 17 public: -
src/UIElements/UIFactory.cpp
rcd032d red58ad 13 13 // all factories that can be used: 14 14 #include "UIElements/TextUIFactory.hpp" 15 #ifdef USE_GUI_QT16 #include "UIElements/QT4/QTUIFactory.hpp"17 #endif18 15 19 16 UIFactory::UIFactory() … … 33 30 setInstance(new TextUIFactory()); 34 31 break; 35 #ifdef USE_GUI_QT 36 case QT4 : 37 setInstance(new QTUIFactory()); 38 break; 39 #endif 32 40 33 default: 41 34 assert(0 && "No such Factory in stock"); -
src/UIElements/UIFactory.hpp
rcd032d red58ad 31 31 32 32 public: 33 enum InterfaceTypes { 34 Text, 35 #ifdef USE_GUI_QT 36 QT4 37 #endif 38 }; 33 enum InterfaceTypes {Text}; 39 34 virtual ~UIFactory(); 40 35 -
src/builder.cpp
rcd032d red58ad 451 451 mol->Mirror((const Vector *)&n); 452 452 }; 453 >>>>>>> MenuRefactoring:molecuilder/src/builder.cpp454 453 455 454 /** Submenu for removing the atoms from the molecule. … … 2206 2205 mol = World::getInstance().createMolecule(); 2207 2206 World::getInstance().getMolecules()->insert(mol); 2207 cout << "Molecule created" << endl; 2208 2208 if(mol->cell_size[0] == 0.){ 2209 2209 Log() << Verbose(0) << "enter lower tridiagonal form of basis matrix" << endl << endl; … … 2217 2217 2218 2218 { 2219 cout << ESPACKVersion << endl; 2220 2219 2221 setVerbosity(0); 2220 2222 … … 2222 2224 populaters.MakeEditMoleculesMenu = populateEditMoleculesMenu; 2223 2225 2224 #ifdef USE_GUI_QT2225 UIFactory::makeUserInterface(UIFactory::QT4);2226 #else2227 cout << ESPACKVersion << endl;2228 2226 UIFactory::makeUserInterface(UIFactory::Text); 2229 #endif2230 2227 MainWindow *mainWindow = UIFactory::getInstance().makeMainWindow(populaters,World::getInstance().getMolecules(), configuration, World::getInstance().getPeriode(), ConfigFileName); 2231 2228 mainWindow->display(); 2232 2233 2229 delete mainWindow; 2234 2230 } -
src/defs.hpp
rcd032d red58ad 85 85 #define STD_SEPERATOR_SPACER '-' 86 86 87 #define MOLECUILDER_NAME "Molecuilder" 87 // some types used to set template parameters 88 struct true_type{ 89 enum{value=1}; 90 }; 91 struct false_type{ 92 enum{value = 0}; 93 }; 88 94 89 95 #endif /*DEFS_HPP_*/ -
src/unittests/Makefile.am
rcd032d red58ad 4 4 AM_CXXFLAGS = $(CPPUNIT_CFLAGS) 5 5 6 MENUTESTS = ActionSequenceTest 7 6 MENUTESTS = ActionSequenceTest 8 7 9 8 TESTS = \ … … 37 36 ${MENUTESTS} 38 37 39 38 39 40 40 41 check_PROGRAMS = $(TESTS) 41 42 noinst_PROGRAMS = $(TESTS) TestRunner -
src/vector.cpp
rcd032d red58ad 20 20 #include <gsl/gsl_permutation.h> 21 21 #include <gsl/gsl_vector.h> 22 23 #include <cassert>24 22 25 23 /************************************ Functions for class vector ************************************/ … … 661 659 return x; 662 660 }; 663 664 Vector& Vector::operator=(const Vector& src) {665 CopyVector(src);666 return *this;667 }668 669 double& Vector::operator[](int i){670 assert(i<NDIM && "Invalid Vector dimension requested");671 return x[i];672 }673 661 674 662 /** Prints a 3dim vector. -
src/vector.hpp
rcd032d red58ad 80 80 void WrapPeriodically(const double * const M, const double * const Minv); 81 81 82 Vector& operator=(const Vector &src);83 double& operator[](int i);84 85 82 }; 86 83
Note:
See TracChangeset
for help on using the changeset viewer.
