Commit Graph

19 Commits

Author SHA1 Message Date
392f43ec89 If we're gonna put this into a unique_ptr we should do it from the beginning.
I'm not sure if sf::Image::create can throw, but if it can, that would have been a leak.
2024-08-24 21:00:26 -04:00
d74b11aa31 Reform command-line handling to use Clara, which is bundled with Catch 2024-08-22 23:21:29 -04:00
104f6d6b0b Address some compiler warnings (Xcode 12)
* Missing prototypes
* Unused function parameters
* Float comparison in preferences
2024-08-10 12:06:11 -04:00
c251fee834 Fix graphics flickering/stretching on Windows (#367)
* DRY, standardized window top offset
* handle_splash_events() handle multiple events per frame
* accurate windows menubar height for multiple rows
* Windows filter a resize event triggered by the menubar
* windows expand small window to fit menubar
* splash screens draw in view rect, not window rect
2024-06-27 08:40:34 -04:00
Morel Berenger
ce667c596a Allow to only select one file in open... 2023-01-06 20:49:08 -05:00
409fe41030 Ignore numpad keys for keyToChar conversion 2020-01-12 10:58:33 -05:00
C.W. Betts
1b210d4358 OS X: Fix a few memory leaks. 2017-08-31 21:50:48 -04:00
C.W. Betts
44b586fe90 As a general rule, use fileSystemRepresentation if passing NSStrings to lower-level open commands.
This will be especially true for APFS volumes.
2017-07-02 15:30:54 -06:00
C.W. Betts
56a1f766e2 Allow selecting files via their OSTypes. 2017-07-02 15:29:24 -06:00
780b413d0c Mass replace NULL --> nullptr
(Except one instance was instead replaced with nil)
2015-09-13 10:50:21 -04:00
15aeaf8876 Fix not using correct default directory for Cocoa save dialogs 2015-09-03 19:26:45 -04:00
a8dd1d3b3a Save OS version to scenarios 2015-08-17 23:22:50 -04:00
e055b97c9f Add dialog allowing you to alter the scenario's graphics sheets from within the scenario editor
- You can copy/paste images into the sheet, or import/export to/from png files

Also:
- Picture controls in the dialog engine have a new "scaled" flag; if set, the picture will be scaled into the provided bounds rather than overflowing. Currently, only full sheets honour the setting.
2015-06-15 16:20:03 -04:00
9f57f35428 Change .h -> .hpp in tools/ directory 2015-01-09 22:32:47 -05:00
38f398caa5 Several little fixes
- Save As not working when not in a scenario
- Recuperation trait not selectable
- (Mac) Reverse domain applied as file extension
- (Windows) File extension not auto-appended
- (Windows) Dialogs sometimes fell behind main window after exiting sub-dialog
2015-01-07 17:20:49 -05:00
584baa3f19 Reform scenario editor menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is 2015-01-05 13:33:38 -05:00
099a6a61b0 Fix Mac build (again) 2014-12-30 17:41:50 -05:00
0b330432b4 Get the game to compile, at least
- Scenario and PC editors still don't link
- Copy files stage set up in the Common project
- Scenario and PC editors now placed in Scenario Editor subfolder in the output directory
- Disabled some totally useless warnings
- "About" menuitem now considered to belong to "Help" menu (even on Mac code) as far as the handlers are concerned
- Dialog string filter is now a function instead of a custom iterator
- Modal session now requires parent window as additional parameter
- Preferences and menus work! Cursors still need some work.
- Since Visual Studio has no way of showing program output that I can find, stdout and stderr are now redirected to a file.
2014-12-30 17:20:22 -05:00
af0ee110c6 Rename osx directory to src since it's now the official source base 2014-12-28 12:12:38 -05:00