Commit Graph

5 Commits (59fe2eba60962aae9325c1ba9ca4e5c4e83b4187)

Author SHA1 Message Date
Rogier 59fe2eba60 [WIP] Fixes to geometry 2015-07-04 10:18:37 +02:00
Rogier ddb26b4cd3 [WIP] fixes to geometry 2015-07-04 09:16:35 +02:00
Rogier 180956b044 Allow setting geometry manually as well 2015-07-04 08:36:55 +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
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