forked from mia/Aegisub
add (rather useless) log window
Originally committed to SVN as r1019.
This commit is contained in:
parent
0abb0bd433
commit
cfd9065cb4
3 changed files with 14 additions and 0 deletions
|
@ -91,6 +91,8 @@ FrameMain::FrameMain (wxArrayString args)
|
||||||
// Set application's frame
|
// Set application's frame
|
||||||
AegisubApp::Get()->frame = this;
|
AegisubApp::Get()->frame = this;
|
||||||
|
|
||||||
|
LogWindow = new wxLogWindow(this, _T("Aegisub log window"), false);
|
||||||
|
|
||||||
// Initialize flags
|
// Initialize flags
|
||||||
HasSelection = false;
|
HasSelection = false;
|
||||||
menuCreated = false;
|
menuCreated = false;
|
||||||
|
@ -420,6 +422,7 @@ void FrameMain::InitMenu() {
|
||||||
AppendBitmapMenuItem(viewMenu,Menu_View_Language, _T("&Language..."), _("Select Aegisub interface language"), wxBITMAP(blank_button));
|
AppendBitmapMenuItem(viewMenu,Menu_View_Language, _T("&Language..."), _("Select Aegisub interface language"), wxBITMAP(blank_button));
|
||||||
AppendBitmapMenuItem(viewMenu,Menu_Tools_Options, _("&Options...") + wxString(_T("\t")) + Hotkeys.GetText(_T("Options")), _("Configure Aegisub"), wxBITMAP(options_button));
|
AppendBitmapMenuItem(viewMenu,Menu_Tools_Options, _("&Options...") + wxString(_T("\t")) + Hotkeys.GetText(_T("Options")), _("Configure Aegisub"), wxBITMAP(options_button));
|
||||||
AppendBitmapMenuItem(viewMenu,Menu_Tools_Hotkeys, _("&Hotkeys..."), _("Remap hotkeys"), wxBITMAP(hotkeys_button));
|
AppendBitmapMenuItem(viewMenu,Menu_Tools_Hotkeys, _("&Hotkeys..."), _("Remap hotkeys"), wxBITMAP(hotkeys_button));
|
||||||
|
AppendBitmapMenuItem(viewMenu,Menu_Tools_Log, _("Lo&g window..."), _("Open log window"), wxBITMAP(blank_button));
|
||||||
viewMenu->AppendSeparator();
|
viewMenu->AppendSeparator();
|
||||||
viewMenu->AppendRadioItem(Menu_View_Subs, _("Subs only view"), _("Display subtitles only"));
|
viewMenu->AppendRadioItem(Menu_View_Subs, _("Subs only view"), _("Display subtitles only"));
|
||||||
viewMenu->AppendRadioItem(Menu_View_Video, _("Video+Subs view"), _("Display video and subtitles only"));
|
viewMenu->AppendRadioItem(Menu_View_Video, _("Video+Subs view"), _("Display video and subtitles only"));
|
||||||
|
|
|
@ -99,6 +99,7 @@ private:
|
||||||
wxComboBox *ZoomBox;
|
wxComboBox *ZoomBox;
|
||||||
|
|
||||||
wxWindow *PreviousFocus;
|
wxWindow *PreviousFocus;
|
||||||
|
wxLogWindow *LogWindow;
|
||||||
|
|
||||||
Automation4::ScriptManager *local_scripts;
|
Automation4::ScriptManager *local_scripts;
|
||||||
|
|
||||||
|
@ -205,6 +206,7 @@ private:
|
||||||
void OnOpenKanjiTimer (wxCommandEvent &event);
|
void OnOpenKanjiTimer (wxCommandEvent &event);
|
||||||
void OnOpenHotkeys (wxCommandEvent &event);
|
void OnOpenHotkeys (wxCommandEvent &event);
|
||||||
void OnOpenOptions (wxCommandEvent &event);
|
void OnOpenOptions (wxCommandEvent &event);
|
||||||
|
void OnOpenLog (wxCommandEvent &event);
|
||||||
void OnGridEvent (wxCommandEvent &event);
|
void OnGridEvent (wxCommandEvent &event);
|
||||||
|
|
||||||
void OnOpenAutomation (wxCommandEvent &event);
|
void OnOpenAutomation (wxCommandEvent &event);
|
||||||
|
@ -361,6 +363,7 @@ enum {
|
||||||
Menu_Tools_Kanji_Timer,
|
Menu_Tools_Kanji_Timer,
|
||||||
Menu_Tools_Hotkeys,
|
Menu_Tools_Hotkeys,
|
||||||
Menu_Tools_Options,
|
Menu_Tools_Options,
|
||||||
|
Menu_Tools_Log,
|
||||||
|
|
||||||
Menu_Help_Contents,
|
Menu_Help_Contents,
|
||||||
Menu_Help_IRCChannel,
|
Menu_Help_IRCChannel,
|
||||||
|
|
|
@ -171,6 +171,7 @@ BEGIN_EVENT_TABLE(FrameMain, wxFrame)
|
||||||
EVT_MENU(Menu_Tools_Kanji_Timer, FrameMain::OnOpenKanjiTimer)
|
EVT_MENU(Menu_Tools_Kanji_Timer, FrameMain::OnOpenKanjiTimer)
|
||||||
EVT_MENU(Menu_Tools_Hotkeys, FrameMain::OnOpenHotkeys)
|
EVT_MENU(Menu_Tools_Hotkeys, FrameMain::OnOpenHotkeys)
|
||||||
EVT_MENU(Menu_Tools_Options, FrameMain::OnOpenOptions)
|
EVT_MENU(Menu_Tools_Options, FrameMain::OnOpenOptions)
|
||||||
|
EVT_MENU(Menu_Tools_Log, FrameMain::OnOpenLog)
|
||||||
|
|
||||||
EVT_MENU(Menu_Subs_Snap_Start_To_Video, FrameMain::OnSnapSubsStartToVid)
|
EVT_MENU(Menu_Subs_Snap_Start_To_Video, FrameMain::OnSnapSubsStartToVid)
|
||||||
EVT_MENU(Menu_Subs_Snap_End_To_Video, FrameMain::OnSnapSubsEndToVid)
|
EVT_MENU(Menu_Subs_Snap_End_To_Video, FrameMain::OnSnapSubsEndToVid)
|
||||||
|
@ -998,6 +999,13 @@ void FrameMain::OnOpenOptions (wxCommandEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////
|
||||||
|
// Open log window
|
||||||
|
void FrameMain::OnOpenLog (wxCommandEvent &event) {
|
||||||
|
LogWindow->Show(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////////
|
///////////////////
|
||||||
// Open Automation
|
// Open Automation
|
||||||
void FrameMain::OnOpenAutomation (wxCommandEvent &event) {
|
void FrameMain::OnOpenAutomation (wxCommandEvent &event) {
|
||||||
|
|
Loading…
Reference in a new issue