Twan van Laarhoven
f9d18ac3c8
Fix potential crash when there are errors in a statistics script
2020-06-01 14:11:40 +02:00
Twan van Laarhoven
221a8e99e5
Fix #55
2020-05-25 22:13:12 +02:00
Twan van Laarhoven
c9c7a958ae
Add exception handlers in places where scripts are invoked. This should lead to slightly nicer error messages.
2020-05-22 00:30:18 +02:00
Twan van Laarhoven
424fd96185
Add help text to the card/keyword filter boxes
2020-05-16 14:16:32 +02:00
Twan van Laarhoven
92fbb9ea10
Remove erase background event handlers, in favor of SetBackgroundStyle.
2020-05-16 01:56:17 +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
3ea5ea9573
Fix missing carret in card filter box
...
Add Ctrl+K as a shortcut for card/keyword filter
2020-05-15 02:08:55 +02:00
Twan van Laarhoven
0c3712b61a
Cleanup: indentation of public/protected/private keywords
2020-05-12 21:57:37 +02:00
Twan van Laarhoven
e7d0a2106d
Fixed warnings
2020-05-12 17:49:42 +02:00
Twan van Laarhoven
bc53730091
Update scrollbar on resize (and on startup)
2020-05-12 02:07:42 +02:00
Twan van Laarhoven
d90b73101b
Implement scrolling ourselfs rather than relying on wxScrolledWindow
2020-05-10 17:05:31 +02:00
Twan van Laarhoven
968b8eabca
Add "Save as directory"
2020-05-09 13:26:33 +02:00
Twan van Laarhoven
2d171732a0
Add Select All functionality, closes #19
2020-05-08 02:19:04 +02:00
Twan van Laarhoven
8b25815f72
Re-enabled intrusive_ptr
2020-05-07 22:25:02 +02:00
Twan van Laarhoven
e005d47d56
Use std::enable_shared_from_this instead of thisP parameters.
2020-05-06 22:59:10 +02:00
Twan van Laarhoven
30401964d5
Fix #10 : find/replace was broken after tab index change.
...
Also: improve tab order to get a total order
2020-05-05 22:41:32 +02:00
Twan van Laarhoven
177cc25487
Don't use wxToolBarToolBase::AddDropdownMenu, it is not supposed to be used and might not work in some ports.
2020-05-04 13:22:05 +02:00
Twan van Laarhoven
1fb3f15aff
Generate image for disabled toolbar buttons and menu items.
...
Fixes #13 .
Removed IconMenu class, use add_menu_item/add_menu_item_tr instead.
Added _tr variants that automatically do locale translation
2020-05-01 03:26:02 +02:00
Twan van Laarhoven
af7e8c9d39
Switch (back) to our own Color type instead of using wxColour.
...
The reason is that wxColour's default constructor creates an invalid color (what is that even?). It is nicer to just have default be transparent.
2020-04-26 21:41:35 +02:00
Twan van Laarhoven
2e897edbbf
Use toSomeType() instead of operator SomeType in ScriptValue.
...
This means that we are more explicit about type conversions.
Also use override specifiers for overriden virtual functions in ScriptValue.
2020-04-26 17:03:43 +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
b7ed93cd02
Remove dependency on boost::random, since that is now in std
2020-04-25 22:22:15 +02:00
Twan van Laarhoven
0d42df1537
Fix type conversion errors in GCC/wxGTK
2020-04-25 22:20:51 +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
4258ce1c6c
Remove AColor class, because wxColour now supports alpha values.
2020-04-25 22:20:50 +02:00
Twan van Laarhoven
0ca2c70310
Add keyboard navigation and history to console panel.
2020-04-23 22:02:13 +02:00
Twan van Laarhoven
257c82ed90
Tweak spacing on keywords panel
2020-04-23 21:20:40 +02:00
Twan van Laarhoven
a585fc40cc
Remove some useless "typedef wxX X"
2020-04-22 23:58:01 +02:00
Twan van Laarhoven
39f504ad90
Sstrip special characters from set name before showing save file dialog
2020-04-21 01:13:11 +02:00
Twan van Laarhoven
294c12b180
Remove space below tab bar, it has repaint issues and wastes space
2020-04-21 01:04:58 +02:00
Twan van Laarhoven
e72909f430
Remember contents of filter control when switching tabs
2020-04-21 00:10:17 +02:00
Twan van Laarhoven
1c9139a490
Console panel sets "card" variable to selected card
2020-04-18 21:44:02 +02:00
Twan van Laarhoven
25fd7dc079
Fix: separate menu for export from toolbar
2020-04-10 16:56:54 +02:00
Twan van Laarhoven
9e6cfe9b7e
Fix: wxFlexGridSizer doesn't like center alignment with wxEXPAND
2020-04-10 14:46:53 +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
aa39a9bc71
Make PNG the default export format.
2017-01-24 10:49:14 -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
bfcdfa31f3
Fix forward reference error.
2017-01-18 00:42:05 -06:00
twanvl
6981c4a2b4
minor cleanup for insert symbol menu change
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1649 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-02-03 22:24:37 +00:00
twanvl
e36f697855
Add 'insert symbol menu' in EVT_MENU_OPEN instead of updateUI, this fixes crash on wxGTK
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1647 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-02-02 23:16:59 +00:00
twanvl
e6dc141339
Don't segfault on errors during construction of ConsolePanel
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1645 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-28 14:12:26 +00:00
twanvl
fa7f25306b
copying messages from console
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1634 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-22 13:15:05 +00:00
twanvl
213817ab34
fix layout problems with blinking tabBar icons in wx2.6/vc7.1
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1633 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-21 22:01:39 +00:00
twanvl
df32d0e99b
make console panel compile correctly in vc7.1, wx2.6
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1632 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-21 14:55:42 +00:00
twanvl
c3133d761d
blinker tweaks
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1631 0fc631ac-6414-0410-93d0-97cfa31319b6
2011-01-21 14:23:36 +00:00