Add grid settings to preferences (#224)

- Allow origin to be either at the top-left corner or center of label (#174)
- For non-rectangular labels (cd, round, etc.) the origin will still
  always be at the center of the label.
- User controllable grid spacing
This commit is contained in:
Jaye Evins
2025-08-14 15:47:22 -04:00
committed by GitHub
parent f147407a46
commit fa96cc5a17
8 changed files with 378 additions and 29 deletions
+9 -1
View File
@@ -43,7 +43,8 @@ namespace glabels
public:
enum PageSizeFamily { ISO, US, };
enum GridOrigin { ORIGIN_TL, ORIGIN_CENTER };
/////////////////////////////////
// Life Cycle
@@ -101,6 +102,13 @@ namespace glabels
static QString recentPrinter();
static void setRecentPrinter( const QString& printer );
static GridOrigin gridOrigin();
static void setGridOrigin( GridOrigin origin );
static Distance gridSpacing();
static void setGridSpacing( Distance spacing );
static void resetGridSpacing();
private:
static Settings* mInstance;