mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Preparation for issue #3002: Move startup script and local time zone options together with SSL settings to a new "Advanced" tab.
This commit is contained in:
@ -219,14 +219,6 @@ object connform: Tconnform
|
|||||||
DesignSize = (
|
DesignSize = (
|
||||||
295
|
295
|
||||||
287)
|
287)
|
||||||
object lblStartupScript: TLabel
|
|
||||||
Left = 3
|
|
||||||
Top = 264
|
|
||||||
Width = 69
|
|
||||||
Height = 13
|
|
||||||
Caption = 'Startup script:'
|
|
||||||
FocusControl = editStartupScript
|
|
||||||
end
|
|
||||||
object lblPort: TLabel
|
object lblPort: TLabel
|
||||||
Left = 3
|
Left = 3
|
||||||
Top = 168
|
Top = 168
|
||||||
@ -268,25 +260,11 @@ object connform: Tconnform
|
|||||||
end
|
end
|
||||||
object lblDatabase: TLabel
|
object lblDatabase: TLabel
|
||||||
Left = 3
|
Left = 3
|
||||||
Top = 239
|
Top = 216
|
||||||
Width = 55
|
Width = 55
|
||||||
Height = 13
|
Height = 13
|
||||||
Caption = 'Databases:'
|
Caption = 'Databases:'
|
||||||
end
|
end
|
||||||
object editStartupScript: TButtonedEdit
|
|
||||||
Left = 120
|
|
||||||
Top = 261
|
|
||||||
Width = 172
|
|
||||||
Height = 21
|
|
||||||
Anchors = [akLeft, akTop, akRight]
|
|
||||||
Images = MainForm.ImageListMain
|
|
||||||
RightButton.ImageIndex = 51
|
|
||||||
RightButton.Visible = True
|
|
||||||
TabOrder = 11
|
|
||||||
OnChange = Modification
|
|
||||||
OnDblClick = PickFile
|
|
||||||
OnRightButtonClick = PickFile
|
|
||||||
end
|
|
||||||
object chkCompressed: TCheckBox
|
object chkCompressed: TCheckBox
|
||||||
Left = 120
|
Left = 120
|
||||||
Top = 190
|
Top = 190
|
||||||
@ -364,11 +342,11 @@ object connform: Tconnform
|
|||||||
end
|
end
|
||||||
object comboDatabases: TComboBox
|
object comboDatabases: TComboBox
|
||||||
Left = 120
|
Left = 120
|
||||||
Top = 236
|
Top = 213
|
||||||
Width = 172
|
Width = 172
|
||||||
Height = 21
|
Height = 21
|
||||||
Anchors = [akLeft, akTop, akRight]
|
Anchors = [akLeft, akTop, akRight]
|
||||||
TabOrder = 10
|
TabOrder = 9
|
||||||
TextHint = 'Separated by semicolon'
|
TextHint = 'Separated by semicolon'
|
||||||
OnChange = Modification
|
OnChange = Modification
|
||||||
OnDropDown = comboDatabasesDropDown
|
OnDropDown = comboDatabasesDropDown
|
||||||
@ -394,19 +372,6 @@ object connform: Tconnform
|
|||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
OnClick = chkLoginPromptClick
|
OnClick = chkLoginPromptClick
|
||||||
end
|
end
|
||||||
object chkLocalTimeZone: TCheckBox
|
|
||||||
Left = 120
|
|
||||||
Top = 213
|
|
||||||
Width = 172
|
|
||||||
Height = 17
|
|
||||||
Hint =
|
|
||||||
'Use your client time zone in date/time SQL functions, e.g. NOW()' +
|
|
||||||
', for MySQL 4.1.3+'
|
|
||||||
Anchors = [akLeft, akTop, akRight]
|
|
||||||
Caption = 'Set client time zone'
|
|
||||||
TabOrder = 9
|
|
||||||
OnClick = Modification
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
object tabSSHtunnel: TTabSheet
|
object tabSSHtunnel: TTabSheet
|
||||||
Caption = 'SSH tunnel'
|
Caption = 'SSH tunnel'
|
||||||
@ -590,9 +555,9 @@ object connform: Tconnform
|
|||||||
Wrap = True
|
Wrap = True
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object tabSSLOptions: TTabSheet
|
object tabAdvanced: TTabSheet
|
||||||
Caption = 'SSL options'
|
Caption = 'Advanced'
|
||||||
ImageIndex = 144
|
ImageIndex = 98
|
||||||
DesignSize = (
|
DesignSize = (
|
||||||
295
|
295
|
||||||
287)
|
287)
|
||||||
@ -620,6 +585,14 @@ object connform: Tconnform
|
|||||||
Caption = 'SSL certificate:'
|
Caption = 'SSL certificate:'
|
||||||
FocusControl = editSSLCertificate
|
FocusControl = editSSLCertificate
|
||||||
end
|
end
|
||||||
|
object lblStartupScript: TLabel
|
||||||
|
Left = 3
|
||||||
|
Top = 156
|
||||||
|
Width = 69
|
||||||
|
Height = 13
|
||||||
|
Caption = 'Startup script:'
|
||||||
|
FocusControl = editStartupScript
|
||||||
|
end
|
||||||
object editSSLPrivateKey: TButtonedEdit
|
object editSSLPrivateKey: TButtonedEdit
|
||||||
Left = 120
|
Left = 120
|
||||||
Top = 36
|
Top = 36
|
||||||
@ -672,6 +645,33 @@ object connform: Tconnform
|
|||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
OnClick = Modification
|
OnClick = Modification
|
||||||
end
|
end
|
||||||
|
object chkLocalTimeZone: TCheckBox
|
||||||
|
Left = 120
|
||||||
|
Top = 130
|
||||||
|
Width = 172
|
||||||
|
Height = 17
|
||||||
|
Hint =
|
||||||
|
'Use your client time zone in date/time SQL functions, e.g. NOW()' +
|
||||||
|
', for MySQL 4.1.3+'
|
||||||
|
Anchors = [akLeft, akTop, akRight]
|
||||||
|
Caption = 'Set client time zone'
|
||||||
|
TabOrder = 4
|
||||||
|
OnClick = Modification
|
||||||
|
end
|
||||||
|
object editStartupScript: TButtonedEdit
|
||||||
|
Left = 120
|
||||||
|
Top = 153
|
||||||
|
Width = 172
|
||||||
|
Height = 21
|
||||||
|
Anchors = [akLeft, akTop, akRight]
|
||||||
|
Images = MainForm.ImageListMain
|
||||||
|
RightButton.ImageIndex = 51
|
||||||
|
RightButton.Visible = True
|
||||||
|
TabOrder = 5
|
||||||
|
OnChange = Modification
|
||||||
|
OnDblClick = PickFile
|
||||||
|
OnRightButtonClick = PickFile
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object tabStatistics: TTabSheet
|
object tabStatistics: TTabSheet
|
||||||
Caption = 'Statistics'
|
Caption = 'Statistics'
|
||||||
|
@ -28,20 +28,18 @@ type
|
|||||||
TimerStatistics: TTimer;
|
TimerStatistics: TTimer;
|
||||||
PageControlDetails: TPageControl;
|
PageControlDetails: TPageControl;
|
||||||
tabSettings: TTabSheet;
|
tabSettings: TTabSheet;
|
||||||
lblStartupScript: TLabel;
|
|
||||||
lblPort: TLabel;
|
lblPort: TLabel;
|
||||||
lblPassword: TLabel;
|
lblPassword: TLabel;
|
||||||
lblHost: TLabel;
|
lblHost: TLabel;
|
||||||
lblUsername: TLabel;
|
lblUsername: TLabel;
|
||||||
lblNetworkType: TLabel;
|
lblNetworkType: TLabel;
|
||||||
editStartupScript: TButtonedEdit;
|
|
||||||
chkCompressed: TCheckBox;
|
chkCompressed: TCheckBox;
|
||||||
editPort: TEdit;
|
editPort: TEdit;
|
||||||
updownPort: TUpDown;
|
updownPort: TUpDown;
|
||||||
editPassword: TEdit;
|
editPassword: TEdit;
|
||||||
editUsername: TEdit;
|
editUsername: TEdit;
|
||||||
editHost: TEdit;
|
editHost: TEdit;
|
||||||
tabSSLOptions: TTabSheet;
|
tabAdvanced: TTabSheet;
|
||||||
lblSSLPrivateKey: TLabel;
|
lblSSLPrivateKey: TLabel;
|
||||||
lblSSLCACertificate: TLabel;
|
lblSSLCACertificate: TLabel;
|
||||||
lblSSLCertificate: TLabel;
|
lblSSLCertificate: TLabel;
|
||||||
@ -84,7 +82,6 @@ type
|
|||||||
chkWantSSL: TCheckBox;
|
chkWantSSL: TCheckBox;
|
||||||
btnImportSettings: TButton;
|
btnImportSettings: TButton;
|
||||||
timerSettingsImport: TTimer;
|
timerSettingsImport: TTimer;
|
||||||
chkLocalTimeZone: TCheckBox;
|
|
||||||
popupNew: TPopupMenu;
|
popupNew: TPopupMenu;
|
||||||
menuNewSessionInRoot: TMenuItem;
|
menuNewSessionInRoot: TMenuItem;
|
||||||
menuNewFolderInRoot: TMenuItem;
|
menuNewFolderInRoot: TMenuItem;
|
||||||
@ -92,6 +89,9 @@ type
|
|||||||
menuContextNewSessionInFolder: TMenuItem;
|
menuContextNewSessionInFolder: TMenuItem;
|
||||||
menuNewSessionInFolder: TMenuItem;
|
menuNewSessionInFolder: TMenuItem;
|
||||||
menuNewFolderInFolder: TMenuItem;
|
menuNewFolderInFolder: TMenuItem;
|
||||||
|
chkLocalTimeZone: TCheckBox;
|
||||||
|
editStartupScript: TButtonedEdit;
|
||||||
|
lblStartupScript: TLabel;
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
procedure btnOpenClick(Sender: TObject);
|
procedure btnOpenClick(Sender: TObject);
|
||||||
procedure FormShow(Sender: TObject);
|
procedure FormShow(Sender: TObject);
|
||||||
@ -700,7 +700,7 @@ begin
|
|||||||
tabStart.TabVisible := not SessionFocused;
|
tabStart.TabVisible := not SessionFocused;
|
||||||
tabSettings.TabVisible := SessionFocused;
|
tabSettings.TabVisible := SessionFocused;
|
||||||
tabSSHtunnel.TabVisible := SessionFocused;
|
tabSSHtunnel.TabVisible := SessionFocused;
|
||||||
tabSSLoptions.TabVisible := SessionFocused;
|
tabAdvanced.TabVisible := SessionFocused;
|
||||||
tabStatistics.TabVisible := SessionFocused;
|
tabStatistics.TabVisible := SessionFocused;
|
||||||
menuNewSessionInFolder.Enabled := InFolder;
|
menuNewSessionInFolder.Enabled := InFolder;
|
||||||
menuNewFolderInFolder.Enabled := InFolder;
|
menuNewFolderInFolder.Enabled := InFolder;
|
||||||
@ -999,7 +999,7 @@ begin
|
|||||||
lblPort.Enabled := False; // Named instance without port
|
lblPort.Enabled := False; // Named instance without port
|
||||||
editPort.Enabled := lblPort.Enabled;
|
editPort.Enabled := lblPort.Enabled;
|
||||||
updownPort.Enabled := lblPort.Enabled;
|
updownPort.Enabled := lblPort.Enabled;
|
||||||
tabSSLoptions.TabVisible := Params.NetType = ntMySQL_TCPIP;
|
chkWantSSL.Enabled := Params.NetType = ntMySQL_TCPIP;
|
||||||
lblSSLPrivateKey.Enabled := Params.WantSSL;
|
lblSSLPrivateKey.Enabled := Params.WantSSL;
|
||||||
editSSLPrivateKey.Enabled := Params.WantSSL;
|
editSSLPrivateKey.Enabled := Params.WantSSL;
|
||||||
lblSSLCACertificate.Enabled := Params.WantSSL;
|
lblSSLCACertificate.Enabled := Params.WantSSL;
|
||||||
|
Reference in New Issue
Block a user