Commit c2690fc5915c614b0fc8cba32f73c26242a5f2e2

Authored by Steve Greedy
1 parent 56875dd0

Resolve Merge Errors in SW1

GUI/SW1/SRC/COAXIAL.cpp
... ... @@ -307,11 +307,8 @@ COAXIAL::COAXIAL(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize&
307 307 Connect(ID_coaxCLOSE,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&COAXIAL::OncoaxCLOSEClick);
308 308 Panel1->Connect(wxEVT_PAINT,(wxObjectEventFunction)&COAXIAL::OnPanel1Paint,0,this);
309 309 Panel1->Connect(wxEVT_LEFT_DCLICK,(wxObjectEventFunction)&COAXIAL::OnPanel1LeftDClick,0,this);
310   -<<<<<<< HEAD
311   -=======
312 310 Connect(wxID_ANY,wxEVT_INIT_DIALOG,(wxObjectEventFunction)&COAXIAL::OnInit);
313 311 Connect(wxEVT_PAINT,(wxObjectEventFunction)&COAXIAL::OnPaint);
314   ->>>>>>> v4
315 312 //*)
316 313 }
317 314  
... ... @@ -336,6 +333,11 @@ void COAXIAL::OnInit(wxInitDialogEvent&amp; event)
336 333 Logger::instance().log("Create Coaxial Cable Model", Logger::kLogLevelInfo);
337 334 }
338 335  
  336 +void COAXIAL::OnPaint(wxPaintEvent& event)
  337 +{
  338 + if (EDIT_EXISTING==true) EditExistingCable();
  339 +}
  340 +
