Make a large chunk of FrameMain's members private

Originally committed to SVN as r5212.
This commit is contained in:
Thomas Goyne 2011-01-16 07:17:17 +00:00
parent d84b768171
commit 362e4c776b
2 changed files with 15 additions and 16 deletions

View file

@ -1167,11 +1167,12 @@ void BaseGrid::OnKeyDown(wxKeyEvent &event) {
// Left/right, forward to seek bar if video is loaded
if (key == WXK_LEFT || key == WXK_RIGHT) {
if (context->IsLoaded()) {
parentFrame->videoBox->videoSlider->SetFocus();
parentFrame->videoBox->videoSlider->GetEventHandler()->ProcessEvent(event);
return;
/// todo: is this nessesary, or can left/right just be in the Subtitle Grid category?
hotkey::check("Video", event.GetKeyCode(), event.GetUnicodeKey(), event.GetModifiers());
}
else {
event.Skip();
}
event.Skip();
return;
}

View file

@ -137,6 +137,12 @@ private:
void InitContents();
void DeInitContents();
bool LoadList(wxArrayString list);
void UpdateTitle();
void InitMenu();
void SetUndoRedoDesc();
void OnKeyDown(wxKeyEvent &event);
void OnGridEvent (wxCommandEvent &event);
@ -163,7 +169,6 @@ private:
void OnSubtitlesOpen();
void OnSubtitlesSave();
public:
/// The subtitle editing area
SubtitlesGrid *SubsGrid;
@ -189,20 +194,13 @@ public:
/// Arranges audio and editing areas top to bottom
wxBoxSizer *ToolsSizer;
public:
FrameMain(wxArrayString args);
~FrameMain();
FrameMain (wxArrayString args);
~FrameMain ();
bool LoadList(wxArrayString list);
static void OpenHelp(wxString page=_T(""));
void UpdateTitle();
void InitMenu();
void UpdateToolbar();
void SetUndoRedoDesc();
static void OpenHelp(wxString page=_T(""));
bool HasASSDraw();
DECLARE_EVENT_TABLE()
};