Skip to content

Commit e0209e1

Browse files
committed
Add donor page
1 parent 6461d03 commit e0209e1

File tree

8 files changed

+640
-17
lines changed

8 files changed

+640
-17
lines changed

builds/install/arch-specific/win32/FirebirdInstall.iss

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,15 @@ Var
632632
633633
init_secdb: integer; // Is set to UNDEFINED by default in InitializeSetup
634634
635+
AdminUserPage: TInputQueryWizardPage;
636+
637+
DonorPage: TWizardPage;
638+
RichEditViewer: TRichEditViewer;
639+
DonateButton: TNewButton;
640+
641+
initWizardHeight: Integer; // In prev. version - the wizard form was resized to new size every time when go back button pressed
642+
643+
635644
#ifdef setuplogging
636645
// Not yet implemented - leave log in %TEMP%
637646
// OkToCopyLog : Boolean; // Set when installation is complete.
@@ -643,25 +652,15 @@ Var
643652
644653
#include "FirebirdInstallGUIFunctions.inc"
645654
646-
647-
var
648-
AdminUserPage: TInputQueryWizardPage;
649-
initWizardHeight: Integer; //In prev. version - the wizard form was resized to new size every time when go back button pressed
650-
651655
procedure InitializeWizard;
652656
begin
653657
initWizardHeight := wizardform.height;
654658
655-
{ Create a page to grab the new SYSDBA password }
656-
AdminUserPage := CreateInputQueryPage(wpSelectTasks,
657-
ExpandConstant( '{cm:CreateSYSDBAPassword}' )
658-
, ExpandConstant( '{cm:ClickThroughPWCreation}' ) + #13#10 +
659-
ExpandConstant( '{cm:PasswordNote}' ) , '' );
660-
AdminUserPage.Add( ExpandConstant( '{cm:SYSDBAPassword}' ), True);
661-
AdminUserPage.Add( ExpandConstant( '{cm:RetypeSYSDBAPassword}' ), True);
659+
// Create a page to grab the new SYSDBA password
660+
CreateAdminUserPage;
662661
663-
AdminUserPage.Values[0] := SYSDBAPassword;
664-
AdminUserPage.Values[1] := SYSDBAPassword;
662+
// Create a page to ask for donations
663+
CreateDonorPage;
665664
666665
end;
667666
@@ -1027,6 +1026,12 @@ begin
10271026
case CurPage of
10281027
wpInfoBefore: WizardForm.INFOBEFOREMEMO.font.name:='Courier New';
10291028
wpInfoAfter: WizardForm.INFOAFTERMEMO.font.name:='Courier New';
1029+
DonorPage.ID: begin
1030+
DonateButton.Visible := True;
1031+
WizardForm.BackButton.Visible := False;
1032+
end;
1033+
else
1034+
DonateButton.Visible := False;
10301035
end;
10311036
end;
10321037

builds/install/arch-specific/win32/FirebirdInstallGUIFunctions.inc

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,74 @@ begin
346346
CloseDebugDlg;
347347
end;
348348

