Commit Graph

53 Commits

Author SHA1 Message Date
GenevensiS 4d1c7aae96 prevent dropdown from closing when moving to parent or child 2026-04-09 19:30:17 +02:00
GenevensiS fbf2023848 convert to CRLF line endings 2026-01-05 01:01:18 +01:00
GenevensiS 436c437189 add compiler directives
add compiler directives
2025-12-30 01:18:04 +01:00
ebbit1q 2d5ec064df Fix compile 2025-12-17 07:01:04 +01:00
GenevensiS 45d48d67b1 Revert "restrict drop down menu closing conditions"
This reverts commit 026400a1e0.
2025-07-18 04:40:16 +02:00
GenevensiS 026400a1e0 restrict drop down menu closing conditions 2025-07-02 21:40:45 +02:00
GenevensiS 67f8b2bcb1 close drop down menus on tab key press 2025-07-02 01:23:35 +02:00
GenevensiS 276842be30 restrict drop down menu closing conditions 2025-07-02 00:27:26 +02:00
GenevensiS 2e48c5e868 Allow "Default" in slider fields 2025-05-22 22:15:35 +02:00
GenevensiS 616ea3f725 Create slider field type 2025-05-22 12:52:26 +02:00
GenevensiS 7ad662f74e Stop dropdown menus from closing on wxEVT_SIZE events
This prevents dropdown menus from closing when there is a console message/warning/error
2025-05-19 17:49:40 +02:00
Twan van Laarhoven 4ff603d413 Allow ValueViewers to have a bounding box different from the Style's. This closes #64. 2020-06-01 01:18:13 +02:00
Twan van Laarhoven 1f75175943 Cleanup: rename ValueViewer::viewer -> parent; store CardP in ValueAction 2020-05-31 16:07:13 +02:00
Twan van Laarhoven e570fa8346 Disable scrollbars for dropdown lists. wxGTK doesn't support them at all, we would have to do it manually. For now disabling scrolling mostly fixes #51 2020-05-23 14:58:54 +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
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 3a33b07f4e fixed DropDownList in wx2.8: should use wxPopupWindow::Show instead of wxWindow::Show
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1581 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-06 12:51:55 +00:00
twanvl a87eab540b Reverted DropDownList back to wxPopupWindow from wxPopupTransientWindow. The latter is not going to work, because it tries to be too smart. In particular, it thinks the mouse clicks outside the dialog when the scrollbar is clicked, and dismisses the popup. It also requires a mouse capture, which gives problems when submenus are used.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1574 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-31 19:38:52 +00:00
twanvl 8e18d21b3c More attempts to fix the DropDownList,
this design using wxPopupTransientWindow is probably not going to work, I should revert to the old version.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1573 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-31 15:59:10 +00:00
twanvl 29c0dca669 fixes of transient popup dialogs, still not perfect, but getting there:
* fixed: popup didn't work when editor didn't have focus
* fixed: dimissal by losing focus didn't repaint dropdown arrows

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1572 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-30 23:47:36 +00:00
twanvl 05b753c7a1 use wxPopupTransientWindow::Dismiss instead of Show(false), otherwise handlers are no uninstalled and we get an assertion failure.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1570 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-30 22:04:35 +00:00
twanvl 61e686649b attempt to deal with mouse capture in DropDownList, still not entirely correct!
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1557 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:45:27 +00:00
twanvl 7bcb045668 Use wxPopupTransientWindow for drop down lists
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1522 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-13 19:09:31 +00:00
twanvl 90b08ea743 Added scrollbar for DropDownList, fixes #52
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1478 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 00:45:55 +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 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
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 b79f52db84 New rotation system (see forum thread).
Major changes:
  - when rotating, the top left corner of the rectangle stays in place.
  - ValueViewers get a dc that is pre-rotated/translated for them, i.e. (0,0) is the top-left of the viewer (with ValueViewer::getRotation).
  - moved 'angle' from individual Styles to the Style base class.
  - any rotation angle is now possible. angle is still an int for now.

This warrants a version bump

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@782 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-23 21:58:58 +00:00
twanvl 77ace5354c Fixed: keyword expanding could hang if there is a keyword that matches "";
Fixed: drop down list now stays open after mouse out the second time it is used;
Fixed some typos in comments;
Disabled 'check updates' menu item for 0.3.5 release

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@711 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-20 14:40:13 +00:00
twanvl 01de02b904 'suffix' is no longer a safe global variable name in scripts;
Drop down list for word lists stay open after clicking on a prefix choice.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@663 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-02 18:18:04 +00:00
twanvl fcc89b64d6 Added support for scripts to determine word lists;
Added 'trim' and 'remove_tags' script functions;
Simplified safety improvements of locale checker;
Added 'is_targeted' function to magic game to replace the contains(..) calls

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@635 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-28 18:33:38 +00:00
twanvl d68f73edfc Various tweaks and fixes, mostly to the drop down lists
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@620 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-23 23:29:20 +00:00
twanvl dc9f08b311 Some tweaks to word drop down list
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@619 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-23 17:37:44 +00:00
twanvl 9f2b30b2db Added word lists for choosing things like card type;
Added 'in_place' pattern to spec_sort

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@616 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-23 16:33:12 +00:00
twanvl d590819762 Removed last of the BeginDrawing/EndDrawing calls;
Added english_number_ordinal script function;
Working on symbols with a different aspect ratio (i.e. wider/smaller symbols)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@558 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-12 17:01:07 +00:00
twanvl 939d50804c Multiple choice box kept open until mouse out
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@505 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-06 14:45:20 +00:00
twanvl ddc78ca547 Drop down list doens't skip disabled items.
Fixed bug: scripted visibility didn't work.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@469 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-02 18:27:18 +00:00
twanvl 8b11433cbd Reader now warns about invalid UTF-8 files;
Fixed possible hang when reading multiline strings with incorrect indentation;
Warnings from reading are shown also in NewSetWindow;
Script parse errors get reported with the correct line number;

Added support for showing multiple choice fields as a single image;
Added 'line_below' to ChoiceField::Choice, for putting a line below menu items.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@420 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-06-12 19:35:24 +00:00
twanvl fe0f6838b8 fixes to non-unicode build
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@280 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-04-21 21:09:17 +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 3f0c284a50 added scrollbar to NativeLookEditor
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@223 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-03-21 23:40:17 +00:00
twanvl 3d9181e5f6 Eliminated most build errors (gcc,linux,wxGTK).
What is left is mostly:
 - warning: converting double to int
     -> add a cast/to_int or ignore
 - wrong initialization order in ctor
     -> just swap the order to match the class
 - errors about wxCursors
     -> add a function loadResourceCursor


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@183 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-01-29 00:04:20 +00:00
twanvl b059c867d2 fixed crash in drop down list when switching between editors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@165 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-12-24 14:08:08 +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 dcdd000aef redrawing of editors (for drop down lists)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@155 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-12-23 13:26:53 +00:00
twanvl 9a62445621 Fixed sub menus
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@94 0fc631ac-6414-0410-93d0-97cfa31319b6
2006-11-25 01:36:43 +00:00