Skip to content

Commit

Permalink
Rename all form to unit end by window and use snakecase
Browse files Browse the repository at this point in the history
  • Loading branch information
emeric-martineau committed Nov 21, 2021
1 parent 29bfba2 commit 413b93e
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/aboutwindow.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit aboutwindow;
unit AboutWindow;

{$mode objfpc}{$H+}

Expand Down
2 changes: 1 addition & 1 deletion src/backgroundprocessprogressbar.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@author(Emeric MARTINEAU)
@created(2021)
}
unit backgroundprocessprogressbar;
unit BackgroundProcessProgressBar;

{$mode objfpc}{$H+}

Expand Down
2 changes: 1 addition & 1 deletion src/distributionpropertieswindow.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit distributionpropertieswindow;
unit DistributionPropertiesWindow;

{$mode objfpc}{$H+}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit importdistribution;
unit ImportDistributionWindow;

{$mode objfpc}{$H+}

Expand Down
8 changes: 4 additions & 4 deletions src/mainwindow.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit mainwindow;
unit MainWindow;

{$mode objfpc}{$H+}

Expand All @@ -8,8 +8,8 @@ interface

uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, ComCtrls,
AboutWindow, ActnList, DistributionPropertiesWindow, ImportDistribution,
RunCommandWithUser, Prompt,
AboutWindow, ActnList, DistributionPropertiesWindow, importdistributionwindow,
RunCommandWithUserWindow, PromptWindow,
// For MB_xxxx dialog flags
LCLType, Menus,
// Wsl interface
Expand Down Expand Up @@ -445,7 +445,7 @@ procedure TWslGuiToolMainWindow.ToolButtonDuplicateClick(Sender: TObject);
begin
DistributionName := Format('%s-Copy', [WslDistributionList.Selected.Caption]);

if Prompt.Prompt(
if Prompt(
Self,
Format('Clone distribution "%s"', [WslDistributionList.Selected.Caption]),
'Please enter the name of distribution:',
Expand Down
2 changes: 1 addition & 1 deletion src/processresultdisplay.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit processresultdisplay;
unit ProcessResultDisplay;

{$mode objfpc}{$H+}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/prompt.pas → src/promptwindow.pas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit prompt;
unit promptwindow;

{$mode objfpc}{$H+}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unit runcommandwithuser;
unit runcommandwithuserwindow;

{$mode objfpc}{$H+}

Expand Down
9 changes: 6 additions & 3 deletions src/wslguitool.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -150,25 +150,28 @@
<ResourceBaseClass Value="Form"/>
</Unit7>
<Unit8>
<Filename Value="importdistribution.pas"/>
<Filename Value="importdistributionwindow.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="FormImportDistribution"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="ImportDistributionWindow"/>
</Unit8>
<Unit9>
<Filename Value="runcommandwithuser.pas"/>
<Filename Value="runcommandwithuserwindow.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="FormRunCommandWithUser"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="RunCommandWithUserWindow"/>
</Unit9>
<Unit10>
<Filename Value="prompt.pas"/>
<Filename Value="promptwindow.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="FormPrompt"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="PromptWindow"/>
</Unit10>
<Unit11>
<Filename Value="backgroundprocessprogressbar.pas"/>
Expand Down
6 changes: 3 additions & 3 deletions src/wslguitool.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, mainwindow, WslApi, WslCommandLine, WslRegistry, ApplicationInfo,
aboutwindow, distributionpropertieswindow, importdistribution,
runcommandwithuser, prompt, backgroundprocessprogressbar, processresultdisplay;
Forms, MainWindow, WslApi, WslCommandLine, WslRegistry, ApplicationInfo,
AboutWindow, DistributionPropertiesWindow, ImportDistributionWindow,
RunCommandWithUserWindow, PromptWindow, BackgroundProcessProgressBar, ProcessResultDisplay;

{$R *.res}

Expand Down
Binary file modified src/wslguitool.res
Binary file not shown.

0 comments on commit 413b93e

Please sign in to comment.