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
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
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
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
coppro
692d5b6286
Updates to make things work.
...
Some trivial things that are required to make it work on Linux.
Also updated build scripts to use Boost. You have to use
./configure --with-boost-regex=<libname, suitable for -l>
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1206 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-07 17:21:25 +00:00
twanvl
3ce35e8b00
Reduced flicker in card list
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1202 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-04 11:45:23 +00:00
twanvl
f405b82ce2
Split script profiler into a separate file
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1201 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-03 20:55:48 +00:00
twanvl
9d1a23ad53
Use Regex instead of wxRegEx everywhere
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1199 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-03 17:55:59 +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
7c83ff01f4
Made a Regex class that wraps either boost::regex or wxRegEx (split from ScriptRegex).
...
Use Regex for keywords.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1196 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-03 14:43:11 +00:00
twanvl
f1f4c30e44
Simplify regex code by moving things to the Results class, and by using iterators instead of positions
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1193 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-02 18:56:39 +00:00
twanvl
aab910dc38
(optionally) use boost::regex instead of wxRegex, because it is faster
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1192 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-02 16:29:05 +00:00
twanvl
9709364ee7
Script profiler for finding slow scripts
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1191 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-02 16:27:47 +00:00
twanvl
4ad8c9f813
Fixed msvc 7.1 internal compiler error with new boost version
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1190 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-02 15:46:05 +00:00
twanvl
dc9053baef
Delay the construction of controls is SetWindowPanels until the panel is actually shown (initUI). This makes the program start slightly faster.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1189 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-01 17:21:17 +00:00
twanvl
56463a8806
Added empty_name to PackageChoiceField;
...
Package choice fields now reflect in scripts as "/:NO-WARN-DEP:packagename". This suppresses warnings when loading files in that package or using the package as a symbol font.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1187 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-31 19:42:30 +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
7e60aab603
Allow cards to be pasted when another control is selected.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1185 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-31 00:15:22 +00:00
twanvl
dc0fee0369
Fixed: CardViewers fighting over styles when multiple windows are open
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1184 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-31 00:07:30 +00:00
twanvl
a2af3211a4
Moved mask to Style and mask related drawing to ValueViewer.
...
Used the same mask also for TextStyles.
To keep the text selectable (since the mask is now also used for containsPoint), the future sight cost masks needed to be updated.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1183 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-30 23:49:12 +00:00
twanvl
a183ecc9a6
New class CachedScriptableMask: like CachedScriptableImage, only containing an AlphaMask instead of an Image/Bitmap.
...
Use CachedScriptableMask for all masks.
TODO: This introduces some duplicate code in ValueViewers that could be fixed by moving mask to the Style base class.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1182 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-30 21:51:38 +00:00
twanvl
acb3493b59
Merged behaviour from ContourMask into AlphaMask.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1181 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-30 17:15:22 +00:00