Commit Graph

130 Commits

Author SHA1 Message Date
twanvl 57e0391f0d slightly better error messages when reading an enum value fails: also report the default used
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1479 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 01:38:53 +00:00
coppro dc26e1f00a New 'show spelling errors' option in the preferences window.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1372 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-02-06 03:27:20 +00:00
twanvl ad5e22e7c5 Added script support for wxDateTime values:
- added ScriptDateTime type
 - added to_date function
 - added date formating support to to_string.
 - documented all of the above.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1348 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-11 16:52:07 +00:00
twanvl 30d3343a2c check for duplicate pack names
don't allow a new pack to be 'removed'

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1330 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-10 01:55:31 +00:00
twanvl e3cdb2bea7 adding & editing custom pack types now works.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1328 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-10 01:37:03 +00:00
twanvl a8f4ff5afa locale version 0.3.8
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1307 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-08 17:39:47 +00:00
twanvl ab5ea48a9d shut up the locale warning (for now)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1285 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-02 21:44:18 +00:00
twanvl e36dc6e6cb apply spelling corrections from the context menu.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1274 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-30 19:51:41 +00:00
twanvl 20b40585f6 Some changes to the package manager:
- use a single button for install/upgrade
 - show versions of installed package and installer
Named actions in enum PACKAGE_ACT_* to avoid confusion with the status enum.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1186 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-31 18:57:55 +00:00
twanvl b07e4a7886 Setting for opening sets in the same window (pre 0.3.6 behaviour)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1172 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-27 11:58:14 +00:00
twanvl cb72dbea2f added total number of cards to random pack panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1122 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-09 17:34:13 +00:00
twanvl 2d2c434bd8 Generated packs can now be selected for printing.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1107 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-08 21:35:38 +00:00
twanvl 5baabc33d4 also whine about 'mse version' declaration in locales.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1098 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-08 16:39:55 +00:00
twanvl 04a040dc29 random pack generation works
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1045 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 01:38:46 +00:00
twanvl 95b5fa67a2 - Added SetWindow::setControlStatusText function for setting the status text of child controls, since wx lacks a feature for doing it automatically.
- RandomPackPanel's spin controls are cleaned up when the set is reloaded
- to_int script function now converts empty string: to_int("") == 0

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1042 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-03 20:01:59 +00:00
twanvl 07966001ff Translate image slice window with locale
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@982 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 14:37:04 +00:00
twanvl 96a13f6101 Some more stuff on the random pack panel.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@974 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-04 22:51:21 +00:00
twanvl 83a0315211 All package specific locales are now under the 'package' key in locale files. Wildcards in package names are supported.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@971 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-04 00:57:29 +00:00
twanvl b62464e361 Fixed locale warnings for spanish, french, italian
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@936 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-01 15:58:59 +00:00
twanvl 5b47f6f498 Improved position reporting of script errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@931 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-01 01:07:45 +00:00
twanvl 78e154c481 Added toolbar and menu for switching between graph layouts
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@914 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 20:15:21 +00:00
twanvl 7a38986171 Installing and removing packages from an installer now WORKS
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@908 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 16:42:15 +00:00
twanvl 6bd0d36618 Fixed warnings in es and fr locales
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@900 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-30 20:58:59 +00:00
twanvl 03cc925b67 Fixed warnings about locale
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@895 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-30 20:06:20 +00:00
pichoro 974779c944 First Shadowmoor Update.
Untap symbols all around (Magic and Vanguard).
First two Shadowmoor keywords (Wither and Persist).

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@834 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-04-02 02:38:19 +00:00
coppro 98fe6a4e26 Made the reader capable of skipping blank lines.
Added a bunch of missing byte-order marks.


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@827 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-01-28 04:30:33 +00:00
twanvl 3ceec52c1c - no longer try to draw fields with huge or negative size
- download icons of packages

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@799 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-29 23:51:19 +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
coppro 2fcf2f359d Finished update window (YAY!)
Updates now work, and have been tested.
Made a few other updates.
To work on: aesthetics?


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@759 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-26 22:13:39 +00:00
coppro 3ea0a4abd7 Made it so that update window and set window can't be open simultaneously (don't explode the set by deleting the style, say).
Made update window enforce dependencies
Added update button to welcome window (need icon still)


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@756 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-25 02:02:53 +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 1f59376b54 Added perl script to generate updates page.
Added/fixed versioning in data.
Added more framework to update checker.



