Author: derek Date: Thu Sep 14 19:45:30 2006 New Revision: 92 Modified: sofaswitch/trunk/callflow/src/callflow.cpp sofaswitch/trunk/callflow/src/callflow.h Log: Get it to compile after the doxygen related tidyups. Add a dialog to confirm closing. Modified: sofaswitch/trunk/callflow/src/callflow.cpp ============================================================================== --- sofaswitch/trunk/callflow/src/callflow.cpp (original) +++ sofaswitch/trunk/callflow/src/callflow.cpp Thu Sep 14 19:45:30 2006 @@ -142,11 +142,6 @@ Controls_menu -> Append ( wxH_CONTROLSFOR, wxT("for"), wxT("")); Controls_menu -> Append ( wxH_CONTROLSEND_FOR, wxT("end for"), wxT("")); Controls_menu -> Append ( wxH_CONTROLSPYTHON, wxT("python"), wxT("")); - Controls_menu -> Append ( wxH_CONTROLSMAKE_CALL, wxT("make call"), wxT("")); - Controls_menu -> Append ( wxH_CONTROLSJOIN_CONFERENCE, wxT("join conference"), wxT("")); - Controls_menu -> Append ( wxH_CONTROLSMAKE_CONFERENCE, wxT("make conference"), wxT("")); - Controls_menu -> Append ( wxH_CONTROLSJOIN_PLAY_HRECORD, wxT("join play/record"), wxT("")); - Controls_menu -> Append ( wxH_CONTROLSMAKE_PLAY_HRECORD, wxT("make play/record"), wxT("")); Controls_menu -> Append ( wxH_CONTROLSCONNECT_OBJECTS, wxT("connect objects"), wxT("")); Help_menu -> Append ( wxH_HELPMANUAL, wxT("Manual"), wxT("")); Help_menu -> AppendSeparator () ; @@ -173,9 +168,12 @@ void MyFrame::OnClose (wxCloseEvent& event) { - - // event.Skip(); - // or event.Veto(); + int answer = wxMessageBox("Quit program?", "Confirm", + wxYES_NO, this); + if (answer == wxYES) + event.Skip(); + else + event.Veto(); } @@ -264,7 +262,7 @@ void MyFrame::OnFileE_xit (wxCommandEvent & WXUNUSED(event)) { //Respond to menu here - exit(0); + Close(); } @@ -381,45 +379,10 @@ } -void MyFrame::OnControlsmake_call (wxCommandEvent & WXUNUSED(event)) -{ - //Respond to menu here - SetStatusText("Make a call"); -} - - -void MyFrame::OnControlsjoin_conference (wxCommandEvent & WXUNUSED(event)) -{ - //Respond to menu here - SetStatusText("Join a conference"); -} - - -void MyFrame::OnControlsmake_conference (wxCommandEvent & WXUNUSED(event)) -{ - //Respond to menu here - SetStatusText("Make a conference"); -} - - -void MyFrame::OnControlsjoin_play_Hrecord (wxCommandEvent & WXUNUSED(event)) -{ - //Respond to menu here - SetStatusText("Join play record"); -} - - -void MyFrame::OnControlsmake_play_Hrecord (wxCommandEvent & WXUNUSED(event)) -{ - //Respond to menu here - SetStatusText("Make a play record thing"); -} - - void MyFrame::OnHelpManual (wxCommandEvent & WXUNUSED(event)) { //Respond to menu here - SetStatusText("Get manual"); + SetStatusText("Get manual has to be written"); } Modified: sofaswitch/trunk/callflow/src/callflow.h ============================================================================== --- sofaswitch/trunk/callflow/src/callflow.h (original) +++ sofaswitch/trunk/callflow/src/callflow.h Thu Sep 14 19:45:30 2006 @@ -140,7 +140,7 @@ void OnControlsConnectObjects(wxCommandEvent & event); /**Called in response to a user comand to turn the current graph into executable - python code */. + python code */ void OnCompile(wxCommandEvent & event); /**Called in response to a user comand to display the current help file */