1
0
Fork 0

Clean up unused includes

This commit is contained in:
Thomas Goyne 2014-05-22 15:40:16 -07:00
parent df406d5452
commit 09e325a1c3
173 changed files with 182 additions and 662 deletions

View File

@ -18,9 +18,9 @@
#include "libaegisub/spellchecker.h"
#include "iconv.h"
#include <boost/locale/boundary.hpp>
#include <boost/locale/boundary/index.hpp>
#include <boost/locale/boundary/segment.hpp>
#include <boost/locale/boundary/types.hpp>
namespace {

View File

@ -9,8 +9,7 @@ Author: Terry Caton
#include "libaegisub/cajun/visitor.h"
#include <algorithm>
#include <cassert>
#include <utility>
namespace {
using namespace json;

View File

@ -18,8 +18,6 @@
#include "libaegisub/ass/dialogue_parser.h"
#include <boost/range.hpp>
namespace {
struct proto_lit {
const char *name;

View File

@ -28,7 +28,6 @@
#include "../../vendor/universalchardet/nscore.h"
#include "../../vendor/universalchardet/nsUniversalDetector.h"
#include "../../vendor/universalchardet/nsMBCSGroupProber.h"
#include "../../vendor/universalchardet/nsCharSetProber.h"
namespace {

View File

@ -18,12 +18,10 @@
#include "charset_6937.h"
#include <algorithm>
#include <cerrno>
#include <iconv.h>
#include <boost/range/algorithm.hpp>
#include <boost/range/algorithm/lower_bound.hpp>
namespace {

View File

@ -20,7 +20,7 @@
#include "libaegisub/make_unique.h"
#include "libaegisub/util.h"
#include <boost/filesystem.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/interprocess/mapped_region.hpp>
#include <limits>

View File

@ -17,12 +17,11 @@
#include "libaegisub/fs.h"
#include "libaegisub/access.h"
#include "libaegisub/exception.h"
#include "libaegisub/log.h"
#include <boost/algorithm/string/predicate.hpp>
#define BOOST_NO_SCOPED_ENUMS
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#undef BOOST_NO_SCOPED_ENUMS
namespace bfs = boost::filesystem;

View File

@ -19,7 +19,6 @@
#include "libaegisub/hotkey.h"
#include "libaegisub/cajun/writer.h"
#include "libaegisub/exception.h"
#include "libaegisub/io.h"
#include "libaegisub/json.h"
#include "libaegisub/log.h"
@ -27,7 +26,6 @@
#include <algorithm>
#include <boost/algorithm/string/join.hpp>
#include <boost/range/adaptor/map.hpp>
#include <cmath>
#include <tuple>
namespace agi {

View File

@ -22,11 +22,10 @@
#include "libaegisub/fs.h"
#include "libaegisub/log.h"
#include "libaegisub/make_unique.h"
#include "libaegisub/path.h"
#include "libaegisub/util.h"
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
namespace agi {
namespace io {

View File

@ -18,10 +18,10 @@
#include "libaegisub/json.h"
#include "libaegisub/cajun/reader.h"
#include "libaegisub/fs.h"
#include "libaegisub/io.h"
#include "libaegisub/log.h"
#include "libaegisub/make_unique.h"
#include <boost/interprocess/streams/bufferstream.hpp>

View File

@ -19,13 +19,11 @@
#include "libaegisub/keyframe.h"
#include <algorithm>
#include "libaegisub/io.h"
#include "libaegisub/line_iterator.h"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/range/algorithm/copy.hpp>
namespace {
std::vector<int> agi_keyframes(std::istream &file) {

View File

@ -12,25 +12,18 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file log.cpp
/// @brief Logging
/// @ingroup libaegisub
#include "libaegisub/log.h"
#include "libaegisub/cajun/elements.h"
#include "libaegisub/cajun/writer.h"
#include "libaegisub/dispatch.h"
#include "libaegisub/io.h"
#include "libaegisub/time.h"
#include "libaegisub/util.h"
#include <algorithm>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/range/algorithm.hpp>
#include <cstring>
#include <functional>
#include <mutex>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/range/algorithm/remove_if.hpp>
namespace agi {
namespace log {

View File

@ -30,7 +30,6 @@
#include "option_visit.h"
#include <boost/interprocess/streams/bufferstream.hpp>
#include <boost/range/adaptor/map.hpp>
#include <cassert>
#include <memory>

View File

@ -20,9 +20,7 @@
#include "option_visit.h"
#include <cassert>
#include <cmath>
#include <libaegisub/color.h>
#include <libaegisub/log.h>
#include <libaegisub/option_value.h>
#include <libaegisub/make_unique.h>

View File

@ -22,7 +22,6 @@
#include "libaegisub/cajun/visitor.h"
#include <memory>
#include <vector>
namespace agi {

View File

@ -21,10 +21,8 @@
#include "libaegisub/path.h"
#include "libaegisub/fs.h"
#include "libaegisub/make_unique.h"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem.hpp>
#include <boost/range/distance.hpp>
namespace {

View File

@ -23,7 +23,7 @@
#include "libaegisub/line_iterator.h"
#include "libaegisub/make_unique.h"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/interprocess/streams/bufferstream.hpp>
#include <boost/phoenix/operator/comparison.hpp>
#include <boost/phoenix/core/argument.hpp>

View File

@ -17,11 +17,9 @@
#include "libaegisub/util.h"
#include "libaegisub/util_osx.h"
#include "libaegisub/exception.h"
#include <boost/locale/boundary.hpp>
#include <boost/locale/conversion.hpp>
#include <boost/range/algorithm_ext.hpp>
#include <boost/range/distance.hpp>
#include <ctime>
namespace {

View File

@ -21,7 +21,6 @@
#include "libaegisub/charset.h"
#include "libaegisub/io.h"
#include "libaegisub/line_iterator.h"
#include "libaegisub/scoped_ptr.h"
#include <algorithm>
#include <boost/interprocess/streams/bufferstream.hpp>
@ -30,7 +29,6 @@
#include <functional>
#include <iterator>
#include <list>
#include <numeric>
namespace {

View File

@ -12,16 +12,9 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file access.h
/// @brief Public interface for access methods.
/// @ingroup libaegisub
#include <libaegisub/exception.h>
#include <libaegisub/fs_fwd.h>
namespace agi {
namespace acs {
namespace agi { namespace acs {
enum Type {
FileRead,
DirRead,
@ -36,6 +29,4 @@ inline void CheckFileWrite(fs::path const& file) { Check(file, acs::FileWrite);
inline void CheckDirRead(fs::path const& dir) { Check(dir, acs::DirRead); }
inline void CheckDirWrite(fs::path const& dir) { Check(dir, acs::DirWrite); }
} // namespace axs
} // namespace agi
} }

View File

@ -10,7 +10,6 @@ Author: Terry Caton
#include <cstdint>
#include <deque>
#include <list>
#include <map>
#include <memory>
#include <string>
@ -25,9 +24,6 @@ struct Visitor;
struct ConstVisitor;
class UnknownElement;
template <typename ValueTypeT>
class TrivialType_T;
typedef int64_t Integer;
typedef double Double;
typedef bool Boolean;

View File

@ -18,7 +18,6 @@
#include <boost/filesystem/path.hpp>
#include <map>
#include <memory>
#include <string>
#include <vector>

View File

@ -16,14 +16,10 @@
/// @brief Parse JSON files and return json::UnknownElement
/// @ingroup libaegisub io
#include <libaegisub/cajun/reader.h>
#include <libaegisub/cajun/elements.h>
#include <libaegisub/fs_fwd.h>
#include <memory>
namespace agi {
namespace json_util {
namespace agi { namespace json_util {
/// Parse a JSON stream.
/// @param stream JSON stream to parse
@ -41,5 +37,4 @@ json::UnknownElement file(agi::fs::path const& file);
/// @return json::UnknownElement
json::UnknownElement file(agi::fs::path const& file, std::pair<const char *, size_t> default_config);
} // namespace json_util
} // namespace agi
} }

View File

@ -14,7 +14,8 @@
//
// Aegisub Project http://www.aegisub.org/
#include <boost/range/iterator_range.hpp>
#include <boost/range/iterator_range_core.hpp>
#include <string>
#include <vector>
namespace agi {

View File

@ -12,18 +12,12 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file keyframe.h
/// @see keyframe.cpp
/// @ingroup libaegisub
///
#include <vector>
#include "exception.h"
#include "fs_fwd.h"
namespace agi {
namespace vfr { class Framerate; }
namespace keyframe {
/// @brief Load a keyframe file
/// @param filename File to load

View File

@ -19,7 +19,6 @@
#include <libaegisub/fs_fwd.h>
#include <libaegisub/time.h>
#include <ctime>
#include <boost/circular_buffer.hpp>
#include <boost/interprocess/streams/bufferstream.hpp>
#include <iosfwd>

View File

@ -18,7 +18,6 @@
/// @brief Common paths.
/// @ingroup libaegisub
#include <libaegisub/exception.h>
#include <libaegisub/fs_fwd.h>
#include <boost/filesystem/path.hpp>

View File

@ -12,10 +12,6 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file thesaurus.h
/// @brief MyThes-compatible thesaurus implementation
/// @ingroup libaegisub thesaurus
#include "fs_fwd.h"
#include <boost/container/flat_map.hpp>

View File

@ -12,17 +12,11 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file util.h
/// @brief Public interface for general utilities.
/// @ingroup libaegisub
#include <libaegisub/time.h>
#include <algorithm>
#include <boost/range/irange.hpp>
#include <cstdint>
#include <string>
#include <memory>
struct tm;

View File

@ -12,16 +12,10 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file vfr.h
/// @brief Framerate handling of all sorts
/// @ingroup libaegisub video_input
#pragma once
#include <string>
#include <vector>
#include <cstdint>
#include <vector>
#include <libaegisub/exception.h>
#include <libaegisub/fs_fwd.h>

View File

@ -16,7 +16,8 @@
#include "libaegisub/lua/utils.h"
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/range/size.hpp>
namespace {

View File

@ -16,7 +16,7 @@
#include "libaegisub/lua/utils.h"
#include <boost/locale.hpp>
#include <boost/locale/conversion.hpp>
namespace {
using namespace agi::lua;

View File

@ -18,7 +18,8 @@
#include "libaegisub/fs.h"
#include "libaegisub/io.h"
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <fcntl.h>
#include <fnmatch.h>
#include <istream>

View File

@ -12,22 +12,14 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file log.cpp
/// @brief Unix logging
/// @ingroup libaegisub
#include <cstdio>
#include <ctime>
#include <cstring>
#include <unistd.h>
#include "libaegisub/log.h"
#include "libaegisub/make_unique.h"
namespace agi {
namespace log {
namespace agi { namespace log {
void EmitSTDOUT::log(SinkMessage *sm) {
tm tmtime;
localtime_r(&sm->tv.tv_sec, &tmtime);
@ -47,6 +39,4 @@ void EmitSTDOUT::log(SinkMessage *sm) {
if (!isatty(fileno(stdout)))
fflush(stdout);
}
} // namespace log
} // namespace agi
} }

View File

@ -16,9 +16,10 @@
#include <libaegisub/path.h>
#include <libaegisub/exception.h>
#include <libaegisub/util_osx.h>
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#include <pwd.h>
namespace {
@ -38,7 +39,6 @@ std::string home_dir() {
}
namespace agi {
void Path::FillPlatformSpecificPaths() {
#ifndef __APPLE__
agi::fs::path home = home_dir();

View File

@ -12,12 +12,6 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file util.cpp
/// @brief Unix utility methods.
/// @ingroup libaegisub unix
#include "libaegisub/make_unique.h"
#include <boost/thread.hpp>
namespace agi { namespace util {

View File

@ -20,6 +20,7 @@
#include <libaegisub/path.h>
#include <libaegisub/exception.h>
#include <libaegisub/make_unique.h>
#include <boost/filesystem.hpp>

View File

@ -19,7 +19,6 @@
#include <libaegisub/fs_fwd.h>
#include <boost/flyweight.hpp>
#include <vector>
/// @class AssAttachment
class AssAttachment final : public AssEntry {

View File

@ -36,8 +36,6 @@
#include "ass_override.h"
#include "ass_time.h"
#include <libaegisub/exception.h>
#include <array>
#include <boost/flyweight.hpp>
#include <vector>

View File

@ -39,7 +39,6 @@
#include <vector>
class AssExportFilter;
class AssFile;
namespace agi { struct Context; }
class wxSizer;
class wxWindow;

View File

@ -22,9 +22,6 @@
#include "ass_style.h"
#include "ass_style_storage.h"
#include "options.h"
#include "utils.h"
#include <libaegisub/fs.h>
#include <algorithm>
#include <boost/algorithm/string/case_conv.hpp>

View File

@ -17,14 +17,10 @@
#include "ass_karaoke.h"
#include "ass_dialogue.h"
#include "ass_file.h"
#include "include/aegisub/context.h"
#include "selection_controller.h"
#include <boost/format.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <wx/intl.h>
std::string AssKaraoke::Syllable::GetText(bool k_tag) const {
std::string ret;

View File

@ -15,7 +15,6 @@
// Aegisub Project http://www.aegisub.org/
#include <map>
#include <set>
#include <string>
#include <vector>

View File

@ -12,8 +12,6 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <array>
#include <map>
#include <memory>
class AssAttachment;

View File

@ -39,12 +39,9 @@
#include <libaegisub/split.h>
#include <algorithm>
#include <boost/algorithm/string/trim.hpp>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#include <cctype>
#include <wx/intl.h>
AssStyle::AssStyle() {

View File

@ -27,17 +27,13 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file ass_style.h
/// @see ass_style.cpp
/// @ingroup subs_storage
///
#include "ass_entry.h"
#include <libaegisub/color.h>
#include <array>
#include <wx/arrstr.h>
class wxArrayString;
class AssStyle final : public AssEntry, public AssEntryListHook {
std::string data;

View File

@ -20,15 +20,10 @@
#include "ass_file.h"
#include "export_fixstyle.h"
#include "include/aegisub/subtitles_provider.h"
#include "video_frame.h"
#include "video_provider_manager.h"
#include <libaegisub/dispatch.h>
#include <condition_variable>
#include <functional>
#include <mutex>
enum {
NEW_SUBS_FILE = -1,
SUBS_FILE_ALREADY_LOADED = -2

View File

@ -27,28 +27,6 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_box.cpp
/// @brief The entire audio area in the main UI, containing display and related toolbars
/// @ingroup audio_ui
///
#include <cmath>
#include <wx/bmpbuttn.h>
#include <wx/panel.h>
#include <wx/slider.h>
#include <wx/scrolbar.h>
#include <wx/sizer.h>
#include <wx/slider.h>
#include <wx/string.h>
#include <wx/statline.h>
#include <wx/textctrl.h>
#include <wx/tglbtn.h>
#include <wx/toolbar.h>
#include <wx/laywin.h> // Keep this last so wxSW_3D is set.
#include <libaegisub/log.h>
#include "audio_box.h"
#include "include/aegisub/context.h"
@ -58,14 +36,20 @@
#include "audio_display.h"
#include "audio_karaoke.h"
#include "audio_timing.h"
#include "command/command.h"
#include "libresrc/libresrc.h"
#include "options.h"
#include "project.h"
#include "toggle_bitmap.h"
#include "selection_controller.h"
#include "utils.h"
#include <cmath>
#include <wx/panel.h>
#include <wx/slider.h>
#include <wx/scrolbar.h>
#include <wx/sizer.h>
#include <wx/slider.h>
#include <wx/string.h>
#include <wx/toolbar.h>
enum {
Audio_Horizontal_Zoom = 1600,
Audio_Vertical_Zoom,

View File

@ -27,11 +27,7 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_box.h
/// @see audio_box.cpp
/// @ingroup audio_ui
///
#include <wx/defs.h>
#include <wx/sashwin.h>
#include <libaegisub/signal.h>

View File

@ -27,13 +27,6 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_colorscheme.cpp
/// @ingroup audio_ui
///
/// Manage colour schemes for the audio display
#include <algorithm>
#include "audio_colorscheme.h"
#include "audio_rendering_style.h"

View File

@ -35,8 +35,6 @@
#include "include/aegisub/context.h"
#include "options.h"
#include "project.h"
#include "selection_controller.h"
#include "utils.h"
#include <algorithm>

View File

@ -28,7 +28,6 @@
// Aegisub Project http://www.aegisub.org/
#include <libaegisub/exception.h>
#include <libaegisub/fs_fwd.h>
#include <libaegisub/signal.h>
#include <cstdint>

View File

@ -28,28 +28,20 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_display.cpp
/// @brief Display audio in the main UI
/// @ingroup audio_ui
///
#include "audio_display.h"
#include "ass_time.h"
#include "audio_colorscheme.h"
#include "audio_controller.h"
#include "audio_renderer.h"
#include "audio_renderer_spectrum.h"
#include "audio_renderer_waveform.h"
#include "audio_timing.h"
#include "block_cache.h"
#include "compat.h"
#include "include/aegisub/audio_provider.h"
#include "include/aegisub/context.h"
#include "include/aegisub/hotkey.h"
#include "options.h"
#include "project.h"
#include "selection_controller.h"
#include "utils.h"
#include "video_controller.h"
@ -58,7 +50,6 @@
#include <algorithm>
#include <wx/dcbuffer.h>
#include <wx/dcclient.h>
#include <wx/mousestate.h>
namespace {

View File

@ -27,11 +27,8 @@
// POSSIBILITY OF SUCH DAMAGE.
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_display.h
/// @see audio_display.cpp
/// @ingroup audio_ui
///
//
#include <libaegisub/signal.h>
#include <chrono>
#include <cstdint>
@ -43,14 +40,11 @@
#include <wx/timer.h>
#include <wx/window.h>
#include <libaegisub/signal.h>
namespace agi { struct Context; }
class AudioController;
class AudioRenderer;
class AudioRendererBitmapProvider;
class AudioKaraoke;
class AudioProvider;
class TimeRange;
@ -58,7 +52,6 @@ class TimeRange;
namespace {
class AudioDisplayScrollbar;
class AudioDisplayTimeline;
class AudioDisplaySelection;
}
class AudioMarkerInteractionObject;

View File

@ -40,7 +40,6 @@
#include <algorithm>
#include <boost/locale/boundary.hpp>
#include <numeric>
#include <wx/bmpbuttn.h>
#include <wx/button.h>
#include <wx/dcclient.h>

View File

@ -16,18 +16,18 @@
#pragma once
#include "time_range.h"
#include <libaegisub/signal.h>
#include <memory>
#include <vector>
#include <wx/string.h>
class AudioMarkerKeyframe;
class Pen;
class Project;
class VideoController;
class TimeRange;
class VideoPositionMarker;
class wxPen;
@ -36,8 +36,6 @@ namespace agi {
struct Context;
}
#include "time_range.h"
/// @class AudioMarker
/// @brief A marker on the audio display
class AudioMarker {

View File

@ -27,23 +27,15 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_provider.cpp
/// @brief Baseclass for audio providers
/// @ingroup audio_input
///
#include "include/aegisub/audio_provider.h"
#include "audio_controller.h"
#include "factory_manager.h"
#include "frame_main.h"
#include "options.h"
#include "utils.h"
#include <libaegisub/background_runner.h>
#include <libaegisub/fs.h>
#include <libaegisub/log.h>
#include <libaegisub/make_unique.h>
#include <boost/range/iterator_range.hpp>

View File

@ -27,17 +27,12 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_provider_dummy.cpp
/// @brief Dummy (silence or noise) audio provider
/// @ingroup audio_input
///
#include "include/aegisub/audio_provider.h"
#include <libaegisub/fs.h>
#include <libaegisub/make_unique.h>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem/path.hpp>
/*
* scheme ::= "dummy-audio" ":" signal-specifier "?" signal-parameters

View File

@ -17,7 +17,6 @@
#include "include/aegisub/audio_provider.h"
#include "audio_controller.h"
#include "compat.h"
#include "options.h"
#include <libaegisub/file_mapping.h>
@ -25,13 +24,10 @@
#include <libaegisub/path.h>
#include <libaegisub/make_unique.h>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/format.hpp>
#include <boost/interprocess/detail/os_thread_functions.hpp>
#include <thread>
#include <wx/intl.h>
namespace {
class HDAudioProvider final : public AudioProviderWrapper {

View File

@ -27,19 +27,12 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_provider_pcm.cpp
/// @brief PCM WAV and WAV64 audio provider
/// @ingroup audio_input
///
#include "include/aegisub/audio_provider.h"
#include "audio_controller.h"
#include "utils.h"
#include <libaegisub/file_mapping.h>
#include <libaegisub/fs.h>
#include <libaegisub/log.h>
#include <libaegisub/make_unique.h>
#include <vector>

View File

@ -35,14 +35,12 @@
#include "include/aegisub/audio_provider.h"
#include "audio_controller.h"
#include "compat.h"
#include <libaegisub/make_unique.h>
#include <array>
#include <boost/container/stable_vector.hpp>
#include <thread>
#include <wx/intl.h>
namespace {

View File

@ -38,10 +38,7 @@
#include <libaegisub/make_unique.h>
#include <algorithm>
#include <functional>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/dc.h>
namespace {
template<typename T>

View File

@ -27,29 +27,20 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_renderer.h
/// @see audio_renderer.cpp
/// @ingroup audio_ui
///
/// Base classes for audio renderers (spectrum, waveform, ...)
#pragma once
#include <memory>
#include <vector>
#include <wx/dc.h>
#include <wx/gdicmn.h>
#include "audio_rendering_style.h"
#include "block_cache.h"
// Some forward declarations for outside stuff
class AudioProvider;
// Forwards declarations for internal stuff
class AudioRendererBitmapProvider;
class AudioRenderer;
class wxDC;
/// @class AudioRendererBitmapCacheBitmapFactory
/// @brief Produces wxBitmap objects for DataBlockCache storage for the audio renderer

View File

@ -39,15 +39,12 @@
#include "fft.h"
#endif
#include "include/aegisub/audio_provider.h"
#include "utils.h"
#include <libaegisub/log.h>
#include <libaegisub/make_unique.h>
#include <algorithm>
#include <wx/image.h>
#include <wx/rawbmp.h>
#include <wx/dcmemory.h>
/// Allocates blocks of derived data for the audio spectrum

View File

@ -27,23 +27,16 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_renderer_waveform.cpp
/// @ingroup audio_ui
///
/// Render a waveform display of PCM audio data
#include "audio_renderer_waveform.h"
#include "audio_colorscheme.h"
#include "include/aegisub/audio_provider.h"
#include "options.h"
#include <algorithm>
#include <wx/dcmemory.h>
#include "audio_colorscheme.h"
#include "block_cache.h"
#include "colorspace.h"
#include "include/aegisub/audio_provider.h"
#include "options.h"
enum {
/// Only render the peaks
Waveform_MaxOnly = 0,

View File

@ -27,19 +27,14 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_renderer_waveform.h
/// @see audio_renderer_waveform.cpp
/// @ingroup audio_ui
///
/// Render a waveform display of PCM audio data
#include "audio_renderer.h"
#include <cstdint>
#include <vector>
class AudioColorScheme;
class wxArrayString;
#include "audio_renderer.h"
/// Render a waveform display of PCM audio data
class AudioWaveformRenderer final : public AudioRendererBitmapProvider {
/// Colour tables used for rendering
std::vector<AudioColorScheme> colors;

View File

@ -27,14 +27,11 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_timing_dialogue.cpp
/// @brief Default timing mode for dialogue subtitles
/// @ingroup audio_ui
#include "ass_dialogue.h"
#include "ass_file.h"
#include "ass_time.h"
#include "audio_renderer.h"
#include "audio_marker.h"
#include "audio_rendering_style.h"
#include "audio_timing.h"
#include "command/command.h"
#include "include/aegisub/context.h"
@ -46,7 +43,6 @@
#include <libaegisub/make_unique.h>
#include <boost/range/algorithm.hpp>
#include <cstdint>
#include <wx/pen.h>
namespace {

View File

@ -14,18 +14,14 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file audio_timing_karaoke.cpp
/// @brief Timing mode for karaoke
/// @ingroup audio_ui
///
#include <libaegisub/signal.h>
#include "ass_dialogue.h"
#include "ass_file.h"
#include "ass_karaoke.h"
#include "audio_controller.h"
#include "audio_renderer.h"
#include "audio_marker.h"
#include "audio_rendering_style.h"
#include "audio_timing.h"
#include "compat.h"
#include "include/aegisub/context.h"
@ -39,6 +35,7 @@
#include <boost/range/algorithm/copy.hpp>
#include <boost/range/adaptor/filtered.hpp>
#include <boost/range/adaptor/sliced.hpp>
#include <wx/intl.h>
/// @class KaraokeMarker
/// @brief AudioMarker implementation for AudioTimingControllerKaraoke

View File

@ -27,23 +27,16 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file auto4_base.cpp
/// @brief Baseclasses for Automation 4 scripting framework
/// @ingroup scripting
///
#include "auto4_base.h"
#include "ass_file.h"
#include "ass_style.h"
#include "command/command.h"
#include "compat.h"
#include "dialog_progress.h"
#include "include/aegisub/context.h"
#include "options.h"
#include "string_codec.h"
#include "subs_controller.h"
#include "subtitle_format.h"
#include "utils.h"
#include <libaegisub/dispatch.h>
#include <libaegisub/fs.h>
@ -59,7 +52,6 @@
#include <wx/dcmemory.h>
#include <wx/log.h>
#include <wx/sizer.h>
#include <wx/msgdlg.h>
#ifdef __WINDOWS__
#define WIN32_LEAN_AND_MEAN
@ -511,4 +503,8 @@ namespace Automation4 {
return fnfilter;
}
std::string UnknownScript::GetDescription() const {
return from_wx(_("File was not recognized as a script"));
}
}

View File

@ -40,14 +40,11 @@
#include <libaegisub/signal.h>
#include "ass_export_filter.h"
#include "compat.h"
#include <boost/filesystem/path.hpp>
#include <memory>
#include <vector>
#include <wx/dialog.h>
class AssStyle;
class DialogProgress;
class wxWindow;
@ -283,7 +280,7 @@ namespace Automation4 {
void Reload() override { }
std::string GetName() const override { return GetFilename().stem().string(); }
std::string GetDescription() const override { return from_wx(_("File was not recognized as a script")); }
std::string GetDescription() const override;
std::string GetAuthor() const override { return ""; }
std::string GetVersion() const override { return ""; }
bool GetLoadedState() const override { return false; }

View File

@ -34,18 +34,15 @@
#include "auto4_lua.h"
#include "ass_attachment.h"
#include "ass_dialogue.h"
#include "ass_info.h"
#include "ass_file.h"
#include "ass_info.h"
#include "ass_style.h"
#include "async_video_provider.h"
#include "auto4_lua_factory.h"
#include "command/command.h"
#include "compat.h"
#include "include/aegisub/context.h"
#include "include/aegisub/video_provider.h"
#include "main.h"
#include "options.h"
#include "project.h"
#include "selection_controller.h"
@ -53,7 +50,6 @@
#include "video_controller.h"
#include "utils.h"
#include <libaegisub/access.h>
#include <libaegisub/lua/modules.h>
#include <libaegisub/lua/script_reader.h>
#include <libaegisub/lua/utils.h>
@ -67,14 +63,10 @@
#include <boost/format.hpp>
#include <boost/scope_exit.hpp>
#include <cassert>
#include <cstdint>
#include <mutex>
#include <wx/clipbrd.h>
#include <wx/filefn.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <wx/msgdlg.h>
#include <wx/window.h>
using namespace agi::lua;
using namespace Automation4;

View File

@ -27,23 +27,16 @@
//
// Aegisub Project http://www.aegisub.org/
/// @file auto4_lua.h
/// @see auto4_lua.cpp
/// @ingroup scripting
///
#include "auto4_base.h"
#include <deque>
#include <vector>
#include <wx/event.h>
#include <wx/thread.h>
#include <wx/string.h>
class AssEntry;
class wxControl;
class wxWindow;
struct lua_State;
namespace agi { namespace vfr { class Framerate; } }
namespace Automation4 {
/// @class LuaAssFile

View File

@ -39,7 +39,7 @@
#include "ass_file.h"
#include "ass_karaoke.h"
#include "ass_style.h"
#include "utils.h"
#include "compat.h"
#include <libaegisub/exception.h>
#include <libaegisub/log.h>

View File

@ -34,11 +34,9 @@
#include "auto4_lua.h"
#include "ass_style.h"
#include "colour_button.h"
#include "compat.h"
#include "string_codec.h"
#include "utils.h"
#include "validators.h"
#include <libaegisub/log.h>
@ -46,24 +44,21 @@
#include <libaegisub/make_unique.h>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/range/adaptors.hpp>
#include <boost/range/adaptor/map.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/tokenizer.hpp>
#include <cassert>
#include <cfloat>
#include <unordered_map>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/combobox.h>
#include <wx/dialog.h>
#include <wx/gbsizer.h>
#include <wx/panel.h>
#include <wx/spinctrl.h>
#include <wx/stattext.h>
#include <wx/validate.h>
#include <wx/valgen.h>
#include <wx/valnum.h>
#include <wx/window.h>
using namespace agi::lua;
namespace {

View File

@ -34,6 +34,8 @@
#include "auto4_lua.h"
#include "compat.h"
#include <libaegisub/lua/utils.h>
#include <wx/filedlg.h>

View File

@ -37,7 +37,6 @@
#include "ass_file.h"
#include "audio_box.h"
#include "compat.h"
#include "frame_main.h"
#include "grid_column.h"
#include "options.h"
#include "project.h"
@ -49,13 +48,8 @@
#include <libaegisub/util.h>
#include <algorithm>
#include <boost/range/algorithm.hpp>
#include <cmath>
#include <iterator>
#include <numeric>
#include <wx/dcbuffer.h>
#include <wx/kbdstate.h>
#include <wx/menu.h>
#include <wx/scrolbar.h>
#include <wx/sizer.h>
@ -63,10 +57,10 @@
namespace {
#ifdef __WXMSW__
class PaintDC : public wxBufferedDC {
wxPaintDC dc;
wxPaintDC dc;
public:
PaintDC(wxWindow *window) : dc(window) {
PaintDC(wxWindow *window) : dc(window) {
dc.SetLayoutDirection(wxLayout_LeftToRight);
Init(&dc, window->GetClientSize(), 0);
if (window->GetLayoutDirection() == wxLayout_RightToLeft) {
@ -75,7 +69,7 @@ public:
}
}
~PaintDC() {
~PaintDC() {
SetLayoutDirection(wxLayout_LeftToRight);
SetLogicalOrigin(0, 0);
UnMask();

View File

@ -29,7 +29,6 @@
#include <libaegisub/signal.h>
#include <array>
#include <memory>
#include <vector>
#include <wx/window.h>

View File

@ -16,7 +16,6 @@
#include "colour_button.h"
#include "compat.h"
#include "dialogs.h"
#include <boost/gil/gil_all.hpp>

View File

@ -36,7 +36,6 @@
#include "../audio_controller.h"
#include "../audio_karaoke.h"
#include "../audio_timing.h"
#include "../compat.h"
#include "../include/aegisub/audio_provider.h"
#include "../include/aegisub/context.h"
#include "../libresrc/libresrc.h"
@ -47,11 +46,8 @@
#include "../video_controller.h"
#include <libaegisub/make_unique.h>
#include <libaegisub/fs.h>
#include <libaegisub/io.h>
#include <wx/msgdlg.h>
namespace {
using cmd::Command;

View File

@ -37,9 +37,6 @@
#include "../include/aegisub/context.h"
#include "../libresrc/libresrc.h"
#include "../main.h"
#include "../options.h"
#include "../utils.h"
#include "../video_controller.h"
#include <libaegisub/make_unique.h>

View File

@ -16,7 +16,6 @@
/// @brief Command base class and main header.
/// @ingroup command
#include <map>
#include <string>
#include <vector>

View File

@ -43,10 +43,8 @@
#include "../libresrc/libresrc.h"
#include "../options.h"
#include "../project.h"
#include "../search_replace_engine.h"
#include "../selection_controller.h"
#include "../subs_controller.h"
#include "../subs_edit_ctrl.h"
#include "../text_selection_controller.h"
#include "../utils.h"
#include "../video_controller.h"
@ -64,10 +62,12 @@
#include <boost/range/adaptor/reversed.hpp>
#include <boost/range/adaptor/sliced.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <boost/regex.hpp>
#include <boost/tokenizer.hpp>
#include <wx/clipbrd.h>
#include <wx/fontdlg.h>
#include <wx/textentry.h>
namespace {
using namespace boost::adaptors;

View File

@ -40,7 +40,6 @@
#include "../libresrc/libresrc.h"
#include "../options.h"
#include "../selection_controller.h"
#include "../utils.h"
#include <libaegisub/make_unique.h>

View File

@ -34,7 +34,6 @@
#include "../help_button.h"
#include "../include/aegisub/context.h"
#include "../libresrc/libresrc.h"
#include "../options.h"
#include <libaegisub/make_unique.h>

View File

@ -29,7 +29,6 @@
#include "command.h"
#include "../compat.h"
#include "../include/aegisub/context.h"
#include "../libresrc/libresrc.h"
#include "../options.h"

View File

@ -51,7 +51,7 @@
#include <libaegisub/charset_conv.h>
#include <libaegisub/make_unique.h>
#include <boost/range/algorithm.hpp>
#include <boost/range/algorithm/copy.hpp>
#include <wx/msgdlg.h>
#include <wx/choicdlg.h>

View File

@ -39,7 +39,6 @@
#include "../dialogs.h"
#include "../include/aegisub/context.h"
#include "../libresrc/libresrc.h"
#include "../options.h"
#include "../project.h"
#include "../selection_controller.h"
#include "../video_controller.h"

View File

@ -46,11 +46,9 @@
#include "../project.h"
#include "../selection_controller.h"
#include "../utils.h"
#include "../video_box.h"
#include "../video_controller.h"
#include "../video_display.h"
#include "../video_frame.h"
#include "../video_slider.h"
#include <libaegisub/fs.h>
#include <libaegisub/path.h>
@ -61,7 +59,6 @@
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/format.hpp>
#include <wx/clipbrd.h>
#include <wx/msgdlg.h>
#include <wx/textdlg.h>

View File

@ -19,8 +19,6 @@
#include "../include/aegisub/context.h"
#include "../libresrc/libresrc.h"
#include "../project.h"
#include "../video_box.h"
#include "../video_controller.h"
#include "../video_display.h"
#include "../visual_tool_clip.h"
#include "../visual_tool_cross.h"

View File

@ -36,12 +36,11 @@
#include "libresrc/libresrc.h"
#include "options.h"
#include "main.h"
#include "subtitle_format.h"
#include <libaegisub/signal.h>
#include <algorithm>
#include <boost/range/algorithm.hpp>
#include <boost/range/algorithm/transform.hpp>
#include <vector>
#include <wx/button.h>

View File

@ -20,7 +20,6 @@
#include <libaegisub/path.h>
#include <cstdint>
#include <boost/range/adaptor/map.hpp>
#include <map>
#include <string>
@ -31,7 +30,6 @@
#include <wx/filename.h>
#include <wx/listbox.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/string.h>
namespace {

View File

@ -27,7 +27,6 @@
//
// Aegisub Project http://www.aegisub.org/
#include "ass_style.h"
#include "colorspace.h"
#include "compat.h"
#include "help_button.h"
@ -50,7 +49,6 @@
#include <wx/dcscreen.h>
#include <wx/dialog.h>
#include <wx/event.h>
#include <wx/gbsizer.h>
#include <wx/image.h>
#include <wx/rawbmp.h>
#include <wx/settings.h>

View File

@ -34,7 +34,6 @@
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/valgen.h>
#include <wx/valnum.h>
namespace {
struct DialogDummyVideo final : wxDialog {

View File

@ -37,7 +37,6 @@
#include "utils.h"
#include <libaegisub/charset_conv.h>
#include <libaegisub/make_unique.h>
#include <algorithm>
#include <boost/filesystem/path.hpp>

View File

@ -23,7 +23,6 @@
#include "compat.h"
#include "options.h"
#include "text_file_writer.h"
#include <libaegisub/charset_conv.h>
#include <libaegisub/make_unique.h>

View File

@ -17,7 +17,6 @@
#include "font_file_lister.h"
#include "font_file_lister_fontconfig.h"
#include "ass_file.h"
#include "compat.h"
#include "dialog_manager.h"
#include "help_button.h"
@ -25,8 +24,6 @@
#include "libresrc/libresrc.h"
#include "options.h"
#include "scintilla_text_ctrl.h"
#include "selection_controller.h"
#include "subs_controller.h"
#include "utils.h"
#include <libaegisub/dispatch.h>

View File

@ -36,7 +36,6 @@
#include "validators.h"
#include "video_controller.h"
#include <wx/button.h>
#include <wx/dialog.h>
#include <wx/sizer.h>
#include <wx/stattext.h>

View File

@ -36,17 +36,11 @@
#include "include/aegisub/context.h"
#include "libresrc/libresrc.h"
#include "options.h"
#include "selection_controller.h"
#include "utils.h"
#include <libaegisub/karaoke_matcher.h>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/locale/boundary.hpp>
#include <boost/range/algorithm_ext.hpp>
#include <deque>
#include <list>
#include <vector>
#include <wx/checkbox.h>
#include <wx/combobox.h>

View File

@ -34,10 +34,7 @@
#include <libaegisub/dispatch.h>
#include <libaegisub/log.h>
#include <algorithm>
#include <ctime>
#include <functional>
#include <string>
#include <wx/button.h>
#include <wx/dialog.h>
#include <wx/sizer.h>

View File

@ -37,7 +37,6 @@
#include "resolution_resampler.h"
#include "validators.h"
#include <algorithm>
#include <boost/algorithm/string/predicate.hpp>
#include <vector>
#include <wx/button.h>

Some files were not shown because too many files have changed in this diff Show More