Aegisub/core
Rodrigo Braz Monteiro ba9fb80bd9 Added #include <wx/notebook.h> to file, to make it compile with newer wxWidgets
Originally committed to SVN as r47.
2006-01-29 21:04:52 +00:00
..
bitmaps moved events for fextracker & fexmovement into its own file 2006-01-29 20:48:05 +00:00
about.cpp more audio documentation updates, plus random fixage in about.cpp 2006-01-21 01:45:27 +00:00
about.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
aegisublocale.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
aegisublocale.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
aspell_wrap.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
aspell_wrap.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_dialogue.cpp moved all tracking stuff into FexTracker popup menu 2006-01-29 15:08:51 +00:00
ass_dialogue.h moved all tracking stuff into FexTracker popup menu 2006-01-29 15:08:51 +00:00
ass_entry.cpp Moved AssEntry constructors to where they should be 2006-01-25 22:19:40 +00:00
ass_entry.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_export_filter.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_export_filter.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_exporter.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_exporter.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_file.cpp Small fix regarding character set of files being exported 2006-01-20 00:16:32 +00:00
ass_file.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_override.cpp Fixed parser to handle unset parameters properly (that is, without crashing) 2006-01-17 07:52:18 +00:00
ass_override.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_style.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_style.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_style_storage.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_style_storage.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_time.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
ass_time.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
audio_box.cpp Implemented new karaoke splitter. Still needs some work, especially graphically. 2006-01-27 00:48:59 +00:00
audio_box.h Implemented new karaoke splitter. Still needs some work, especially graphically. 2006-01-27 00:48:59 +00:00
audio_display.cpp Bugfix: Karaoke splitting only worked on lines that were already marked dirty (autosplit lines being in that category), unless SSA mode was enabled. 2006-01-27 03:18:26 +00:00
audio_display.h Audio crash in 1.09 fix(?) and small cleanup 2006-01-21 01:09:53 +00:00
audio_karaoke.cpp Less signedness warnings and probably a fix for setting the tag string 2006-01-28 15:11:59 +00:00
audio_karaoke.h Less signedness warnings and probably a fix for setting the tag string 2006-01-28 15:11:59 +00:00
audio_provider.cpp Smaller audio ram cache blocksize 2006-01-25 10:56:24 +00:00
audio_provider.h Audio crash in 1.09 fix(?) and small cleanup 2006-01-21 01:09:53 +00:00
automation.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
automation.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
automation_filter.cpp fix initialization orders (pedantic) 2006-01-19 10:35:04 +00:00
automation_filter.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
automation_gui.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
automation_gui.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
avisynth.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
avisynth_wrap.cpp Fix AviSynthWrapper reference counting again 2006-01-28 15:23:48 +00:00
avisynth_wrap.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
changelog.txt From changelog: 2006-01-27 22:22:31 +00:00
colorspace.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
colorspace.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_associations.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_associations.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_colorpicker.cpp fix initialization orders (pedantic) 2006-01-19 10:35:04 +00:00
dialog_colorpicker.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_export.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_export.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_fextracker.cpp Added #include <wx/notebook.h> to file, to make it compile with newer wxWidgets 2006-01-29 21:04:52 +00:00
dialog_fextracker.h moved events for fextracker & fexmovement into its own file 2006-01-29 20:48:05 +00:00
dialog_hotkeys.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_hotkeys.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_jumpto.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_jumpto.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_progress.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_progress.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_properties.cpp The big VideoDisplay split 2006-01-22 12:44:53 +00:00
dialog_properties.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_resample.cpp The big VideoDisplay split 2006-01-22 12:44:53 +00:00
dialog_resample.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_search_replace.cpp VC 2005 compatibility stuff 2006-01-19 01:42:39 +00:00
dialog_search_replace.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_selection.cpp VC 2005 compatibility stuff 2006-01-19 01:42:39 +00:00
dialog_selection.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_shift_times.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_shift_times.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_spellcheck.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_spellcheck.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_style_editor.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_style_editor.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_style_manager.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_style_manager.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_styling_assistant.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_styling_assistant.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_timing_processor.cpp Implemented new karaoke splitter. Still needs some work, especially graphically. 2006-01-27 00:48:59 +00:00
dialog_timing_processor.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
dialog_translation.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
dialog_translation.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
drop.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
drop.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
export_clean_info.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
export_clean_info.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
export_fixstyle.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
export_fixstyle.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
export_framerate.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
export_framerate.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
fexmovement.h moved all tracking stuff into FexTracker popup menu 2006-01-29 15:08:51 +00:00
FexTracker.h moved events for fextracker & fexmovement into its own file 2006-01-29 20:48:05 +00:00
fextracker_main_events.cpp PrOpEr CaPiTaLiZaTiOn 2006-01-29 20:59:58 +00:00
FexTrackingFeature.h moved all tracking stuff into FexTracker popup menu 2006-01-29 15:08:51 +00:00
fft.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
fft.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
fonts_collector.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
fonts_collector.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
frame_main.cpp The big VideoDisplay split 2006-01-22 12:44:53 +00:00
frame_main.h moved events for fextracker & fexmovement into its own file 2006-01-29 20:48:05 +00:00
frame_main_events.cpp moved events for fextracker & fexmovement into its own file 2006-01-29 20:48:05 +00:00
hilimod_textctrl.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
hilimod_textctrl.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
hotkeys.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
hotkeys.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
main.cpp VC 2005 compatibility stuff 2006-01-19 01:42:39 +00:00
main.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
options.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
options.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
readme.txt Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
res.rc moved events for fextracker & fexmovement into its own file 2006-01-29 20:48:05 +00:00
splash.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
splash.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
static_bmp.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
static_bmp.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
string_codec.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
string_codec.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
subs_edit_box.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
subs_edit_box.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
subs_grid.cpp The big VideoDisplay split 2006-01-22 12:44:53 +00:00
subs_grid.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
tenlist.h tenfex .h in correct folder 2006-01-28 20:26:27 +00:00
text_file_reader.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
text_file_reader.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
text_file_writer.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
text_file_writer.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
timeedit_ctrl.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
timeedit_ctrl.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
tip.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
tip.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
todo.txt Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
toggle_bitmap.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
toggle_bitmap.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
utils.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
utils.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
validators.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
validators.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
variable_data.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
variable_data.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
version.h Update version number 2006-01-28 14:50:13 +00:00
vfr.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
vfr.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
vfw_wrap.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
vfw_wrap.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
video_box.cpp moved events for fextracker & fexmovement into its own file 2006-01-29 20:48:05 +00:00
video_box.h Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
video_display.cpp PrOpEr CaPiTaLiZaTiOn 2006-01-29 20:59:58 +00:00
video_display.h moved events for fextracker & fexmovement into its own file 2006-01-29 20:48:05 +00:00
video_provider.cpp added support for FexTracker 2006-01-28 19:48:35 +00:00
video_provider.h added support for FexTracker 2006-01-28 19:48:35 +00:00
video_slider.cpp Repaint videoslider when resizing 2006-01-20 22:56:15 +00:00
video_slider.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
video_zoom.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
video_zoom.h remove extra semicolons and commas (strict ISO-C++98) 2006-01-19 10:33:56 +00:00
yatta_wrap.cpp Originally committed to SVN as r2. 2006-01-16 21:02:54 +00:00
yatta_wrap.h add newline at end of yatta_wrap.h 2006-01-17 00:39:18 +00:00

