From: Denny V. <vra...@us...> - 2004-04-24 00:08:03
|
Update of /cvsroot/darkeyetool/det/src/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13105 Modified Files: ProfessionGUISpruechewx.cpp ProfessionGUISpruechewx.h Log Message: alle Sprueche auf einmal hinzu (Twel) Index: ProfessionGUISpruechewx.h =================================================================== RCS file: /cvsroot/darkeyetool/det/src/gui/ProfessionGUISpruechewx.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ProfessionGUISpruechewx.h 12 Apr 2004 23:16:27 -0000 1.1 --- ProfessionGUISpruechewx.h 24 Apr 2004 00:07:40 -0000 1.2 *************** *** 49,53 **** BTSCHLIESSEN = 283, LISTE, REST, FILTER, ! HINZU, WEG, UNBEKANNT = -1 }; --- 49,53 ---- BTSCHLIESSEN = 283, LISTE, REST, FILTER, ! HINZU, WEG, HINZUALLE, UNBEKANNT = -1 }; *************** *** 65,68 **** --- 65,69 ---- void OnSchliessen(wxCommandEvent&); void OnHinzu(wxCommandEvent&); + void OnHinzuAlle(wxCommandEvent&); void OnWeg(wxCommandEvent&); void OnUpdate(wxCommandEvent&); *************** *** 81,84 **** --- 82,88 ---- //@+node:<< Version History >> // $Log$ + // Revision 1.2 2004/04/24 00:07:40 vrandezo + // alle Sprueche auf einmal hinzu (Twel) + // // Revision 1.1 2004/04/12 23:16:27 vrandezo // Professionen fuehren bekannte Zaubersprueche mit Index: ProfessionGUISpruechewx.cpp =================================================================== RCS file: /cvsroot/darkeyetool/det/src/gui/ProfessionGUISpruechewx.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ProfessionGUISpruechewx.cpp 17 Apr 2004 13:11:59 -0000 1.3 --- ProfessionGUISpruechewx.cpp 24 Apr 2004 00:07:40 -0000 1.4 *************** *** 58,61 **** --- 58,62 ---- EVT_BUTTON (BTSCHLIESSEN, ProfessionGUISpruechewx::OnSchliessen) EVT_BUTTON (HINZU, ProfessionGUISpruechewx::OnHinzu) + EVT_BUTTON (HINZUALLE, ProfessionGUISpruechewx::OnHinzuAlle) EVT_BUTTON (WEG, ProfessionGUISpruechewx::OnWeg) EVT_LISTBOX_DCLICK(LISTE, ProfessionGUISpruechewx::OnWeg) *************** *** 114,117 **** --- 115,120 ---- buttonSizer->Add(new wxButton(this, HINZU, "<", wxPoint(), wxSize(20, 20)), 0); buttonSizer->Add(new wxBoxSizer(wxVERTICAL), 1); + buttonSizer->Add(new wxButton(this, HINZUALLE, "<<", wxPoint(), wxSize(20, 20)), 0); + buttonSizer->Add(new wxBoxSizer(wxVERTICAL), 1); buttonSizer->Add(new wxButton(this, WEG, ">", wxPoint(), wxSize(20, 20)), 0); buttonSizer->Add(new wxBoxSizer(wxVERTICAL), 2); *************** *** 219,222 **** --- 222,234 ---- } //@-node:OnHinzu + //@+node:OnHinzuAlle + void ProfessionGUISpruechewx::OnHinzuAlle(wxCommandEvent& WXUNUSED(event)) { + if (rest_->GetCount()==0) return; + for (int i=0; i < rest_->GetCount(); ++i) + sprueche_->push_back(rest_->GetString(i).c_str()); + + Update(); + } + //@-node:OnHinzuAlle //@+node:OnWeg void ProfessionGUISpruechewx::OnWeg(wxCommandEvent& WXUNUSED(event)) { *************** *** 234,237 **** --- 246,252 ---- //@+node:<< Version History >> // $Log$ + // Revision 1.4 2004/04/24 00:07:40 vrandezo + // alle Sprueche auf einmal hinzu (Twel) + // // Revision 1.3 2004/04/17 13:11:59 vrandezo // erst compilen, dann updaten - typo |