Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv28795

Modified Files:
        LabelDialog.h LabelDialog.cpp 
Log Message:
Make work with wxWidgets 2.8

Index: LabelDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/LabelDialog.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- LabelDialog.cpp     23 Sep 2006 02:28:04 -0000      1.8
+++ LabelDialog.cpp     18 Nov 2006 05:16:41 -0000      1.9
@@ -736,3 +736,21 @@
 
    return;
 }
+
+void LabelDialog::OnOK(wxCommandEvent &event)
+{
+   // Standard handling
+   if (Validate() && TransferDataFromWindow()) {
+      EndModal(wxID_OK);
+   }
+
+   return;
+}
+
+void LabelDialog::OnCancel(wxCommandEvent &event)
+{
+   // Standard handling
+   EndModal(wxID_CANCEL);
+
+   return;
+}

Index: LabelDialog.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/LabelDialog.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- LabelDialog.h       17 Sep 2006 08:23:44 -0000      1.5
+++ LabelDialog.h       18 Nov 2006 05:16:41 -0000      1.6
@@ -59,6 +59,8 @@
    void OnChangeLabel(wxGridEvent &event, int row, RowData *rd);
    void OnChangeStime(wxGridEvent &event, int row, RowData *rd);
    void OnChangeEtime(wxGridEvent &event, int row, RowData *rd);
+   void OnOK(wxCommandEvent &event);
+   void OnCancel(wxCommandEvent &event);
 
  private:
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to