Skip to content

Commit

Permalink
Add edit wslconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
emeric-martineau committed Jan 4, 2022
1 parent f110ead commit 8322609
Show file tree
Hide file tree
Showing 16 changed files with 947 additions and 86 deletions.
8 changes: 8 additions & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,11 @@ Job finish with error
when you double click, a window with run command, stdout and stderr

![Log](images/screenshot/status-job-distribution5.jpg)

## Edit wslconfig file

In tool bar, click on:
![WSLConfig toolbar button](images/screenshot/edit-wslconfig-file-toolbar.jpg)

then a new window is displayed:
![WSLConfig](images/screenshot/edit-wslconfig-file)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Just download executable file in release github section.

## Screenshot

![Main window](images/screenshot/mainwindow.png)
![Main window](images/screenshot/mainwindow.jpg)

![Distribution properties window](images/screenshot/distributionproperties.png)
![Distribution properties window](images/screenshot/distributionproperties.jpg)

## Documenation

Expand Down
Binary file added images/screenshot/distributionproperties.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/screenshot/distributionproperties.png
Binary file not shown.
Binary file added images/screenshot/edit-wslconfig-file-toolbar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshot/edit-wslconfig-file.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshot/mainwindow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/screenshot/mainwindow.png
Binary file not shown.
5 changes: 4 additions & 1 deletion src/backgroundprocessprogressbar.pas
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ interface
TBackgroundProcessProgressBarFinished = procedure(ExitStatus: integer; Canceled: boolean) of object;
TBackgroundProcessProgressBarRun = procedure() of object;

// Background process
{ TBackgroundProcessProgressBar }

TBackgroundProcessProgressBar = class(TObject)
FProcess: TProcess;
FTimer: TTimer;
Expand Down Expand Up @@ -67,6 +68,8 @@ TBackgroundProcessProgressBar = class(TObject)

implementation

{ TBackgroundProcessProgressBar }