Aegisub Source Code Documentation


Some thoughts:

First, some of the code is pretty readable, some is decent, and some is patched up crap. Good luck. ;)
Second, if you want to code anything for Aegisub, you will need to agree to these terms:
  1. You will release the patch to the public domain or give its copyright to one of the developers. This is to stop a source file from being owned by too many people. (Exception: MAJOR changes might be accepted under BSD license under your name. Consult the developers)
  2. Make SURE it compiles and works fine before submitting to developers.
  3. Stick to the coding standards. That is, no GNU-style identing and crap.
Third, this is all available under the BSD license. According to GNU itself, BSD is GPL-compatible, meaning that you can link GPL code to BSD code. Keep in mind, though, that if a source file has mixed BSD and GPL content, it becomes ruled by GPL.


Some notes about the procedure:
All paths should be added to the global msvc settings or you might encounter some problems.
This guide assumes Visual Studio 2003 is used, it might work in other versions but it is guaranteed
to fail with other compilers due to the avisynth dependency.
While you can compile most libraries yourself these instructions will assume you want to
download precompiled versions whenever possible. Also note that in  most other cases where
precompiled libraries are available they're unsuitable for use in aegisub.

Building instructions (dependencies):

1. Download and install wxWidgets 2.6.x (www.wxwidgets.org, 2.6.2 used when this guide was written).
Open include\wx\msw\setup.h and set WXWIN_COMPATIBILITY_2_4 to 0 and wxUSE_UNICODE to 1. To compile the libraries
first open the visual studio command prompt and go to build\msw. Run "nmake makefile.vc UNICODE=1 BUILD=debug"
and then "nmake makefile.vc UNICODE=1 BUILD=release" to generate the libraries required for aegisub.

