mirror of https://github.com/odrling/Aegisub
Delete some obsolete event handling in FrameMain
Originally committed to SVN as r5556.
This commit is contained in:
parent
5d07756838
commit
fb1e6fcbaf
|
@ -239,24 +239,6 @@ FrameMain::~FrameMain () {
|
|||
SubsGrid->Destroy();
|
||||
}
|
||||
|
||||
void FrameMain::cmd_call(wxCommandEvent& event) {
|
||||
int id = event.GetId();
|
||||
LOG_D("event/select") << "Id: " << id;
|
||||
if (id < cmd::count())
|
||||
cmd::call(context.get(), id);
|
||||
}
|
||||
|
||||
void FrameMain::OnMenuOpen(wxMenuEvent &event) {
|
||||
if (wxMenu *menu = event.GetMenu()) {
|
||||
wxMenuItemList& items = menu->GetMenuItems();
|
||||
for (wxMenuItemList::iterator it = items.begin(); it != items.end(); ++it) {
|
||||
if (wxMenu *submenu = (*it)->GetSubMenu()) {
|
||||
submenu->GetEventHandler()->QueueEvent(event.Clone());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @brief Initialize toolbar
|
||||
void FrameMain::InitToolbar () {
|
||||
wxSystemOptions::SetOption("msw.remap", 0);
|
||||
|
|
|
@ -81,7 +81,6 @@ class FrameMain: public wxFrame {
|
|||
void Freeze(void) {}
|
||||
void Thaw(void) {}
|
||||
#endif
|
||||
void cmd_call(wxCommandEvent& event);
|
||||
|
||||
bool showVideo; ///< Is the video display shown?
|
||||
bool showAudio; ///< Is the audio display shown?
|
||||
|
@ -104,7 +103,6 @@ class FrameMain: public wxFrame {
|
|||
void UpdateTitle();
|
||||
|
||||
void OnKeyDown(wxKeyEvent &event);
|
||||
void OnMenuOpen (wxMenuEvent &event);
|
||||
|
||||
void OnAudioBoxResize(wxSashEvent &event);
|
||||
/// @brief Autosave the currently open file, if any
|
||||
|
@ -126,7 +124,6 @@ class FrameMain: public wxFrame {
|
|||
void OnSubtitlesOpen();
|
||||
void OnSubtitlesSave();
|
||||
|
||||
|
||||
SubtitlesGrid *SubsGrid; ///< The subtitle editing area
|
||||
SubsEditBox *EditBox; ///< The subtitle editing textbox
|
||||
wxSashWindow *audioSash; ///< Sash for resizing the audio area
|
||||
|
|
Loading…
Reference in New Issue