mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
5ada887f94
This technically also fixes a memory leak in WatchView.cpp, because the table setting was done such that the grid wouldn't take ownership of the table, which means said table wouldn't be deleted in the grid's destructor.
44 lines
1016 B
C++
44 lines
1016 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <wx/defs.h>
|
|
#include <wx/event.h>
|
|
#include <wx/gdicmn.h>
|
|
#include <wx/panel.h>
|
|
#include <wx/string.h>
|
|
#include <wx/translation.h>
|
|
#include <wx/windowid.h>
|
|
#include <wx/aui/framemanager.h>
|
|
|
|
class CWatchView;
|
|
class wxWindow;
|
|
|
|
class CWatchWindow : public wxPanel
|
|
{
|
|
public:
|
|
CWatchWindow(wxWindow* parent,
|
|
wxWindowID id = wxID_ANY,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
|
|
const wxString& name = _("Watch"));
|
|
~CWatchWindow();
|
|
|
|
void NotifyUpdate();
|
|
void Event_SaveAll(wxCommandEvent& WXUNUSED(event));
|
|
void SaveAll();
|
|
void Event_LoadAll(wxCommandEvent& WXUNUSED(event));
|
|
void LoadAll();
|
|
|
|
private:
|
|
void CreateGUIControls();
|
|
|
|
wxAuiManager m_mgr;
|
|
|
|
// Owned by wx. Deleted implicitly upon destruction.
|
|
CWatchView* m_GPRGridView;
|
|
};
|