339 341 void COAXIAL::SetPathToMOD(wxString Path, wxString Name)
340 342 {
341 343 pathToMOD << Path;
... ... @@ -894,11 +896,7 @@ void COAXIAL::OnCheckBox2Click(wxCommandEvent&amp; event)
894 896 }
895 897 }
896 898  
897   -<<<<<<< HEAD
898   -
899   -=======
900 899 void COAXIAL::EditExistingCable()
901 900 {
902 901 Close();
903 902 }
904   ->>>>>>> v4
... ...
GUI/SW1/SRC/CYLINDRICAL.cpp
... ... @@ -165,11 +165,8 @@ CYLINDRICAL::CYLINDRICAL(wxWindow* parent,wxWindowID id,const wxPoint&amp; pos,const
165 165 Connect(ID_BUTTON3,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&CYLINDRICAL::OnButton3Click);
166 166 Panel1->Connect(wxEVT_PAINT,(wxObjectEventFunction)&CYLINDRICAL::OnPanel1Paint,0,this);
167 167 Panel1->Connect(wxEVT_LEFT_DCLICK,(wxObjectEventFunction)&CYLINDRICAL::OnPanel1LeftDClick,0,this);
168   -<<<<<<< HEAD
169   -=======
170 168 Connect(wxID_ANY,wxEVT_INIT_DIALOG,(wxObjectEventFunction)&CYLINDRICAL::OnInit);
171 169 Connect(wxEVT_PAINT,(wxObjectEventFunction)&CYLINDRICAL::OnPaint);
172   ->>>>>>> v4
173 170 //*)
174 171 }
175 172  
... ... @@ -180,8 +177,6 @@ CYLINDRICAL::~CYLINDRICAL()
180 177  
181 178 }
182 179  
183   -<<<<<<< HEAD
184   -=======
185 180 void CYLINDRICAL::OnInit(wxInitDialogEvent& event)
186 181 {
187 182 TextCtrl2->Bind(wxEVT_SET_FOCUS,(wxObjectEventFunction)&CYLINDRICAL::OnHighlightSchematic, this);
... ... @@ -198,7 +193,6 @@ void CYLINDRICAL::OnPaint(wxPaintEvent&amp; event)
198 193 if (EDIT_EXISTING==true) EditExistingCable();
199 194 }
200 195  
201   ->>>>>>> v4
202 196 void CYLINDRICAL::SetPathToMOD(wxString Path, wxString Name)
203 197 {
204 198 pathToMOD << Path;
... ... @@ -207,6 +201,9 @@ void CYLINDRICAL::SetPathToMOD(wxString Path, wxString Name)
207 201  
208 202 void CYLINDRICAL::OnButton1Click(wxCommandEvent& event)
209 203 {
  204 +
  205 + if (EDIT_EXISTING==true) EditExistingCable();
  206 +
210 207 int IsError = 0;
211 208  
212 209 wxString fileName = TextCtrl1->GetValue();
... ... @@ -492,11 +489,8 @@ void CYLINDRICAL::OnPanel1LeftDClick(wxMouseEvent&amp; event)
492 489 {
493 490 cylindricalSchematic();
494 491 }
495   -<<<<<<< HEAD
496   -=======
497 492  
498 493 void CYLINDRICAL::EditExistingCable()
499 494 {
500 495 Close();
501 496 }
502   ->>>>>>> v4
... ...
GUI/SW1/SRC/DCONN.cpp
... ... @@ -166,11 +166,8 @@ DCONN::DCONN(wxWindow* parent,wxWindowID id,const wxPoint&amp; pos,const wxSize&amp; siz
166 166 Connect(ID_BUTTON3,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DCONN::OnButton3Click);
167 167 Panel1->Connect(wxEVT_PAINT,(wxObjectEventFunction)&DCONN::OnPanel1Paint,0,this);
168 168 Panel1->Connect(wxEVT_LEFT_DCLICK,(wxObjectEventFunction)&DCONN::OnPanel1LeftDClick,0,this);
169   -<<<<<<< HEAD
170   -=======
171 169 Connect(wxID_ANY,wxEVT_INIT_DIALOG,(wxObjectEventFunction)&DCONN::OnInit);
172 170 Connect(wxEVT_PAINT,(wxObjectEventFunction)&DCONN::OnPaint);
173   ->>>>>>> v4
174 171 //*)
175 172 }
176 173  
... ... @@ -180,8 +177,6 @@ DCONN::~DCONN()
180 177 //*)
181 178 }
182 179  
183   -<<<<<<< HEAD
184   -=======
185 180  
186 181 void DCONN::OnInit(wxInitDialogEvent& event)
187 182 {
... ... @@ -197,7 +192,6 @@ void DCONN::OnPaint(wxPaintEvent&amp; event)
197 192 if (EDIT_EXISTING==true) EditExistingCable();
198 193 }
199 194  
200   ->>>>>>> v4
201 195 void DCONN::SetPathToMOD(wxString Path, wxString Name)
202 196 {
203 197  
... ... @@ -603,3 +597,8 @@ void DCONN::OnCheckBox2Click(wxCommandEvent&amp; event)
603 597 }
604 598 WriteCableFile (TextCtrl1->GetValue());
605 599 }
  600 +
  601 +void DCONN::EditExistingCable()
  602 +{
  603 + Close();
  604 +}