constructor TBackgroundProcessProgressBar.Create(Owner: TForm);
begin
Create(Owner, 500);
Expand Down
Binary file added src/images/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/mainwindow.lfm
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
object WslGuiToolMainWindow: TWslGuiToolMainWindow
Left = -2012
Left = 2924
Height = 441
Top = 214
Width = 723
Top = 376
Width = 722
Caption = 'WSL GUI Tool'
ClientHeight = 441
ClientWidth = 723
ClientWidth = 722
DesignTimePPI = 120
Icon.Data = {
47AC01000000010006000000000001002000D926000066000000808000000100
Expand Down Expand Up @@ -3447,7 +3447,7 @@ object WslGuiToolMainWindow: TWslGuiToolMainWindow
Left = 0
Height = 69
Top = 0
Width = 723
Width = 722
ButtonHeight = 64
ButtonWidth = 65
Caption = 'ToolBar1'
Expand Down Expand Up @@ -3559,7 +3559,7 @@ object WslGuiToolMainWindow: TWslGuiToolMainWindow
Left = 0
Height = 372
Top = 69
Width = 723
Width = 722
Align = alClient
AutoSortIndicator = True
Columns = <
Expand Down
128 changes: 117 additions & 11 deletions src/wslconfigeditwindow.lfm
Original file line number Diff line number Diff line change
@@ -1,25 +1,131 @@
object FormWslconfigEdit: TFormWslconfigEdit
Left = -2011
Left = -1547
Height = 301
Top = 695
Top = 385
Width = 400
Caption = 'FormWslconfigEdit'
Caption = 'Global WSL2 configuration'
ClientHeight = 301
ClientWidth = 400
DesignTimePPI = 120
OnCreate = FormCreate
OnDestroy = FormDestroy
Position = poOwnerFormCenter
LCLVersion = '2.0.12.0'
object Memo1: TMemo
object PanelButtons: TPanel
Left = 0
Height = 301
Top = 0
Height = 71
Top = 230
Width = 400
Align = alClient
Lines.Strings = (
'Memo1'
)
ScrollBars = ssAutoBoth
Align = alBottom
AutoSize = True
BevelOuter = bvNone
BorderWidth = 20
ClientHeight = 71
ClientWidth = 400
ParentColor = False
TabOrder = 0
object PanelButtonOk: TPanel
Left = 20
Height = 31
Top = 20
Width = 94
Align = alLeft
AutoSize = True
BevelOuter = bvNone
ClientHeight = 31
ClientWidth = 94
TabOrder = 0
object ButtonSave: TButton
Left = 0
Height = 31
Top = 0
Width = 94
Caption = '&Save'
Enabled = False
OnClick = ButtonSaveClick
TabOrder = 0
end
end
object PanelButtonReset: TPanel
Left = 192
Height = 31
Top = 20
Width = 94
Align = alRight
AutoSize = True
BevelOuter = bvNone
ClientHeight = 31
ClientWidth = 94
TabOrder = 1
object ButtonReset: TButton
Left = 0
Height = 31
Top = 0
Width = 94
Caption = '&Reset'
OnClick = ButtonResetClick
TabOrder = 0
end
end
object PanelButtonCancel: TPanel
Left = 286
Height = 31
Top = 20
Width = 94
Align = alRight
AutoSize = True
BevelOuter = bvNone
ClientHeight = 31
ClientWidth = 94
TabOrder = 2
object ButtonCancel: TButton
Left = 0
Height = 31
Top = 0
Width = 94
Caption = '&Cancel'
ModalResult = 2
TabOrder = 0
end
end
end
object ImageListWslconfig: TImageList
Left = 240
Top = 111
Bitmap = {
4C69010000001000000010000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00DFDF
DF217979798B373737CF161616F0161616F0363636CF7B7B7B8BDCDCDC25FFFF
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FBFBFB037B7B7B8C0606
06FA212121E46E6E6E9394949476959595766E6E6E93212121E4050505FA7B7B
7B8CFAFAFA07FFFFFF00FFFFFF00FFFFFF00FBFBFB03515151B90C0C0CF49A9A
9A6BFCFCFC04FFFFFF00FFFFFF00FFFFFF00FFFFFF00FCFCFC049A9A9A6B0D0D
0DF4525252B9FAFAFA07FFFFFF00FFFFFF007B7B7B880C0C0CF4C7C7C740FFFF
FF00FFFFFF00FFFFFF00FFFBF503FFFBF503FFFFFF00FFFFFF00FFFFFF00C8C8
C8400C0C0CF47A7A7A8CFFFFFF00DDDDDD25050505FA9999996BFFFFFF00FFFF
FF00FFFDF901F6BB7285F39825EEF39825EEF5BB7287FFFDF902FFFFFF00FFFF
FF009A9A9A6B050505FADDDDDD217B7B7B8E202020E0FCFCFC03FFFFFF00FFFF
FF00F8CC9463F39621FEF6B86991F6B86991F39621FEF9CC9362FFFFFF00FFFF
FF00FCFCFC03212121E07A7A7A8B363636D36E6E6E9BFFFFFF00FFFFFF00FFFF
FF00F7C68873F6B86B8FFFFFFE00FFFFFE00F2A442CBF4B565AAFFFFFF00FFFF
FF00FFFFFF006E6E6E93373737CF161616F095959576FFFFFF00FFFFFF00FFFF
FF00FFFFFF00FFFFFF00FFFEFC00F9D3A24BF39825F4F6C07B85FFFFFF00FFFF
FF00FFFFFF0096969672161616EC161616EC95959572FFFFFF00FFFFFF00FFFF
FF00FFFFFF00FFFFFF00F7C07A7DF39621FFF4A23BCCFEF1E211FFFFFF00FFFF
FF00FFFFFF0095959576161616F0373737CF70707093FFFFFF00FFFFFF00FFFF
FF00FFFFFF00FFFFFF00F1B263B8F1AC55C1FFFBF702FFFFFF00FFFFFF00FFFF
FF00FFFFFF006D6D6D9B373737D07979798B212121E0FBFBFB03FFFFFF00FFFF
FF00FFFFFF00FFFFFF00F6D7B150F6D7B150FFFFFF00FFFFFF00FFFFFF00FFFF
FF00FBFBFB03202020E47B7B7B8EDDDDDD21050505FA9999996BFFFFFF00FFFF
FF00FFFFFF00FFFFFF00F1B263B4F1B263B4FFFFFF00FFFFFF00FFFFFF00FFFF
FF009999996B050505FADEDEDE21FFFFFF007B7B7B8C0C0C0CF4C9C9C940FFFF
FF00FFFFFF00FFFFFF00FFFBF503FFFBF503FFFFFF00FFFFFF00FFFFFF00C7C7
C7400C0C0CF47A7A7A88FFFFFF00FFFFFF00FBFBFB07535353B90C0C0CF49999
996BFCFCFC04FFFFFF00FFFFFF00FFFFFF00FFFFFF00FCFCFC049A9A9A6B0B0B
0BF4515151B9FBFBFB03FFFFFF00FFFFFF00FFFFFF00FBFBFB077A7A7A8C0606
06FA202020E46F6F6F9395959576959595766E6E6E93222222E0050505FA7A7A
7A8CFBFBFB03FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00DEDE
DE257979798B373737CF161616F0161616F0373737CF7A7A7A8BDDDDDD25FFFF
FF00FFFFFF00FFFFFF00FFFFFF00
}
end
end
Loading

0 comments on commit 8322609

Please sign in to comment.