git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@750 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-23 21:49:10 +00:00
twanvl 77ab586881 Option to show/hide editing hints (i.e. word list boxes)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@727 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-21 12:35:24 +00:00
twanvl 458062fa37 Spelling: availAble;
Added information about what parameter an error occured in;
Conversion to string no longer results in [[typeName()]], it gives an error instead.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@721 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-20 21:52:26 +00:00
twanvl 1f3f4e01fe Added support for named colors, e.g. "white" and "black";
Added missing keys to locale.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@716 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-20 18:16:10 +00:00
twanvl c38166c2bd Added dialog for selecting a new stylesheet if the one from a set is not found;
'availible' is not a word

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@657 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-01 21:11:56 +00:00
twanvl f7b82e3f6b Implemented auto replace, including GUI
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@631 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-26 19:39:23 +00:00
coppro c46883eea1 Improved the update window further - now we just need a system to actual download and install them.
Added safeties to locale validation (ugly code though... I'd add another function, but I'm lazy and this is faster)


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@614 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-23 01:25:57 +00:00
twanvl 35bbf36e04 Added validator for locales based on all strings in the source code.
It checks:
 - whether all keys used by the program are in the locale
 - whether the right number of %s are used
 - if there are no extra keys in the locale that shouldn't be there
This will become very useful when translations need to be updated for new MSE versions.

There is a perl script for generating the 'expected_locale_keys' resource file.
This file contains a list of all the locale keys used.
This is a resource and not a data file because it is automatically generated from the code,
 the user has no business modifying it.

I also fixed all the locale errors I found in the process.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@613 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-17 21:10:48 +00:00
coppro 232c8b3aa9 Attempted to update type symbols on futureshifts to remove scripting
(precise modifications still needed, but MSE runs faster when the 
positions aren't scripted)

Added translation for the 'Open most recent set' button.
Moved 'type symbol' from the game to the futureshift templates.
Fixed a few BOMs.
TODO: Move common elements from futureshifts to an include folder.


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@612 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-15 17:16:27 +00:00
coppro 1ce4bd9c3d Added primitive update window.
Added diagonal directions (todo: add different text direcitons, primarily for Space)
Cleaned up keyword game file a bit.


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@600 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-05 00:38:12 +00:00
twanvl 55a897e392 Implemented nicer string collation, with support for composed characters and accents;
Fixed symbol filter bug, green was not made transparent;
Slightly nicer error messages when forgeting 'type' keys.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@544 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-10 16:19:36 +00:00
twanvl d4af90505a Type name of ScriptObjects is now reported as the actual object type (card/set/value/etc.);
Back trace is slightly smarter
Removed move_cursor_with_sort

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@542 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-10 14:39:28 +00:00
twanvl 1c04a718ac Implemented rotation and reflection
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@536 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-09 22:38:34 +00:00
twanvl b46d979f9e Added the necessery classes to handle symmetry objects/mirrors in symbols; What used to be SymbolPart is now SymbolShape, SymbolPart is a base class.
This should also pave the way for grouping.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@526 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-08 01:12:55 +00:00
twanvl 1646aebc88 Added identifying field to set, show set name in window title.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@519 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-07 14:53:24 +00:00
twanvl c414bd7e71 Added 'insert symbol' menu to magic-mana-large, fixed title and message of 'insert colorless mana' dialog.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@451 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-06-30 15:52:29 +00:00
twanvl 31b7380d99 Implemented exporting symbol fonts;
Rendering symbols to an image always uses anti-aliassing (by downsampling from a large size);
Finished the spoiler export template;
Added <soft-line> tag to make line breaks use the line height for soft line breaks

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@440 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-06-27 18:58:43 +00:00
twanvl df9bb78e51 'initial' property for color fields;
export options stored in settings;
editor for export options.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@429 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-06-23 19:44:50 +00:00
coppro 9c67a4fa78 Implemented difference (XOR) option for symbols.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@410 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-05-22 02:31:17 +00:00