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