Commit Graph

47 Commits

Author SHA1 Message Date
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
coppro e1e6a0ae93 Added robustness to command-line options.
Fixed minor bugs in installer


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@556 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-12 00:29:01 +00:00
twanvl d00b09eb60 New symbol part list control that shows previews and has a built in editor
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@529 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-08 22:26:39 +00:00
twanvl 6e17e7d31f Added an option to create an installer package.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@512 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-06 20:19:02 +00:00
twanvl a2e709d86b It is 2007 by now
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@275 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-04-21 17:06:29 +00:00
twanvl 2291fe4405 Fixed some more compiler warnings
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@192 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-01-31 19:43:27 +00:00
twanvl 99867b0c0b command line argument support
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@167 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-12-24 15:17:30 +00:00
twanvl 40606d975e debuged some horrible race conditions & deadlocks
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@160 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-12-24 00:12:06 +00:00
twanvl ca42f31ccc Localisation, using Locale class
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@113 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-12-12 16:09:05 +00:00
twanvl 2f1b2756ee added overdrawDC for drawing selection
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@107 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-12-10 18:28:26 +00:00
twanvl 95a5c2f42b fixed update ui for NewWindow
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@106 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-12-10 16:47:56 +00:00
twanvl a2c509180a Added update checker
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@88 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-11-22 21:05:26 +00:00
twanvl 11a0276232 Added dummy keyword panel; fixed directory finding; added more controls to style panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@86 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-11-21 16:26:22 +00:00
twanvl 5ee944e426 naming style (variable_to_string); nicer error messages for problems during dependency checking
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@67 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-31 16:06:17 +00:00
twanvl c8e8dd0220 Added ValueViewer,DataViewer,CardViewer and made related changes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@49 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-26 20:33:23 +00:00
twanvl 46cf4dbb64 Implemented NewSetWindow, added events to GalleryList
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@48 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-20 20:02:30 +00:00
twanvl 8a533bb61f (formating)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@46 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-20 16:59:55 +00:00
twanvl 5f721e461c InternalError message changed
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@37 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-19 19:28:03 +00:00
twanvl ff96f1522a added FieldP to values and styles, implemented reflection for IndexMap
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@36 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-19 18:44:27 +00:00
twanvl b13d0b81ae Fixed a nasty order of destruction bug, where the memory pool for ScriptInts was destroyed before the PackageManager
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@20 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-12 17:08:02 +00:00
twanvl 6fe45ca28b message boxes for errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@19 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-12 15:30:55 +00:00
twanvl b389685fc8 Added Alignment, Defaultable and Scriptable types, needed some reflection tweaks for the last two.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@17 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-12 14:07:34 +00:00
twanvl 156d1f6632 Automatic use of singular names -> even more use of REFLECT instead of REFLECT_N.
This also works better for GetMember, since the plural names (which make sense for scripts) are the default.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@16 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-11 22:58:55 +00:00
twanvl 35ece4674d settings get read&written
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@11 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-07 20:38:49 +00:00
twanvl 50b22e9478 improved the doxygen documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@4 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-10-01 15:18:40 +00:00