2006-01-16 22:02:54 +01:00
// Copyright (c) 2005, Rodrigo Braz Monteiro
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name of the Aegisub Group nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
2009-07-29 07:43:02 +02:00
// Aegisub Project http://www.aegisub.org/
2006-01-16 22:02:54 +01:00
//
2009-07-29 07:43:02 +02:00
// $Id$
/// @file frame_main_events.cpp
/// @brief Event handlers for controls in main window
/// @ingroup main_ui
2006-01-16 22:02:54 +01:00
2010-06-16 08:20:27 +02:00
////////////////// Include headers
2009-01-04 07:31:48 +01:00
# include "config.h"
2009-09-10 15:06:40 +02:00
# ifndef AGI_PRE
# include <wx/clipbrd.h>
2006-01-16 22:02:54 +01:00
# include <wx/filename.h>
2009-09-10 15:06:40 +02:00
# include <wx/mimetype.h>
2006-01-28 20:48:35 +01:00
# include <wx/rawbmp.h>
2007-06-21 02:46:50 +02:00
# include <wx/stdpaths.h>
2007-07-27 09:30:33 +02:00
# include <wx/sysopt.h>
2009-09-10 15:06:40 +02:00
# include <wx/tglbtn.h>
# endif
2006-12-28 21:56:28 +01:00
# include "ass_dialogue.h"
2009-09-10 15:06:40 +02:00
# include "ass_file.h"
2006-01-16 22:02:54 +01:00
# include "audio_box.h"
# include "audio_display.h"
2007-12-31 07:46:22 +01:00
# ifdef WITH_AUTOMATION
2006-12-28 23:31:33 +01:00
# include "auto4_base.h"
2007-12-31 07:46:22 +01:00
# endif
2010-05-21 03:13:36 +02:00
# include "compat.h"
2009-09-10 15:06:40 +02:00
# include "dialog_about.h"
# include "dialog_attachments.h"
2006-12-28 23:31:33 +01:00
# include "dialog_automation.h"
2007-04-02 20:28:09 +02:00
# include "dialog_dummy_video.h"
2009-09-10 15:06:40 +02:00
# include "dialog_export.h"
# include "dialog_fonts_collector.h"
# include "dialog_jumpto.h"
# include "dialog_kara_timing_copy.h"
2010-06-03 01:47:39 +02:00
# include "dialog_log.h"
2009-09-10 15:06:40 +02:00
# include "dialog_progress.h"
# include "dialog_properties.h"
# include "dialog_resample.h"
# include "dialog_search_replace.h"
# include "dialog_selection.h"
# include "dialog_shift_times.h"
2007-04-14 03:02:21 +02:00
# include "dialog_spellchecker.h"
2009-09-10 15:06:40 +02:00
# include "dialog_style_manager.h"
# include "dialog_styling_assistant.h"
# include "dialog_timing_processor.h"
# include "dialog_translation.h"
# include "dialog_version_check.h"
2007-08-20 00:21:41 +02:00
# include "dialog_video_details.h"
2009-09-10 15:06:40 +02:00
# include "frame_main.h"
2010-05-21 03:13:36 +02:00
# include "hotkeys.h"
2007-08-26 02:00:37 +02:00
# include "keyframe.h"
2009-07-24 02:08:25 +02:00
# include "libresrc/libresrc.h"
2009-09-10 15:06:40 +02:00
# include "main.h"
# include "options.h"
2010-05-21 03:13:36 +02:00
# include "preferences.h"
2009-09-10 15:06:40 +02:00
# include "standard_paths.h"
# include "subs_edit_box.h"
# include "subs_grid.h"
# include "toggle_bitmap.h"
# include "utils.h"
# include "vfr.h"
# include "video_box.h"
# include "video_context.h"
# include "video_display.h"
# include "video_slider.h"
2006-01-16 22:02:54 +01:00
2009-12-25 04:28:15 +01:00
# ifdef __APPLE__
extern " C " {
# include "libosxutil/libosxutil.h"
}
# endif
2006-01-16 22:02:54 +01:00
BEGIN_EVENT_TABLE ( FrameMain , wxFrame )
EVT_TIMER ( AutoSave_Timer , FrameMain : : OnAutoSave )
EVT_TIMER ( StatusClear_Timer , FrameMain : : OnStatusClear )
EVT_CLOSE ( FrameMain : : OnCloseWindow )
EVT_MENU_OPEN ( FrameMain : : OnMenuOpen )
2006-07-01 07:34:39 +02:00
EVT_MENU_RANGE ( Menu_File_Recent , Menu_File_Recent + 99 , FrameMain : : OnOpenRecentSubs )
EVT_MENU_RANGE ( Menu_Video_Recent , Menu_Video_Recent + 99 , FrameMain : : OnOpenRecentVideo )
EVT_MENU_RANGE ( Menu_Audio_Recent , Menu_Audio_Recent + 99 , FrameMain : : OnOpenRecentAudio )
EVT_MENU_RANGE ( Menu_Timecodes_Recent , Menu_Timecodes_Recent + 99 , FrameMain : : OnOpenRecentTimecodes )
2006-12-18 18:18:14 +01:00
EVT_MENU_RANGE ( Menu_Keyframes_Recent , Menu_Keyframes_Recent + 99 , FrameMain : : OnOpenRecentKeyframes )
2006-12-28 23:31:33 +01:00
EVT_MENU_RANGE ( Menu_Automation_Macro , Menu_Automation_Macro + 99 , FrameMain : : OnAutomationMacro )
2006-01-16 22:02:54 +01:00
2006-12-27 21:16:47 +01:00
EVT_MENU_RANGE ( MENU_GRID_START + 1 , MENU_GRID_END - 1 , FrameMain : : OnGridEvent )
2007-07-27 09:30:33 +02:00
EVT_MENU ( Menu_File_New_Window , FrameMain : : OnNewWindow )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_File_Exit , FrameMain : : OnExit )
EVT_MENU ( Menu_File_Open_Video , FrameMain : : OnOpenVideo )
EVT_MENU ( Menu_File_Close_Video , FrameMain : : OnCloseVideo )
EVT_MENU ( Menu_File_Open_Subtitles , FrameMain : : OnOpenSubtitles )
EVT_MENU ( Menu_File_Open_Subtitles_Charset , FrameMain : : OnOpenSubtitlesCharset )
2010-05-19 02:44:37 +02:00
EVT_MENU ( Menu_File_Open_Subtitles_From_Video , FrameMain : : OnOpenSubtitlesVideo )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_File_New_Subtitles , FrameMain : : OnNewSubtitles )
EVT_MENU ( Menu_File_Save_Subtitles , FrameMain : : OnSaveSubtitles )
EVT_MENU ( Menu_File_Save_Subtitles_As , FrameMain : : OnSaveSubtitlesAs )
EVT_MENU ( Menu_File_Save_Subtitles_With_Charset , FrameMain : : OnSaveSubtitlesCharset )
EVT_MENU ( Menu_File_Export_Subtitles , FrameMain : : OnExportSubtitles )
EVT_MENU ( Menu_File_Open_VFR , FrameMain : : OnOpenVFR )
2008-01-16 03:31:37 +01:00
EVT_MENU ( Menu_File_Save_VFR , FrameMain : : OnSaveVFR )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_File_Close_VFR , FrameMain : : OnCloseVFR )
2006-12-18 03:44:38 +01:00
EVT_MENU ( Menu_Video_Load_Keyframes , FrameMain : : OnOpenKeyframes )
EVT_MENU ( Menu_Video_Save_Keyframes , FrameMain : : OnSaveKeyframes )
EVT_MENU ( Menu_Video_Close_Keyframes , FrameMain : : OnCloseKeyframes )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_View_Zoom_50 , FrameMain : : OnSetZoom50 )
EVT_MENU ( Menu_View_Zoom_100 , FrameMain : : OnSetZoom100 )
EVT_MENU ( Menu_View_Zoom_200 , FrameMain : : OnSetZoom200 )
EVT_COMBOBOX ( Toolbar_Zoom_Dropdown , FrameMain : : OnSetZoom )
2010-05-01 03:07:05 +02:00
EVT_TEXT_ENTER ( Toolbar_Zoom_Dropdown , FrameMain : : OnSetZoom )
2007-01-11 06:33:36 +01:00
EVT_MENU ( Video_Frame_Play , FrameMain : : OnVideoPlay )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Video_Zoom_In , FrameMain : : OnZoomIn )
EVT_MENU ( Menu_Video_Zoom_Out , FrameMain : : OnZoomOut )
EVT_MENU ( Menu_Video_AR_Default , FrameMain : : OnSetARDefault )
EVT_MENU ( Menu_Video_AR_Full , FrameMain : : OnSetARFull )
EVT_MENU ( Menu_Video_AR_Wide , FrameMain : : OnSetARWide )
2006-05-16 01:44:53 +02:00
EVT_MENU ( Menu_Video_AR_235 , FrameMain : : OnSetAR235 )
EVT_MENU ( Menu_Video_AR_Custom , FrameMain : : OnSetARCustom )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Video_JumpTo , FrameMain : : OnJumpTo )
EVT_MENU ( Menu_Video_Select_Visible , FrameMain : : OnSelectVisible )
2007-01-23 05:42:08 +01:00
EVT_MENU ( Menu_Video_Detach , FrameMain : : OnDetachVideo )
2007-04-02 20:28:09 +02:00
EVT_MENU ( Menu_Video_Dummy , FrameMain : : OnDummyVideo )
2007-06-28 23:35:37 +02:00
EVT_MENU ( Menu_Video_Overscan , FrameMain : : OnOverscan )
2007-08-20 00:21:41 +02:00
EVT_MENU ( Menu_Video_Details , FrameMain : : OnOpenVideoDetails )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Audio_Open_File , FrameMain : : OnOpenAudio )
EVT_MENU ( Menu_Audio_Open_From_Video , FrameMain : : OnOpenAudioFromVideo )
EVT_MENU ( Menu_Audio_Close , FrameMain : : OnCloseAudio )
2007-07-23 17:19:48 +02:00
# ifdef _DEBUG
EVT_MENU ( Menu_Audio_Open_Dummy , FrameMain : : OnOpenDummyAudio )
EVT_MENU ( Menu_Audio_Open_Dummy_Noise , FrameMain : : OnOpenDummyNoiseAudio )
# endif
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Edit_Undo , FrameMain : : OnUndo )
2006-02-20 22:32:58 +01:00
EVT_MENU ( Menu_Edit_Redo , FrameMain : : OnRedo )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Edit_Cut , FrameMain : : OnCut )
EVT_MENU ( Menu_Edit_Copy , FrameMain : : OnCopy )
EVT_MENU ( Menu_Edit_Paste , FrameMain : : OnPaste )
2006-12-17 19:30:19 +01:00
EVT_MENU ( Menu_Edit_Paste_Over , FrameMain : : OnPasteOver )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Edit_Find , FrameMain : : OnFind )
EVT_MENU ( Menu_Edit_Find_Next , FrameMain : : OnFindNext )
EVT_MENU ( Menu_Edit_Replace , FrameMain : : OnReplace )
EVT_MENU ( Menu_Edit_Shift , FrameMain : : OnShift )
EVT_MENU ( Menu_Edit_Select , FrameMain : : OnSelect )
2010-05-19 02:44:44 +02:00
EVT_MENU ( Menu_Subtitles_Sort_Start , FrameMain : : OnSortStart )
EVT_MENU ( Menu_Subtitles_Sort_End , FrameMain : : OnSortEnd )
EVT_MENU ( Menu_Subtitles_Sort_Style , FrameMain : : OnSortStyle )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Tools_Properties , FrameMain : : OnOpenProperties )
EVT_MENU ( Menu_Tools_Styles_Manager , FrameMain : : OnOpenStylesManager )
2006-07-01 04:27:37 +02:00
EVT_MENU ( Menu_Tools_Attachments , FrameMain : : OnOpenAttachments )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Tools_Translation , FrameMain : : OnOpenTranslation )
EVT_MENU ( Menu_Tools_SpellCheck , FrameMain : : OnOpenSpellCheck )
EVT_MENU ( Menu_Tools_Fonts_Collector , FrameMain : : OnOpenFontsCollector )
EVT_MENU ( Menu_Tools_Automation , FrameMain : : OnOpenAutomation )
EVT_MENU ( Menu_Tools_Styling , FrameMain : : OnOpenStylingAssistant )
EVT_MENU ( Menu_Tools_Resample , FrameMain : : OnOpenResample )
EVT_MENU ( Menu_Tools_Timing_Processor , FrameMain : : OnOpenTimingProcessor )
2007-01-13 03:22:28 +01:00
EVT_MENU ( Menu_Tools_Kanji_Timer , FrameMain : : OnOpenKanjiTimer )
2010-05-21 03:13:36 +02:00
EVT_MENU ( Menu_Tools_Options , FrameMain : : OnOpenPreferences )
2008-01-20 18:34:35 +01:00
EVT_MENU ( Menu_Tools_ASSDraw , FrameMain : : OnOpenASSDraw )
2006-01-16 22:02:54 +01:00
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_Video_To_Start , FrameMain : : OnSnapVidToSubsStart )
EVT_MENU ( Menu_Subs_Snap_Video_To_End , FrameMain : : OnSnapVidToSubsEnd )
EVT_MENU ( Menu_Video_Snap_To_Scene , FrameMain : : OnSnapToScene )
EVT_MENU ( Menu_Video_Shift_To_Frame , FrameMain : : OnShiftToFrame )
EVT_MENU ( Menu_Help_Contents , FrameMain : : OnContents )
2009-12-25 04:28:15 +01:00
EVT_MENU ( Menu_Help_Files , FrameMain : : OnFiles )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Help_Website , FrameMain : : OnWebsite )
2006-02-23 20:26:14 +01:00
EVT_MENU ( Menu_Help_Forums , FrameMain : : OnForums )
EVT_MENU ( Menu_Help_BugTracker , FrameMain : : OnBugTracker )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Help_IRCChannel , FrameMain : : OnIRCChannel )
2007-01-07 23:54:04 +01:00
EVT_MENU ( Menu_Help_Check_Updates , FrameMain : : OnCheckUpdates )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_Help_About , FrameMain : : OnAbout )
2010-06-03 01:47:39 +02:00
EVT_MENU ( Menu_Help_Log , FrameMain : : OnLog )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Menu_View_Language , FrameMain : : OnChooseLanguage )
EVT_MENU ( Menu_View_Standard , FrameMain : : OnViewStandard )
EVT_MENU ( Menu_View_Audio , FrameMain : : OnViewAudio )
EVT_MENU ( Menu_View_Video , FrameMain : : OnViewVideo )
EVT_MENU ( Menu_View_Subs , FrameMain : : OnViewSubs )
2010-04-30 22:42:07 +02:00
EVT_MENU ( Menu_View_FullTags , FrameMain : : OnSetTags )
EVT_MENU ( Menu_View_ShortTags , FrameMain : : OnSetTags )
EVT_MENU ( Menu_View_NoTags , FrameMain : : OnSetTags )
2006-01-16 22:02:54 +01:00
EVT_MENU ( Video_Prev_Frame , FrameMain : : OnPrevFrame )
EVT_MENU ( Video_Next_Frame , FrameMain : : OnNextFrame )
EVT_MENU ( Video_Focus_Seek , FrameMain : : OnFocusSeek )
EVT_MENU ( Grid_Next_Line , FrameMain : : OnNextLine )
EVT_MENU ( Grid_Prev_Line , FrameMain : : OnPrevLine )
EVT_MENU ( Grid_Toggle_Tags , FrameMain : : OnToggleTags )
2006-12-24 18:42:09 +01:00
EVT_MENU ( Edit_Box_Commit , FrameMain : : OnEditBoxCommit )
2006-05-05 20:52:09 +02:00
2006-12-30 23:08:23 +01:00
EVT_MENU ( Medusa_Play , FrameMain : : OnMedusaPlay )
EVT_MENU ( Medusa_Stop , FrameMain : : OnMedusaStop )
EVT_MENU ( Medusa_Play_After , FrameMain : : OnMedusaPlayAfter )
EVT_MENU ( Medusa_Play_Before , FrameMain : : OnMedusaPlayBefore )
2007-07-27 10:24:49 +02:00
EVT_MENU ( Medusa_Next , FrameMain : : OnMedusaNext )
EVT_MENU ( Medusa_Prev , FrameMain : : OnMedusaPrev )
2006-12-30 23:08:23 +01:00
EVT_MENU ( Medusa_Shift_Start_Forward , FrameMain : : OnMedusaShiftStartForward )
EVT_MENU ( Medusa_Shift_Start_Back , FrameMain : : OnMedusaShiftStartBack )
EVT_MENU ( Medusa_Shift_End_Forward , FrameMain : : OnMedusaShiftEndForward )
EVT_MENU ( Medusa_Shift_End_Back , FrameMain : : OnMedusaShiftEndBack )
2007-07-27 10:24:49 +02:00
EVT_MENU ( Medusa_Enter , FrameMain : : OnMedusaEnter )
2006-06-19 04:57:27 +02:00
# ifdef __WXMAC__
EVT_MENU ( wxID_ABOUT , FrameMain : : OnAbout )
EVT_MENU ( wxID_EXIT , FrameMain : : OnExit )
# endif
2006-01-16 22:02:54 +01:00
END_EVENT_TABLE ( )
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Redirect grid events to grid
/// @param event
2006-12-27 21:16:47 +01:00
void FrameMain : : OnGridEvent ( wxCommandEvent & event ) {
2010-06-16 08:20:33 +02:00
SubsGrid - > GetEventHandler ( ) - > ProcessEvent ( event ) ;
2006-12-27 21:16:47 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Rebuild recent list
/// @param listName
/// @param menu
/// @param startID
2007-04-08 04:19:21 +02:00
void FrameMain : : RebuildRecentList ( wxString listName , wxMenu * menu , int startID ) {
// Wipe previous list
int count = ( int ) menu - > GetMenuItemCount ( ) ;
for ( int i = count ; - - i > = 0 ; ) {
menu - > Destroy ( menu - > FindItemByPosition ( i ) ) ;
}
// Rebuild
int added = 0 ;
wxString n ;
2010-05-21 03:13:36 +02:00
wxArrayString entries = lagi_MRU_wxAS ( listName ) ;
2007-04-08 04:19:21 +02:00
for ( size_t i = 0 ; i < entries . Count ( ) ; i + + ) {
n = wxString : : Format ( _T ( " %i " ) , i + 1 ) ;
if ( i < 9 ) n = _T ( " & " ) + n ;
wxFileName shortname ( entries [ i ] ) ;
wxString filename = shortname . GetFullName ( ) ;
menu - > Append ( startID + i , n + _T ( " " ) + filename ) ;
added + + ;
}
// Nothing added, add an empty placeholder
if ( added = = 0 ) menu - > Append ( startID , _ ( " Empty " ) ) - > Enable ( false ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Menu is being opened
/// @param event
2006-01-16 22:02:54 +01:00
void FrameMain : : OnMenuOpen ( wxMenuEvent & event ) {
// Get menu
2007-04-08 04:19:21 +02:00
MenuBar - > Freeze ( ) ;
2006-01-16 22:02:54 +01:00
wxMenu * curMenu = event . GetMenu ( ) ;
// File menu
if ( curMenu = = fileMenu ) {
// Rebuild recent
2010-05-21 03:13:36 +02:00
RebuildRecentList ( _T ( " Subtitle " ) , RecentSubs , Menu_File_Recent ) ;
2010-05-19 02:44:37 +02:00
MenuBar - > Enable ( Menu_File_Open_Subtitles_From_Video , VideoContext : : Get ( ) - > HasSubtitles ( ) ) ;
2006-01-16 22:02:54 +01:00
}
// View menu
else if ( curMenu = = viewMenu ) {
// Flags
bool aud = audioBox - > audioDisplay - > loaded ;
2009-10-12 00:10:08 +02:00
bool vid = VideoContext : : Get ( ) - > IsLoaded ( ) & & ! detachedVideo ;
2006-01-16 22:02:54 +01:00
// Set states
MenuBar - > Enable ( Menu_View_Audio , aud ) ;
MenuBar - > Enable ( Menu_View_Video , vid ) ;
MenuBar - > Enable ( Menu_View_Standard , aud & & vid ) ;
// Select option
2007-01-23 05:42:08 +01:00
if ( ! showVideo & & ! showAudio ) MenuBar - > Check ( Menu_View_Subs , true ) ;
else if ( showVideo & & ! showAudio ) MenuBar - > Check ( Menu_View_Video , true ) ;
2007-03-31 05:23:46 +02:00
else if ( showAudio & & showVideo ) MenuBar - > Check ( Menu_View_Standard , true ) ;
2007-01-23 05:42:08 +01:00
else MenuBar - > Check ( Menu_View_Audio , true ) ;
2010-04-30 22:42:07 +02:00
2010-05-21 03:13:36 +02:00
MenuBar - > Check ( OPT_GET ( " Subtitle/Grid/Hide Overrides " ) - > GetInt ( ) + Menu_View_FullTags , true ) ;
2006-01-16 22:02:54 +01:00
}
// Video menu
else if ( curMenu = = videoMenu ) {
2007-01-21 07:30:19 +01:00
bool state = VideoContext : : Get ( ) - > IsLoaded ( ) ;
2009-10-10 17:21:26 +02:00
bool attached = state & & ! detachedVideo ;
2006-01-16 22:02:54 +01:00
// Set states
2007-04-08 04:19:21 +02:00
MenuBar - > Enable ( Menu_Video_JumpTo , state ) ;
MenuBar - > Enable ( Menu_Subs_Snap_Video_To_Start , state ) ;
MenuBar - > Enable ( Menu_Subs_Snap_Video_To_End , state ) ;
2009-10-10 17:21:26 +02:00
MenuBar - > Enable ( Menu_View_Zoom , attached ) ;
MenuBar - > Enable ( Menu_View_Zoom_50 , attached ) ;
MenuBar - > Enable ( Menu_View_Zoom_100 , attached ) ;
MenuBar - > Enable ( Menu_View_Zoom_200 , attached ) ;
2006-01-16 22:02:54 +01:00
MenuBar - > Enable ( Menu_File_Close_Video , state ) ;
2009-10-10 17:21:26 +02:00
MenuBar - > Enable ( Menu_Video_AR , attached ) ;
MenuBar - > Enable ( Menu_Video_AR_Default , attached ) ;
MenuBar - > Enable ( Menu_Video_AR_Full , attached ) ;
MenuBar - > Enable ( Menu_Video_AR_Wide , attached ) ;
MenuBar - > Enable ( Menu_Video_AR_235 , attached ) ;
MenuBar - > Enable ( Menu_Video_AR_Custom , attached ) ;
2009-10-12 00:10:08 +02:00
MenuBar - > Enable ( Menu_Video_Detach , state ) ;
2008-01-16 03:31:37 +01:00
MenuBar - > Enable ( Menu_File_Save_VFR , VFR_Output . GetFrameRateType ( ) = = VFR ) ;
2006-12-18 03:44:38 +01:00
MenuBar - > Enable ( Menu_File_Close_VFR , VFR_Output . GetFrameRateType ( ) = = VFR ) ;
2007-01-21 07:30:19 +01:00
MenuBar - > Enable ( Menu_Video_Close_Keyframes , VideoContext : : Get ( ) - > OverKeyFramesLoaded ( ) ) ;
MenuBar - > Enable ( Menu_Video_Save_Keyframes , VideoContext : : Get ( ) - > KeyFramesLoaded ( ) ) ;
2007-08-20 00:21:41 +02:00
MenuBar - > Enable ( Menu_Video_Details , state ) ;
MenuBar - > Enable ( Menu_Video_Overscan , state ) ;
2006-01-16 22:02:54 +01:00
// Set AR radio
2007-01-23 07:32:16 +01:00
int arType = VideoContext : : Get ( ) - > GetAspectRatioType ( ) ;
2006-05-16 01:44:53 +02:00
MenuBar - > Check ( Menu_Video_AR_Default , false ) ;
MenuBar - > Check ( Menu_Video_AR_Full , false ) ;
MenuBar - > Check ( Menu_Video_AR_Wide , false ) ;
MenuBar - > Check ( Menu_Video_AR_235 , false ) ;
MenuBar - > Check ( Menu_Video_AR_Custom , false ) ;
switch ( arType ) {
case 0 : MenuBar - > Check ( Menu_Video_AR_Default , true ) ; break ;
case 1 : MenuBar - > Check ( Menu_Video_AR_Full , true ) ; break ;
case 2 : MenuBar - > Check ( Menu_Video_AR_Wide , true ) ; break ;
case 3 : MenuBar - > Check ( Menu_Video_AR_235 , true ) ; break ;
case 4 : MenuBar - > Check ( Menu_Video_AR_Custom , true ) ; break ;
}
2006-01-16 22:02:54 +01:00
2007-06-28 23:35:37 +02:00
// Set overscan mask
2010-05-21 03:13:36 +02:00
MenuBar - > Check ( Menu_Video_Overscan , OPT_GET ( " Video/Overscan Mask " ) - > GetBool ( ) ) ;
2007-06-28 23:35:37 +02:00
2007-04-08 04:19:21 +02:00
// Rebuild recent lists
2010-05-21 03:13:36 +02:00
RebuildRecentList ( _T ( " Video " ) , RecentVids , Menu_Video_Recent ) ;
RebuildRecentList ( _T ( " Timecodes " ) , RecentTimecodes , Menu_Timecodes_Recent ) ;
RebuildRecentList ( _T ( " Keyframes " ) , RecentKeyframes , Menu_Keyframes_Recent ) ;
2006-01-16 22:02:54 +01:00
}
// Audio menu
else if ( curMenu = = audioMenu ) {
bool state = audioBox - > loaded ;
2007-01-21 07:30:19 +01:00
bool vidstate = VideoContext : : Get ( ) - > IsLoaded ( ) ;
2006-01-16 22:02:54 +01:00
MenuBar - > Enable ( Menu_Audio_Open_From_Video , vidstate ) ;
MenuBar - > Enable ( Menu_Audio_Close , state ) ;
// Rebuild recent
2010-05-21 03:13:36 +02:00
RebuildRecentList ( _T ( " Audio " ) , RecentAuds , Menu_Audio_Recent ) ;
2006-01-16 22:02:54 +01:00
}
2006-12-27 21:35:50 +01:00
// Subtitles menu
else if ( curMenu = = subtitlesMenu ) {
// Variables
bool continuous ;
2010-06-16 08:20:33 +02:00
wxArrayInt sels = SubsGrid - > GetSelection ( & continuous ) ;
2006-12-27 21:35:50 +01:00
int count = sels . Count ( ) ;
bool state , state2 ;
// Entries
state = count > 0 ;
MenuBar - > Enable ( MENU_INSERT_BEFORE , state ) ;
MenuBar - > Enable ( MENU_INSERT_AFTER , state ) ;
MenuBar - > Enable ( MENU_SPLIT_BY_KARAOKE , state ) ;
2007-04-08 04:19:21 +02:00
MenuBar - > Enable ( MENU_DELETE , state ) ;
2007-01-21 07:30:19 +01:00
state2 = count > 0 & & VideoContext : : Get ( ) - > IsLoaded ( ) ;
2006-12-27 21:35:50 +01:00
MenuBar - > Enable ( MENU_INSERT_BEFORE_VIDEO , state2 ) ;
MenuBar - > Enable ( MENU_INSERT_AFTER_VIDEO , state2 ) ;
MenuBar - > Enable ( Menu_Subtitles_Insert , state ) ;
state = count > 0 & & continuous ;
MenuBar - > Enable ( MENU_DUPLICATE , state ) ;
state = count > 0 & & continuous & & VFR_Output . IsLoaded ( ) ;
MenuBar - > Enable ( MENU_DUPLICATE_NEXT_FRAME , state ) ;
state = count = = 2 ;
MenuBar - > Enable ( MENU_SWAP , state ) ;
state = count > = 2 & & continuous ;
MenuBar - > Enable ( MENU_JOIN_CONCAT , state ) ;
MenuBar - > Enable ( MENU_JOIN_REPLACE , state ) ;
MenuBar - > Enable ( MENU_JOIN_AS_KARAOKE , state ) ;
MenuBar - > Enable ( Menu_Subtitles_Join , state ) ;
2006-12-30 23:38:05 +01:00
state = ( count = = 2 | | count = = 3 ) & & continuous ;
MenuBar - > Enable ( MENU_RECOMBINE , state ) ;
2006-12-27 21:35:50 +01:00
}
2006-12-27 02:56:34 +01:00
// Timing menu
else if ( curMenu = = timingMenu ) {
2006-12-27 21:35:50 +01:00
// Variables
bool continuous ;
2010-06-16 08:20:33 +02:00
wxArrayInt sels = SubsGrid - > GetSelection ( & continuous ) ;
2006-12-27 21:35:50 +01:00
int count = sels . Count ( ) ;
// Video related
2007-01-21 07:30:19 +01:00
bool state = VideoContext : : Get ( ) - > IsLoaded ( ) ;
2007-04-08 04:19:21 +02:00
MenuBar - > Enable ( Menu_Subs_Snap_Start_To_Video , state ) ;
MenuBar - > Enable ( Menu_Subs_Snap_End_To_Video , state ) ;
MenuBar - > Enable ( Menu_Video_Snap_To_Scene , state ) ;
MenuBar - > Enable ( Menu_Video_Shift_To_Frame , state ) ;
2006-12-27 21:35:50 +01:00
// Other
state = count > = 2 & & continuous ;
MenuBar - > Enable ( MENU_ADJOIN , state ) ;
MenuBar - > Enable ( MENU_ADJOIN2 , state ) ;
2006-12-27 02:56:34 +01:00
}
2006-01-16 22:02:54 +01:00
// Edit menu
else if ( curMenu = = editMenu ) {
// Undo state
2010-02-21 07:09:28 +01:00
wxMenuItem * item ;
2010-01-21 01:24:59 +01:00
wxString undo_text = _ ( " &Undo " ) + wxString ( _T ( " " ) ) + AssFile : : GetUndoDescription ( ) + wxString ( _T ( " \t " ) ) + Hotkeys . GetText ( _T ( " Undo " ) ) ;
2010-02-21 07:09:28 +01:00
item = editMenu - > FindItem ( Menu_Edit_Undo ) ;
item - > SetItemLabel ( undo_text ) ;
item - > Enable ( ! AssFile : : IsUndoStackEmpty ( ) ) ;
2010-01-21 01:24:59 +01:00
2010-02-21 07:09:28 +01:00
// Redo state
2010-01-21 01:24:59 +01:00
wxString redo_text = _ ( " &Redo " ) + wxString ( _T ( " " ) ) + AssFile : : GetRedoDescription ( ) + wxString ( _T ( " \t " ) ) + Hotkeys . GetText ( _T ( " Redo " ) ) ;
2010-02-21 07:09:28 +01:00
item = editMenu - > FindItem ( Menu_Edit_Redo ) ;
item - > SetItemLabel ( redo_text ) ;
item - > Enable ( ! AssFile : : IsRedoStackEmpty ( ) ) ;
2007-01-26 01:47:42 +01:00
2006-01-16 22:02:54 +01:00
// Copy/cut/paste
2010-06-16 08:20:33 +02:00
wxArrayInt sels = SubsGrid - > GetSelection ( ) ;
2009-06-06 04:16:20 +02:00
bool can_copy = ( sels . Count ( ) > 0 ) ;
2010-01-21 01:24:59 +01:00
2009-06-06 04:16:20 +02:00
bool can_paste = true ;
if ( wxTheClipboard - > Open ( ) ) {
can_paste = wxTheClipboard - > IsSupported ( wxDF_TEXT ) ;
wxTheClipboard - > Close ( ) ;
}
MenuBar - > Enable ( Menu_Edit_Cut , can_copy ) ;
MenuBar - > Enable ( Menu_Edit_Copy , can_copy ) ;
MenuBar - > Enable ( Menu_Edit_Paste , can_paste ) ;
MenuBar - > Enable ( Menu_Edit_Paste_Over , can_copy & & can_paste ) ;
2006-01-16 22:02:54 +01:00
}
2006-12-28 23:31:33 +01:00
// Automation menu
2007-12-31 07:46:22 +01:00
# ifdef WITH_AUTOMATION
2006-12-28 23:31:33 +01:00
else if ( curMenu = = automationMenu ) {
2007-01-05 20:52:39 +01:00
// Remove old macro items
for ( unsigned int i = 0 ; i < activeMacroItems . size ( ) ; i + + ) {
wxMenu * p = 0 ;
wxMenuItem * it = MenuBar - > FindItem ( Menu_Automation_Macro + i , & p ) ;
if ( it )
p - > Delete ( it ) ;
}
activeMacroItems . clear ( ) ;
// Add new ones
int added = 0 ;
added + = AddMacroMenuItems ( automationMenu , wxGetApp ( ) . global_scripts - > GetMacros ( ) ) ;
added + = AddMacroMenuItems ( automationMenu , local_scripts - > GetMacros ( ) ) ;
// If none were added, show a ghosted notice
if ( added = = 0 ) {
automationMenu - > Append ( Menu_Automation_Macro , _ ( " No Automation macros loaded " ) ) - > Enable ( false ) ;
activeMacroItems . push_back ( 0 ) ;
}
2006-12-28 23:31:33 +01:00
}
2007-12-31 07:46:22 +01:00
# endif
2006-12-28 23:31:33 +01:00
2007-04-08 04:19:21 +02:00
MenuBar - > Thaw ( ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Macro menu creation helper
/// @param menu
/// @param macros
/// @return
2007-01-05 20:52:39 +01:00
int FrameMain : : AddMacroMenuItems ( wxMenu * menu , const std : : vector < Automation4 : : FeatureMacro * > & macros ) {
2007-12-31 07:46:22 +01:00
# ifdef WITH_AUTOMATION
2006-12-28 23:31:33 +01:00
if ( macros . empty ( ) ) {
2007-01-05 20:52:39 +01:00
return 0 ;
2006-12-28 23:31:33 +01:00
}
int id = activeMacroItems . size ( ) ; ;
for ( std : : vector < Automation4 : : FeatureMacro * > : : const_iterator i = macros . begin ( ) ; i ! = macros . end ( ) ; + + i ) {
wxMenuItem * m = menu - > Append ( Menu_Automation_Macro + id , ( * i ) - > GetName ( ) , ( * i ) - > GetDescription ( ) ) ;
2010-06-16 08:20:33 +02:00
m - > Enable ( ( * i ) - > Validate ( SubsGrid - > ass , SubsGrid - > GetAbsoluteSelection ( ) , SubsGrid - > GetFirstSelRow ( ) ) ) ;
2006-12-28 23:31:33 +01:00
activeMacroItems . push_back ( * i ) ;
id + + ;
}
2007-01-05 20:52:39 +01:00
return macros . size ( ) ;
2007-12-31 07:46:22 +01:00
# else
return 0 ;
# endif
2006-12-28 23:31:33 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open recent subs menu entry
/// @param event
2006-01-16 22:02:54 +01:00
void FrameMain : : OnOpenRecentSubs ( wxCommandEvent & event ) {
int number = event . GetId ( ) - Menu_File_Recent ;
2010-06-18 04:23:27 +02:00
LoadSubtitles ( lagi_wxString ( config : : mru - > GetEntry ( " Subtitle " , number ) ) ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open recent video menu entry
/// @param event
2006-01-16 22:02:54 +01:00
void FrameMain : : OnOpenRecentVideo ( wxCommandEvent & event ) {
int number = event . GetId ( ) - Menu_Video_Recent ;
2010-06-18 04:23:27 +02:00
LoadVideo ( lagi_wxString ( config : : mru - > GetEntry ( " Video " , number ) ) ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open recent timecodes entry
/// @param event
2006-07-01 07:34:39 +02:00
void FrameMain : : OnOpenRecentTimecodes ( wxCommandEvent & event ) {
int number = event . GetId ( ) - Menu_Timecodes_Recent ;
2010-06-18 04:23:27 +02:00
LoadVFR ( lagi_wxString ( config : : mru - > GetEntry ( " Timecodes " , number ) ) ) ;
2006-07-01 07:34:39 +02:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open recent Keyframes entry
/// @param event
2006-12-18 18:18:14 +01:00
void FrameMain : : OnOpenRecentKeyframes ( wxCommandEvent & event ) {
int number = event . GetId ( ) - Menu_Keyframes_Recent ;
2010-06-18 04:23:27 +02:00
KeyFrameFile : : Load ( lagi_wxString ( config : : mru - > GetEntry ( " Keyframes " , number ) ) ) ;
2007-08-26 02:00:37 +02:00
videoBox - > videoSlider - > Refresh ( ) ;
audioBox - > audioDisplay - > Update ( ) ;
Refresh ( ) ;
2006-12-18 18:18:14 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open recent audio menu entry
/// @param event
2006-01-16 22:02:54 +01:00
void FrameMain : : OnOpenRecentAudio ( wxCommandEvent & event ) {
int number = event . GetId ( ) - Menu_Audio_Recent ;
2010-06-18 04:23:27 +02:00
LoadAudio ( lagi_wxString ( config : : mru - > GetEntry ( " Audio " , number ) ) ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open new Window
2010-06-16 08:20:27 +02:00
void FrameMain : : OnNewWindow ( wxCommandEvent & ) {
2009-01-04 12:45:06 +01:00
RestartAegisub ( ) ;
2007-07-27 09:30:33 +02:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Exit
2010-06-16 08:20:27 +02:00
void FrameMain : : OnExit ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
Close ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open about box
2010-06-16 08:20:27 +02:00
void FrameMain : : OnAbout ( wxCommandEvent & ) {
2006-04-27 20:12:48 +02:00
AboutScreen About ( this ) ;
2006-01-16 22:02:54 +01:00
About . ShowModal ( ) ;
}
2010-06-03 01:47:39 +02:00
/// @brief Open log window
2010-06-16 08:20:27 +02:00
void FrameMain : : OnLog ( wxCommandEvent & ) {
2010-06-03 01:47:39 +02:00
LogWindow * log = new LogWindow ( this ) ;
log - > Show ( 1 ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
Merge 3906,r3909,r3910,r3912,r3928,r3931,r3932,r3933,r3935,r3936: merge update checker from 2.1.8, this also needs to be documented for doxygen. closes #1084.
Originally committed to SVN as r4042.
2010-01-26 14:14:05 +01:00
/// @brief Open check updates
2010-06-16 08:20:27 +02:00
void FrameMain : : OnCheckUpdates ( wxCommandEvent & ) {
Merge 3906,r3909,r3910,r3912,r3928,r3931,r3932,r3933,r3935,r3936: merge update checker from 2.1.8, this also needs to be documented for doxygen. closes #1084.
Originally committed to SVN as r4042.
2010-01-26 14:14:05 +01:00
PerformVersionCheck ( true ) ;
2007-01-07 23:54:04 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open help topics
2010-06-16 08:20:27 +02:00
void FrameMain : : OnContents ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
OpenHelp ( _T ( " " ) ) ;
}
2009-12-25 04:28:15 +01:00
/// @brief Open help files on OSX.
/// @param event
2010-06-16 08:20:27 +02:00
void FrameMain : : OnFiles ( wxCommandEvent & ) {
2009-12-25 04:28:15 +01:00
# ifdef __WXMAC__
char * shared_path = OSX_GetBundleSharedSupportDirectory ( ) ;
wxString help_path = wxString : : Format ( _T ( " %s/doc " ) , wxString ( shared_path , wxConvUTF8 ) . c_str ( ) ) ;
OSX_OpenLocation ( help_path . c_str ( ) ) ;
# endif
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open website
2010-06-16 08:20:27 +02:00
void FrameMain : : OnWebsite ( wxCommandEvent & ) {
2010-01-06 06:23:58 +01:00
AegisubApp : : OpenURL ( _T ( " http://www.aegisub.org/ " ) ) ;
2006-02-23 20:26:14 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open forums
2010-06-16 08:20:27 +02:00
void FrameMain : : OnForums ( wxCommandEvent & ) {
2010-01-06 06:23:58 +01:00
AegisubApp : : OpenURL ( _T ( " http://forum.aegisub.org/ " ) ) ;
2006-02-23 20:26:14 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open bugtracker
2010-06-16 08:20:27 +02:00
void FrameMain : : OnBugTracker ( wxCommandEvent & ) {
2008-11-22 20:28:16 +01:00
if ( wxGetMouseState ( ) . CmdDown ( ) ) {
if ( wxGetMouseState ( ) . ShiftDown ( ) ) {
wxMessageBox ( _T ( " Now crashing with an access violation... " ) ) ;
for ( char * foo = ( char * ) 0 ; ; ) * foo + + = 42 ;
}
else {
wxMessageBox ( _T ( " Now crashing with an unhandled exception... " ) ) ;
throw this ;
}
}
2009-06-11 20:04:48 +02:00
AegisubApp : : OpenURL ( _T ( " http://devel.aegisub.org/ " ) ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open IRC channel
2010-06-16 08:20:27 +02:00
void FrameMain : : OnIRCChannel ( wxCommandEvent & ) {
2008-01-14 00:36:38 +01:00
AegisubApp : : OpenURL ( _T ( " irc://irc.rizon.net/aegisub " ) ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Play video
2010-06-16 08:20:27 +02:00
void FrameMain : : OnVideoPlay ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Play ( ) ;
2007-01-11 06:33:36 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open video
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenVideo ( wxCommandEvent & ) {
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Last/Video " ) - > GetString ( ) ) ;
2010-02-17 07:24:29 +01:00
wxString str = wxString ( _ ( " Video Formats " ) ) + _T ( " (*.avi,*.mkv,*.mp4,*.avs,*.d2v,*.ogm,*.mpeg,*.mpg,*.vob,*.mov)|*.avi;*.avs;*.d2v;*.mkv;*.ogm;*.mp4;*.mpeg;*.mpg;*.vob;*.mov| " )
2008-01-17 21:30:44 +01:00
+ _ ( " All Files " ) + _T ( " (*.*)|*.* " ) ;
wxString filename = wxFileSelector ( _ ( " Open video file " ) , path , _T ( " " ) , _T ( " " ) , str , wxFD_OPEN | wxFD_FILE_MUST_EXIST ) ;
2006-01-16 22:02:54 +01:00
if ( ! filename . empty ( ) ) {
LoadVideo ( filename ) ;
2010-05-21 03:13:36 +02:00
OPT_SET ( " Path/Last/Video " ) - > SetString ( STD_STR ( filename ) ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Close video
2010-06-16 08:20:27 +02:00
void FrameMain : : OnCloseVideo ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
LoadVideo ( _T ( " " ) ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open Audio
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenAudio ( wxCommandEvent & ) {
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Last/Audio " ) - > GetString ( ) ) ;
2008-09-11 01:02:40 +02:00
wxString str = wxString ( _ ( " Audio Formats " ) ) + _T ( " (*.wav,*.mp3,*.ogg,*.flac,*.mp4,*.ac3,*.aac,*.mka,*.m4a,*.w64)|*.wav;*.mp3;*.ogg;*.flac;*.mp4;*.ac3;*.aac;*.mka;*.m4a;*.w64| " )
2008-01-17 21:30:44 +01:00
+ _ ( " Video Formats " ) + _T ( " (*.avi,*.mkv,*.ogm,*.mpg,*.mpeg)|*.avi;*.mkv;*.ogm;*.mp4;*.mpeg;*.mpg| " )
+ _ ( " All files " ) + _T ( " (*.*)|*.* " ) ;
wxString filename = wxFileSelector ( _ ( " Open audio file " ) , path , _T ( " " ) , _T ( " " ) , str , wxFD_OPEN | wxFD_FILE_MUST_EXIST ) ;
2006-01-16 22:02:54 +01:00
if ( ! filename . empty ( ) ) {
LoadAudio ( filename ) ;
2010-05-21 03:13:36 +02:00
OPT_SET ( " Path/Last/Audio " ) - > SetString ( STD_STR ( filename ) ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenAudioFromVideo ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
LoadAudio ( _T ( " " ) , true ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnCloseAudio ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
LoadAudio ( _T ( " " ) ) ;
}
2007-07-23 17:19:48 +02:00
# ifdef _DEBUG
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenDummyAudio ( wxCommandEvent & ) {
2007-07-23 17:19:48 +02:00
LoadAudio ( _T ( " ?dummy " ) ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenDummyNoiseAudio ( wxCommandEvent & ) {
2007-07-23 17:19:48 +02:00
LoadAudio ( _T ( " ?noise " ) ) ;
}
# endif
2006-01-16 22:02:54 +01:00
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open subtitles
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenSubtitles ( wxCommandEvent & ) {
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Last/Subtitles " ) - > GetString ( ) ) ;
2007-01-22 20:31:49 +01:00
wxString filename = wxFileSelector ( _ ( " Open subtitles file " ) , path , _T ( " " ) , _T ( " " ) , AssFile : : GetWildcardList ( 0 ) , wxFD_OPEN | wxFD_FILE_MUST_EXIST ) ;
2006-01-16 22:02:54 +01:00
if ( ! filename . empty ( ) ) {
LoadSubtitles ( filename ) ;
2006-03-14 05:23:00 +01:00
wxFileName filepath ( filename ) ;
2010-05-21 03:13:36 +02:00
OPT_SET ( " Path/Last/Subtitles " ) - > SetString ( STD_STR ( filepath . GetPath ( ) ) ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open subtitles with specific charset
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenSubtitlesCharset ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
// Initialize charsets
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Last/Subtitles " ) - > GetString ( ) ) ;
2006-01-16 22:02:54 +01:00
// Get options and load
2007-01-22 20:31:49 +01:00
wxString filename = wxFileSelector ( _ ( " Open subtitles file " ) , path , _T ( " " ) , _T ( " " ) , AssFile : : GetWildcardList ( 0 ) , wxFD_OPEN | wxFD_FILE_MUST_EXIST ) ;
2006-01-16 22:02:54 +01:00
if ( ! filename . empty ( ) ) {
2010-06-03 22:32:25 +02:00
wxString charset = wxGetSingleChoice ( _ ( " Choose charset code: " ) , _ ( " Charset " ) , agi : : charset : : GetEncodingsList < wxArrayString > ( ) , this , - 1 , - 1 , true , 250 , 200 ) ;
2006-01-16 22:02:54 +01:00
if ( ! charset . empty ( ) ) {
LoadSubtitles ( filename , charset ) ;
}
2010-05-21 03:13:36 +02:00
OPT_SET ( " Path/Last/Subtitles " ) - > SetString ( STD_STR ( filename ) ) ;
2006-01-16 22:02:54 +01:00
}
}
2010-05-19 02:44:37 +02:00
/// @brief Open subtitles from the currently open video file
void FrameMain : : OnOpenSubtitlesVideo ( wxCommandEvent & ) {
2010-06-03 22:32:17 +02:00
LoadSubtitles ( VideoContext : : Get ( ) - > videoName , " binary " ) ;
2010-05-19 02:44:37 +02:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Save subtitles as
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSaveSubtitlesAs ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
SaveSubtitles ( true ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Save subtitles
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSaveSubtitles ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
SaveSubtitles ( false ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Save subtitles with specific charset
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSaveSubtitlesCharset ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
SaveSubtitles ( true , true ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Close subtitles
2010-06-16 08:20:27 +02:00
void FrameMain : : OnNewSubtitles ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
LoadSubtitles ( _T ( " " ) ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Export subtitles
2010-06-16 08:20:27 +02:00
void FrameMain : : OnExportSubtitles ( wxCommandEvent & ) {
2007-12-31 07:46:22 +01:00
# ifdef WITH_AUTOMATION
2010-05-21 03:13:36 +02:00
int autoreload = OPT_GET ( " Automation/Autoreload Mode " ) - > GetInt ( ) ;
2007-01-19 12:47:37 +01:00
if ( autoreload & 1 ) {
// Local scripts
const std : : vector < Automation4 : : Script * > scripts = local_scripts - > GetScripts ( ) ;
for ( size_t i = 0 ; i < scripts . size ( ) ; + + i ) {
try {
scripts [ i ] - > Reload ( ) ;
}
catch ( const wchar_t * e ) {
2007-07-18 15:49:44 +02:00
wxLogError ( _T ( " Error while reloading Automation scripts before export: %s " ) , e ) ;
2007-01-19 12:47:37 +01:00
}
catch ( . . . ) {
wxLogError ( _T ( " An unknown error occurred reloading Automation script '%s'. " ) , scripts [ i ] - > GetName ( ) . c_str ( ) ) ;
}
}
}
2007-06-30 21:21:06 +02:00
if ( autoreload & 2 ) {
2007-01-19 12:47:37 +01:00
// Global scripts
wxGetApp ( ) . global_scripts - > Reload ( ) ;
}
2007-12-31 07:46:22 +01:00
# endif
2007-01-19 12:47:37 +01:00
2006-01-16 22:02:54 +01:00
DialogExport exporter ( this ) ;
exporter . ShowModal ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open VFR tags
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenVFR ( wxCommandEvent & ) {
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Last/Timecodes " ) - > GetString ( ) ) ;
2008-01-17 21:30:44 +01:00
wxString str = wxString ( _ ( " All Supported Types " ) ) + _T ( " (*.txt)|*.txt| " )
+ _ ( " All Files " ) + _T ( " (*.*)|*.* " ) ;
wxString filename = wxFileSelector ( _ ( " Open timecodes file " ) , path , _T ( " " ) , _T ( " " ) , str , wxFD_OPEN | wxFD_FILE_MUST_EXIST ) ;
2006-01-16 22:02:54 +01:00
if ( ! filename . empty ( ) ) {
LoadVFR ( filename ) ;
2010-05-21 03:13:36 +02:00
OPT_SET ( " Path/Last/Timecodes " ) - > SetString ( STD_STR ( filename ) ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Save VFR tags
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSaveVFR ( wxCommandEvent & ) {
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Last/Timecodes " ) - > GetString ( ) ) ;
2008-01-17 21:30:44 +01:00
wxString str = wxString ( _ ( " All Supported Types " ) ) + _T ( " (*.txt)|*.txt| " )
+ _ ( " All Files " ) + _T ( " (*.*)|*.* " ) ;
wxString filename = wxFileSelector ( _ ( " Save timecodes file " ) , path , _T ( " " ) , _T ( " " ) , str , wxFD_SAVE | wxFD_OVERWRITE_PROMPT ) ;
2008-01-16 03:31:37 +01:00
if ( ! filename . empty ( ) ) {
SaveVFR ( filename ) ;
2010-05-21 03:13:36 +02:00
OPT_SET ( " Path/Last/Timecodes " ) - > SetString ( STD_STR ( filename ) ) ;
2008-01-16 03:31:37 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Close VFR tags
2010-06-16 08:20:27 +02:00
void FrameMain : : OnCloseVFR ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
LoadVFR ( _T ( " " ) ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open keyframes
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenKeyframes ( wxCommandEvent & ) {
2006-12-18 17:08:58 +01:00
// Pick file
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Last/Keyframes " ) - > GetString ( ) ) ;
2008-12-20 01:17:17 +01:00
wxString filename = wxFileSelector ( _T ( " Select the keyframes file to open " ) , path , _T ( " " ) , _T ( " .txt " ) , _T ( " All supported formats (*.txt, *.pass, *.stats, *.log)|*.txt;*.pass;*.stats;*.log|All files (*.*)|*.* " ) , wxFD_FILE_MUST_EXIST | wxFD_OPEN ) ;
2006-12-18 17:20:45 +01:00
if ( filename . IsEmpty ( ) ) return ;
2010-05-21 03:13:36 +02:00
OPT_SET ( " Path/Last/Keyframes " ) - > SetString ( STD_STR ( filename ) ) ;
2006-12-18 17:08:58 +01:00
2006-12-18 18:18:14 +01:00
// Load
2007-08-26 02:00:37 +02:00
KeyFrameFile : : Load ( filename ) ;
videoBox - > videoSlider - > Refresh ( ) ;
audioBox - > audioDisplay - > Update ( ) ;
Refresh ( ) ;
2006-12-18 03:44:38 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Close keyframes
2010-06-16 08:20:27 +02:00
void FrameMain : : OnCloseKeyframes ( wxCommandEvent & ) {
2007-08-26 02:00:37 +02:00
VideoContext : : Get ( ) - > CloseOverKeyFrames ( ) ;
videoBox - > videoSlider - > Refresh ( ) ;
audioBox - > audioDisplay - > Update ( ) ;
Refresh ( ) ;
2006-12-18 03:44:38 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Save keyframes
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSaveKeyframes ( wxCommandEvent & ) {
2006-12-18 17:08:58 +01:00
// Pick file
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Last/Keyframes " ) - > GetString ( ) ) ;
2007-01-22 20:31:49 +01:00
wxString filename = wxFileSelector ( _T ( " Select the Keyframes file to open " ) , path , _T ( " " ) , _T ( " *.key.txt " ) , _T ( " Text files (*.txt)|*.txt " ) , wxFD_OVERWRITE_PROMPT | wxFD_SAVE ) ;
2006-12-18 17:20:45 +01:00
if ( filename . IsEmpty ( ) ) return ;
2010-05-21 03:13:36 +02:00
OPT_SET ( " Path/Last/Keyframes " ) - > SetString ( STD_STR ( filename ) ) ;
2006-12-18 17:08:58 +01:00
2006-12-18 18:18:14 +01:00
// Save
2007-08-26 02:00:37 +02:00
KeyFrameFile : : Save ( filename ) ;
2006-12-18 03:44:38 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Zoom levels
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetZoom50 ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-05-01 03:07:05 +02:00
videoBox - > videoDisplay - > SetZoom ( .5 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetZoom100 ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-05-01 03:07:05 +02:00
videoBox - > videoDisplay - > SetZoom ( 1. ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetZoom200 ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-05-01 03:07:05 +02:00
videoBox - > videoDisplay - > SetZoom ( 2. ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnZoomIn ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-05-01 03:07:05 +02:00
videoBox - > videoDisplay - > SetZoom ( videoBox - > videoDisplay - > GetZoom ( ) + .125 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnZoomOut ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-05-01 03:07:05 +02:00
videoBox - > videoDisplay - > SetZoom ( videoBox - > videoDisplay - > GetZoom ( ) - .125 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetZoom ( wxCommandEvent & ) {
2010-05-01 03:07:05 +02:00
videoBox - > videoDisplay - > SetZoomFromBox ( ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Detach video
2010-06-16 08:20:27 +02:00
void FrameMain : : OnDetachVideo ( wxCommandEvent & ) {
2009-10-12 00:10:08 +02:00
DetachVideo ( ! detachedVideo ) ;
2007-01-23 05:42:08 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Use dummy video
2010-06-16 08:20:27 +02:00
void FrameMain : : OnDummyVideo ( wxCommandEvent & ) {
2007-04-02 20:28:09 +02:00
wxString fn ;
if ( DialogDummyVideo : : CreateDummyVideo ( this , fn ) ) {
LoadVideo ( fn ) ;
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Overscan toggle
2007-06-28 23:35:37 +02:00
void FrameMain : : OnOverscan ( wxCommandEvent & event ) {
2010-05-21 03:13:36 +02:00
OPT_SET ( " Video/Overscan Mask " ) - > SetBool ( event . IsChecked ( ) ) ;
2007-06-28 23:35:37 +02:00
VideoContext : : Get ( ) - > Stop ( ) ;
videoBox - > videoDisplay - > Render ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Show video details
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenVideoDetails ( wxCommandEvent & ) {
2007-08-20 00:21:41 +02:00
VideoContext : : Get ( ) - > Stop ( ) ;
DialogVideoDetails videodetails ( this ) ;
2010-06-16 08:20:27 +02:00
videodetails . ShowModal ( ) ;
2007-08-20 00:21:41 +02:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open jump to dialog
2010-06-16 08:20:27 +02:00
void FrameMain : : OnJumpTo ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
if ( VideoContext : : Get ( ) - > IsLoaded ( ) ) {
2007-01-21 18:01:22 +01:00
DialogJumpTo JumpTo ( this ) ;
2006-01-16 22:02:54 +01:00
JumpTo . ShowModal ( ) ;
videoBox - > videoSlider - > SetFocus ( ) ;
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open shift dialog
2010-06-16 08:20:27 +02:00
void FrameMain : : OnShift ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-06-16 08:20:33 +02:00
DialogShiftTimes Shift ( this , SubsGrid ) ;
2006-01-16 22:02:54 +01:00
Shift . ShowModal ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open properties
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenProperties ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2007-01-21 18:01:22 +01:00
DialogProperties Properties ( this ) ;
2006-01-16 22:02:54 +01:00
int res = Properties . ShowModal ( ) ;
if ( res ) {
2010-06-16 08:20:33 +02:00
SubsGrid - > CommitChanges ( ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open styles manager
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenStylesManager ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-06-16 08:20:33 +02:00
DialogStyleManager StyleManager ( this , SubsGrid ) ;
2006-01-16 22:02:54 +01:00
StyleManager . ShowModal ( ) ;
EditBox - > UpdateGlobals ( ) ;
2010-06-16 08:20:33 +02:00
SubsGrid - > CommitChanges ( ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open attachments
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenAttachments ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2006-07-01 04:27:37 +02:00
DialogAttachments attachments ( this ) ;
attachments . ShowModal ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open translation assistant
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenTranslation ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-06-16 08:20:33 +02:00
int start = SubsGrid - > GetFirstSelRow ( ) ;
2006-01-16 22:02:54 +01:00
if ( start = = - 1 ) start = 0 ;
2010-06-16 08:20:33 +02:00
DialogTranslation Trans ( this , AssFile : : top , SubsGrid , start , true ) ;
2006-01-16 22:02:54 +01:00
Trans . ShowModal ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open Spell Checker
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenSpellCheck ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2007-04-14 18:08:50 +02:00
new DialogSpellChecker ( this ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open Fonts Collector
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenFontsCollector ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2006-01-16 22:02:54 +01:00
DialogFontsCollector Collector ( this ) ;
Collector . ShowModal ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open Resolution Resampler
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenResample ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-06-16 08:20:33 +02:00
DialogResample diag ( this , SubsGrid ) ;
2006-01-16 22:02:54 +01:00
diag . ShowModal ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open Timing post-processor dialog
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenTimingProcessor ( wxCommandEvent & ) {
2010-06-16 08:20:33 +02:00
DialogTimingProcessor timing ( this , SubsGrid ) ;
2006-01-16 22:02:54 +01:00
timing . ShowModal ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open Kanji Timer dialog
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenKanjiTimer ( wxCommandEvent & ) {
2010-06-16 08:20:33 +02:00
DialogKanjiTimer kanjitimer ( this , SubsGrid ) ;
2007-01-13 03:22:28 +01:00
kanjitimer . ShowModal ( ) ;
}
2006-01-16 22:02:54 +01:00
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open Options dialog
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenPreferences ( wxCommandEvent & ) {
2007-09-12 01:22:26 +02:00
try {
2010-05-21 03:13:36 +02:00
Preferences pref ( this ) ;
pref . ShowModal ( ) ;
} catch ( agi : : Exception & e ) {
wxPrintf ( " Caught agi::Exception: %s -> %s \n " , e . GetName ( ) , e . GetMessage ( ) ) ;
2007-09-12 01:22:26 +02:00
}
2006-06-19 04:51:06 +02:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Launch ASSDraw
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenASSDraw ( wxCommandEvent & ) {
2008-01-27 17:58:15 +01:00
wxExecute ( _T ( " \" " ) + StandardPaths : : DecodePath ( _T ( " ?data/ASSDraw3.exe " ) ) + _T ( " \" " ) ) ;
2008-01-20 18:34:35 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open Automation
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenAutomation ( wxCommandEvent & ) {
2007-12-31 07:46:22 +01:00
# ifdef WITH_AUTOMATION
2007-09-22 00:56:44 +02:00
# ifdef __APPLE__
if ( wxGetMouseState ( ) . CmdDown ( ) ) {
# else
2007-06-30 21:21:06 +02:00
if ( wxGetMouseState ( ) . ControlDown ( ) ) {
2007-09-22 00:56:44 +02:00
# endif
2007-06-30 21:21:06 +02:00
wxGetApp ( ) . global_scripts - > Reload ( ) ;
if ( wxGetMouseState ( ) . ShiftDown ( ) ) {
const std : : vector < Automation4 : : Script * > scripts = local_scripts - > GetScripts ( ) ;
for ( size_t i = 0 ; i < scripts . size ( ) ; + + i ) {
try {
scripts [ i ] - > Reload ( ) ;
}
catch ( const wchar_t * e ) {
wxLogError ( e ) ;
}
catch ( . . . ) {
wxLogError ( _T ( " An unknown error occurred reloading Automation script '%s'. " ) , scripts [ i ] - > GetName ( ) . c_str ( ) ) ;
}
}
StatusTimeout ( _ ( " Reloaded all Automation scripts " ) ) ;
}
else {
StatusTimeout ( _ ( " Reloaded autoload Automation scripts " ) ) ;
}
}
else {
VideoContext : : Get ( ) - > Stop ( ) ;
DialogAutomation dlg ( this , local_scripts ) ;
dlg . ShowModal ( ) ;
}
2007-12-31 07:46:22 +01:00
# endif
2006-12-28 23:31:33 +01:00
}
2010-06-16 08:20:27 +02:00
/// @brief General handler for all Automation-generated menu items
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @param event
2006-12-28 23:31:33 +01:00
void FrameMain : : OnAutomationMacro ( wxCommandEvent & event ) {
2007-12-31 07:46:22 +01:00
# ifdef WITH_AUTOMATION
2010-06-16 08:20:33 +02:00
SubsGrid - > BeginBatch ( ) ;
2007-04-12 20:27:14 +02:00
// First get selection data
// This much be done before clearing the maps, since selection data are lost during that
2010-06-16 08:20:33 +02:00
std : : vector < int > selected_lines = SubsGrid - > GetAbsoluteSelection ( ) ;
int first_sel = SubsGrid - > GetFirstSelRow ( ) ;
2007-02-20 03:50:40 +01:00
// Clear all maps from the subs grid before running the macro
// The stuff done by the macro might invalidate some of the iterators held by the grid, which will cause great crashing
2010-06-26 09:26:27 +02:00
SubsGrid - > ClearMaps ( ) ;
2007-02-20 03:50:40 +01:00
// Run the macro...
2010-06-16 08:20:33 +02:00
activeMacroItems [ event . GetId ( ) - Menu_Automation_Macro ] - > Process ( SubsGrid - > ass , selected_lines , first_sel , this ) ;
2007-02-20 03:50:40 +01:00
// Have the grid update its maps, this properly refreshes it to reflect the changed subs
2010-06-16 08:20:33 +02:00
SubsGrid - > UpdateMaps ( ) ;
SubsGrid - > SetSelectionFromAbsolute ( selected_lines ) ;
SubsGrid - > CommitChanges ( true , false ) ;
SubsGrid - > AdjustScrollbar ( ) ;
SubsGrid - > EndBatch ( ) ;
2007-12-31 07:46:22 +01:00
# endif
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Snap subs to video
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSnapSubsStartToVid ( wxCommandEvent & ) {
2010-06-16 08:20:33 +02:00
if ( VideoContext : : Get ( ) - > IsLoaded ( ) & & SubsGrid - > GetSelection ( ) . Count ( ) > 0 ) {
SubsGrid - > SetSubsToVideo ( true ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSnapSubsEndToVid ( wxCommandEvent & ) {
2010-06-16 08:20:33 +02:00
if ( VideoContext : : Get ( ) - > IsLoaded ( ) & & SubsGrid - > GetSelection ( ) . Count ( ) > 0 ) {
SubsGrid - > SetSubsToVideo ( false ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Jump video to subs
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSnapVidToSubsStart ( wxCommandEvent & ) {
2010-06-16 08:20:33 +02:00
if ( VideoContext : : Get ( ) - > IsLoaded ( ) & & SubsGrid - > GetSelection ( ) . Count ( ) > 0 ) {
SubsGrid - > SetVideoToSubs ( true ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSnapVidToSubsEnd ( wxCommandEvent & ) {
2010-06-16 08:20:33 +02:00
if ( VideoContext : : Get ( ) - > IsLoaded ( ) & & SubsGrid - > GetSelection ( ) . Count ( ) > 0 ) {
SubsGrid - > SetVideoToSubs ( false ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Snap to scene
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSnapToScene ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
if ( VideoContext : : Get ( ) - > IsLoaded ( ) ) {
2006-01-16 22:02:54 +01:00
// Get frames
2010-06-16 08:20:33 +02:00
wxArrayInt sel = SubsGrid - > GetSelection ( ) ;
2007-01-21 07:30:19 +01:00
int curFrame = VideoContext : : Get ( ) - > GetFrameN ( ) ;
2006-01-16 22:02:54 +01:00
int prev = 0 ;
int next = 0 ;
int frame = 0 ;
2007-01-21 07:30:19 +01:00
wxArrayInt keyframes = VideoContext : : Get ( ) - > GetKeyFrames ( ) ;
2006-12-18 05:53:40 +01:00
size_t n = keyframes . Count ( ) ;
2006-01-16 22:02:54 +01:00
bool found = false ;
for ( size_t i = 0 ; i < n ; i + + ) {
2006-12-18 05:53:40 +01:00
frame = keyframes [ i ] ;
2006-01-16 22:02:54 +01:00
if ( frame = = curFrame ) {
prev = frame ;
2006-12-18 05:53:40 +01:00
if ( i < n - 1 ) next = keyframes [ i + 1 ] ;
2007-01-21 07:30:19 +01:00
else next = VideoContext : : Get ( ) - > GetLength ( ) ;
2006-01-16 22:02:54 +01:00
found = true ;
break ;
}
if ( frame > curFrame ) {
2006-12-18 05:53:40 +01:00
if ( i ! = 0 ) prev = keyframes [ i - 1 ] ;
2006-01-16 22:02:54 +01:00
else prev = 0 ;
next = frame ;
found = true ;
break ;
}
}
// Last section?
if ( ! found ) {
2006-12-18 05:53:40 +01:00
if ( n > 0 ) prev = keyframes [ n - 1 ] ;
2006-01-16 22:02:54 +01:00
else prev = 0 ;
2007-01-21 07:30:19 +01:00
next = VideoContext : : Get ( ) - > GetLength ( ) ;
2006-01-16 22:02:54 +01:00
}
// Get times
2006-02-24 17:45:10 +01:00
int start_ms = VFR_Output . GetTimeAtFrame ( prev , true ) ;
int end_ms = VFR_Output . GetTimeAtFrame ( next - 1 , false ) ;
2006-01-16 22:02:54 +01:00
AssDialogue * cur ;
// Update rows
for ( size_t i = 0 ; i < sel . Count ( ) ; i + + ) {
2010-06-16 08:20:33 +02:00
cur = SubsGrid - > GetDialogue ( sel [ i ] ) ;
2006-01-16 22:02:54 +01:00
cur - > Start . SetMS ( start_ms ) ;
cur - > End . SetMS ( end_ms ) ;
}
// Commit
2010-06-16 08:20:33 +02:00
SubsGrid - > editBox - > Update ( true ) ;
SubsGrid - > ass - > FlagAsModified ( _ ( " snap to scene " ) ) ;
SubsGrid - > CommitChanges ( ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Shift to frame
2010-06-16 08:20:27 +02:00
void FrameMain : : OnShiftToFrame ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
if ( VideoContext : : Get ( ) - > IsLoaded ( ) ) {
2010-06-16 08:20:33 +02:00
wxArrayInt sels = SubsGrid - > GetSelection ( ) ;
2006-10-20 00:53:06 +02:00
size_t n = sels . Count ( ) ;
2006-01-16 22:02:54 +01:00
if ( n = = 0 ) return ;
// Get shifting in ms
2010-06-16 08:20:33 +02:00
AssDialogue * cur = SubsGrid - > GetDialogue ( sels [ 0 ] ) ;
2006-01-16 22:02:54 +01:00
if ( ! cur ) return ;
2007-01-21 07:30:19 +01:00
int shiftBy = VFR_Output . GetTimeAtFrame ( VideoContext : : Get ( ) - > GetFrameN ( ) , true ) - cur - > Start . GetMS ( ) ;
2006-01-16 22:02:54 +01:00
// Update
2006-10-20 00:53:06 +02:00
for ( size_t i = 0 ; i < n ; i + + ) {
2010-06-16 08:20:33 +02:00
cur = SubsGrid - > GetDialogue ( sels [ i ] ) ;
2006-01-16 22:02:54 +01:00
if ( cur ) {
cur - > Start . SetMS ( cur - > Start . GetMS ( ) + shiftBy ) ;
cur - > End . SetMS ( cur - > End . GetMS ( ) + shiftBy ) ;
}
}
// Commit
2010-06-16 08:20:33 +02:00
SubsGrid - > ass - > FlagAsModified ( _ ( " shift to frame " ) ) ;
SubsGrid - > CommitChanges ( ) ;
SubsGrid - > editBox - > Update ( true , false ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Undo
2010-06-16 08:20:27 +02:00
void FrameMain : : OnUndo ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2006-01-16 22:02:54 +01:00
AssFile : : StackPop ( ) ;
2010-06-26 09:26:27 +02:00
SubsGrid - > UpdateMaps ( ) ;
2006-01-16 22:02:54 +01:00
AssFile : : Popping = false ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Redo
2010-06-16 08:20:27 +02:00
void FrameMain : : OnRedo ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2006-02-20 22:32:58 +01:00
AssFile : : StackRedo ( ) ;
2010-06-26 09:26:27 +02:00
SubsGrid - > UpdateMaps ( ) ;
2006-02-20 22:32:58 +01:00
AssFile : : Popping = false ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Find
2010-06-16 08:20:27 +02:00
void FrameMain : : OnFind ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2006-01-16 22:02:54 +01:00
Search . OpenDialog ( false ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Find next
2010-06-16 08:20:27 +02:00
void FrameMain : : OnFindNext ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2006-01-16 22:02:54 +01:00
Search . FindNext ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Find & replace
2010-06-16 08:20:27 +02:00
void FrameMain : : OnReplace ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2006-01-16 22:02:54 +01:00
Search . OpenDialog ( true ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Change aspect ratio to default
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetARDefault ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2007-01-23 07:32:16 +01:00
VideoContext : : Get ( ) - > SetAspectRatio ( 0 ) ;
2009-10-12 00:10:08 +02:00
SetDisplayMode ( 1 , - 1 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Change aspect ratio to fullscreen
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetARFull ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2007-01-23 07:32:16 +01:00
VideoContext : : Get ( ) - > SetAspectRatio ( 1 ) ;
2009-10-12 00:10:08 +02:00
SetDisplayMode ( 1 , - 1 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Change aspect ratio to widescreen
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetARWide ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2007-01-23 07:32:16 +01:00
VideoContext : : Get ( ) - > SetAspectRatio ( 2 ) ;
2009-10-12 00:10:08 +02:00
SetDisplayMode ( 1 , - 1 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Change aspect ratio to 2:35
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetAR235 ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2007-01-23 07:32:16 +01:00
VideoContext : : Get ( ) - > SetAspectRatio ( 3 ) ;
2009-10-12 00:10:08 +02:00
SetDisplayMode ( 1 , - 1 ) ;
2006-05-16 01:44:53 +02:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Change aspect ratio to a custom value
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSetARCustom ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2009-08-22 05:56:02 +02:00
wxString value = wxGetTextFromUser ( _ ( " Enter aspect ratio in either: \n decimal (e.g. 2.35) \n fractional (e.g. 16:9) \n specific resolution (e.g. 853x480) " ) , _ ( " Enter aspect ratio " ) , AegiFloatToString ( VideoContext : : Get ( ) - > GetAspectRatioValue ( ) ) ) ;
2006-06-22 01:07:03 +02:00
if ( value . IsEmpty ( ) ) return ;
2007-01-13 09:34:42 +01:00
2006-06-22 01:07:03 +02:00
value . MakeLower ( ) ;
2006-05-16 01:44:53 +02:00
// Process text
2007-01-15 00:34:27 +01:00
double numval ;
2007-01-13 09:34:42 +01:00
if ( value . ToDouble ( & numval ) ) {
//Nothing to see here, move along
2006-05-16 01:44:53 +02:00
}
2007-01-13 09:34:42 +01:00
else {
double a , b ;
int pos = 0 ;
bool scale = false ;
2009-08-22 05:56:02 +02:00
2007-01-13 09:34:42 +01:00
//Why bloat using Contains when we can just check the output of Find?
pos = value . Find ( ' : ' ) ;
if ( pos = = wxNOT_FOUND ) pos = value . Find ( ' / ' ) ;
if ( pos = = wxNOT_FOUND & & value . Contains ( _T ( ' x ' ) ) ) {
pos = value . Find ( ' x ' ) ;
scale = true ;
}
if ( pos > 0 ) {
wxString num = value . Left ( pos ) ;
wxString denum = value . Mid ( pos + 1 ) ;
if ( num . ToDouble ( & a ) & & denum . ToDouble ( & b ) & & b ! = 0 ) {
numval = a / b ;
2007-01-21 07:30:19 +01:00
if ( scale ) videoBox - > videoDisplay - > SetZoom ( b / VideoContext : : Get ( ) - > GetHeight ( ) ) ;
2006-06-22 01:07:03 +02:00
}
}
2007-01-15 00:34:27 +01:00
else numval = 0.0 ;
2006-06-22 01:07:03 +02:00
}
2006-05-16 01:44:53 +02:00
// Sanity check
2009-07-24 04:10:41 +02:00
if ( numval < 0.5 | | numval > 5.0 ) wxMessageBox ( _ ( " Invalid value! Aspect ratio must be between 0.5 and 5.0. " ) , _ ( " Invalid Aspect Ratio " ) , wxICON_ERROR | wxOK ) ;
2006-05-16 01:44:53 +02:00
// Set value
else {
2007-01-23 07:32:16 +01:00
VideoContext : : Get ( ) - > SetAspectRatio ( 4 , numval ) ;
2009-10-12 00:10:08 +02:00
SetDisplayMode ( 1 , - 1 ) ;
2006-05-16 01:44:53 +02:00
}
}
2010-06-16 08:20:27 +02:00
/// @brief Window is attempted to be closed
/// @param event
2006-01-16 22:02:54 +01:00
void FrameMain : : OnCloseWindow ( wxCloseEvent & event ) {
// Stop audio and video
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2006-01-16 22:02:54 +01:00
audioBox - > audioDisplay - > Stop ( ) ;
// Ask user if he wants to save first
bool canVeto = event . CanVeto ( ) ;
int result = TryToCloseSubs ( canVeto ) ;
2006-12-29 23:58:09 +01:00
// Store maximization state
2010-05-21 03:13:36 +02:00
OPT_SET ( " App/Maximized " ) - > SetBool ( IsMaximized ( ) ) ;
2006-12-29 23:58:09 +01:00
2006-01-16 22:02:54 +01:00
// Abort/destroy
if ( canVeto ) {
if ( result = = wxCANCEL ) event . Veto ( ) ;
else Destroy ( ) ;
}
else Destroy ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Cut/copy/paste
2010-06-16 08:20:27 +02:00
void FrameMain : : OnCut ( wxCommandEvent & ) {
2006-12-24 05:54:35 +01:00
if ( FindFocus ( ) = = EditBox - > TextEdit ) {
EditBox - > TextEdit - > Cut ( ) ;
return ;
}
2010-06-16 08:20:33 +02:00
SubsGrid - > CutLines ( SubsGrid - > GetSelection ( ) ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnCopy ( wxCommandEvent & ) {
2006-12-24 05:54:35 +01:00
if ( FindFocus ( ) = = EditBox - > TextEdit ) {
EditBox - > TextEdit - > Copy ( ) ;
return ;
}
2010-06-16 08:20:33 +02:00
SubsGrid - > CopyLines ( SubsGrid - > GetSelection ( ) ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnPaste ( wxCommandEvent & ) {
2006-12-24 05:54:35 +01:00
if ( FindFocus ( ) = = EditBox - > TextEdit ) {
EditBox - > TextEdit - > Paste ( ) ;
return ;
}
2010-06-16 08:20:33 +02:00
SubsGrid - > PasteLines ( SubsGrid - > GetFirstSelRow ( ) ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Paste over
2010-06-16 08:20:27 +02:00
void FrameMain : : OnPasteOver ( wxCommandEvent & ) {
2010-06-16 08:20:33 +02:00
SubsGrid - > PasteLines ( SubsGrid - > GetFirstSelRow ( ) , true ) ;
2006-12-17 19:30:19 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Select visible lines
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSelectVisible ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-06-16 08:20:33 +02:00
SubsGrid - > SelectVisible ( ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open select dialog
2010-06-16 08:20:27 +02:00
void FrameMain : : OnSelect ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-06-16 08:20:33 +02:00
DialogSelection select ( this , SubsGrid ) ;
2006-01-16 22:02:54 +01:00
select . ShowModal ( ) ;
}
2010-05-19 02:44:44 +02:00
/// @brief Sort subtitles by start time
void FrameMain : : OnSortStart ( wxCommandEvent & ) {
AssFile : : top - > Sort ( ) ;
AssFile : : top - > FlagAsModified ( _ ( " sort " ) ) ;
2010-06-16 08:20:33 +02:00
SubsGrid - > UpdateMaps ( ) ;
SubsGrid - > CommitChanges ( ) ;
2010-05-19 02:44:44 +02:00
}
/// @brief Sort subtitles by end time
void FrameMain : : OnSortEnd ( wxCommandEvent & ) {
AssFile : : top - > Sort ( AssFile : : CompEnd ) ;
AssFile : : top - > FlagAsModified ( _ ( " sort " ) ) ;
2010-06-16 08:20:33 +02:00
SubsGrid - > UpdateMaps ( ) ;
SubsGrid - > CommitChanges ( ) ;
2010-05-19 02:44:44 +02:00
}
/// @brief Sort subtitles by style name
void FrameMain : : OnSortStyle ( wxCommandEvent & ) {
AssFile : : top - > Sort ( AssFile : : CompStyle ) ;
2007-01-26 01:47:42 +01:00
AssFile : : top - > FlagAsModified ( _ ( " sort " ) ) ;
2010-06-16 08:20:33 +02:00
SubsGrid - > UpdateMaps ( ) ;
SubsGrid - > CommitChanges ( ) ;
2006-07-07 00:39:58 +02:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Open styling assistant
2010-06-16 08:20:27 +02:00
void FrameMain : : OnOpenStylingAssistant ( wxCommandEvent & ) {
2007-01-21 07:30:19 +01:00
VideoContext : : Get ( ) - > Stop ( ) ;
2010-06-16 08:20:33 +02:00
if ( ! stylingAssistant ) stylingAssistant = new DialogStyling ( this , SubsGrid ) ;
2009-05-14 09:02:01 +02:00
stylingAssistant - > Show ( true ) ;
2006-01-16 22:02:54 +01:00
}
2009-08-02 22:32:53 +02:00
/// @brief Autosave the currently open file, if any
2010-06-16 08:20:27 +02:00
void FrameMain : : OnAutoSave ( wxTimerEvent & ) {
2006-01-16 22:02:54 +01:00
// Auto Save
2006-02-19 05:00:22 +01:00
try {
2007-04-18 03:59:50 +02:00
if ( AssFile : : top - > loaded ) {
2006-02-19 05:00:22 +01:00
// Set path
wxFileName origfile ( AssFile : : top - > filename ) ;
2010-05-21 03:13:36 +02:00
wxString path = lagi_wxString ( OPT_GET ( " Path/Auto/Save " ) - > GetString ( ) ) ;
2006-02-20 22:32:58 +01:00
if ( path . IsEmpty ( ) ) path = origfile . GetPath ( ) ;
2006-02-19 05:00:22 +01:00
wxFileName dstpath ( path ) ;
2009-07-14 05:02:17 +02:00
if ( ! dstpath . IsAbsolute ( ) ) path = StandardPaths : : DecodePathMaybeRelative ( path , _T ( " ?user/ " ) ) ;
2009-08-02 22:32:53 +02:00
dstpath . AssignDir ( path ) ;
2006-02-19 05:00:22 +01:00
if ( ! dstpath . DirExists ( ) ) wxMkdir ( path ) ;
2007-10-22 22:47:57 +02:00
wxString name = origfile . GetName ( ) ;
2009-08-02 22:32:53 +02:00
if ( name . IsEmpty ( ) ) {
dstpath . SetFullName ( " Untitled.AUTOSAVE.ass " ) ;
}
else {
dstpath . SetFullName ( name + L " .AUTOSAVE.ass " ) ;
}
2009-08-02 22:39:36 +02:00
wxFileName temp = dstpath ;
temp . SetName ( dstpath . GetName ( ) + " .temp " ) ;
2009-08-02 22:32:53 +02:00
2009-08-02 22:39:36 +02:00
AssFile : : top - > Save ( temp . GetFullPath ( ) , false , false ) ;
wxRenameFile ( temp . GetFullPath ( ) , dstpath . GetFullPath ( ) ) ;
2006-02-19 05:00:22 +01:00
// Set status bar
2009-08-02 22:32:53 +02:00
StatusTimeout ( _ ( " File backup saved as \" " ) + dstpath . GetFullPath ( ) + _T ( " \" . " ) ) ;
2006-02-19 05:00:22 +01:00
}
}
catch ( wxString err ) {
StatusTimeout ( _T ( " Exception when attempting to autosave file: " ) + err ) ;
}
2006-04-14 18:46:38 +02:00
catch ( const wchar_t * err ) {
2006-02-19 05:00:22 +01:00
StatusTimeout ( _T ( " Exception when attempting to autosave file: " ) + wxString ( err ) ) ;
}
catch ( . . . ) {
StatusTimeout ( _T ( " Unhandled exception when attempting to autosave file. " ) ) ;
2006-01-16 22:02:54 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Clear statusbar
2010-06-16 08:20:27 +02:00
void FrameMain : : OnStatusClear ( wxTimerEvent & ) {
2006-01-16 22:02:54 +01:00
SetStatusText ( _T ( " " ) , 1 ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Next frame hotkey
2010-06-16 08:20:27 +02:00
void FrameMain : : OnNextFrame ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
videoBox - > videoSlider - > NextFrame ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Previous frame hotkey
2010-06-16 08:20:27 +02:00
void FrameMain : : OnPrevFrame ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
videoBox - > videoSlider - > PrevFrame ( ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Toggle focus between seek bar and whatever else
2010-06-16 08:20:27 +02:00
void FrameMain : : OnFocusSeek ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
wxWindow * curFocus = wxWindow : : FindFocus ( ) ;
if ( curFocus = = videoBox - > videoSlider ) {
if ( PreviousFocus ) PreviousFocus - > SetFocus ( ) ;
}
else {
PreviousFocus = curFocus ;
videoBox - > videoSlider - > SetFocus ( ) ;
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Previous line hotkey
2010-06-16 08:20:27 +02:00
void FrameMain : : OnPrevLine ( wxCommandEvent & ) {
2010-06-26 13:32:16 +02:00
SubsGrid - > PrevLine ( ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Next line hotkey
2010-06-16 08:20:27 +02:00
void FrameMain : : OnNextLine ( wxCommandEvent & ) {
2010-06-26 13:32:16 +02:00
SubsGrid - > NextLine ( ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Cycle through tag hiding modes
2010-04-30 22:42:07 +02:00
void FrameMain : : OnToggleTags ( wxCommandEvent & ) {
2010-05-21 03:13:36 +02:00
int tagMode = OPT_GET ( " Subtitle/Grid/Hide Overrides " ) - > GetInt ( ) ;
2006-01-16 22:02:54 +01:00
// Cycle to next
2010-04-30 22:42:07 +02:00
tagMode = ( tagMode + 1 ) % 3 ;
2006-01-16 22:02:54 +01:00
// Show on status bar
2007-01-12 06:57:45 +01:00
wxString message = _ ( " ASS Override Tag mode set to " ) ;
if ( tagMode = = 0 ) message + = _ ( " show full tags. " ) ;
if ( tagMode = = 1 ) message + = _ ( " simplify tags. " ) ;
if ( tagMode = = 2 ) message + = _ ( " hide tags. " ) ;
2006-01-16 22:02:54 +01:00
StatusTimeout ( message , 10000 ) ;
// Set option
2010-05-21 03:13:36 +02:00
OPT_SET ( " Subtitle/Grid/Hide Overrides " ) - > SetInt ( tagMode ) ;
2006-01-16 22:02:54 +01:00
// Refresh grid
2010-06-16 08:20:33 +02:00
SubsGrid - > Refresh ( false ) ;
2006-01-16 22:02:54 +01:00
}
2010-04-30 22:42:07 +02:00
void FrameMain : : OnSetTags ( wxCommandEvent & event ) {
2010-05-21 03:13:36 +02:00
OPT_SET ( " Subtitle/Grid/Hide Overrides " ) - > SetInt ( event . GetId ( ) - Menu_View_FullTags ) ;
2010-06-16 08:20:33 +02:00
SubsGrid - > Refresh ( false ) ;
2010-04-30 22:42:07 +02:00
}
2006-01-16 22:02:54 +01:00
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Commit Edit Box's changes
/// @param event
2006-12-24 18:42:09 +01:00
void FrameMain : : OnEditBoxCommit ( wxCommandEvent & event ) {
// Find focus
wxWindow * focus = FindFocus ( ) ;
2006-12-29 22:45:22 +01:00
if ( ! focus ) return ;
2006-12-24 18:42:09 +01:00
// Is the text edit
if ( focus = = EditBox - > TextEdit ) {
2009-04-26 03:02:23 +02:00
EditBox - > Commit ( true ) ;
2009-04-26 06:31:19 +02:00
EditBox - > Update ( true ) ;
2006-12-24 18:42:09 +01:00
}
// Other window
else {
2006-12-29 22:45:22 +01:00
//wxKeyEvent keyevent;
//keyevent.m_keyCode = WXK_RETURN;
//keyevent.m_controlDown = true;
//keyevent.SetEventType(wxEVT_KEY_DOWN);
wxCommandEvent keyevent ( wxEVT_COMMAND_TEXT_ENTER , focus - > GetId ( ) ) ;
focus - > GetEventHandler ( ) - > AddPendingEvent ( keyevent ) ;
2006-12-24 18:42:09 +01:00
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Choose a different language
2010-06-16 08:20:27 +02:00
void FrameMain : : OnChooseLanguage ( wxCommandEvent & ) {
2006-01-16 22:02:54 +01:00
// Get language
AegisubApp * app = ( AegisubApp * ) wxTheApp ;
int old = app - > locale . curCode ;
int newCode = app - > locale . PickLanguage ( ) ;
// Is OK?
if ( newCode ! = - 1 ) {
// Set code
2010-05-21 03:13:36 +02:00
OPT_SET ( " App/Locale " ) - > SetInt ( newCode ) ;
2006-01-16 22:02:54 +01:00
// Language actually changed?
if ( newCode ! = old ) {
// Ask to restart program
int result = wxMessageBox ( _T ( " Aegisub needs to be restarted so that the new language can be applied. Restart now? " ) , _T ( " Restart Aegisub? " ) , wxICON_QUESTION | wxYES_NO ) ;
if ( result = = wxYES ) {
// Restart Aegisub
2007-06-21 02:46:50 +02:00
if ( Close ( ) ) {
2009-01-04 12:45:06 +01:00
RestartAegisub ( ) ;
//wxStandardPaths stand;
//wxExecute(_T("\"") + stand.GetExecutablePath() + _T("\""));
2007-06-21 02:46:50 +02:00
}
2006-01-16 22:02:54 +01:00
}
}
}
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief View standard
2010-06-16 08:20:27 +02:00
void FrameMain : : OnViewStandard ( wxCommandEvent & ) {
2007-01-23 05:42:08 +01:00
SetDisplayMode ( 1 , 1 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief View video
2010-06-16 08:20:27 +02:00
void FrameMain : : OnViewVideo ( wxCommandEvent & ) {
2007-01-23 05:42:08 +01:00
SetDisplayMode ( 1 , 0 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief View audio
2010-06-16 08:20:27 +02:00
void FrameMain : : OnViewAudio ( wxCommandEvent & ) {
2007-01-23 05:42:08 +01:00
SetDisplayMode ( 0 , 1 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief View subs
2010-06-16 08:20:27 +02:00
void FrameMain : : OnViewSubs ( wxCommandEvent & ) {
2007-01-23 05:42:08 +01:00
SetDisplayMode ( 0 , 0 ) ;
2006-01-16 22:02:54 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief Medusa shortcuts
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaPlay ( wxCommandEvent & ) {
2006-12-30 23:08:23 +01:00
int start = 0 , end = 0 ;
audioBox - > audioDisplay - > GetTimesSelection ( start , end ) ;
audioBox - > audioDisplay - > Play ( start , end ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaStop ( wxCommandEvent & ) {
2007-07-27 10:24:49 +02:00
// Playing, stop
if ( audioBox - > audioDisplay - > player - > IsPlaying ( ) ) {
audioBox - > audioDisplay - > Stop ( ) ;
audioBox - > audioDisplay - > Refresh ( ) ;
}
// Otherwise, play the last 500 ms
else {
int start = 0 , end = 0 ;
audioBox - > audioDisplay - > GetTimesSelection ( start , end ) ;
audioBox - > audioDisplay - > Play ( end - 500 , end ) ;
}
2006-12-30 23:08:23 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaShiftStartForward ( wxCommandEvent & ) {
2006-12-30 23:08:23 +01:00
audioBox - > audioDisplay - > curStartMS + = 10 ;
audioBox - > audioDisplay - > Update ( ) ;
audioBox - > audioDisplay - > wxWindow : : Update ( ) ;
2007-07-27 10:24:49 +02:00
audioBox - > audioDisplay - > UpdateTimeEditCtrls ( ) ;
2006-12-30 23:08:23 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaShiftStartBack ( wxCommandEvent & ) {
2006-12-30 23:08:23 +01:00
audioBox - > audioDisplay - > curStartMS - = 10 ;
audioBox - > audioDisplay - > Update ( ) ;
audioBox - > audioDisplay - > wxWindow : : Update ( ) ;
2007-07-27 10:24:49 +02:00
audioBox - > audioDisplay - > UpdateTimeEditCtrls ( ) ;
2006-12-30 23:08:23 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaShiftEndForward ( wxCommandEvent & ) {
2006-12-30 23:08:23 +01:00
audioBox - > audioDisplay - > curEndMS + = 10 ;
audioBox - > audioDisplay - > Update ( ) ;
audioBox - > audioDisplay - > wxWindow : : Update ( ) ;
2007-07-27 10:24:49 +02:00
audioBox - > audioDisplay - > UpdateTimeEditCtrls ( ) ;
2006-12-30 23:08:23 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaShiftEndBack ( wxCommandEvent & ) {
2006-12-30 23:08:23 +01:00
audioBox - > audioDisplay - > curEndMS - = 10 ;
audioBox - > audioDisplay - > Update ( ) ;
audioBox - > audioDisplay - > wxWindow : : Update ( ) ;
2007-07-27 10:24:49 +02:00
audioBox - > audioDisplay - > UpdateTimeEditCtrls ( ) ;
2006-12-30 23:08:23 +01:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaPlayBefore ( wxCommandEvent & ) {
2006-12-30 23:08:23 +01:00
int start = 0 , end = 0 ;
audioBox - > audioDisplay - > GetTimesSelection ( start , end ) ;
audioBox - > audioDisplay - > Play ( start - 500 , start ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaPlayAfter ( wxCommandEvent & ) {
2006-12-30 23:08:23 +01:00
int start = 0 , end = 0 ;
audioBox - > audioDisplay - > GetTimesSelection ( start , end ) ;
audioBox - > audioDisplay - > Play ( end , end + 500 ) ;
2006-05-05 20:52:09 +02:00
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaNext ( wxCommandEvent & ) {
2007-07-27 10:24:49 +02:00
audioBox - > audioDisplay - > Next ( false ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaPrev ( wxCommandEvent & ) {
2007-07-27 10:24:49 +02:00
audioBox - > audioDisplay - > Prev ( false ) ;
}
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
/// @brief DOCME
2010-06-16 08:20:27 +02:00
void FrameMain : : OnMedusaEnter ( wxCommandEvent & ) {
2007-07-27 10:24:49 +02:00
audioBox - > audioDisplay - > CommitChanges ( true ) ;
}