Commit Graph

1259 Commits

Author SHA1 Message Date
twanvl 10da8c7175 fix warnings about fabs(Scriptable<double>)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1276 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-31 15:25:34 +00:00
twanvl 311a743fa1 simplified handling of punctuation is spellchecker, now checks for stand alone punctuation and double spaces.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1275 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-31 03:11:25 +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 2c824c9507 use a combo box instead of a spin control for the zoom settings
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1273 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-30 18:46:13 +00:00
twanvl 1bc965d461 put an empty word list in the subtype box if possible
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1272 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-30 18:45:45 +00:00
twanvl 55fe3e142c spellchecking can be disabled
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1271 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-30 16:38:06 +00:00
twanvl 74c95552e7 always update the scrollbar when update()ing a GalleryList, otherwise the scrollbar is not set correctly on the new set window.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1270 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-30 16:08:38 +00:00
twanvl 12f8be203e The check_spelling function now has support for additional dictionaries and regexes to match.
The magic game uses these features.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1269 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-30 02:09:11 +00:00
twanvl 09216eca5d punctuation breaking is now handled by check_spelling function. Symbols are now handled correctly (i.e. they are considered to be always correct)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1268 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-29 22:24:16 +00:00
twanvl cbfde59494 handle characters that have no encoding conversion in the spellchecker
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1267 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-29 19:52:25 +00:00
twanvl 2f3eb3ce78 warn about incorrect string escape sequences
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1266 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-29 19:12:28 +00:00
twanvl dcbc03ee44 toCode should now never give an error, instead returning things like "<card>"
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1265 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-29 18:50:08 +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 6b39fa844b fixed bug in filter_text: it was doing something completely incorrect
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1263 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-29 18:43:05 +00:00
twanvl a57170e7c2 Simple spelling checker using the Hunspell library.
This time adding the source files :)

The checker is used (experimentally) by the magic game file.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1262 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-29 01:34:13 +00:00
twanvl 1ac3294993 Simple spelling checker using the Hunspell library.
Currently the checker is only exposed through the script function check_spelling_word, which returns true if the word is spelled correctly.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1261 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-28 21:44:48 +00:00
twanvl 7dc4bc9ca5 try to get stack traces for InternalErrors, it doesn't work yet for errors caught with OnExceptionInMainLoop, because they are rethrown.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1260 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-28 19:18:35 +00:00
twanvl a8b32d145b some more minor graph tweaks
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1259 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-28 03:02:12 +00:00
twanvl eae8757d9e some tweaks to the size of circles in a scatter plot
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1258 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-28 02:48:07 +00:00
twanvl dfc614849e Remember separate most recent directories for:
- set files
 - symbol files
 - importing images
 - exporting

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1257 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-27 22:16:22 +00:00
twanvl f191090852 Added "text length (lines)" statistics dimension
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1256 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-27 19:40:00 +00:00
twanvl e423b6956f documented the split_text script function
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1255 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-27 19:39:20 +00:00
twanvl 81280467d5 fixed typo in for loop that could cause a crash on the stats panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1254 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-27 19:13:37 +00:00
twanvl cd88dc3783 Added drop down lists to toolbar buttons for:
- card rotation
 - add (multiple) cards

Requires patch to wx (or the HEAD branch version), see http://trac.wxwidgets.org/ticket/8556
this appears to be for MSW only.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1253 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-27 18:31:35 +00:00
twanvl 003af8bed6 add note saying that alignment type has changed
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1252 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 19:22:44 +00:00
twanvl fee64d283f Cleaned up the Alignment type, it is now much more orthogonal.
Changed the behavior of justifying:
 - by default justify words instead of characters
 - only justify before soft line breaks, unless "alignment: force justify" is used.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1251 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 19:17:55 +00:00
twanvl 310dc1333d simple :info command for dumping set info from CLI
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1250 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 17:53:21 +00:00
twanvl 156e592636 made padding and line height scriptable
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1249 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 17:40:17 +00:00
twanvl 095bef4f9b option to :profile command, to specify how detailed profile output should be
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1248 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 17:37:40 +00:00
twanvl 0cd128cfb3 more detailed profiling of getMember
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1247 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 17:35:21 +00:00
twanvl fa3950d97b move towards per-line alignment
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1246 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 17:21:10 +00:00
twanvl d4412cf162 working on an improved random pack system, #ifdefed out for now
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1245 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 16:30:21 +00:00
twanvl dc2028a956 let profiler trace 'get member' calls, because I suspect they might be slow (linear string lookup)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1244 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 16:28:17 +00:00
twanvl 010c8d8d0b minor script parser things
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1243 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 15:46:51 +00:00
twanvl d4e9476759 fixed: "include file" did not reset the parent package, so this didn't work:
script:
    include file: /other-package/stuff
    include file: something-from-this-package


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1242 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 15:24:48 +00:00
twanvl fee35c2804 made welcome_window compile on windows again
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1241 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 15:16:27 +00:00
twanvl 44a779222d profiling of order cache
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1240 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 15:11:55 +00:00
artfreakwiu daad8929dc git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1239 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-12-03 01:28:15 +00:00
pichoro d6e9877578 Fixed some casting costs.
Upgraded blending for magic-new-planeswalker.
Fixed some errors and missing features in magic-new-flip's blending.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1238 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-11-28 04:34:12 +00:00
pichoro c8d9370ef5 Update to Yu-Gi-Oh to allow more additional card controls in pack generator.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1237 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-11-13 13:42:28 +00:00
artfreakwiu b2f811d443 git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1236 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-28 16:49:00 +00:00
artfreakwiu 9b68513804 git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1235 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-28 16:01:24 +00:00
artfreakwiu 9de166523c git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1234 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-28 03:30:04 +00:00
artfreakwiu a3b670765e git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1233 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-28 03:13:10 +00:00
artfreakwiu 8197e652ab git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1232 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-27 23:45:31 +00:00
artfreakwiu 7604142acc git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1231 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-27 00:29:20 +00:00
artfreakwiu 97118f87b5 git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1230 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-26 22:17:35 +00:00
artfreakwiu a206f6113f git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1229 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-25 21:13:30 +00:00
artfreakwiu aefb75202e git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1228 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-25 20:57:59 +00:00
artfreakwiu 699cc07554 git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1227 0fc631ac-6414-0410-93d0-97cfa31319b6 2008-10-25 20:53:01 +00:00