Add a 'Stamp' widget.

Place one or multiple stamps on scanned pages in defined locations.

A stamp is understood here as
 - a transparent text in a transparent frame with no borders
 - an opaque text on an opaque background with no borders.

Stamp parameters:
 - text
 - font
 - foreground colour
 - background colour
 - angle of rotation
 - transparency.

Locations:
 - centre
 - cardinal directions
 - inter-cardinal directions.
This commit is contained in:
Saleem Edah-Tally
2025-07-01 22:38:07 +02:00
parent c2c792dd3d
commit a2045aa1f6
38 changed files with 3376 additions and 71 deletions

View File

@@ -419,7 +419,7 @@
<bool name="proxy-wxRIGHT">1</bool>
<bool name="proxy-wxSHAPED">0</bool>
<bool name="proxy-wxTOP">1</bool>
<string name="title">"wxBoxSizer V"</string>
<string name="title">"wxBoxSizer V: szMain"</string>
<long name="title-mode">0</long>
<string name="type">"dialog-control-document"</string>
<document>
@@ -526,7 +526,7 @@ Double-click to go to the selected directory."</string>
<long name="proxy-Height">-1</long>
<string name="proxy-Help text">"Basename"</string>
<bool name="proxy-Hidden">0</bool>
<string name="proxy-Id name">"ID_TEXTCTRL"</string>
<string name="proxy-Id name">"ID_TEXTCTRL_S7"</string>
<long name="proxy-Id value">10003</long>
<string name="proxy-Implementation filename">""</string>
<string name="proxy-Initial value">""</string>
@@ -576,7 +576,7 @@ Double-click to go to the selected directory."</string>
<bool name="proxy-wxWANTS_CHARS">0</bool>
<long name="proxy-X">-1</long>
<long name="proxy-Y">-1</long>
<string name="title">"wxTextCtrl: ID_TEXTCTRL"</string>
<string name="title">"wxTextCtrl: ID_TEXTCTRL_S7"</string>
<long name="title-mode">0</long>
<string name="type">"dialog-control-document"</string>
</document>

View File

@@ -126,7 +126,7 @@ void S7::CreateControls()
dpkDestination->SetToolTip(_("Select a destination directory.\nDouble-click to go to the selected directory."));
szMain->Add(dpkDestination, 0, wxGROW|wxALL, 5);
txtBasename = new wxTextCtrl( panMain, ID_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
txtBasename = new wxTextCtrl( panMain, ID_TEXTCTRL_S7, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
txtBasename->SetHelpText(_("Basename"));
if (S7::ShowToolTips())
txtBasename->SetToolTip(_("Specify a destination file basename (without extension).\n\n'CTRL + click' for about information."));

View File

@@ -39,7 +39,7 @@ class wxDirPickerCtrl;
#define ID_S7 10000
#define ID_PANEL 10001
#define ID_DIRPICKERCTRL 10002
#define ID_TEXTCTRL 10003
#define ID_TEXTCTRL_S7 10003
#define SYMBOL_S7_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_S7_TITLE _("S7")
#define SYMBOL_S7_IDNAME ID_S7