Commit Graph

74 Commits

Author SHA1 Message Date
GenevensiS dca935a966 Add support for .otf files, add option to load subdirectories 2025-04-07 23:12:58 +02:00
TomTkacz ee4cf2d7b4 made fonts available without installing system-wide 2025-03-12 05:53:02 -05:00
Brendan Hagan 4a606474c4 misc: disable update checking on startup 2022-08-14 17:27:19 -04:00
Twan van Laarhoven b2e6f03c29 --help text for script files 2020-05-23 00:20:11 +02:00
Twan van Laarhoven 5deaeeeb3e Cleanup: use override specifier everywhere, and enable gcc warning to check for it. 2020-05-16 00:23:18 +02:00
Twan van Laarhoven 0c3712b61a Cleanup: indentation of public/protected/private keywords 2020-05-12 21:57:37 +02:00
Twan van Laarhoven bad9981ad9 Cleaned up copyright block.
Removed the year so we don't get tempted to change this ever again.
2020-04-26 01:11:14 +02:00
Twan van Laarhoven e8e7e10fa0 Make extension optional in --export command.
Added add_extension function
Added ExportTemplate::byName
Use ExportTemplate::byName in main
2020-04-21 00:23:42 +02:00
Twan van Laarhoven 4889f0b7e8 Renamed --export to --export-image
Added new --export command line argument for exporting using a scripted/html export template.
2020-04-21 00:01:59 +02:00
Twan van Laarhoven 52cb4284f1 Clean up command line argument handling a bit 2020-04-20 23:21:32 +02:00
Twan van Laarhoven 3dbd03511f Add support for running script files (indicated by .mse-script extension) from the command line. 2020-04-20 01:38:19 +02:00
Lymia Aluysia 1d912a6853 Update copyright strings. 2017-01-18 08:52:57 -06:00
Lymia Aluysia d2c635f739 Change tabs to two spaces. 2017-01-18 08:43:21 -06:00
twanvl f60842d341 no more handle_warning
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1637 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-22 21:31:45 +00:00
twanvl 53bbcfe9a9 Be explicit about type of angles: either Radians or Degrees.
Angles are always doubles.
Internally use radians as much as possible.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1605 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-09 14:49:59 +00:00
twanvl 809d9b747a Added some ifdefs around the vc9 fixes so that mse still compiles with msvc7 and wxWidget 2.6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1568 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-30 16:50:20 +00:00
twanvl 9735e24517 Added a panel showing profiler timings
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1523 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-13 21:35:30 +00:00
twanvl 75f73db8a9 Fix error in vc9: use _wassert instead of _assert, the latter no longer exists.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1511 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-03 15:27:40 +00:00
twanvl 37da5e1141 init sockets in main function, otherwise the installer window doesn't work if updates were not checked first
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1469 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 14:51:24 +00:00
twanvl 4a31b77d2c Use a HandleEvent wrapper instead of OnExceptionInMainLoop.
This way we don't rely on rethrowing exceptions. This method has proven to work well in other projects.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1452 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 18:52:40 +00:00
coppro 85854b1bd2 Fix warnings
Semi-fix bug #6 (does not work if the zipfile was loaded from a directory)


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1439 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-03-04 01:46:04 +00:00
coppro cf91f9c43b Update copryright date to 2010.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1438 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-03-01 23:33:25 +00:00
coppro b73f081b60 Updated copyright information (2009 + my real name)
MSE now handles opening more gracefully - can handle directories and failures
Changed behavior to always save cards to separate files with intent to add VCS later (note: shouldn't do this for zip, but can't see a good way to approach this)


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1388 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-06-19 03:09:05 +00:00
coppro 4c9f3afb05 MSE can now save cards in separate files (needs manual config editing still).
Trailing slashes are stripped from commandline arguments (because directory.mse-set/ should be accepted)


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1386 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-06-18 02:18:23 +00:00
twanvl e1750ee504 renamed SpellChecker::destroy to destroyAll, because the former conflicted with IntrusivePtrBase::destroy. The result was that destroy was called recursively and objects were freed multiple times.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1264 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-29 18:49:05 +00:00
twanvl 5d9c5fbf46 Don't show message boxes for assertion failures, since this can lead to crashes when in OnPaint
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1197 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-03 17:53:15 +00:00
twanvl 8b01aa1823 Ignore --color flags when creating installers and when exporting
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1096 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-08 13:41:32 +00:00
twanvl 7eb05cbd7e Moved clean_filename to file_utils.cpp where it belongs;
Split up images exporting, and moved it to data/formats/image

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1085 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 18:04:49 +00:00
twanvl 40719b7831 removed write_stdout function, now handled by CLI class
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1082 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 02:48:20 +00:00
twanvl d666034e7f Added raw mode to simplify the interface with other programs
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1056 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 22:17:45 +00:00
twanvl 6a71b20d26 Files can be written from command line interface
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1054 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 21:01:40 +00:00
twanvl c9a402e3f5 don't check for updates from CLI mode
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1052 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 18:50:33 +00:00
twanvl 19bfaa0684 Beginnings of a simple command line interface
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1051 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 18:45:46 +00:00
twanvl b7caecabf0 detect output redirection on windows
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1049 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 14:46:57 +00:00
twanvl 76c71e5800 Catch all exceptions in onPaint functions, because otherwise we show a message box. Message boxes while in a paint handler lead to a crash on win32.
Made a CATCH_ALL_ERRORS macro containing the common catch statements.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1034 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-02 17:04:30 +00:00
twanvl dae6bbe380 Make windows 9x (ascii) build nag when run on other windows versions.
The idea is to prevent people from using the win9x fix when there are built issues with the Unicode version.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@983 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 15:37:35 +00:00
twanvl 50fe805657 Installed packages will be blessed.
For now, everything is considered blessed, because we are not yet using installers everywhere.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@912 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 18:33:23 +00:00
twanvl f3ff6f22ae Renamed global PackageManager object to package_manager to reduce confusion
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@907 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 14:45:04 +00:00
twanvl c8d8d72abc PackagesWindow can show just the packages from an installer.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@905 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 14:36:23 +00:00
coppro 26562e03e3 Updated copyright information - added my name and also changed 2007 to 2008
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@837 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-04-06 18:16:32 +00:00
coppro 692ff43573 Compatibility updates step 1.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@815 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-01-05 22:37:22 +00:00
twanvl d2196eea09 Finally got precompiled headers to work.
Now all C++ files need to #include <util/prec.hpp>
 That is why all .cpp files are touched by this commit