349+
350+
procedure CreateAdminUserPage;
351+
352+
begin
353+
354+
AdminUserPage := CreateInputQueryPage(wpSelectTasks,
355+
ExpandConstant( '{cm:CreateSYSDBAPassword}' )
356+
, ExpandConstant( '{cm:ClickThroughPWCreation}' ) + #13#10 +
357+
ExpandConstant( '{cm:PasswordNote}' ) , '' );
358+
AdminUserPage.Add( ExpandConstant( '{cm:SYSDBAPassword}' ), True);
359+
AdminUserPage.Add( ExpandConstant( '{cm:RetypeSYSDBAPassword}' ), True);
360+
361+
AdminUserPage.Values[0] := SYSDBAPassword;
362+
AdminUserPage.Values[1] := SYSDBAPassword;
363+
364+
end;
365+
366+
367+
procedure DonateButtonOnClick(Sender: TObject);
368+
var
369+
ErrorCode: Integer;
370+
begin
371+
ShellExecAsOriginalUser('open', 'https://firebirdsql.org/en/donate/', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
372+
end;
373+
374+
375+
procedure CreateDonorPage;
376+
var
377+
DonorText: AnsiString;
378+
379+
begin
380+
381+
// NOTE - The rtf must be pasted as a single line in the custom_messages.inc for the translated language. When removomg the EOLs pay attention that \par is always followed by a space.
382+
(*
383+
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}{\colortbl ;\red0\green0\blue255;}{\*\generator Riched20 10.0.17763}\viewkind4\uc1\pard\sa200\sl276\slmult1\qj\f0\fs24\lang9 Firebird has empowered users worldwide with its reliable and powerful database capabilities, thanks to years of dedicated development and community collaboration.\par \pard\li568\ri568\sa200\sl240\slmult1\qj\par \pard\sa200\sl276\slmult1\qj To ensure Firebird\rquote s continued growth and advancement, we invite you to {{\field{\*\fldinst{HYPERLINK "https://firebirdsql.org/en/donate"}}{\fldrslt{\ul\cf1 make a donation}}}}\f0\fs24 through the Firebird Foundation. Your generous contributions help fund ongoing development, maintain critical infrastructure, and expand the features you rely on. Additionally, our affordable subscriptions offer exclusive benefits designed to enhance your Firebird experience.\par \par Every contribution, big or small, plays a vital role in keeping Firebird innovative and robust for everyone.\par \par Visit our {{\field{\*\fldinst{HYPERLINK https://firebirdsql.org/en/firebird-foundation/ }}{\fldrslt{website\ul0\cf0}}}}\f0\fs24 to explore how you can contribute to this mission and help ensure Firebird\rquote s bright future. Thank you for being a valued part of the Firebird community!\par };
384+
*)
385+
386+
DonorPage := CreateCustomPage( wpInfoAfter, 'Support Firebird Development', '');
387+
// For testing place it after the welcome page
388+
// DonorPage := CreateCustomPage( wpWelcome, 'Support Firebird Development', '');
389+
390+
DonorText := ExpandConstant('{cm:DonorPage}');
391+
392+
RichEditViewer := TRichEditViewer.Create(DonorPage);
393+
RichEditViewer.Width := DonorPage.SurfaceWidth;
394+
RichEditViewer.Height := DonorPage.SurfaceHeight;
395+
RichEditViewer.Anchors := [akLeft, akTop, akRight, akBottom];
396+
RichEditViewer.BevelKind := bkNone;
397+
RichEditViewer.BorderStyle := bsNone;
398+
RichEditViewer.Parent := DonorPage.Surface;
399+
RichEditViewer.ScrollBars := ssNone;
400+
RichEditViewer.UseRichEdit := True;
401+
RichEditViewer.RTFText := DonorText;
402+
RichEditViewer.ReadOnly := True;
403+
404+
DonateButton := TNewButton.Create(WizardForm);
405+
DonateButton.Left := 10;
406+
DonateButton.Top := WizardForm.CancelButton.Top;
407+
// NOTE - If adding new translations be sure to check that this button is wide enough
408+
// for the translation of 'Donate Now'.
409+
DonateButton.Width := WizardForm.CancelButton.Width + 40;
410+
DonateButton.Height := WizardForm.CancelButton.Height;
411+
DonateButton.Anchors := [akLeft, akBottom];
412+
DonateButton.Caption := ExpandConstant('{cm:DonateNow}');
413+
DonateButton.OnClick := @DonateButtonOnClick;
414+
DonateButton.Parent := WizardForm;
415+
DonateButton.Visible := False;
416+
417+
end;
418+
419+

builds/install/arch-specific/win32/custom_messages.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,5 @@ en.RetypeSYSDBAPassword=Retype SYSDBA Password:
8888
en.InstallingMSVC32runtimes=Installing MSVC 32-bit runtime libraries to system directory
8989
en.InstallingMSVC64runtimes=Installing MSVC 64-bit runtime libraries to system directory
9090

91+
en.DonateNow=&Donate Now
92+
en.DonorPage={\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}{\colortbl ;\red0\green0\blue255;}{\*\generator Riched20 10.0.17763}\viewkind4\uc1 \pard\sl240\slmult1\qj\f0\fs24\lang9 Firebird has empowered users worldwide with its reliable and powerful database capabilities, thanks to years of dedicated development and community collaboration.\par \pard\li568\ri568\sl240\slmult1\qj\par\pard\sl240\slmult1\qj To ensure Firebird\rquote s continued growth and advancement, we invite you to {{\field{\*\fldinst{HYPERLINK "https://firebirdsql.org/en/donate"}}{\fldrslt{\ul\cf1\cf1\ul make a donation}}}}\f0\fs24 through the Firebird Foundation. Your generous contributions help fund ongoing development, maintain critical infrastructure, and expand the features you rely on. Additionally, our affordable subscriptions offer exclusive benefits designed to enhance your Firebird experience.\par \par Every contribution, big or small, plays a vital role in keeping Firebird innovative and robust for everyone.\par \par Visit our {{\field{\*\fldinst{HYPERLINK "https://firebirdsql.org/en/firebird-foundation/ "}}{\fldrslt{\ul\cf1\cf1\ul website}}}}\f0\fs24 to explore how you can contribute to this mission and help ensure Firebird\rquote s bright future. Thank you for being a valued part of the Firebird community!\par }

builds/install/arch-specific/win32/cz/custom_messages_cz.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,5 @@ cz.RetypeSYSDBAPassword=Znovu heslo pro SYSDBA:
8989
cz.InstallingMSVC32runtimes=Instaluji 32bitové běhové knihovny MSVC do systémové složky
9090
cz.InstallingMSVC64runtimes=Instaluji 64bitové běhové knihovny MSVC do systémové složky
9191

92+
cz.DonateNow=&Přispějte nyní
93+
cz.DonorPage={\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}{\f1\fnil\fcharset238 Calibri;}}{\colortbl ;\red0\green0\blue255;}{\*\generator Riched20 10.0.17763}\viewkind4\uc1 \pard\sl240\slmult1\qj\f0\fs24\lang9 Firebird ji\f1\'9e l\f0\'e9ta umo\f1\'9e\'f2uje u\'9eivatel\'f9m po cel\f0\'e9m sv\f1\'ect\'ec vyu\'9e\f0\'edvat spolehliv\'e9 a v\'fdkonn\'e9 datab\'e1zov\'e9 funkce, a to d\'edky dlouholet\'e9mu v\'fdvoji a spolupr\'e1ci komunity.\par \par Aby mohl Firebird d\'e1le r\f1\'f9st a vyv\f0\'edjet se, zveme v\'e1s, abyste ho {{\field{\*\fldinst{HYPERLINK "https://firebirdsql.org/en/donate "}}{\fldrslt{\ul\cf1\cf1\ul podpo\f1\'f8ili\f1 }}}}\f0\fs24 prost\f1\'f8ednictv\f0\'edm Firebird Foundation. Va\f1\'9ae p\'f8\f0\'edsp\f1\'ecvky pom\f0\'e1haj\'ed financovat pokra\f1\'e8uj\f0\'edc\'ed v\'fdvoj, udr\f1\'9eovat kl\f0\'ed\f1\'e8ovou infrastrukturu a roz\'9ai\'f8ovat funkce, na kter\f0\'e9 se spol\'e9h\'e1te. Nav\'edc na\f1\'9ae cenov\'ec dostupn\f0\'e9 p\f1\'f8edplatn\f0\'e9 nab\'edz\'ed exkluzivn\'ed v\'fdhody, kter\'e9 v\'e1m zp\f1\'f8\f0\'edjemn\'ed pr\'e1ci s Firebirdem.\par \par Ka\f1\'9ed\f0\'fd p\f1\'f8\f0\'edsp\f1\'ecvek, mal\f0\'fd nebo velk\'fd, hraje z\'e1sadn\'ed roli pro udr\f1\'9een\f0\'ed Firebirdu jako inovativn\'edho a v\'fdkonn\'e9ho n\'e1stroje pro v\f1\'9aechny.\par \par Nav\'9ativte na\'9ae {{\field{\*\fldinst{HYPERLINK "https://firebirdsql.org/en/firebird-foundation/ "}}{\fldrslt{\ul\cf1\cf1\ul webov\f0\'e9 str\'e1nky}}}}\f1\fs24 a zjist\'ecte, jak m\'f9\'9eete pomoci zajistit sv\'ectlou budoucnost Firebirdu. D\'eckujeme, \'9ee jste sou\'e8\f0\'e1st\'ed komunity Firebirdu!\par \par }

builds/install/arch-specific/win32/fr/custom_messages_fr.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,5 @@ fr.RetypeSYSDBAPassword=Confirmer le mot de passe SYSDBA:
8989
fr.InstallingMSVC32runtimes=Installer les bibliothèques MSVC 32-bit dans le répertoire système
9090
fr.InstallingMSVC64runtimes=Installer les bibliothèques MSVC 64-bit dans le répertoire système
9191

92+
fr.DonateNow=Faire un &don
93+
fr.DonorPage={\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}{\colortbl ;\red0\green0\blue255;}{\*\generator Riched20 10.0.17763}\viewkind4\uc1 \pard\sl240\slmult1\qj\f0\fs24\lang9 Firebird a permis aux utilisateurs du monde entier d'acc\'e9der \'e0 des bases de donn\'e9es fiables et puissantes, gr\'e2ce \'e0 des ann\'e9es de d\'e9veloppement et de collaboration avec la communaut\'e9.\par \par Pour assurer la croissance et le progr\'e8s continus de Firebird, nous vous invitons {{\field{\*\fldinst{HYPERLINK "https://firebirdsql.org/en/donate"}}{\fldrslt{\ul\cf1\cf1\ul\'e0 faire un don}}}}\f0\fs24 par l'interm\'e9diaire de la Fondation Firebird. Vos contributions g\'e9n\'e9reuses aident \'e0 financer le d\'e9veloppement continu, \'e0 maintenir l'infrastructure critique, et \'e0 \'e9tendre les fonctionnalit\'e9s sur lesquelles vous comptez. De plus, nos abonnements abordables offrent des avantages exclusifs con\'e7us pour am\'e9liorer votre exp\'e9rience de Firebird.\par \par Chaque contribution, petite ou grande, joue un r\'f4le vital pour que Firebird reste innovant et robuste pour tout le monde.\par \par Visitez notre {{\field{\*\fldinst{HYPERLINK "https://firebirdsql.org/en/firebird-foundation/ "}}{\fldrslt{\ul\cf1\cf1\ul site web}}}}\f0\fs24 pour d\'e9couvrir comment vous pouvez contribuer \'e0 cette mission et aider \'e0 assurer l'avenir de Firebird. Merci de faire partie de la communaut\'e9 Firebird !\par }

builds/install/arch-specific/win32/ru/custom_messages_ru.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,6 @@ ru.SYSDBAPassword=Пароль SYSDBA:
8787
ru.RetypeSYSDBAPassword=Повторите пароль:
8888
ru.InstallingMSVC32runtimes=Устанавливаются библиотеки MSVC 32-bit runtime
8989
ru.InstallingMSVC64runtimes=Устанавливаются библиотеки MSVC 64-bit runtime
90+
91+
ru.DonateNow=&Пожертвовать сейчас
92+
ru.DonorPage={\rtf1\ansi\ansicpg1251\deff0\nouicompat{\fonttbl{\f0\fnil\fcharset204 Calibri;}{\f1\fnil\fcharset0 Calibri;}} {\*\generator Riched20 10.0.17763}\viewkind4\uc1 \pard\qj\f0\fs24\lang1049 Firebird \'ef\'f0\'e5\'e4\'ee\'f1\'f2\'e0\'e2\'eb\'ff\'e5\'f2 \'ef\'ee\'eb\'fc\'e7\'ee\'e2\'e0\'f2\'e5\'eb\'ff\'ec \'e1\'e0\'e7 \'e4\'e0\'ed\'ed\'fb\'f5 \'ef\'ee \'e2\'f1\'e5\'ec\'f3 \'ec\'e8\'f0\'f3 \'f1\'e2\'ee\'fe \'ed\'e0\'e4\'e5\'e6\'ed\'ee\'f1\'f2\'fc \'e8 \'ec\'ee\'f9\'ed\'ee\'f1\'f2\'fc \'e1\'eb\'e0\'e3\'ee\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