diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-23 17:46:10 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-23 17:46:10 -0300 |
commit | a9dd78afddeb706df6652eb91f229a74fd073846 (patch) | |
tree | dfc6130a9c9c5022fcb2baae3f6cf238a99786e8 /Project/MainFrame.cpp | |
parent | 1088617b8f1c31af3ad6a87f9934f7a55240b3a2 (diff) | |
download | PSP.git-a9dd78afddeb706df6652eb91f229a74fd073846.tar.gz PSP.git-a9dd78afddeb706df6652eb91f229a74fd073846.tar.xz PSP.git-a9dd78afddeb706df6652eb91f229a74fd073846.zip |
Generator form implemented
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 cfb24cf..3b7e230 100644 --- a/Project/MainFrame.cpp +++ b/Project/MainFrame.cpp @@ -245,7 +245,9 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event) break; case ID_ADDMENU_GENERATOR: { - SyncGenerator* newGenerator = new SyncGenerator(); + SyncGenerator* newGenerator = new SyncGenerator( + wxString::Format(_("Bus %d"), workspace->GetElementNumber(ID_SYNCGENERATOR))); + workspace->IncrementElementNumber(ID_SYNCGENERATOR); elementList.push_back(newGenerator); statusBarText = _("Insert Generator: Click on a buses, ESC to cancel."); newElement = true; |