1 --- XaraLX-0.7r1766/wxXtra/framemanager.h.orig 2007-03-14 15:09:22.000000000 +0000
2 +++ XaraLX-0.7r1766/wxXtra/framemanager.h 2007-03-14 15:10:04.000000000 +0000
7 -class WXDLLIMPEXP_AUI wxFrameManager : public wxEvtHandler
8 +class WXDLLIMPEXP_AUI _don_t_use_internal_wxFrameManager : public wxEvtHandler
10 friend class wxFloatingPane;
12 --- XaraLX-0.7r1766/wxOil/dlgmgr.h.orig 2007-03-14 11:04:23.000000000 +0000
13 +++ XaraLX-0.7r1766/wxOil/dlgmgr.h 2007-03-14 11:26:12.000000000 +0000
16 static void EnsurePanePreferenceDeclared(wxString key);
17 static void InitPaneInfoHash();
18 - static void LoadPaneInfo(wxString key, wxPaneInfo &paneinfo);
19 - static void SavePaneInfo(wxString key, wxPaneInfo &paneinfo);
20 + static void LoadPaneInfo(wxString key, wxAuiPaneInfo &paneinfo);
21 + static void SavePaneInfo(wxString key, wxAuiPaneInfo &paneinfo);
22 static IdToSerializedPaneInfo * s_pPaneInfoHash;
25 --- XaraLX-0.7r1766/wxOil/camelot.cpp.orig 2007-03-14 12:03:59.000000000 +0000
26 +++ XaraLX-0.7r1766/wxOil/camelot.cpp 2007-03-14 19:35:30.000000000 +0000
29 /***************************************************************************************************************************/
31 +#include <wx/aui/aui.h>
32 +#include <wx/aui/floatpane.h>
38 TRACEUSER("luke", _T("CCamApp::FilterEvent activate to %s"), pEventObject->GetClassInfo()->GetClassName());
40 - if( pEventObject->IsKindOf( CLASSINFO(wxFloatingPane) ) )
41 + if( pEventObject->IsKindOf( CLASSINFO(wxAuiFloatingFrame) ) )
43 wxClassInfo* pClassInfo = pEventObject->GetClassInfo();
44 while( NULL != pClassInfo )
46 TRACET(_T("CCamApp::Init Setting mainframe as top window"));
48 m_pMainFrame->CreateToolbars();
49 - m_pMainFrame->UpdateFrameManager();
50 + m_pMainFrame->UpdateManager();
52 // Show the main frame window
53 // make maximized if thats what we were last time, unless overridden by user
54 --- XaraLX-0.7r1766/wxOil/camframe.cpp.orig 2007-03-14 13:26:19.000000000 +0000
55 +++ XaraLX-0.7r1766/wxOil/camframe.cpp 2007-03-14 16:32:22.000000000 +0000
58 #if defined(USE_WXAUI)
60 -class CamFrameManager : public wxFrameManager
61 +class CamFrameManager : public wxAuiManager
64 DECLARE_CLASS( CamFrameManager )
67 CamFrameManager(wxFrame* frame = NULL, unsigned int /*TYPENOTE: Correct*/ flags = wxAUI_MGR_DEFAULT)
68 - : wxFrameManager(frame, flags)
69 + : wxAuiManager(frame, flags)
77 - void OnPaneClose(wxFrameManagerEvent& event)
78 + void OnPaneClose(wxAuiManagerEvent& event)
80 // For now just pretend cancel was clicked. This is sufficient to fool
81 // dialogmanager into closing the window it would seem
86 -IMPLEMENT_CLASS( CamFrameManager, wxFrameManager )
87 -BEGIN_EVENT_TABLE( CamFrameManager, wxFrameManager )
88 +IMPLEMENT_CLASS( CamFrameManager, wxAuiManager )
89 +BEGIN_EVENT_TABLE( CamFrameManager, wxAuiManager )
90 EVT_SIZE(CamFrameManager::OnSize)
91 EVT_MOVE(CamFrameManager::OnMove)
92 - EVT_AUI_PANECLOSE(CamFrameManager::OnPaneClose)
93 + EVT_AUI_PANE_CLOSE(CamFrameManager::OnPaneClose)
99 pColourBar->Create(this, 12345);
101 - wxPaneInfo paneinfo;
102 + wxAuiPaneInfo paneinfo;
103 paneinfo.BottomDockable().Bottom();
104 paneinfo.CaptionVisible(false);
105 m_pFrameManager->AddPane(pColourBar, paneinfo);
110 -void CCamFrame::UpdateFrameManager()
111 +void CCamFrame::UpdateManager()
113 #if defined(USE_WXAUI)
115 --- XaraLX-0.7r1766/wxOil/ccolbar.cpp.orig 2007-03-14 21:55:27.000000000 +0000
116 +++ XaraLX-0.7r1766/wxOil/ccolbar.cpp 2007-03-14 21:55:41.000000000 +0000
117 @@ -1070,7 +1070,7 @@
118 SetMinSize(wxSize(8, BarHeight));
120 InvalidateBestSize();
121 - GetMainFrame()->UpdateFrameManager();
122 + GetMainFrame()->UpdateManager();
126 @@ -3373,7 +3373,7 @@
129 TheColourBar->Refresh(true); // Redraw (clear to grey for tidier resize)
130 - GetMainFrame()->UpdateFrameManager(); // Resize to add/remove the scrollbar
131 + GetMainFrame()->UpdateManager(); // Resize to add/remove the scrollbar
135 @@ -4171,7 +4171,7 @@
137 TheColourBar->Show(false);
139 - GetMainFrame()->UpdateFrameManager(); // And ensure it places itself usefully!
140 + GetMainFrame()->UpdateManager(); // And ensure it places itself usefully!
144 --- XaraLX-0.7r1766/wxOil/dlgmgr.cpp.orig 2007-03-14 16:24:23.000000000 +0000
145 +++ XaraLX-0.7r1766/wxOil/dlgmgr.cpp 2007-03-14 17:39:51.000000000 +0000
147 // We really should take a wxPaneInfo() as an additional parameter to this function to allow this sort
148 // of stuff to be specified. Or try and retrieve it from the DialogBarOp or similar. Anyway, for now
149 // give it some default parameters
150 - wxPaneInfo paneinfo;
151 + wxAuiPaneInfo paneinfo;
152 if (!DlgOp->IsABar())
154 // default galleries to 300 deep. Specifying -1 as a width doesn't seem to work
155 @@ -519,19 +520,19 @@
157 // Ensure the main frame is shown if the pane is floating, or it can get "behind"
158 // the main frame on wxGTK
159 - if (paneinfo.IsFloating() && !CCamFrame::GetFrameManager()->GetManagedWindow()->IsShown())
160 - CCamFrame::GetFrameManager()->GetManagedWindow()->Show();
161 + if (paneinfo.IsFloating() && !CCamFrame::GetManager()->GetManagedWindow()->IsShown())
162 + CCamFrame::GetManager()->GetManagedWindow()->Show();
164 - CCamFrame::GetFrameManager()->AddPane(pDialogWnd, paneinfo);
165 + CCamFrame::GetManager()->AddPane(pDialogWnd, paneinfo);
167 - CCamFrame::GetMainFrame()->UpdateFrameManager();
168 + CCamFrame::GetMainFrame()->UpdateManager();
170 // Make sure newly created floating panes are at the top in an attempt to fix
171 // Bugzilla bug 1393 (can't duplicate here...)
172 wxWindow * pTLW = pDialogWnd;
173 while (pTLW->GetParent())
174 pTLW=pTLW->GetParent();
175 - if (pTLW->IsKindOf(CLASSINFO(wxFloatingPane)))
176 + if (pTLW->IsKindOf(CLASSINFO(wxAuiFloatingFrame)))
182 ********************************************************************************************/
184 -void DialogManager::LoadPaneInfo(wxString key, wxPaneInfo &paneinfo)
185 +void DialogManager::LoadPaneInfo(wxString key, wxAuiPaneInfo &paneinfo)
187 if (!s_pPaneInfoHash)
190 TRACEUSER("amb", _T("val=%s"), (const TCHAR *)(i->second));
192 wxString name = (wxString)((const TCHAR *)(i->second));
193 - CCamFrame::GetFrameManager()->LoadPaneInfo(name, paneinfo);
194 + CCamFrame::GetManager()->LoadPaneInfo(name, paneinfo);
197 /********************************************************************************************
200 ********************************************************************************************/
202 -void DialogManager::SavePaneInfo(wxString key, wxPaneInfo &paneinfo)
203 +void DialogManager::SavePaneInfo(wxString key, wxAuiPaneInfo &paneinfo)
205 // work around mysterious wxGTK sizing bug
206 if ((paneinfo.IsOk()) && (paneinfo.IsFloating()))
209 EnsurePanePreferenceDeclared(key);
211 - (*s_pPaneInfoHash)[key]=CCamFrame::GetFrameManager()->SavePaneInfo(paneinfo);
212 + (*s_pPaneInfoHash)[key]=CCamFrame::GetManager()->SavePaneInfo(paneinfo);
215 /********************************************************************************************
219 if (pDlgOp->pEvtHandler->wxAUImanaged)
220 - CCamFrame::GetMainFrame()->UpdateFrameManager();
221 + CCamFrame::GetMainFrame()->UpdateManager();
225 @@ -1040,7 +1041,7 @@
228 if (pDlgOp->pEvtHandler->wxAUImanaged)
229 - CCamFrame::GetMainFrame()->UpdateFrameManager();
230 + CCamFrame::GetMainFrame()->UpdateManager();
234 @@ -1088,7 +1089,7 @@
235 ERROR2IF(!WindowID, FALSE, "BringToTop called on a dialog without a window");
236 ( (wxWindow *)WindowID )->Raise();
237 if (pDlgOp->pEvtHandler->wxAUImanaged)
238 - CCamFrame::GetMainFrame()->UpdateFrameManager();
239 + CCamFrame::GetMainFrame()->UpdateManager();
243 @@ -1895,12 +1896,12 @@
245 if (pDlgOp->pEvtHandler->wxAUImanaged)
247 - wxPaneInfo paneinfo = CCamFrame::GetMainFrame()->GetFrameManager()->GetPane(pCWnd);
248 + wxAuiPaneInfo paneinfo = CCamFrame::GetMainFrame()->GetManager()->GetPane(pCWnd);
250 SavePaneInfo(wxString(CamResource::GetObjectName(pCWnd->GetId())), paneinfo);
251 // Remove the bar from wxAUI
252 - CCamFrame::GetMainFrame()->GetFrameManager()->DetachPane(pCWnd);
253 - CCamFrame::GetMainFrame()->UpdateFrameManager();
254 + CCamFrame::GetMainFrame()->GetManager()->DetachPane(pCWnd);
255 + CCamFrame::GetMainFrame()->UpdateManager();
258 // Delete all discardable strings associated with the dialog
259 --- XaraLX-0.7r1766/wxOil/camframe.h.orig 2007-03-14 13:26:22.000000000 +0000
260 +++ XaraLX-0.7r1766/wxOil/camframe.h 2007-03-14 16:32:09.000000000 +0000
262 #include <wx/fl/frmview.h>
263 // Forward definitions
265 -class wxFrameManager;
272 #if defined(USE_WXAUI)
273 - wxFrameManager *m_pFrameManager;
274 + wxAuiManager *m_pFrameManager;
276 wxStatusBar* m_pStatusBar;
278 @@ -130,13 +131,13 @@
281 static CCamFrame * GetMainFrame() {return m_pMainFrame;}
282 - static wxFrameManager * GetFrameManager() { return m_pMainFrame?m_pMainFrame->m_pFrameManager:NULL;}
283 + static wxAuiManager * GetManager() { return m_pMainFrame?m_pMainFrame->m_pFrameManager:NULL;}
285 wxStatusBar* GetStatusBar() const { return m_pStatusBar; }
287 BOOL CreateToolbars();
289 - void UpdateFrameManager();
290 + void UpdateManager();
293 bool Create( wxWindow *parent, wxWindowID id = -1, const wxString &caption = wxT("wxTemplate"),
294 --- XaraLX-0.7r1766/class-renaming.txt.orig 2007-03-14 15:08:35.000000000 +0000
295 +++ XaraLX-0.7r1766/class-renaming.txt 2007-03-14 15:08:35.000000000 +0000
297 +XaraLX name wxAui name
299 +wxFloatingPane wxAuiFloatingFrame
300 +wxFrameManager wxAuiManager
301 +wxFrameManagerEvent wxAuiManagerEvent
302 +wxPaneInfo wxAuiPaneInfo