Twan van Laarhoven
4bebd48786
Moved tab_index to Style (instead of Field), it makes more sense there, since it pertains to the layout of stuff on the card.
...
Also don't precalculate list of fields sorted by tab order, just find the next/previous ones on the fly.
2020-04-26 02:16:39 +02:00
Twan van Laarhoven
54a3cbfde3
Replace include guards by #pragma once
2020-04-26 01:25:16 +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
Twan van Laarhoven
4327abb803
Remove DECLARE_TYPEOF
...
It is no longer needed since C++11
2020-04-26 00:51:16 +02:00
Twan van Laarhoven
5e92d9455c
Code cleanup: remove messy spaces before line continuation (\) in macros
2020-04-26 00:37:13 +02:00
Twan van Laarhoven
5d4c3402df
Added fancy mouseover effect to field borders.
...
This might be slow, if this becomes a problem I could add a setting to disable it.
2020-04-25 23:59:56 +02:00
Twan van Laarhoven
64ea1d7322
Clean up pointer use:
...
* Use unique_ptr for Actions instead of manual memory management
* Use unique_ptr in KeywordDatabase
* Use unique_ptr instead of shared_ptr for file formats
* Don't pass shared_ptr to Reader/Writer, use references instead
Also
* Switch to C++17 so we can use map::try_emplace
2020-04-25 22:20:51 +02:00
Twan van Laarhoven
708b4389a0
Use make_intrusive/make_shared for smart pointer construction.
2020-04-25 22:20:51 +02:00
Twan van Laarhoven
e9456eea86
Fix: refresh list also when changes are made to item 0
2020-04-23 19:59:47 +02:00
Twan van Laarhoven
713a9e4a40
Use underscores instead of spaces for all internal names. And renamed some script functions at the same time.
...
* cannocial_name_form now outputs "_", where it used to use " "
* this simplifies reflectio and scripting code, because now C++ names are also MSE internal names
* added 'caption' property to fields. This is used instead of the name in NativeLookEditor, since the latter will now contain underscores.
* renamed text related script functions for consistency, since we were touching that part of the code anyway.
2020-04-22 23:48:26 +02:00
Twan van Laarhoven
e464327e69
filter ctrl: don't force height
2020-04-18 19:12:52 +02:00
Twan van Laarhoven
0706ecae13
Fix wxGTK warnings about GetScrollPos on window without scrollbar
2020-04-16 19:29:46 +02:00
Twan van Laarhoven
5700005243
Cleanup: use DoGetBestClientSize
2020-04-10 16:57:21 +02:00
Twan van Laarhoven
be9bae942e
Fix empty bitmap issue
...
Fix: invalidate best size cache that is used in newer wxWidgets versions
2020-04-10 16:56:07 +02:00
Twan van Laarhoven
35a89676b4
CMake file
...
Update to C++ 11: std::shared_ptr, for each loops
Update to wxWidgets 3.0+
2020-04-08 01:10:01 +02:00
Lymia Aluysia
76cf6fc0d6
Suppress libpng errors.
2017-01-18 09:14:17 -06: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
Lymia Aluysia
241f19c865
Fix compiling/linking on Linux.
2017-01-18 06:35:38 -06:00
twanvl
a7ac71e244
set theme border also for StylingEditor
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1620 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-18 19:53:33 +00:00
twanvl
f54d0845f4
also draw wavy lines for errors in nativeLook boxes (i.e. keyword reminder text)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1616 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-16 13:55:22 +00:00
twanvl
d217349148
Added filter box for keywords
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1615 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-16 13:34:50 +00:00
twanvl
2874a19701
Use built in sort indicator of ListView control (on windows), wx doesn't provide this, so we do some Win32 programming.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1612 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-10 22:22:48 +00:00
twanvl
befa10125b
Fancy theming of ListCtrls: explorer style (windows vista+)
...
This requires that we ev.Skip() EVT_MOTION, otherwise the list becomes very sluggish to update.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1611 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-10 22:08:17 +00:00
twanvl
a1b09b1fe1
Don't try to use new rendering of GalleryList, it doesn't work yet
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1608 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-10 18:15:10 +00:00
twanvl
53bbcfe9a9
Be explicit about type of angles: either Radians or Degrees.
...
Angles are always doubles.
Internally use radians as much as possible.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1605 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-09 14:49:59 +00:00
twanvl
a59248ae95
set text color to system foreground color (working on #22 : correct use of os theme colors)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1604 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-09 13:37:15 +00:00
twanvl
d9fce86e2b
tried explorer style theming of list, doesn't work
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1603 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-09 13:36:20 +00:00
twanvl
2acf70aa3c
fixed vector subscript out of range error in the Graph control: stacked bar charts ::findItem used incorrect bound
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1601 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-08 21:10:41 +00:00
twanvl
bcaef7eb30
by setting fancy theme thingy just once the problems go away
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1580 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-05 21:30:35 +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
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
0d519a3c0b
draw_control_box instead of draw_control_border
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1563 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:09:09 +00:00
twanvl
d709a4eeee
* use wxBORDER_THEME for custom controls
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1561 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:04:48 +00:00
twanvl
ae0380d355
* compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1560 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:04:20 +00:00
twanvl
653378d0b2
* compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent
...
* compatibility with wxWdigets 2.9+: Handle MOUSE_CAPTURE_LOST event
* use wxBORDER_THEME for custom controls
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1559 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:03:14 +00:00
twanvl
b8b07fd80a
* compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent
...
* overload wxEVT_ERASE_BACKGROUND, to reduce flicker
* use wxBORDER_THEME for custom controls
* tweaked style of GalleryList a tiny bit
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1558 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:01:44 +00:00
twanvl
961e4c3cd9
use wxBORDER_THEME for custom controls
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1556 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:44:56 +00:00
twanvl
b99f2dc700
* compatibility with wxWdigets 2.9+: SetClippingRegion -> SetDeviceClippingRegion
...
* overload wxEVT_ERASE_BACKGROUND, to reduce flicker
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1555 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:43:55 +00:00
twanvl
525af32c85
profile the loading of package images
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1554 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:23:10 +00:00
twanvl
075122668b
* compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent
...
* compatibility with wxWdigets 2.9+: Vector2D: prevent ambiguous conversion errors
* use wxBORDER_THEME for custom control
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1545 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:17:03 +00:00
twanvl
0ee420b7b4
compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1544 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:15:28 +00:00
twanvl
50a26e4c76
* find_i function for case insensitive searching
...
* card::contains uses case insensitive find
* Added card::contains_words for quick search, which searches for each word separately
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1484 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 22:33:20 +00:00
twanvl
be922940a2
Added a "quick search" box for filtering the card list
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1483 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-04 21:52:26 +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
twanvl
8ed09c48bf
Fixed #24 : nullptr error in graph code
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1453 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 19:13:19 +00:00
twanvl
854998f204
Fix #25 : Program throws exception when clicking on the 'stylesheet' list if there are no stylesheets.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1450 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 18:37:47 +00:00
twanvl
51dfed69b4
Instead of the new_intrusive<T>() functions, use intrusive(new T)
...
This means we no longer need 8 different functions for different numbers of arguments, and non-const references can now also be passed to constructors without problems.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1443 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-07-21 14:32:28 +00:00
coppro
85854b1bd2
Fix warnings
...
Semi-fix bug #6 (does not work if the zipfile was loaded from a directory)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1439 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-03-04 01:46:04 +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