Commit Graph

151 Commits (a990d042ae4ffc6702eeb10d5b2c26c3f4807370)

Author SHA1 Message Date
Rogier f5c18b38ce Improve geometry widget 2015-07-02 19:15:56 +02:00
Rogier 72805c0b66 Try and make sscanf / snprintf work on both windows and Linux
sscanf_s exists in C11, but I didn't find it in CXX11
_snprintf_s does not exist in C11 or CXX11. C11 does have snprintf_s

In combination with the fact that I think sscanf and snprintf are not used
insecurely here (*), I used sscanf and snprintf, and added macros to select
the microsoft/C11 alternatives on Windows.

(*) Notes:
Any insecurity of sscanf does not apply, as it is not reading strings.

snprintf already does bounds-checking on the destination buffer, which is
is much to large anyway. And as compilers (VC++ too, I assume...) usually
check whether the format specifiers match the parameter types, there
should be no need for an extra-secure version here either.
2015-07-02 19:15:56 +02:00
Rogier bb169ab3e8 Fix to 'Improve Geometrymode' (18ee90f0) 2015-07-02 19:15:56 +02:00
Rogier e3ea69d215 Document license information in LICENSE file
See the source code (MainWindow::on_actionAbout_MinetestMapperGUI_triggered)
2015-07-02 18:06:18 +02:00
Rogier 97f07778b0 Improve 'Tiles' tab a little 2015-07-02 18:04:54 +02:00
Rogier 8a2fd652a0 Fix regular and heightmap scale interval which would not enable 2015-07-02 18:04:54 +02:00
Rogier ff327ded1e Added some filenames to .gitignore 2015-07-02 18:04:54 +02:00
adrido 5e3752b1cd Merged in Rogier-5/minetestmappergui/fix (pull request #2)
Fix to 'Improve Geometrymode' (18ee90f0)
2015-07-02 17:20:58 +02:00
Rogier bd29fee445 Fix to 'Improve Geometrymode' (18ee90f0) 2015-07-02 16:51:29 +02:00
adrido df6b7b6325 Created own geometry widget to keep code simple and clean
Currently its proof of concept, wich may work not right.
The goal is, that mainwindow only have to call set(geometry) and the geometry widget detects and select the correct dropdown entry and fills in the data into the spin boxes.
Also  mainwindow only needs to call getGeometry() to get the geometryString for generating the map and save in profile settings
2015-07-02 15:11:29 +02:00
adrido 18ee90f0ed Improve Geometrymode (thanks to @Rogier-5) 2015-07-02 14:48:40 +02:00
adrido ead7343e8b Merge branch 'master' of https://bitbucket.org/adrido/minetestmappergui 2015-07-01 05:10:35 +02:00
adrido 010adc6fd1 added backend option 2015-07-01 05:01:09 +02:00
adrido 20c2b10f58 Added option to disable the auto-map open after generation 2015-07-01 05:01:08 +02:00
adrido 019022936f ui- tweaks 2015-07-01 05:01:06 +02:00
adrido b258465146 better display in expert mode 2015-07-01 05:01:05 +02:00
adrido c6db7a264b added custom ColorLineEdit for the colors 2015-07-01 04:59:06 +02:00
adrido 1905455c48 added a dir completer to the world path 2015-07-01 04:59:05 +02:00
adrido 70450e6676 block-color is now white by default 2015-07-01 04:59:03 +02:00
adrido 03de2f0de3 Update German translation 2015-07-01 04:59:02 +02:00
Rogier 11cf55c7dd Reset buttons etc. after mapper failed to start 2015-06-30 18:53:54 +02:00
Rogier bdce92fa15 Do not run minetestmapper after clicking 'cancel' in expert mode 2015-06-30 18:53:47 +02:00
Rogier 12873a89d6 Save settings under organisation 'minetestmapper' instead of 'addi' on non-windows systems.
The idea of linking an application's settings to the organisation that
happens to write or own the code is quite windows-like. It's not customary
under Linux, BSD*, etc.

Also migrate any existing settings.
2015-06-30 18:53:19 +02:00
Rogier ccfd092bf2 Ignore other main window events (to avoid compiler warnings) 2015-06-29 07:55:18 +02:00
Rogier d92af8c35a Fix compilation on Linux 2015-06-29 07:40:35 +02:00
adrido d1a44b3f4e added backend option 2015-06-15 15:14:35 +02:00
adrido ab2c0b5afc Added option to disable the auto-map open after generation 2015-06-15 15:13:41 +02:00
adrido 3f7243c1e7 ui- tweaks 2015-06-13 16:17:52 +02:00
adrido 8b66a6094f better display in expert mode 2015-06-13 16:17:11 +02:00
adrido f41ce2b499 added custom ColorLineEdit for the colors 2015-06-03 04:42:10 +02:00
adrido 00e5ca4f02 added a dir completer to the world path 2015-06-02 07:21:40 +02:00
adrido 4e127ffcf6 block-color is now white by default 2015-05-31 17:58:48 +02:00
adrido 270c3c0c82 Update German translation 2015-05-31 17:57:58 +02:00
adrido 32fb004d08 Update languages 2015-05-31 17:16:48 +02:00
adrido ea1906c0ac Display error message if output image is empty 2015-05-31 10:48:50 +02:00
adrido bfd23a4abd new default paths for output image and input world 2015-05-31 10:47:59 +02:00
adrido a1a1fba90e introducing Expert mode 2015-05-31 10:25:13 +02:00
adrido e661870355 Introducing profiles 2015-05-31 09:17:24 +02:00
adrido d9a02523d7 Minimized application icon and re-added Minetest icon 2015-05-29 12:18:24 +02:00
adrido affbdf29e9 works now with Windows XP (Windows 5.01) 2015-05-29 12:14:47 +02:00
adrido 5190c7b983 Merge branch 'master' of https://bitbucket.org/adrido/minetestmappergui 2015-05-27 11:15:22 +02:00
adrido 5ebcc34769 Update to version 0.4
show progress also in windows Taskbar
added button to cancel minetestmapper
changed all icons to svg
new app icon by McKrustenkaese
y-map limit ranges now +- 30000 instead of +-128
display error messages if minetestmapper fails
display error message if no world selected
options to clear mintestmapperlog
display stdError of minetestmapper in red now
updated Languages
2015-05-27 11:15:13 +02:00
adrido 4b0de5c0ac README.md edited online with Bitbucket 2015-05-26 14:32:39 +00:00
adrido 991e94ae39 translate default buttons too 2015-05-16 08:50:17 +02:00
adrido b6cdff5c01 use correct path 2015-05-16 03:58:16 +02:00
adrido ef3c1db96c updated translation 2015-05-15 19:45:01 +02:00
adrido 74620b943c huge update
added Tiles option
more status tips
half-automatic filenamegeneration
added geometry
added scalefactor
added minY and maxY
added geometrymode
added colorpicker for HeightmapColor
added drawAir
added draw noShades
2015-05-15 19:44:37 +02:00
adrido a0c8983191 read colors.txt path now from textfield 2015-05-14 13:07:23 +02:00
adrido a418f032ea updated translation files 2015-05-14 11:03:30 +02:00
adrido 1db08ea8da added color tab and advanced color config 2015-05-14 09:28:08 +02:00