forked from mia/Aegisub
Delete some obsolete event handling in FrameMain
Originally committed to SVN as r5556.
This commit is contained in:
parent
5d07756838
commit
fb1e6fcbaf
2 changed files with 0 additions and 21 deletions
|
@ -239,24 +239,6 @@ FrameMain::~FrameMain () {
|
||||||
SubsGrid->Destroy();
|
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
|
/// @brief Initialize toolbar
|
||||||
void FrameMain::InitToolbar () {
|
void FrameMain::InitToolbar () {
|
||||||
wxSystemOptions::SetOption("msw.remap", 0);
|
wxSystemOptions::SetOption("msw.remap", 0);
|
||||||
|
|
|
@ -81,7 +81,6 @@ class FrameMain: public wxFrame {
|
||||||
void Freeze(void) {}
|
void Freeze(void) {}
|
||||||
void Thaw(void) {}
|
void Thaw(void) {}
|
||||||
#endif
|
#endif
|
||||||
void cmd_call(wxCommandEvent& event);
|
|
||||||
|
|
||||||
bool showVideo; ///< Is the video display shown?
|
bool showVideo; ///< Is the video display shown?
|
||||||
bool showAudio; ///< Is the audio display shown?
|
bool showAudio; ///< Is the audio display shown?
|
||||||
|
@ -104,7 +103,6 @@ class FrameMain: public wxFrame {
|
||||||
void UpdateTitle();
|
void UpdateTitle();
|
||||||
|
|
||||||
void OnKeyDown(wxKeyEvent &event);
|
void OnKeyDown(wxKeyEvent &event);
|
||||||
void OnMenuOpen (wxMenuEvent &event);
|
|
||||||
|
|
||||||
void OnAudioBoxResize(wxSashEvent &event);
|
void OnAudioBoxResize(wxSashEvent &event);
|
||||||
/// @brief Autosave the currently open file, if any
|
/// @brief Autosave the currently open file, if any
|
||||||
|
@ -126,7 +124,6 @@ class FrameMain: public wxFrame {
|
||||||
void OnSubtitlesOpen();
|
void OnSubtitlesOpen();
|
||||||
void OnSubtitlesSave();
|
void OnSubtitlesSave();
|
||||||
|
|
||||||
|
|
||||||
SubtitlesGrid *SubsGrid; ///< The subtitle editing area
|
SubtitlesGrid *SubsGrid; ///< The subtitle editing area
|
||||||
SubsEditBox *EditBox; ///< The subtitle editing textbox
|
SubsEditBox *EditBox; ///< The subtitle editing textbox
|
||||||
wxSashWindow *audioSash; ///< Sash for resizing the audio area
|
wxSashWindow *audioSash; ///< Sash for resizing the audio area
|
||||||
|
|
Loading…
Reference in a new issue