1 --- audacity-src-1.3.2-beta/src/LabelDialog.cpp 2006/09/23 02:28:04 1.8
2 +++ audacity-src-1.3.2-beta/src/LabelDialog.cpp 2006/11/18 05:16:41 1.9
8 +void LabelDialog::OnOK(wxCommandEvent &event)
10 + // Standard handling
11 + if (Validate() && TransferDataFromWindow()) {
18 +void LabelDialog::OnCancel(wxCommandEvent &event)
20 + // Standard handling
21 + EndModal(wxID_CANCEL);
25 --- audacity-src-1.3.2-beta/src/LabelDialog.h 2006/09/17 08:23:44 1.5
26 +++ audacity-src-1.3.2-beta/src/LabelDialog.h 2006/11/18 05:16:41 1.6
28 void OnChangeLabel(wxGridEvent &event, int row, RowData *rd);
29 void OnChangeStime(wxGridEvent &event, int row, RowData *rd);
30 void OnChangeEtime(wxGridEvent &event, int row, RowData *rd);
31 + void OnOK(wxCommandEvent &event);
32 + void OnCancel(wxCommandEvent &event);
36 --- audacity-src-1.3.2-beta/src/FileFormats.h.orig 2006-12-24 11:41:23.000000000 +0000
37 +++ audacity-src-1.3.2-beta/src/FileFormats.h 2006-12-24 11:41:45.000000000 +0000
41 #include <wx/string.h>
42 +#include <wx/arrstr.h>
46 --- audacity-src-1.3.2-beta/src/Languages.h.orig 2006-12-24 12:23:15.000000000 +0000
47 +++ audacity-src-1.3.2-beta/src/Languages.h 2006-12-24 12:23:39.000000000 +0000
49 #ifndef __AUDACITY_LANGUAGES__
50 #define __AUDACITY_LANGUAGES__
52 +#include <wx/arrstr.h>
53 #include <wx/string.h>
56 --- audacity-src-1.3.2-beta/src/ShuttleGui.cpp.orig 2006-12-24 12:46:44.000000000 +0000
57 +++ audacity-src-1.3.2-beta/src/ShuttleGui.cpp 2006-12-24 12:47:51.000000000 +0000
60 #include <wx/wxprec.h>
61 #include <wx/listctrl.h>
62 +#include <wx/notebook.h>
63 #include <wx/treectrl.h>
65 #include "Experimental.h"
66 --- audacity-src-1.3.2-beta/src/commands/Keyboard.cpp 2006/04/17 23:10:36 1.7
67 +++ audacity-src-1.3.2-beta/src/commands/Keyboard.cpp 2006/11/18 05:43:24 1.8
70 newStr += wxT("Return");
72 +#if !wxCHECK_VERSION(2, 7, 0)
74 newStr += wxT("PageUp");
77 newStr += wxT("PageDown");
85 newStr += wxT("NUMPAD_DOWN");
87 +#if !wxCHECK_VERSION(2, 7, 0)
88 case WXK_NUMPAD_PRIOR:
89 newStr += wxT("NUMPAD_PAGEUP");
91 - case WXK_NUMPAD_PAGEUP:
92 - newStr += wxT("NUMPAD_PAGEUP");
95 newStr += wxT("NUMPAD_PAGEDOWN");
98 + case WXK_NUMPAD_PAGEUP:
99 + newStr += wxT("NUMPAD_PAGEUP");
101 case WXK_NUMPAD_PAGEDOWN:
102 newStr += wxT("NUMPAD_PAGEDOWN");
104 --- audacity-src-1.3.2-beta/src/export/Export.h.orig 2006-12-24 14:05:10.000000000 +0000
105 +++ audacity-src-1.3.2-beta/src/export/Export.h 2006-12-24 14:05:30.000000000 +0000
107 #ifndef __AUDACITY_EXPORT__
108 #define __AUDACITY_EXPORT__
110 +#include <wx/panel.h>
111 #include <wx/stattext.h>
113 class AudacityProject;
114 --- audacity-src-1.3.2-beta/src/import/Import.h.orig 2006-12-24 14:24:40.000000000 +0000
115 +++ audacity-src-1.3.2-beta/src/import/Import.h 2006-12-24 14:25:40.000000000 +0000
120 +#include <wx/arrstr.h>
121 #include <wx/string.h>
123 #include <wx/listimpl.cpp>
124 --- audacity-src-1.3.2-beta/src/toolbars/ControlToolBar.cpp.orig 2006-12-24 16:07:47.000000000 +0000
125 +++ audacity-src-1.3.2-beta/src/toolbars/ControlToolBar.cpp 2006-12-24 16:08:17.000000000 +0000
127 wxImage * down2 = OverlayImage(bmpRecoloredDownLarge, bmpLoop, xoff + 1, yoff + 1);
128 wxImage * disable2 = OverlayImage(bmpRecoloredUpLarge, bmpLoopDisabled, xoff, yoff);
130 - mPlay->SetAlternateImages(up2, hilite2, down2, disable2);
131 + mPlay->SetAlternateImages(*up2, *hilite2, *down2, *disable2);
135 --- audacity-src-1.3.2-beta/src/toolbars/ToolBar.cpp.orig 2006-12-24 16:12:42.000000000 +0000
136 +++ audacity-src-1.3.2-beta/src/toolbars/ToolBar.cpp 2006-12-24 16:13:54.000000000 +0000
138 #include <wx/gdicmn.h>
139 #include <wx/image.h>
141 +#include <wx/settings.h>
142 #include <wx/sizer.h>
143 #include <wx/sysopt.h>
144 #include <wx/window.h>
146 wxImage * disable2 = OverlayImage(eUp, eDisabled, xoff, yoff);
149 - new AButton(this, id, placement, size, up2, hilite2, down2,
150 - disable2, processdownevents);
151 + new AButton(this, id, placement, size, *up2, *hilite2, *down2,
152 + *disable2, processdownevents);
156 --- audacity-src-1.3.2-beta/src/Makefile.in.orig 2006-12-24 16:22:08.000000000 +0000
157 +++ audacity-src-1.3.2-beta/src/Makefile.in 2006-12-24 16:22:12.000000000 +0000
159 toolbars/ToolManager.o \
160 toolbars/ToolsToolBar.o \
161 toolbars/TranscriptionToolBar.o \
162 - widgets/treebook.o \
165 widgets/AttachableScrollBar.o \
166 --- audacity-src-1.3.2-beta/configure.in.orig 2006-12-24 16:25:37.000000000 +0000
167 +++ audacity-src-1.3.2-beta/configure.in 2006-12-24 16:25:58.000000000 +0000
168 @@ -316,19 +316,19 @@
169 AC_MSG_ERROR("Could not find wx-config: is wxWindows installed? is wx-config in your path?")
172 -dnl Check that the wx version is 2.6.x
173 +dnl Check that the wx version is 2.8.x
175 wx_version=`${WX_CONFIG} $static_preference $unicode_preference --version`
177 -AC_MSG_NOTICE([Checking that the installed version of wxWidgets is 2.6.x])
178 +AC_MSG_NOTICE([Checking that the installed version of wxWidgets is 2.8.x])
180 case "${wx_version}" in
182 - echo "Great, you're using wxWidgets 2.6.x!"
184 + echo "Great, you're using wxWidgets 2.8.x!"
187 wx_list=`${WX_CONFIG} --list`
188 - AC_MSG_ERROR([Unable to locate a suitable configuration of wxWidgets v2.6.x.
189 + AC_MSG_ERROR([Unable to locate a suitable configuration of wxWidgets v2.8.x.
190 The currently available configurations are listed below. If necessary, either
191 install the package for your distribution or download the latest version of wxWidgets
192 from http://wxwidgets.org.
193 --- audacity-src-1.3.2-beta/src/TrackArtist.cpp.orig 2006-12-24 17:05:46.000000000 +0000
194 +++ audacity-src-1.3.2-beta/src/TrackArtist.cpp 2006-12-24 22:31:32.000000000 +0000
195 @@ -1451,7 +1451,7 @@
196 // screen, so remember the display rectangle.
197 clip->SetDisplayRect(mid);
199 - wxBitmap converted = wxBitmap(image);
200 + wxBitmap converted = wxBitmap(*image);
204 --- audacity-src-1.3.2-beta/src/prefs/PrefsDialog.cpp.orig 2006-12-24 23:15:42.000000000 +0000
205 +++ audacity-src-1.3.2-beta/src/prefs/PrefsDialog.cpp 2006-12-24 23:16:03.000000000 +0000
207 #include <wx/listbook.h>
208 #include <wx/listctrl.h>
209 #include <wx/sizer.h>
210 +#include "wx/treebook.h"
212 #include "../Project.h"
215 #include "SpectrumPrefs.h"
216 #include "MousePrefs.h"
218 -//JKC: Experimental treebook, backported from wxWidgets 2.7.x
219 -#include "../widgets/treebook.h"
223 --- audacity-src-1.3.2-beta/src/widgets/ASlider.cpp 2006/11/05 07:41:53 1.52
224 +++ audacity-src-1.3.2-beta/src/widgets/ASlider.cpp 2006/11/18 07:45:29 1.54
225 @@ -742,13 +742,17 @@
229 +#if !wxCHECK_VERSION(2,7,0)
233 SendUpdate( mCurrentValue );
237 +#if !wxCHECK_VERSION(2,7,0)
241 SendUpdate( mCurrentValue );
243 @@ -775,11 +779,12 @@
245 case WXK_NUMPAD_ENTER:
247 - wxWindow *def = mParent->GetParent()->GetDefaultItem();
249 + wxTopLevelWindow *tlw = wxDynamicCast(wxGetTopLevelParent(mParent), wxTopLevelWindow);
250 + wxWindow *def = tlw->GetDefaultItem();
251 + if (def && def->IsEnabled()) {
252 wxCommandEvent cevent(wxEVT_COMMAND_BUTTON_CLICKED,
254 - mParent->ProcessEvent( cevent );
255 + mParent->ProcessEvent(cevent);
259 --- audacity-src-1.3.2-beta/src/widgets/Ruler.cpp.orig 2006-12-25 00:59:27.000000000 +0000
260 +++ audacity-src-1.3.2-beta/src/widgets/Ruler.cpp 2006-12-25 01:00:41.000000000 +0000
262 #include <wx/dcscreen.h>
263 #include <wx/dcmemory.h>
264 #include <wx/dcbuffer.h>
265 +#include <wx/settings.h>
267 #include "../Internat.h"
268 #include "../Project.h"
269 --- audacity-src-1.3.2-beta/src/widgets/TimeTextCtrl.cpp.orig 2006-12-25 01:06:26.000000000 +0000
270 +++ audacity-src-1.3.2-beta/src/widgets/TimeTextCtrl.cpp 2006-12-25 01:09:55.000000000 +0000
272 #include <wx/sizer.h>
273 #include <wx/stattext.h>
274 #include <wx/tooltip.h>
275 +#include <wx/toplevel.h>
281 else if (keyCode == WXK_RETURN || keyCode == WXK_NUMPAD_ENTER) {
282 wxWindow *parent = GetParent();
283 - wxWindow *def = parent->GetDefaultItem();
284 + wxTopLevelWindow *tlw =
285 + wxDynamicCast(wxGetTopLevelParent(this), wxTopLevelWindow);
286 + wxWindow *def = tlw->GetDefaultItem();
287 if (def && def->IsEnabled()) {
288 wxCommandEvent cevent(wxEVT_COMMAND_BUTTON_CLICKED,
290 --- audacity-src-1.3.2-beta/src/FileNames.cpp 2006/10/01 07:23:49 1.9
291 +++ audacity-src-1.3.2-beta/src/FileNames.cpp 2006/11/19 02:20:14 1.10
293 // If there is a directory "Portable Settings" relative to the
294 // executable's EXE file, the prefs are stored in there, otherwise
295 // the prefs are stored in the user data dir provided by the OS.
296 - wxFileName exePath(PlatformCompatibility::GetExecutablePath());
297 - wxFileName portablePrefsPath(exePath.GetPath(), wxT("Portable Settings"));
298 + wxFileName portablePrefsPath(PlatformCompatibility::GetExecutablePath());
299 + portablePrefsPath.AppendDir(wxT("Portable Settings"));
301 if (portablePrefsPath.DirExists())