mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
recording: various formatting and review corrections
Squashed commit: [7955b42e3] recording: Throw errors on fread/fwrite errors. [5a2160f9e] recording: Remove function implementation from header files [f2937ab5f] recording: Fixed UndoCount metadata bug and will gracefully fail if savestate is missing [d7f4d43e5] recording: Refactored code-style to be consistent [0f77fbb71] recording: Refactor to use switch statements [28d7945f6] recording: Resolve CMake warnings and use tagged github links for cross-linking to LilyPad [7c01c6cb4] recording: corrected disparity between comment and code [17a8bd8d6] recording: Remove all usages of #define [3830f5a82] recording: Refactor enums and general cleanup [569ef7d67] recording: Completely disable new console log sources when recording is disabled
This commit is contained in:
committed by
lightningterror
parent
08d923ca6f
commit
506ea4c4d2
@@ -17,17 +17,11 @@
|
||||
|
||||
#include "NewRecordingFrame.h"
|
||||
|
||||
enum {
|
||||
File,
|
||||
Author,
|
||||
From
|
||||
};
|
||||
|
||||
NewRecordingFrame::NewRecordingFrame(wxWindow *parent)
|
||||
: wxDialog(parent, wxID_ANY, "New Input Recording", wxDefaultPosition, wxDefaultSize, wxSTAY_ON_TOP | wxCAPTION)
|
||||
{
|
||||
wxPanel *panel = new wxPanel(this, wxID_ANY,
|
||||
wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _("panel"));
|
||||
wxPanel *panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _("panel"));
|
||||
|
||||
wxFlexGridSizer *fgs = new wxFlexGridSizer(4, 2, 20, 20);
|
||||
wxBoxSizer *container = new wxBoxSizer(wxVERTICAL);
|
||||
@@ -36,12 +30,12 @@ NewRecordingFrame::NewRecordingFrame(wxWindow *parent)
|
||||
m_authorLabel = new wxStaticText(panel, wxID_ANY, _("Author"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER);
|
||||
m_fromLabel = new wxStaticText(panel, wxID_ANY, _("Record From"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER);
|
||||
|
||||
m_filePicker = new wxFilePickerCtrl(panel, File, wxEmptyString, "File", L"p2m2 file(*.p2m2)|*.p2m2", wxDefaultPosition, wxDefaultSize, wxFLP_SAVE | wxFLP_OVERWRITE_PROMPT | wxFLP_USE_TEXTCTRL);
|
||||
m_authorInput = new wxTextCtrl(panel, Author, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER);
|
||||
m_filePicker = new wxFilePickerCtrl(panel, MenuIds_New_Recording_Frame_File, wxEmptyString, "File", L"p2m2 file(*.p2m2)|*.p2m2", wxDefaultPosition, wxDefaultSize, wxFLP_SAVE | wxFLP_OVERWRITE_PROMPT | wxFLP_USE_TEXTCTRL);
|
||||
m_authorInput = new wxTextCtrl(panel, MenuIds_New_Recording_Frame_Author, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER);
|
||||
wxArrayString choices;
|
||||
choices.Add("Current Frame");
|
||||
choices.Add("Power-On");
|
||||
m_fromChoice = new wxChoice(panel, From, wxDefaultPosition, wxDefaultSize, choices);
|
||||
m_fromChoice = new wxChoice(panel, MenuIds_New_Recording_Frame_From, wxDefaultPosition, wxDefaultSize, choices);
|
||||
m_fromChoice->SetSelection(0);
|
||||
|
||||
m_startRecording = new wxButton(panel, wxID_OK, _("Ok"), wxDefaultPosition, wxDefaultSize);
|
||||
@@ -65,17 +59,17 @@ NewRecordingFrame::NewRecordingFrame(wxWindow *parent)
|
||||
Centre();
|
||||
}
|
||||
|
||||
wxString NewRecordingFrame::getFile() const
|
||||
wxString NewRecordingFrame::GetFile() const
|
||||
{
|
||||
return m_filePicker->GetPath();
|
||||
}
|
||||
|
||||
wxString NewRecordingFrame::getAuthor() const
|
||||
wxString NewRecordingFrame::GetAuthor() const
|
||||
{
|
||||
return m_authorInput->GetValue();
|
||||
}
|
||||
|
||||
int NewRecordingFrame::getFrom() const
|
||||
int NewRecordingFrame::GetFrom() const
|
||||
{
|
||||
return m_fromChoice->GetSelection();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user