diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-30 16:58:37 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-30 16:58:37 -0300 |
commit | f6718ac24553ac99bf90f99a33543d6d6b96999b (patch) | |
tree | 3e012cfc029726a0eb5fc5576797baeafde6bc84 /Project/MainFrame.cpp | |
parent | ee27459748acee31a307604f6395ea31b4bf53ce (diff) | |
download | PSP.git-f6718ac24553ac99bf90f99a33543d6d6b96999b.tar.gz PSP.git-f6718ac24553ac99bf90f99a33543d6d6b96999b.tar.xz PSP.git-f6718ac24553ac99bf90f99a33543d6d6b96999b.zip |
Line form implemented, voltages corrections under implementation
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r-- | Project/MainFrame.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp index 3b7e230..aedf7a8 100644 --- a/Project/MainFrame.cpp +++ b/Project/MainFrame.cpp @@ -229,8 +229,10 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event) break; case ID_ADDMENU_LINE: { - Line* newLine = new Line(); + Line* newLine = + new Line(wxString::Format(_("Line %d"), workspace->GetElementNumber(ID_LINE))); elementList.push_back(newLine); + workspace->IncrementElementNumber(ID_LINE); statusBarText = _("Insert Line: Click on two buses, ESC to cancel."); newElement = true; } |