... ...
GUI/SW1/SRC/TP.cpp
... ... @@ -215,7 +215,7 @@ TP::TP(wxWindow* parent,wxWindowID id,const wxPoint&amp; pos,const wxSize&amp; size)
215 215 FlexGridSizer8->Add(StaticText25, 1, wxALL|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL, 5);
216 216 TextCtrl17 = new wxTextCtrl(Panel3, ID_TEXTCTRL17, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL17"));
217 217 FlexGridSizer8->Add(TextCtrl17, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
218   - StaticText26 = new wxStaticText(Panel3, ID_STATICTEXT26, _("H (henries/m)"), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT26"));
  218 + StaticText26 = new wxStaticText(Panel3, ID_STATICTEXT26, _("H (henries)"), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT26"));
219 219 FlexGridSizer8->Add(StaticText26, 1, wxALL|wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL, 5);
220 220 TextCtrl18 = new wxTextCtrl(Panel3, ID_TEXTCTRL18, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL18"));
221 221 FlexGridSizer8->Add(TextCtrl18, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
... ... @@ -326,11 +326,8 @@ TP::TP(wxWindow* parent,wxWindowID id,const wxPoint&amp; pos,const wxSize&amp; size)
326 326 Panel4->Connect(wxEVT_PAINT,(wxObjectEventFunction)&TP::OnPanel4Paint,0,this);
327 327 Panel4->Connect(wxEVT_LEFT_DCLICK,(wxObjectEventFunction)&TP::OnPanel4LeftDClick,0,this);
328 328 Panel4->Connect(wxEVT_MOUSEWHEEL,(wxObjectEventFunction)&TP::OnPanel4MouseWheel,0,this);
329   -<<<<<<< HEAD
330   -=======
331 329 Connect(wxID_ANY,wxEVT_INIT_DIALOG,(wxObjectEventFunction)&TP::OnInit);
332 330 Connect(wxEVT_PAINT,(wxObjectEventFunction)&TP::OnPaint);
333   ->>>>>>> v4
334 331 //*)
335 332 }
336 333  
... ... @@ -355,21 +352,12 @@ void TP::OnInit(wxInitDialogEvent&amp; event)
355 352 CheckBox1->Bind(wxEVT_SET_FOCUS,(wxObjectEventFunction)&TP::OnHighlightSchematic, this);
356 353 }
357 354  
358   -<<<<<<< HEAD
359   -TP::~TP()
360   -{
361   - //(*Destroy(TP)
362   - //*)
363   -}
364   -
365   -=======
366 355 void TP::OnPaint(wxPaintEvent& event)
367 356 {
368 357 if (EDIT_EXISTING==true) EditExistingCable();
369 358 }
370 359  
371 360  
372   ->>>>>>> v4
373 361 void TP::SetPathToMOD(wxString Path, wxString Name)
374 362 {
375 363  
... ... @@ -1206,3 +1194,8 @@ void TP::OnCheckBox4Click(wxCommandEvent&amp; event)
1206 1194  
1207 1195  
1208 1196 }
  1197 +
  1198 +void TP::EditExistingCable()
  1199 +{
  1200 + Close();
  1201 +}
... ...
GUI/SW1/SRC/TWINAX.cpp
... ... @@ -334,11 +334,8 @@ TWINAX::TWINAX(wxWindow* parent,wxWindowID id,const wxPoint&amp; pos,const wxSize&amp; s
334 334 Connect(ID_BUTTON2,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&TWINAX::OnButton2Click);
335 335 Panel1->Connect(wxEVT_PAINT,(wxObjectEventFunction)&TWINAX::OnPanel1Paint,0,this);
336 336 Panel1->Connect(wxEVT_LEFT_DCLICK,(wxObjectEventFunction)&TWINAX::OnPanel1LeftDClick,0,this);
337   -<<<<<<< HEAD
338   -=======
339 337 Connect(wxID_ANY,wxEVT_INIT_DIALOG,(wxObjectEventFunction)&TWINAX::OnInit);
340 338 Connect(wxEVT_PAINT,(wxObjectEventFunction)&TWINAX::OnPaint);
341   ->>>>>>> v4
342 339 //*)
343 340 }
344 341  
... ... @@ -364,6 +361,11 @@ void TWINAX::OnInit(wxInitDialogEvent&amp; event)
364 361 }
365 362  
366 363  
  364 +void TWINAX::OnPaint(wxPaintEvent& event)
  365 +{
  366 + if (EDIT_EXISTING==true) EditExistingCable();
  367 +}
  368 +
367 369 void TWINAX::SetPathToMOD(wxString Path, wxString Name)
368 370 {
369 371  
... ... @@ -1187,11 +1189,8 @@ void TWINAX::OnCheckBox4Click(wxCommandEvent&amp; event)
1187 1189 }
1188 1190  
1189 1191 }
1190   -<<<<<<< HEAD
1191   -=======
1192 1192  
1193 1193 void TWINAX::EditExistingCable()
1194 1194 {
1195 1195 Close();
1196 1196 }
1197   ->>>>>>> v4
... ...