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 "libaegisub/spellchecker.h"
#include "iconv.h" #include <boost/locale/boundary/index.hpp>
#include <boost/locale/boundary/segment.hpp>
#include <boost/locale/boundary.hpp> #include <boost/locale/boundary/types.hpp>
namespace { namespace {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -19,13 +19,11 @@
#include "libaegisub/keyframe.h" #include "libaegisub/keyframe.h"
#include <algorithm>
#include "libaegisub/io.h" #include "libaegisub/io.h"
#include "libaegisub/line_iterator.h" #include "libaegisub/line_iterator.h"
#include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/predicate.hpp>
#include <boost/range/algorithm.hpp> #include <boost/range/algorithm/copy.hpp>
namespace { namespace {
std::vector<int> agi_keyframes(std::istream &file) { 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 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/// @file log.cpp
/// @brief Logging
/// @ingroup libaegisub
#include "libaegisub/log.h" #include "libaegisub/log.h"
#include "libaegisub/cajun/elements.h" #include "libaegisub/cajun/elements.h"
#include "libaegisub/cajun/writer.h" #include "libaegisub/cajun/writer.h"
#include "libaegisub/dispatch.h" #include "libaegisub/dispatch.h"
#include "libaegisub/io.h" #include "libaegisub/time.h"
#include "libaegisub/util.h" #include "libaegisub/util.h"
#include <algorithm>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp> #include <boost/filesystem/fstream.hpp>
#include <boost/range/algorithm.hpp> #include <boost/filesystem/operations.hpp>
#include <cstring> #include <boost/filesystem/path.hpp>
#include <functional> #include <boost/range/algorithm/remove_if.hpp>
#include <mutex>
namespace agi { namespace agi {
namespace log { namespace log {

View file

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

View file

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

View file

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

View file

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

View file

@ -23,7 +23,7 @@
#include "libaegisub/line_iterator.h" #include "libaegisub/line_iterator.h"
#include "libaegisub/make_unique.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/interprocess/streams/bufferstream.hpp>
#include <boost/phoenix/operator/comparison.hpp> #include <boost/phoenix/operator/comparison.hpp>
#include <boost/phoenix/core/argument.hpp> #include <boost/phoenix/core/argument.hpp>

View file

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

View file

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

View file

@ -12,16 +12,9 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // 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> #include <libaegisub/fs_fwd.h>
namespace agi { namespace agi { namespace acs {
namespace acs {
enum Type { enum Type {
FileRead, FileRead,
DirRead, 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 CheckDirRead(fs::path const& dir) { Check(dir, acs::DirRead); }
inline void CheckDirWrite(fs::path const& dir) { Check(dir, acs::DirWrite); } 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 <cstdint>
#include <deque> #include <deque>
#include <list>
#include <map> #include <map>
#include <memory> #include <memory>
#include <string> #include <string>
@ -25,9 +24,6 @@ struct Visitor;
struct ConstVisitor; struct ConstVisitor;
class UnknownElement; class UnknownElement;
template <typename ValueTypeT>
class TrivialType_T;
typedef int64_t Integer; typedef int64_t Integer;
typedef double Double; typedef double Double;
typedef bool Boolean; typedef bool Boolean;

View file

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

View file

@ -16,14 +16,10 @@
/// @brief Parse JSON files and return json::UnknownElement /// @brief Parse JSON files and return json::UnknownElement
/// @ingroup libaegisub io /// @ingroup libaegisub io
#include <libaegisub/cajun/reader.h>
#include <libaegisub/cajun/elements.h> #include <libaegisub/cajun/elements.h>
#include <libaegisub/fs_fwd.h> #include <libaegisub/fs_fwd.h>
#include <memory> namespace agi { namespace json_util {
namespace agi {
namespace json_util {
/// Parse a JSON stream. /// Parse a JSON stream.
/// @param stream JSON stream to parse /// @param stream JSON stream to parse
@ -41,5 +37,4 @@ json::UnknownElement file(agi::fs::path const& file);
/// @return json::UnknownElement /// @return json::UnknownElement
json::UnknownElement file(agi::fs::path const& file, std::pair<const char *, size_t> default_config); 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/ // Aegisub Project http://www.aegisub.org/
#include <boost/range/iterator_range.hpp> #include <boost/range/iterator_range_core.hpp>
#include <string>
#include <vector> #include <vector>
namespace agi { namespace agi {

View file

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

View file

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

View file

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

View file

@ -12,10 +12,6 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // 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 "fs_fwd.h"
#include <boost/container/flat_map.hpp> #include <boost/container/flat_map.hpp>

View file

@ -12,17 +12,11 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // 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 <libaegisub/time.h>
#include <algorithm> #include <algorithm>
#include <boost/range/irange.hpp> #include <boost/range/irange.hpp>
#include <cstdint>
#include <string> #include <string>
#include <memory>
struct tm; struct tm;

View file

@ -12,16 +12,10 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // 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 #pragma once
#include <string>
#include <vector>
#include <cstdint> #include <cstdint>
#include <vector>
#include <libaegisub/exception.h> #include <libaegisub/exception.h>
#include <libaegisub/fs_fwd.h> #include <libaegisub/fs_fwd.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -12,12 +12,6 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // 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> #include <boost/thread.hpp>
namespace agi { namespace util { namespace agi { namespace util {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -27,28 +27,6 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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 "audio_box.h"
#include "include/aegisub/context.h" #include "include/aegisub/context.h"
@ -58,14 +36,20 @@
#include "audio_display.h" #include "audio_display.h"
#include "audio_karaoke.h" #include "audio_karaoke.h"
#include "audio_timing.h" #include "audio_timing.h"
#include "command/command.h"
#include "libresrc/libresrc.h"
#include "options.h" #include "options.h"
#include "project.h" #include "project.h"
#include "toggle_bitmap.h" #include "toggle_bitmap.h"
#include "selection_controller.h"
#include "utils.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 { enum {
Audio_Horizontal_Zoom = 1600, Audio_Horizontal_Zoom = 1600,
Audio_Vertical_Zoom, Audio_Vertical_Zoom,

View file

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

View file

@ -27,13 +27,6 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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_colorscheme.h"
#include "audio_rendering_style.h" #include "audio_rendering_style.h"

View file

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

View file

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

View file

@ -28,28 +28,20 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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 "audio_display.h"
#include "ass_time.h" #include "ass_time.h"
#include "audio_colorscheme.h"
#include "audio_controller.h" #include "audio_controller.h"
#include "audio_renderer.h" #include "audio_renderer.h"
#include "audio_renderer_spectrum.h" #include "audio_renderer_spectrum.h"
#include "audio_renderer_waveform.h" #include "audio_renderer_waveform.h"
#include "audio_timing.h" #include "audio_timing.h"
#include "block_cache.h"
#include "compat.h" #include "compat.h"
#include "include/aegisub/audio_provider.h" #include "include/aegisub/audio_provider.h"
#include "include/aegisub/context.h" #include "include/aegisub/context.h"
#include "include/aegisub/hotkey.h" #include "include/aegisub/hotkey.h"
#include "options.h" #include "options.h"
#include "project.h" #include "project.h"
#include "selection_controller.h"
#include "utils.h" #include "utils.h"
#include "video_controller.h" #include "video_controller.h"
@ -58,7 +50,6 @@
#include <algorithm> #include <algorithm>
#include <wx/dcbuffer.h> #include <wx/dcbuffer.h>
#include <wx/dcclient.h>
#include <wx/mousestate.h> #include <wx/mousestate.h>
namespace { namespace {

View file

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

View file

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

View file

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

View file

@ -27,23 +27,15 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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 "include/aegisub/audio_provider.h"
#include "audio_controller.h" #include "audio_controller.h"
#include "factory_manager.h" #include "factory_manager.h"
#include "frame_main.h"
#include "options.h" #include "options.h"
#include "utils.h" #include "utils.h"
#include <libaegisub/background_runner.h>
#include <libaegisub/fs.h> #include <libaegisub/fs.h>
#include <libaegisub/log.h> #include <libaegisub/log.h>
#include <libaegisub/make_unique.h>
#include <boost/range/iterator_range.hpp> #include <boost/range/iterator_range.hpp>

View file

@ -27,17 +27,12 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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 "include/aegisub/audio_provider.h"
#include <libaegisub/fs.h>
#include <libaegisub/make_unique.h> #include <libaegisub/make_unique.h>
#include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem/path.hpp>
/* /*
* scheme ::= "dummy-audio" ":" signal-specifier "?" signal-parameters * scheme ::= "dummy-audio" ":" signal-specifier "?" signal-parameters

View file

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

View file

@ -27,19 +27,12 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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 "include/aegisub/audio_provider.h"
#include "audio_controller.h" #include "audio_controller.h"
#include "utils.h"
#include <libaegisub/file_mapping.h> #include <libaegisub/file_mapping.h>
#include <libaegisub/fs.h> #include <libaegisub/fs.h>
#include <libaegisub/log.h>
#include <libaegisub/make_unique.h> #include <libaegisub/make_unique.h>
#include <vector> #include <vector>

View file

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

View file

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

View file

@ -27,29 +27,20 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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 #pragma once
#include <memory> #include <memory>
#include <vector> #include <vector>
#include <wx/dc.h>
#include <wx/gdicmn.h> #include <wx/gdicmn.h>
#include "audio_rendering_style.h" #include "audio_rendering_style.h"
#include "block_cache.h" #include "block_cache.h"
// Some forward declarations for outside stuff
class AudioProvider; class AudioProvider;
// Forwards declarations for internal stuff
class AudioRendererBitmapProvider; class AudioRendererBitmapProvider;
class AudioRenderer; class AudioRenderer;
class wxDC;
/// @class AudioRendererBitmapCacheBitmapFactory /// @class AudioRendererBitmapCacheBitmapFactory
/// @brief Produces wxBitmap objects for DataBlockCache storage for the audio renderer /// @brief Produces wxBitmap objects for DataBlockCache storage for the audio renderer

View file

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

View file

@ -27,23 +27,16 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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_renderer_waveform.h"
#include "audio_colorscheme.h"
#include "include/aegisub/audio_provider.h"
#include "options.h"
#include <algorithm> #include <algorithm>
#include <wx/dcmemory.h> #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 { enum {
/// Only render the peaks /// Only render the peaks
Waveform_MaxOnly = 0, Waveform_MaxOnly = 0,

View file

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

View file

@ -27,14 +27,11 @@
// //
// Aegisub Project http://www.aegisub.org/ // 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_dialogue.h"
#include "ass_file.h" #include "ass_file.h"
#include "ass_time.h" #include "ass_time.h"
#include "audio_renderer.h" #include "audio_marker.h"
#include "audio_rendering_style.h"
#include "audio_timing.h" #include "audio_timing.h"
#include "command/command.h" #include "command/command.h"
#include "include/aegisub/context.h" #include "include/aegisub/context.h"
@ -46,7 +43,6 @@
#include <libaegisub/make_unique.h> #include <libaegisub/make_unique.h>
#include <boost/range/algorithm.hpp> #include <boost/range/algorithm.hpp>
#include <cstdint>
#include <wx/pen.h> #include <wx/pen.h>
namespace { namespace {

View file

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

View file

@ -27,23 +27,16 @@
// //
// Aegisub Project http://www.aegisub.org/ // Aegisub Project http://www.aegisub.org/
/// @file auto4_base.cpp
/// @brief Baseclasses for Automation 4 scripting framework
/// @ingroup scripting
///
#include "auto4_base.h" #include "auto4_base.h"
#include "ass_file.h" #include "ass_file.h"
#include "ass_style.h" #include "ass_style.h"
#include "command/command.h" #include "compat.h"
#include "dialog_progress.h" #include "dialog_progress.h"
#include "include/aegisub/context.h" #include "include/aegisub/context.h"
#include "options.h" #include "options.h"
#include "string_codec.h" #include "string_codec.h"
#include "subs_controller.h" #include "subs_controller.h"
#include "subtitle_format.h"
#include "utils.h"
#include <libaegisub/dispatch.h> #include <libaegisub/dispatch.h>
#include <libaegisub/fs.h> #include <libaegisub/fs.h>
@ -59,7 +52,6 @@
#include <wx/dcmemory.h> #include <wx/dcmemory.h>
#include <wx/log.h> #include <wx/log.h>
#include <wx/sizer.h> #include <wx/sizer.h>
#include <wx/msgdlg.h>
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
@ -511,4 +503,8 @@ namespace Automation4 {
return fnfilter; 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 <libaegisub/signal.h>
#include "ass_export_filter.h" #include "ass_export_filter.h"
#include "compat.h"
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>
#include <memory> #include <memory>
#include <vector> #include <vector>
#include <wx/dialog.h>
class AssStyle; class AssStyle;
class DialogProgress; class DialogProgress;
class wxWindow; class wxWindow;
@ -283,7 +280,7 @@ namespace Automation4 {
void Reload() override { } void Reload() override { }
std::string GetName() const override { return GetFilename().stem().string(); } 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 GetAuthor() const override { return ""; }
std::string GetVersion() const override { return ""; } std::string GetVersion() const override { return ""; }
bool GetLoadedState() const override { return false; } bool GetLoadedState() const override { return false; }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -36,17 +36,11 @@
#include "include/aegisub/context.h" #include "include/aegisub/context.h"
#include "libresrc/libresrc.h" #include "libresrc/libresrc.h"
#include "options.h" #include "options.h"
#include "selection_controller.h"
#include "utils.h"
#include <libaegisub/karaoke_matcher.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/locale/boundary.hpp>
#include <boost/range/algorithm_ext.hpp>
#include <deque> #include <deque>
#include <list>
#include <vector> #include <vector>
#include <wx/checkbox.h> #include <wx/checkbox.h>
#include <wx/combobox.h> #include <wx/combobox.h>

View file

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

View file

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

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