Commit Graph

1554 Commits

Author SHA1 Message Date
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 31377629c8 attempt to reduce flicker by override EVT_ERASE_BACKGROUND
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1571 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-30 23:32:43 +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 3c49eb1889 fixed crash upon opening of random pack panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1569 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-30 17:07:54 +00:00
twanvl 809d9b747a Added some ifdefs around the vc9 fixes so that mse still compiles with msvc7 and wxWidget 2.6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1568 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-30 16:50:20 +00:00
twanvl 70471251e4 draw fancy windows explorer style selection rectangles
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1567 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 23:01:19 +00:00
twanvl 46bb971350 use native themed push buttons
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1566 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:38:12 +00:00
twanvl cd2aa25535 overload wxEVT_ERASE_BACKGROUND, to reduce flicker
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1565 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:19:49 +00:00
twanvl 55f03214f8 use wxBORDER_THEME for custom controls
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1564 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:17:26 +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 e5c0697476 * compatibility with wxWdigets 2.9+: use wxItemKind for menu style
* cleaned up the interface of IconMenu a bit

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1562 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 22:05:32 +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 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 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 24c95b0f33 * 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@1553 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:22:22 +00:00
twanvl 1ece54c899 * compatibility with wxWdigets 2.9+: Handle MOUSE_CAPTURE_LOST event
* compatibility with wxWdigets 2.9+: SetClippingRegion -> SetDeviceClippingRegion

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1552 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:21:43 +00:00
twanvl 3df48aa489 compatibility with wxWdigets 2.9+: Handle MOUSE_CAPTURE_LOST event
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1551 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:20:54 +00:00
twanvl cbb47ff265 compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE, etc
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1550 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:19:53 +00:00
twanvl 9e5ca1df1c use wxBORDER_THEME for custom controls
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1549 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:19:34 +00:00
twanvl cb01268092 added assertion
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1548 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:18:57 +00:00
twanvl 2f56a058c2 compatibility with wxWdigets 2.9+: wxString::iterator::operator* aparently does not return a wxChar anymore, use cast to force conversion.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1547 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:18:31 +00:00
twanvl a1ce4740c2 compatibility with wxWdigets 2.9+: Vector2D use *0.5 instead of /2 to prevent ambiguous conversion errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1546 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:17:51 +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 d5f8d29363 compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1543 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:15:15 +00:00
twanvl aba1ea3470 FunctionProfile::time -> FunctionProfile::total_time
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1542 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:14:55 +00:00
twanvl f9e8bb88e3 profile package open timing
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1541 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:14:10 +00:00
twanvl 8d830289a7 compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE, etc
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1540 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:13:28 +00:00
twanvl 7bad6c5ada compatibility with wxWdigets 2.9+: Vector2D: prevent ambiguous conversion errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1539 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:13:08 +00:00
twanvl a9a50c358a compatibility with wxWdigets 2.9+: wxString::c_str now returns an object instead of a Char*, use cast to force conversion.
TODO: This can probably be done more efficiently!

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1538 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:12:44 +00:00
twanvl 527d21794c compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent, but this function doesn't exist in wx2.8. So, #define the former as the latter for backwards compatibility.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1537 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:12:14 +00:00
twanvl 3ca87fce86 compatibility with wxWdigets 2.9+: Vector2D use *0.5 instead of /2 to prevent ambiguous conversion errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1536 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:11:03 +00:00
twanvl e84e6473e0 compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE, etc
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1535 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:09:12 +00:00
twanvl fbc7f425be compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE, etc
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1534 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:08:48 +00:00
twanvl 4fa03824ef compatibility with wxWdigets 2.9+: wxSAVE -> wxFD_SAVE
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1533 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:08:30 +00:00
twanvl 61467fa363 added window showing profiler statistics
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1532 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:07:55 +00:00
twanvl d12e0838a2 compatibility with wxWdigets 2.9+: work around a bug in wx 2.9.1 (should be fixed in newer releases)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1531 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:06:26 +00:00
twanvl e6884e0db3 compatibility with wxWdigets 2.9+: Vector2D::operator *(int) to prevent ambiguous conversion errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1530 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:05:49 +00:00
twanvl 6f922eac7d compatibility with wxWdigets 2.9+: SetLogicalFunction takes wxRasterOperationMode instead of int
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1529 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:05:00 +00:00
twanvl 65cde6c8f3 compatibility with wxWdigets 2.9+: use wxString::const_iterator instead of raw Char*
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1528 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:04:11 +00:00
twanvl 3562891b42 compatibility with wxWdigets 2.9+: there is now a built in wxString::FromUTF8 function, use it
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1527 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:02:55 +00:00
twanvl 195a318001 compatibility with wxWdigets 2.9+: use wxString::const_iterator instead of raw Char*
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1526 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:02:04 +00:00
twanvl aaca63cc0f compatibility with wxWdigets 2.9+: wxString::c_str now returns an object instead of a Char*, use cast to force conversion.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1525 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-12-07 21:01:02 +00:00
twanvl 418a05d636 Fix error introduced in r1465: in single line text box, no lines were generated (which led to a crash), or text was scaled down when this was not intended.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1524 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-16 19:29:57 +00:00
twanvl 9735e24517 Added a panel showing profiler timings
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1523 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-10-13 21:35:30 +00:00