From c82c0b0b93f99d82e9d17ff828f15f85b4ba16cf Mon Sep 17 00:00:00 2001 From: death2droid Date: Thu, 3 Sep 2009 07:56:35 +0000 Subject: [PATCH] Clean up some of the commenting. You do NOT need to use ///////////////////////////////////////////////////////////////////////////////////////////////////////// to signify the closing of a section when you are clearly showing the start of a new section after it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4179 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/CodeWindow.cpp | 19 ++++++------------- Source/Core/DolphinWX/Src/Frame.cpp | 21 ++++++--------------- 2 files changed, 12 insertions(+), 28 deletions(-) diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp index 57dc99b09a..dafc187994 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp @@ -74,13 +74,12 @@ class CPluginInfo; class CPluginManager; -///////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------- // Main -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + BEGIN_EVENT_TABLE(CCodeWindow, wxPanel) // Menu bar -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ EVT_MENU(IDM_INTERPRETER, CCodeWindow::OnCPUMode) // CPU Mode EVT_MENU(IDM_AUTOMATICSTART, CCodeWindow::OnCPUMode) EVT_MENU(IDM_BOOTTOPAUSE, CCodeWindow::OnCPUMode) @@ -130,7 +129,6 @@ EVT_MENU(IDM_WRITEPROFILE, CCodeWindow::OnProfilerMenu) //EVT_UPDATE_UI(wxID_ANY, CCodeWindow::OnStatusBar_) // Toolbar -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ EVT_MENU(IDM_DEBUG_GO, CCodeWindow::OnCodeStep) EVT_MENU(IDM_STEP, CCodeWindow::OnCodeStep) EVT_MENU(IDM_STEPOVER, CCodeWindow::OnCodeStep) @@ -141,7 +139,6 @@ EVT_TEXT(IDM_ADDRBOX, CCodeWindow::OnAddrBoxChange) // Other -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ EVT_LISTBOX(ID_SYMBOLLIST, CCodeWindow::OnSymbolListChange) EVT_LISTBOX(ID_CALLSTACKLIST, CCodeWindow::OnCallstackListChange) EVT_LISTBOX(ID_CALLERSLIST, CCodeWindow::OnCallersListChange) @@ -192,12 +189,10 @@ wxAuiToolBar *CCodeWindow::GetToolBar() { return Parent->m_ToolBarDebug; } -///////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ---------- // Events -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + void CCodeWindow::OnKeyDown(wxKeyEvent& event) { if ((event.GetKeyCode() == WXK_SPACE) && Parent->IsActive()) @@ -448,11 +443,11 @@ void CCodeWindow::CreateGUIControls(const SCoreStartupParameter& _LocalCoreStart sync_event.Init(); } -///////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------- // Menus -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + // Create CPU Mode menus void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter, wxMenuBar * _pMenuBar) { @@ -642,7 +637,6 @@ void CCodeWindow::OnJitMenu(wxCommandEvent& event) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Toolbar -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ void CCodeWindow::InitBitmaps() { // load original size 48x48 @@ -687,7 +681,6 @@ void CCodeWindow::PopulateToolbar(wxAuiToolBar* toolBar) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Update GUI -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ void CCodeWindow::Update() { diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index 1d3353fffc..5dbe8a35a0 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -24,7 +24,6 @@ // ---------- // Includes -// ---------- #include "Common.h" // Common #include "FileUtil.h" @@ -51,7 +50,6 @@ // ---------- // Resources -// ----------- extern "C" { #include "../resources/Dolphin.c" // Dolphin icon @@ -212,7 +210,6 @@ const wxEventType wxEVT_HOST_COMMAND = wxNewEventType(); BEGIN_EVENT_TABLE(CFrame, wxFrame) // Menu bar -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ EVT_MENU(wxID_OPEN, CFrame::OnOpen) EVT_MENU(wxID_EXIT, CFrame::OnQuit) EVT_MENU(IDM_HELPWEBSITE, CFrame::OnHelp) @@ -282,7 +279,6 @@ EVT_MENU_RANGE(IDM_FRAMESKIP0, IDM_FRAMESKIP9, CFrame::OnFrameSkip) EVT_MENU_RANGE(IDM_DRIVE1, IDM_DRIVE24, CFrame::OnBootDrive) // Other -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ EVT_CLOSE(CFrame::OnClose) EVT_SIZE(CFrame::OnResize) EVT_LIST_ITEM_ACTIVATED(LIST_CTRL, CFrame::OnGameListCtrl_ItemActivated) @@ -297,7 +293,6 @@ EVT_AUINOTEBOOK_ALLOW_DND(wxID_ANY, CFrame::OnAllowNotebookDnD) EVT_AUINOTEBOOK_PAGE_CHANGED(wxID_ANY, CFrame::OnNotebookPageChanged) // Post events to child panels -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ EVT_MENU(wxID_ANY, CFrame::PostEvent) EVT_TEXT(wxID_ANY, CFrame::PostEvent) //EVT_MENU_HIGHLIGHT_ALL(CFrame::PostMenuEvent) @@ -305,7 +300,7 @@ EVT_TEXT(wxID_ANY, CFrame::PostEvent) END_EVENT_TABLE() -//--------------- +// --------------- // Creation and close, quit functions CFrame::CFrame(wxFrame* parent, @@ -450,7 +445,7 @@ CFrame::CFrame(wxFrame* parent, // ------------------------- // Connect event handlers - // ---------- + wxTheApp->Connect(wxID_ANY, wxEVT_KEY_DOWN, // Keyboard wxKeyEventHandler(CFrame::OnKeyDown), (wxObject*)0, this); @@ -520,9 +515,8 @@ void CFrame::OnRestart(wxCommandEvent& WXUNUSED (event)) Close(true); } -///////////////////////////////////////////////////////////////////////////////////////////////////////// +// -------- // Events -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ void CFrame::OnClose(wxCloseEvent& event) { @@ -820,12 +814,10 @@ void CFrame::Update() } } #endif -///////////////////////////////////////////////////////////////////////////////////////////////////////// - -///////////////////////////////////////////////////////////////////////////////////////////////////////// +// -------- // Functions -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ + wxPanel* CFrame::CreateEmptyPanel() { wxPanel* Panel = new wxPanel(this, wxID_ANY); @@ -852,5 +844,4 @@ void CFrame::DoFullscreen(bool _F) // Restore saved perspective m_Mgr->LoadPerspective(AuiCurrent, true); } -} -///////////////////////////////////////////////////////////////////////////////////////////////////////// \ No newline at end of file +} \ No newline at end of file