Skip to content

Commit 2d64c91

Browse files
author
delphidabbler
committed
Removed Donate menu option and dialogue box
Also modified affected code.
1 parent f5b142c commit 2d64c91

File tree

7 files changed

+1
-236
lines changed

7 files changed

+1
-236
lines changed

Src/CodeSnip.dpr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ uses
105105
FmDBUpdateDlg in 'FmDBUpdateDlg.pas' {DBUpdateDlg},
106106
FmDeleteCategoryDlg in 'FmDeleteCategoryDlg.pas' {DeleteCategoryDlg},
107107
FmDependenciesDlg in 'FmDependenciesDlg.pas' {DependenciesDlg},
108-
FmDonateDlg in 'FmDonateDlg.pas' {DonateDlg},
109108
FmDuplicateSnippetDlg in 'FmDuplicateSnippetDlg.pas' {DuplicateSnippetDlg},
110109
FmEasterEgg in 'FmEasterEgg.pas' {EasterEggForm},
111110
FmFavouritesDlg in 'FmFavouritesDlg.pas' {FavouritesDlg},

Src/CodeSnip.dproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@
154154
<DCCReference Include="FmDependenciesDlg.pas">
155155
<Form>DependenciesDlg</Form>
156156
</DCCReference>
157-
<DCCReference Include="FmDonateDlg.pas">
158-
<Form>DonateDlg</Form>
159-
</DCCReference>
160157
<DCCReference Include="FmDuplicateSnippetDlg.pas">
161158
<Form>DuplicateSnippetDlg</Form>
162159
</DCCReference>

Src/FmDonateDlg.dfm

Lines changed: 0 additions & 61 deletions
This file was deleted.

Src/FmDonateDlg.pas

Lines changed: 0 additions & 142 deletions
This file was deleted.

Src/FmMain.dfm

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -690,13 +690,6 @@ inherited MainForm: TMainForm
690690
OnExecute = actCopyInfoExecute
691691
OnUpdate = actCopyInfoUpdate
692692
end
693-
object actDonate: TAction
694-
Category = 'Help'
695-
Caption = 'Donate...'
696-
Hint = 'Donate|Make a PayPal donation to support CodeSnip development'
697-
ImageIndex = 23
698-
OnExecute = actDonateExecute
699-
end
700693
object actViewDependencies: TAction
701694
Category = 'View'
702695
Caption = 'Dependencies...'
@@ -1191,9 +1184,6 @@ inherited MainForm: TMainForm
11911184
object miSpacer5: TMenuItem
11921185
Caption = '-'
11931186
end
1194-
object miDonate: TMenuItem
1195-
Action = actDonate
1196-
end
11971187
object miAbout: TMenuItem
11981188
Action = actAbout
11991189
end

Src/FmMain.pas

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ TMainForm = class(THelpAwareForm)
4747
actCopySource: TAction;
4848
actDeleteCategory: TAction;
4949
actDeleteSnippet: TAction;
50-
actDonate: TAction;
5150
actDuplicateSnippet: TAction;
5251
actEditSnippet: TAction;
5352
actExit: TFileExit;
@@ -119,7 +118,6 @@ TMainForm = class(THelpAwareForm)
119118
miDatabase: TMenuItem;
120119
miDeleteCategory: TMenuItem;
121120
miDeleteSnippet: TMenuItem;
122-
miDonate: TMenuItem;
123121
miDuplicateSnippet: TMenuItem;
124122
miEdit: TMenuItem;
125123
miEditSnippet: TMenuItem;
@@ -280,8 +278,6 @@ TMainForm = class(THelpAwareForm)
280278
/// <summary>Attempts to delete the current user defined snippet from the
281279
/// database.</summary>
282280
procedure actDeleteSnippetExecute(Sender: TObject);
283-
/// <summary>Displays Donate dialogue box.</summary>
284-
procedure actDonateExecute(Sender: TObject);
285281
/// <summary>Displays a dialogue box that can be used to duplicate the
286282
/// selected snippet.</summary>
287283
procedure actDuplicateSnippetExecute(Sender: TObject);
@@ -710,11 +706,6 @@ procedure TMainForm.actDeleteSnippetExecute(Sender: TObject);
710706
// display update is handled by snippets change event handler
711707
end;
712708

713-
procedure TMainForm.actDonateExecute(Sender: TObject);
714-
begin
715-
fDialogMgr.ShowDonateDlg
716-
end;
717-
718709
procedure TMainForm.actDuplicateSnippetExecute(Sender: TObject);
719710
begin
720711
TUserDBMgr.DuplicateSnippet(fMainDisplayMgr.CurrentView);
@@ -1382,7 +1373,6 @@ procedure TMainForm.InitForm;
13821373
Self, ActEditSnippetByNameExecute
13831374
)
13841375
);
1385-
SetDonateAction(actDonate);
13861376
SetNewSnippetAction(actAddSnippet);
13871377
SetNewsAction(actBlog);
13881378
// SetCheckForUpdatesAction(actProgramUpdates);

Src/UDialogMgr.pas

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ TDialogMgr = class(TComponent)
109109
/// </returns>
110110
function ExecPrintDlg: Boolean;
111111

112-
/// <summary>Displays the Donate dialogue box.</summary>
113-
procedure ShowDonateDlg;
114-
115112
/// <summary>Displays the Test Unit dialogue box.</summary>
116113
/// <param name="Snippet">TSnippet [in] Snippet for which test unit is to
117114
/// be generated.</param>
@@ -154,7 +151,7 @@ implementation
154151
// Delphi
155152
Forms,
156153
// Project
157-
FmAboutDlg, FmDBUpdateDlg, FmDependenciesDlg, FmDonateDlg, FmFindCompilerDlg,
154+
FmAboutDlg, FmDBUpdateDlg, FmDependenciesDlg, FmFindCompilerDlg,
158155
FmFindTextDlg, FmFindXRefsDlg, FmPreferencesDlg, FmPrintDlg,
159156
FmProxyServerDlg,
160157
FmSelectionSearchDlg, FmSWAGImportDlg, FmTestCompileDlg, FmUserBugReportDlg,
@@ -231,11 +228,6 @@ function TDialogMgr.ShowDependenciesDlg(const Snippet: TSnippet;
231228
);
232229
end;
233230

234-
procedure TDialogMgr.ShowDonateDlg;
235-
begin
236-
TDonateDlg.Execute(Owner);
237-
end;
238-
239231
procedure TDialogMgr.ShowSWAGImportDlg;
240232
begin
241233
TSWAGImportDlg.Execute(Owner);

0 commit comments

Comments
 (0)