Many changes to installers and update checking:
     - the window is now called PackagesWindow, in a new source file
     - update checking is now independent from the PackagesWindow. For update checking only a list of package versions are needed (vector<PackageDependency>). This is much less information to download at each startup.
     - the list of available packages is now a list of available Installers, since an installer can contain multiple packages.
     - moved the logic of dependency checking etc. to data/installer
     - moved the actual installation to util/io/package_manager
     - moved directory iteration/creation logic to util/file_utils
     - added PackageDirectory: the local and global package directory now have their own object (was part of PackageManager)
     - added PackageVersion: for detecting if a package has been modified after it was installed.
     - added PackageDescription: description/header of a package. Basicly the same as what Packaged provides.
     - added DownloadableInstaller: where to find an insaller, what does it contain?
     - added InstallablePackage: brining it all together: installer, package, status, action.

Current status: the insaller is currently broken in a few places, more on that soon.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@792 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-29 18:30:41 +00:00
twanvl 2fb7de196e minor improvement of --help message
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@787 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-26 17:44:08 +00:00
twanvl 547a48b98d - Optimization: common parameters to built in functions are no longer looked up as a string at each call, instead their integer ids are global constants
- Optimization: some other minor tweaks.
 - Nicer --help message

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@783 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-24 02:04:45 +00:00
twanvl 25457f8512 Added --export command line flag
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@773 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-20 20:03:26 +00:00
twanvl 36a36356c5 The 'Big Whine' patch:
Any use of a file from another package without a declared dependency will give a warning;

Also added some more _LOCALE_123_ macros so we need less format_string calls

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@753 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-24 20:24:22 +00:00
coppro 99d385eb00 Added some fixes
More work on update window.


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@700 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-15 03:38:54 +00:00
twanvl f1b09bb2e9 'main' function is now app::OnRun, this allows us to not enter the main loop.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@664 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-02 19:11:18 +00:00
coppro 8b069d3e6f Added installer code.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@561 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-12 22:48:20 +00:00
twanvl a234b24728 Fixed error about enumeration of files in local_data_directory; It should now also find packages from *both* directories.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@559 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-12 17:37:08 +00:00