Include:
  include
  lib\vc_lib\mswu
Libraries:
  lib\vc_lib

2. Download and compile freetype2 (www.freetype.org). The easiest way to do this is to open the solution found in
builds\win32\visualc\freetype.sln and then batch build all configurations.

Include:
  include
Libraries:
  objs

3. Download and compile lua (www.lua.org). This easiest done by copying the contents of include, src/lib and src/lua
to src (overwriting makefiles makes no difference here). Create a new win32 c++ project, select static library,
blank project and uncheck precompiled headers. Add all h and c files in src to the project and set code generation
to multi threaded (debug) dll in the configurations, set the output names to lua50MT(d).lib in the lib directory.
Batch compile.

Include:
  include
Libraries:
  lib

4. Download and compile portaudio (www.portaudio.com). If you want to compile the directsound version
you need to have the directx9 sdk properly set up before continuing. This process is very similar to lua. First copy
the contents of pa_common to the pa_win_wmme and pa_win_ds dirs. Create a blank project and add all files in pa_win_ds
(for directshow) or in pa_win_wmme (for wmme audio output) to the project. Set the library name to PAStaticDSMT(d).lib
and the output path to lib. Set the code generation to multi threaded (debug) dll and batch compile.

Include:
  pa_common
Libraries:
  lib

5. OPTIONAL - You can safely skip this step if you don't intend to work on the aspell part of aegisub. It's disabled in
the release builds. Download precompiled libs for aspell (aspell.net/win32/) the current direct link is
http://ftp.gnu.org/gnu/aspell/w32/aspell-dev-0-50-3-3.zip.

Include:
  include
Libraries:
  lib

Building instructions (aegisub):

1. Create a new blank Win32 c++ project in msvc. Add all h, cpp and rc files to the project. Open the settings and add
UNICODE to the preprocessor defines. Set the code generation to multi threaded (debug) dll.

2. OPTIONAL - Define NO_SPELLCHECKER if you want to compile without aspell support.

3. Add the libraries to the linker input. If you compiled portaudio with wmme you have to remove dsound.lib and srmiids.lib
and replace PAStaticDS*.lib with the wmme version. Remove libaspell-15-dll.lib if you defined NO_SPELLCHECKER.

Link to these libraries for release:
freetype2110MT.lib libaspell-15-dll.lib wxzlib.lib wxpng.lib wxregexu.lib wxmsw26u_adv.lib wxmsw26u_core.lib wxbase26u.lib wxmsw26u_media.lib dsound.lib PAStaticDSMT.lib Vfw32.lib winmm.lib lua50MT.lib comctl32.lib rpcrt4.lib advapi32.lib wsock32.lib strmiids.lib

Link to these libraries for debug:
freetype2110MT_D.lib libaspell-15-dll.lib dsound.lib PAStaticDSMTd.lib Vfw32.lib lua50MTd.lib wxzlibd.lib wxpngd.lib wxregexud.lib wxbase26ud.lib wxmsw26ud_media.lib wxmsw26ud_core.lib wxmsw26ud_adv.lib comctl32.lib rpcrt4.lib winmm.lib advapi32.lib wsock32.lib strmiids.lib

3. Compile and wait.