You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

463 lines
17 KiB

12 years ago
* KIWAY Milestone A): Make major modules into DLL/DSOs. ! The initial testing of this commit should be done using a Debug build so that all the wxASSERT()s are enabled. Also, be sure and keep enabled the USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it off is senseless anyways. If you want stable code, go back to a prior version, the one tagged with "stable". * Relocate all functionality out of the wxApp derivative into more finely targeted purposes: a) DLL/DSO specific b) PROJECT specific c) EXE or process specific d) configuration file specific data e) configuration file manipulations functions. All of this functionality was blended into an extremely large wxApp derivative and that was incompatible with the desire to support multiple concurrently loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects. An amazing amount of organization come from simply sorting each bit of functionality into the proper box. * Switch to wxConfigBase from wxConfig everywhere except instantiation. * Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD, PGM_SINGLE_TOP, * Remove "Return" prefix on many function names. * Remove obvious comments from CMakeLists.txt files, and from else() and endif()s. * Fix building boost for use in a DSO on linux. * Remove some of the assumptions in the CMakeLists.txt files that windows had to be the host platform when building windows binaries. * Reduce the number of wxStrings being constructed at program load time via static construction. * Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that these functions are useful even when the wxConfigBase comes from another source, as is the case in the KICAD_MANAGER_FRAME. * Move the setting of the KIPRJMOD environment variable into class PROJECT, so that it can be moved into a project variable soon, and out of FP_LIB_TABLE. * Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all its child wxFrames and wxDialogs now have a Kiway() member function which returns a KIWAY& that that window tree branch is in support of. This is like wxWindows DNA in that child windows get this member with proper value at time of construction. * Anticipate some of the needs for milestones B) and C) and make code adjustments now in an effort to reduce work in those milestones. * No testing has been done for python scripting, since milestone C) has that being largely reworked and re-thought-out.
12 years ago
12 years ago
  1. /*
  2. * This program source code file is part of KICAD, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2011 jean-pierre.charras
  5. * Copyright (C) 1992-2015 Kicad Developers, see AUTHORS.txt for contributors.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version 3
  10. * of the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. /* see
  21. * http://www.desmith.net/NMdS/Electronics/TraceWidth.html
  22. * http://www.ultracad.com/articles/pcbtemp.pdf
  23. * for more info
  24. */
  25. #include <cassert>
  26. #include <cmath>
  27. #include <wx/wx.h>
  28. #include <wx/config.h>
  29. #include <dialog_helpers.h>
  30. #include <pcb_calculator_frame_base.h>
  31. #include <pcb_calculator.h>
  32. #include <UnitSelector.h>
  33. #include <units_scales.h>
  34. wxString tracks_width_versus_current_formula =
  35. #include <tracks_width_versus_current_formula.h>
  36. extern double DoubleFromString( const wxString& TextValue );
  37. // Key words to read/write some parameters in config:
  38. #define KEYWORD_TW_CURRENT wxT( "TW_Track_Current" )
  39. #define KEYWORD_TW_DELTA_TC wxT( "TW_Delta_TC" )
  40. #define KEYWORD_TW_TRACK_LEN wxT( "TW_Track_Len" )
  41. #define KEYWORD_TW_TRACK_LEN_UNIT wxT( "TW_Track_Len_Unit" )
  42. #define KEYWORD_TW_RESISTIVITY wxT( "TW_Resistivity" )
  43. #define KEYWORD_TW_EXTTRACK_WIDTH wxT( "TW_ExtTrack_Width" )
  44. #define KEYWORD_TW_EXTTRACK_WIDTH_UNIT wxT( "TW_ExtTrack_Width_Unit" )
  45. #define KEYWORD_TW_EXTTRACK_THICKNESS wxT( "TW_ExtTrack_Thickness" )
  46. #define KEYWORD_TW_EXTTRACK_THICKNESS_UNIT wxT( "TW_ExtTrack_Thickness_Unit" )
  47. #define KEYWORD_TW_INTTRACK_WIDTH wxT( "TW_IntTrack_Width" )
  48. #define KEYWORD_TW_INTTRACK_WIDTH_UNIT wxT( "TW_IntTrack_Width_Unit" )
  49. #define KEYWORD_TW_INTTRACK_THICKNESS wxT( "TW_IntTrack_Thickness" )
  50. #define KEYWORD_TW_INTTRACK_THICKNESS_UNIT wxT( "TW_IntTrack_Thickness_Unit" )
  51. void PCB_CALCULATOR_FRAME::TW_WriteConfig( wxConfigBase* aCfg )
  52. {
  53. // Save current parameters values in config.
  54. aCfg->Write( KEYWORD_TW_CURRENT, m_TrackCurrentValue->GetValue() );
  55. aCfg->Write( KEYWORD_TW_DELTA_TC, m_TrackDeltaTValue->GetValue() );
  56. aCfg->Write( KEYWORD_TW_TRACK_LEN, m_TrackLengthValue->GetValue() );
  57. aCfg->Write( KEYWORD_TW_TRACK_LEN_UNIT, m_TW_CuLength_choiceUnit->GetSelection() );
  58. aCfg->Write( KEYWORD_TW_RESISTIVITY, m_TWResistivity->GetValue() );
  59. aCfg->Write( KEYWORD_TW_EXTTRACK_WIDTH, m_ExtTrackWidthValue->GetValue() );
  60. aCfg->Write( KEYWORD_TW_EXTTRACK_WIDTH_UNIT, m_TW_ExtTrackWidth_choiceUnit->GetSelection() );
  61. aCfg->Write( KEYWORD_TW_EXTTRACK_THICKNESS, m_ExtTrackThicknessValue->GetValue() );
  62. aCfg->Write( KEYWORD_TW_EXTTRACK_THICKNESS_UNIT, m_ExtTrackThicknessUnit->GetSelection() );
  63. aCfg->Write( KEYWORD_TW_INTTRACK_WIDTH, m_IntTrackWidthValue->GetValue() );
  64. aCfg->Write( KEYWORD_TW_INTTRACK_WIDTH_UNIT, m_TW_IntTrackWidth_choiceUnit->GetSelection() );
  65. aCfg->Write( KEYWORD_TW_INTTRACK_THICKNESS, m_IntTrackThicknessValue->GetValue() );
  66. aCfg->Write( KEYWORD_TW_INTTRACK_THICKNESS_UNIT, m_IntTrackThicknessUnit->GetSelection() );
  67. }
  68. void PCB_CALCULATOR_FRAME::OnTWParametersChanged( wxCommandEvent& event )
  69. {
  70. switch(m_TWMode)
  71. {
  72. case TW_MASTER_CURRENT:
  73. OnTWCalculateFromCurrent( event );
  74. break;
  75. case TW_MASTER_EXT_WIDTH:
  76. OnTWCalculateFromExtWidth( event );
  77. break;
  78. case TW_MASTER_INT_WIDTH:
  79. OnTWCalculateFromIntWidth( event );
  80. break;
  81. }
  82. }
  83. void PCB_CALCULATOR_FRAME::OnTWCalculateFromCurrent( wxCommandEvent& event )
  84. {
  85. // Setting the calculated values generates further events. Stop them.
  86. if( m_TWNested )
  87. {
  88. event.StopPropagation();
  89. return;
  90. }
  91. m_TWNested = true;
  92. // Update state.
  93. if( m_TWMode != TW_MASTER_CURRENT )
  94. {
  95. m_TWMode = TW_MASTER_CURRENT;
  96. TWUpdateModeDisplay();
  97. }
  98. // Prepare parameters:
  99. double current = std::abs( DoubleFromString( m_TrackCurrentValue->GetValue() ) );
  100. double extThickness = std::abs( DoubleFromString( m_ExtTrackThicknessValue->GetValue() ) );
  101. double intThickness = std::abs( DoubleFromString( m_IntTrackThicknessValue->GetValue() ) );
  102. double deltaT_C = std::abs( DoubleFromString( m_TrackDeltaTValue->GetValue() ) );
  103. // Normalize by units.
  104. extThickness *= m_ExtTrackThicknessUnit->GetUnitScale();
  105. intThickness *= m_IntTrackThicknessUnit->GetUnitScale();
  106. // Calculate the widths.
  107. double extTrackWidth = TWCalculateWidth( current, extThickness, deltaT_C, false );
  108. double intTrackWidth = TWCalculateWidth( current, intThickness, deltaT_C, true );
  109. // Update the display.
  110. TWDisplayValues( current, extTrackWidth, intTrackWidth, extThickness, intThickness );
  111. // Re-enable the events.
  112. m_TWNested = false;
  113. }
  114. void PCB_CALCULATOR_FRAME::OnTWCalculateFromExtWidth( wxCommandEvent& event )
  115. {
  116. // Setting the calculated values generates further events. Stop them.
  117. if( m_TWNested )
  118. {
  119. event.StopPropagation();
  120. return;
  121. }
  122. m_TWNested = true;
  123. // Update state.
  124. if( m_TWMode != TW_MASTER_EXT_WIDTH )
  125. {
  126. m_TWMode = TW_MASTER_EXT_WIDTH;
  127. TWUpdateModeDisplay();
  128. }
  129. // Load parameters.
  130. double current;
  131. double extThickness = std::abs( DoubleFromString( m_ExtTrackThicknessValue->GetValue() ) );
  132. double intThickness = std::abs( DoubleFromString( m_IntTrackThicknessValue->GetValue() ) );
  133. double deltaT_C = std::abs( DoubleFromString( m_TrackDeltaTValue->GetValue() ) );
  134. double extTrackWidth = std::abs( DoubleFromString( m_ExtTrackWidthValue->GetValue() ) );
  135. double intTrackWidth;
  136. // Normalize units.
  137. extThickness *= m_ExtTrackThicknessUnit->GetUnitScale();
  138. intThickness *= m_IntTrackThicknessUnit->GetUnitScale();
  139. extTrackWidth *= m_TW_ExtTrackWidth_choiceUnit->GetUnitScale();
  140. // Calculate the maximum current.
  141. current = TWCalculateCurrent( extTrackWidth, extThickness, deltaT_C, false );
  142. // And now calculate the corresponding internal width.
  143. intTrackWidth = TWCalculateWidth( current, intThickness, deltaT_C, true );
  144. // Update the display.
  145. TWDisplayValues( current, extTrackWidth, intTrackWidth, extThickness, intThickness );
  146. // Re-enable the events.
  147. m_TWNested = false;
  148. }
  149. void PCB_CALCULATOR_FRAME::OnTWCalculateFromIntWidth( wxCommandEvent& event )
  150. {
  151. // Setting the calculated values generates further events. Stop them.
  152. if( m_TWNested )
  153. {
  154. event.StopPropagation();
  155. return;
  156. }
  157. m_TWNested = true;
  158. // Update state.
  159. if( m_TWMode != TW_MASTER_INT_WIDTH )
  160. {
  161. m_TWMode = TW_MASTER_INT_WIDTH;
  162. TWUpdateModeDisplay();
  163. }
  164. // Load parameters.
  165. double current;
  166. double extThickness = std::abs( DoubleFromString( m_ExtTrackThicknessValue->GetValue() ) );
  167. double intThickness = std::abs( DoubleFromString( m_IntTrackThicknessValue->GetValue() ) );
  168. double deltaT_C = std::abs( DoubleFromString( m_TrackDeltaTValue->GetValue() ) );
  169. double extTrackWidth;
  170. double intTrackWidth = std::abs( DoubleFromString( m_IntTrackWidthValue->GetValue() ) );
  171. // Normalize units.
  172. extThickness *= m_ExtTrackThicknessUnit->GetUnitScale();
  173. intThickness *= m_IntTrackThicknessUnit->GetUnitScale();
  174. intTrackWidth *= m_TW_IntTrackWidth_choiceUnit->GetUnitScale();
  175. // Calculate the maximum current.
  176. current = TWCalculateCurrent( intTrackWidth, intThickness, deltaT_C, true );
  177. // And now calculate the corresponding external width.
  178. extTrackWidth = TWCalculateWidth( current, extThickness, deltaT_C, false );
  179. // Update the display.
  180. TWDisplayValues( current, extTrackWidth, intTrackWidth, extThickness, intThickness );
  181. // Re-enable the events.
  182. m_TWNested = false;
  183. }
  184. void PCB_CALCULATOR_FRAME::TWDisplayValues( double aCurrent, double aExtWidth,
  185. double aIntWidth, double aExtThickness, double aIntThickness )
  186. {
  187. wxString msg;
  188. // Show the current.
  189. if( m_TWMode != TW_MASTER_CURRENT )
  190. {
  191. msg.Printf( wxT( "%g" ), aCurrent );
  192. m_TrackCurrentValue->SetValue( msg );
  193. }
  194. // Load scale factors to convert into output units.
  195. double extScale = m_TW_ExtTrackWidth_choiceUnit->GetUnitScale();
  196. double intScale = m_TW_IntTrackWidth_choiceUnit->GetUnitScale();
  197. // Display the widths.
  198. if( m_TWMode != TW_MASTER_EXT_WIDTH )
  199. {
  200. msg.Printf( wxT( "%g" ), aExtWidth / extScale );
  201. m_ExtTrackWidthValue->SetValue( msg );
  202. }
  203. if( m_TWMode != TW_MASTER_INT_WIDTH )
  204. {
  205. msg.Printf( wxT( "%g" ), aIntWidth / intScale );
  206. m_IntTrackWidthValue->SetValue( msg );
  207. }
  208. // Display cross-sectional areas.
  209. msg.Printf( wxT( "%g" ), (aExtWidth * aExtThickness) / (extScale * extScale) );
  210. m_ExtTrackAreaValue->SetLabel( msg );
  211. msg.Printf( wxT( "%g" ), (aIntWidth * aIntThickness) / (intScale * intScale) );
  212. m_IntTrackAreaValue->SetLabel( msg );
  213. // Show area units.
  214. wxString strunit = m_TW_ExtTrackWidth_choiceUnit->GetUnitName();
  215. msg = strunit + wxT( " x " ) + strunit;
  216. m_ExtTrackAreaUnitLabel->SetLabel( msg );
  217. strunit = m_TW_IntTrackWidth_choiceUnit->GetUnitName();
  218. msg = strunit + wxT( " x " ) + strunit;
  219. m_IntTrackAreaUnitLabel->SetLabel( msg );
  220. // Load resistivity and length of traces.
  221. double rho = std::abs( DoubleFromString( m_TWResistivity->GetValue() ) );
  222. double trackLen = std::abs( DoubleFromString( m_TrackLengthValue->GetValue() ) );
  223. trackLen *= m_TW_CuLength_choiceUnit->GetUnitScale();
  224. // Calculate resistance.
  225. double extResistance = ( rho * trackLen ) / ( aExtWidth * aExtThickness );
  226. double intResistance = ( rho * trackLen ) / ( aIntWidth * aIntThickness );
  227. // Display resistance.
  228. msg.Printf( wxT( "%g" ), extResistance );
  229. m_ExtTrackResistValue->SetLabel( msg );
  230. msg.Printf( wxT( "%g" ), intResistance );
  231. m_IntTrackResistValue->SetLabel( msg );
  232. // Display voltage drop along trace.
  233. double extV = extResistance * aCurrent;
  234. msg.Printf( wxT( "%g" ), extV );
  235. m_ExtTrackVDropValue->SetLabel( msg );
  236. double intV = intResistance * aCurrent;
  237. msg.Printf( wxT( "%g" ), intV );
  238. m_IntTrackVDropValue->SetLabel( msg );
  239. // And power loss.
  240. msg.Printf( wxT( "%g" ), extV * aCurrent );
  241. m_ExtTrackLossValue->SetLabel( msg );
  242. msg.Printf( wxT( "%g" ), intV * aCurrent );
  243. m_IntTrackLossValue->SetLabel( msg );
  244. }
  245. void PCB_CALCULATOR_FRAME::TWUpdateModeDisplay()
  246. {
  247. wxFont labelfont;
  248. wxFont controlfont;
  249. // Set the font weight of the current.
  250. labelfont = m_staticTextCurrent->GetFont();
  251. controlfont = m_TrackCurrentValue->GetFont();
  252. if( m_TWMode == TW_MASTER_CURRENT )
  253. {
  254. labelfont.SetWeight( wxFONTWEIGHT_BOLD );
  255. controlfont.SetWeight( wxFONTWEIGHT_BOLD );
  256. }
  257. else
  258. {
  259. labelfont.SetWeight( wxFONTWEIGHT_NORMAL );
  260. controlfont.SetWeight( wxFONTWEIGHT_NORMAL );
  261. }
  262. m_staticTextCurrent->SetFont( labelfont );
  263. m_TrackCurrentValue->SetFont( controlfont );
  264. // Set the font weight of the external track width.
  265. labelfont = m_staticTextExtWidth->GetFont();
  266. controlfont = m_ExtTrackWidthValue->GetFont();
  267. if( m_TWMode == TW_MASTER_EXT_WIDTH )
  268. {
  269. labelfont.SetWeight( wxFONTWEIGHT_BOLD );
  270. controlfont.SetWeight( wxFONTWEIGHT_BOLD );
  271. }
  272. else
  273. {
  274. labelfont.SetWeight( wxFONTWEIGHT_NORMAL );
  275. controlfont.SetWeight( wxFONTWEIGHT_NORMAL );
  276. }
  277. m_staticTextExtWidth->SetFont( labelfont );
  278. m_ExtTrackWidthValue->SetFont( controlfont );
  279. // Set the font weight of the internal track width.
  280. labelfont = m_staticTextIntWidth->GetFont();
  281. controlfont = m_IntTrackWidthValue->GetFont();
  282. if( m_TWMode == TW_MASTER_INT_WIDTH )
  283. {
  284. labelfont.SetWeight( wxFONTWEIGHT_BOLD );
  285. controlfont.SetWeight( wxFONTWEIGHT_BOLD );
  286. }
  287. else
  288. {
  289. labelfont.SetWeight( wxFONTWEIGHT_NORMAL );
  290. controlfont.SetWeight( wxFONTWEIGHT_NORMAL );
  291. }
  292. m_staticTextIntWidth->SetFont( labelfont );
  293. m_IntTrackWidthValue->SetFont( controlfont );
  294. // Text sizes have changed when the font weight was changes
  295. // So, run the page layout to reflect the changes
  296. wxWindow* page = m_Notebook->GetPage ( 1 );
  297. page->GetSizer()->Layout();
  298. }
  299. /* calculate track width for external or internal layers
  300. *
  301. * Imax = 0.048 * dT^0.44 * A^0.725 for external layer
  302. * Imax = 0.024 * dT^0.44 * A^0.725 for internal layer
  303. * with A = area = aThickness * trackWidth ( in mils )
  304. * and dT = temperature rise in degree C
  305. * Of course we want to know trackWidth
  306. */
  307. double PCB_CALCULATOR_FRAME::TWCalculateWidth( double aCurrent, double aThickness, double aDeltaT_C,
  308. bool aUseInternalLayer )
  309. {
  310. // Appropriate scale for requested layer.
  311. double scale = aUseInternalLayer ? 0.024 : 0.048;
  312. // aThickness is given in normalize units (in meters) and we need mil
  313. aThickness /= UNIT_MIL;
  314. /* formula is Imax = scale * dT^0.44 * A^0.725
  315. * or
  316. * log(Imax) = log(scale) + 0.44*log(dT)
  317. * +(0.725*(log(aThickness) + log(trackWidth))
  318. * log(trackWidth) * 0.725 = log(Imax) - log(scale) - 0.44*log(dT) - 0.725*log(aThickness)
  319. */
  320. double dtmp = log( aCurrent ) - log( scale ) - 0.44 * log( aDeltaT_C ) - 0.725 * log( aThickness );
  321. dtmp /= 0.725;
  322. double trackWidth = exp( dtmp );
  323. trackWidth *= UNIT_MIL; // We are using normalize units (sizes in meters) and we have mil
  324. return trackWidth; // in meters
  325. }
  326. double PCB_CALCULATOR_FRAME::TWCalculateCurrent( double aWidth, double aThickness, double aDeltaT_C,
  327. bool aUseInternalLayer )
  328. {
  329. // Appropriate scale for requested layer.
  330. double scale = aUseInternalLayer ? 0.024 : 0.048;
  331. // Convert thickness and width to mils.
  332. aThickness /= UNIT_MIL;
  333. aWidth /= UNIT_MIL;
  334. double area = aThickness * aWidth;
  335. double current = scale * pow( aDeltaT_C, 0.44 ) * pow( area, 0.725 );
  336. return current;
  337. }
  338. void PCB_CALCULATOR_FRAME::TW_Init( wxConfigBase* aCfg )
  339. {
  340. int tmp;
  341. wxString msg;
  342. // Disable calculations while we initialise.
  343. m_TWNested = true;
  344. // Read parameter values.
  345. aCfg->Read( KEYWORD_TW_CURRENT, &msg, wxT( "1.0" ) );
  346. m_TrackCurrentValue->SetValue( msg );
  347. aCfg->Read( KEYWORD_TW_DELTA_TC, &msg, wxT( "10.0" ) );
  348. m_TrackDeltaTValue->SetValue( msg );
  349. aCfg->Read( KEYWORD_TW_TRACK_LEN, &msg, wxT( "20" ) );
  350. m_TrackLengthValue->SetValue( msg );
  351. aCfg->Read( KEYWORD_TW_TRACK_LEN_UNIT, &tmp, 0 );
  352. m_TW_CuLength_choiceUnit->SetSelection( tmp );
  353. aCfg->Read( KEYWORD_TW_RESISTIVITY, &msg, wxT( "1.72e-8" ) );
  354. m_TWResistivity->SetValue( msg );
  355. aCfg->Read( KEYWORD_TW_EXTTRACK_WIDTH, &msg, wxT( "0.2" ) );
  356. m_ExtTrackWidthValue->SetValue( msg );
  357. aCfg->Read( KEYWORD_TW_EXTTRACK_WIDTH_UNIT, &tmp, 0 );
  358. m_TW_ExtTrackWidth_choiceUnit->SetSelection( tmp );
  359. aCfg->Read( KEYWORD_TW_EXTTRACK_THICKNESS, &msg, wxT( "0.035" ) );
  360. m_ExtTrackThicknessValue->SetValue( msg );
  361. aCfg->Read( KEYWORD_TW_EXTTRACK_THICKNESS_UNIT, &tmp, 0 );
  362. m_ExtTrackThicknessUnit->SetSelection( tmp );
  363. aCfg->Read( KEYWORD_TW_INTTRACK_WIDTH, &msg, wxT( "0.2" ) );
  364. m_IntTrackWidthValue->SetValue( msg );
  365. aCfg->Read( KEYWORD_TW_INTTRACK_WIDTH_UNIT, &tmp, 0 );
  366. m_TW_IntTrackWidth_choiceUnit->SetSelection( tmp );
  367. aCfg->Read( KEYWORD_TW_INTTRACK_THICKNESS, &msg, wxT( "0.035" ) );
  368. m_IntTrackThicknessValue->SetValue( msg );
  369. aCfg->Read( KEYWORD_TW_INTTRACK_THICKNESS_UNIT, &tmp, 0 );
  370. m_IntTrackThicknessUnit->SetSelection( tmp );
  371. if( tracks_width_versus_current_formula.StartsWith( "<!" ) )
  372. m_htmlWinFormulas->SetPage( tracks_width_versus_current_formula );
  373. else
  374. {
  375. wxString html_txt;
  376. ConvertMarkdown2Html( wxGetTranslation( tracks_width_versus_current_formula ), html_txt );
  377. m_htmlWinFormulas->SetPage( html_txt );
  378. }
  379. // Make sure the correct master mode is displayed.
  380. TWUpdateModeDisplay();
  381. // Enable calculations and perform the initial one.
  382. m_TWNested = false;
  383. wxCommandEvent dummy;
  384. OnTWParametersChanged( dummy );
  385. }