summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2009-08-27 10:46:43 +0000
committerJohn Peterson <jpeterson57@gmail.com>2009-08-27 10:46:43 +0000
commit273f8ed4e9b14acfa3e52248d170a093adbdbef0 (patch)
tree27ab1fc79cc3e8aadfc720d1d31f543064b7c241 /Source
parent843a07d22e4d3a4ae58717a75d863ea28e33de95 (diff)
GUI: Fix to last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4077 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Src/Frame.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp
index aad6f9e171..119a429768 100644
--- a/Source/Core/DolphinWX/Src/Frame.cpp
+++ b/Source/Core/DolphinWX/Src/Frame.cpp
@@ -429,12 +429,20 @@ CFrame::CFrame(bool showLogWindow,
m_Mgr->AddPane(m_NB0, wxAuiPaneInfo().Name(wxT("Pane1")).Caption(wxT("Pane1")).Hide());
}
+ // Setup perspectives
if (UseDebugger)
- {
- // Setup perspectives
+ {
m_Mgr->GetPane(wxT("Pane0")).CenterPane().PaneBorder(false);
AuiFullscreen = m_Mgr->SavePerspective();
+ }
+ // Create toolbar
+ RecreateToolbar();
+ if (!SConfig::GetInstance().m_InterfaceToolbar) DoToggleToolbar(false);
+
+ // Setup perspectives
+ if (UseDebugger)
+ {
m_Mgr->GetPane(wxT("Pane0")).Show().PaneBorder(true).CaptionVisible(false).Layer(0).Center().Position(0);
m_Mgr->GetPane(wxT("Pane1")).Show().PaneBorder(true).CaptionVisible(false).Layer(0).Center().Position(1);
m_Mgr->GetPane(wxT("Pane2")).Show().PaneBorder(true).CaptionVisible(false).Layer(0).Right();
@@ -462,10 +470,6 @@ CFrame::CFrame(bool showLogWindow,
AuiFullscreen = m_Mgr->SavePerspective();
m_Mgr->GetPane(wxT("Pane1")).Hide().PaneBorder(false).CaptionVisible(false).Layer(0).Right();
}
-
- // Create toolbar
- RecreateToolbar();
- if (!SConfig::GetInstance().m_InterfaceToolbar) DoToggleToolbar(false);
// Show titles to position the panes
/*
@@ -515,7 +519,7 @@ CFrame::CFrame(bool showLogWindow,
(wxObject*)0, this);
#ifdef _WIN32 // The functions are only tested in Windows so far
- wxTheApp->Connect(wxID_ANY, wxEVT_LEFT_DOWN, // Mouse
+ wxTheApp->Connect(wxID_ANY, wxEVT_LEFT_DOWN,
wxMouseEventHandler(CFrame::OnDoubleClick),
(wxObject*)0, this);
wxTheApp->Connect(wxID_ANY, wxEVT_MOTION,
@@ -534,16 +538,15 @@ CFrame::CFrame(bool showLogWindow,
//Core::WriteStatus();
#endif
}
-
// Destructor
CFrame::~CFrame()
{
cdio_free_device_list(drives);
-/* The statbar sample has this so I add this to, but I guess timer will be deleted after
- this anyway */
-#if wxUSE_TIMER
- if (m_timer.IsRunning()) m_timer.Stop();
-#endif
+ /* The statbar sample has this so I add this to, but I guess timer will be deleted after
+ this anyway */
+ #if wxUSE_TIMER
+ if (m_timer.IsRunning()) m_timer.Stop();
+ #endif
}
void CFrame::OnQuit(wxCommandEvent& WXUNUSED (event))