Commit Graph

14 Commits (master)

Author SHA1 Message Date
Unknown dbc060bba9 Load and restore the Format correctly 2019-03-29 17:03:48 +01:00
Unknown e8ebc537ea Fix reportings of static analyzer 2019-03-29 04:34:17 +01:00
adrido 89a99b043e Remove redundant void 2018-08-18 16:18:59 +02:00
addi 145bf8c688 Add Draw-figures Tab 2016-12-14 10:00:35 +01:00
adrido 9a004f8671 Make RegularExpressions const and parse legacy format 2015-07-13 10:37:39 +02:00
adrido 84edddce80 Output Corners correctly 2015-07-06 11:59:04 +02:00
adrido 4a3df34641 Match any even if there are unnecessary characters before or after the geometry string
Fix whitespaces
2015-07-05 12:12:14 +02:00
adrido 217979e55b Remove unnecessary porting.h file 2015-07-05 11:50:13 +02:00
adrido 23cb8ec83e Use RegularExpression to detect and parse format and QString() with arg() for output.
+ OS independent
+ No memory leak (currently)
- Maybe not as fast as sscanf
2015-07-05 11:43:40 +02:00
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