FNoTransUrl: boolean;
FIgnoreFrequentYenS: boolean;
FWaitScriptEnd: integer;
+ FMinScriptLength: integer;
FCgiNameGhost: String;
FGLogPage: String;
FVotePage: String;
procedure SetIgnoreFrequentYenS(const Value: boolean);
procedure SetNoTransUrl(const Value: boolean);
procedure SetWaitScriptEnd(const Value: integer);
+ procedure SetMinScriptLength(const Value: integer);
procedure SetLogWindowDividerPos(const Value: integer);
procedure SetProxyAddress(const Value: String);
procedure SetProxyPort(const Value: integer);
property WarnYenTNotExist: boolean read FWarnYenTNotExist write SetWarnYenTNotExist;
property WarnScopeChangeInSynchronize: boolean read FWarnScopeChangeInSynchronize write SetWarnScopeChangeInSynchronize;
property WaitScriptEnd: integer read FWaitScriptEnd write SetWaitScriptEnd;
+ property MinScriptLength: integer read FMinScriptLength write SetMinScriptLength;
property StayOnTop: boolean read FStayOnTop write SetStayOnTop;
property IgnoreTimeCritical: boolean read FIgnoreTimeCritical write SetIgnoreTimeCritical;
property TalkColorH: TColor read FTalkColorH write SetTalkColorH;
DefaultVotePage = 'http://bottle.mikage.to/viewvotes.cgi';
DefaultHelpPage = 'http://bottle.mikage.to/clihelp/index.html';
+ DefaultMinScriptLength = 20;
+
Version = '2.72';
{$IFDEF NOMUTEX}
IgnoreFrequentYenS := FIni.ReadBool('System', 'IgnoreFrequentYenS', false);
WaitScriptEnd := FIni.ReadInteger('System', 'WaitScriptEnd', 0);
+ MinScriptLength := FIni.ReadInteger('System', 'MinScriptLength', DefaultMinScriptLength);
StayOnTop := FIni.ReadBool('System', 'StayOnTop', false);
ShowConstBar := FIni.ReadBool('System', 'ShowConstBar', true);
ShowToolBar := FIni.ReadBool('System', 'ShowToolBar', true);
if Value > 0 then FWaitScriptEnd := Value;
end;
+procedure TBottlePrefs.SetMinScriptLength(const Value: integer);
+begin
+ if Value >= DefaultMinScriptLength then FMinScriptLength := Value;
+end;
+
procedure TBottlePrefs.SetWhenCtrlReturn(const Value: TReturnKeyFunction);
begin
FWhenCtrlReturn := Value;
FIni.WriteBool('System', 'IgnoreFrequentYenS', IgnoreFrequentYenS);
FIni.WriteInteger('System', 'WaitScriptEnd', WaitScriptEnd);
+ FIni.WriteInteger('System', 'MinScriptLength', MinScriptLength);
FIni.WriteBool('System', 'StayOnTop', StayOnTop);
FIni.WriteBool('System', 'NoConfirm', NoConfirm);
FIni.WriteBool('System', 'IgnoreTimeCritical', IgnoreTimeCritical);
Top = 32
Width = 440
Height = 291
- ActivePage = tstConnection
+ ActivePage = tstReceive
Anchors = [akLeft, akTop, akRight, akBottom]
MultiLine = True
TabOrder = 0
ImageIndex = 4
TabVisible = False
object lblWaitScriptEnd: TLabel
- Left = 16
- Top = 216
+ Left = 8
+ Top = 208
Width = 175
Height = 12
Caption = #12473#12463#12522#12503#12488#12398#26368#24460#12395#12454#12455#12452#12488#25407#20837'(&W)'
FocusControl = spnWaitScriptEnd
end
+ object lblMinScriptLength: TLabel
+ Left = 8
+ Top = 232
+ Width = 130
+ Height = 12
+ Caption = #26368#23567#36865#20449#21487#33021#12496#12452#12488#25968'(&B)'
+ end
object spnWaitScriptEnd: TSpinEdit
- Left = 208
- Top = 210
+ Left = 200
+ Top = 202
Width = 65
Height = 21
Hint = #21336#20301#12399'50ms'#12290'9'#12391'\w9'#12434#25407#20837#12377#12427
end
object btnVisibleGhosts: TButton
Left = 288
- Top = 244
+ Top = 252
Width = 123
Height = 25
Caption = #12468#12540#12473#12488#25351#23450'(&G)...'
end
object cbxHideGhosts: TCheckBox
Left = 8
- Top = 248
+ Top = 256
Width = 273
Height = 17
Hint = 'IfGhost'#36984#25246#12508#12483#12463#12473#12395#25351#23450#12375#12383#12468#12540#12473#12488#20197#22806#12364#29694#12428#12394#12356#12424#12358#12395#12375#12414#12377#12290#20182#12399#21463#20449#23554#29992#12468#12540#12473#12488#12395
Caption = #25351#23450#12468#12540#12473#12488#20197#22806#12434#36984#25246#12508#12483#12463#12473#12363#12425#38560#12377'(&H)'
TabOrder = 2
end
+ object spnMinScriptLength: TSpinEdit
+ Left = 200
+ Top = 228
+ Width = 65
+ Height = 21
+ Hint = #36865#20449#21069#12395#35373#23450#12375#12383#12496#12452#12488#25968#20197#19978#12398#38263#12373#12398#12473#12463#12522#12503#12488#12363#12393#12358#12363#12481#12455#12483#12463#12375#12414#12377#12290#38263#12373#12395#12399#33258#21205#20184#21152#12373#12428#12427'\e'#12434#21547#12415#12414#12377#12290
+ MaxValue = 99999
+ MinValue = 20
+ TabOrder = 4
+ Value = 20
+ end
end
object tstChannel: TTabSheet
Caption = #33258#21205#21442#21152': '#36215#21205#26178#12398#33258#21205#21442#21152#12481#12515#12531#12493#12523#38306#20418#12398#35373#23450
Height = 20
Hint = #20104#28204#12497#12521#12513#12540#12479#12398#12463#12452#12483#12463#35373#23450
Style = csDropDownList
- ItemHeight = 12
+ ItemHeight = 0
TabOrder = 0
OnChange = cbxPlayTimeProfileChange
end
edtProxyPass: TEdit;
lblProxyUser: TLabel;
lblProxyPass: TLabel;
+ lblMinScriptLength: TLabel;
+ spnMinScriptLength: TSpinEdit;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure edtProxyPortKeyPress(Sender: TObject; var Key: Char);
procedure ctvBottleNodeChecked(Sender: TObject;
end;
//cbxIgnoreFrequentYenS.Checked := Pref.IgnoreFrequentYenS;
spnWaitScriptEnd.Value := Pref.WaitScriptEnd;
+ spnMinScriptLength.Value := Pref.MinScriptLength;
+ spnMinScriptLength.MinValue := DefaultMinScriptLength;
//
rgpWhenReturn.ItemIndex := Ord(Pref.WhenReturn);
rgpWhenShiftReturn.ItemIndex := Ord(Pref.WhenShiftReturn);
end;
//Pref.IgnoreFrequentYenS := cbxIgnoreFrequentYenS.Checked;
Pref.WaitScriptEnd := spnWaitScriptEnd.Value;
+ Pref.MinScriptLength := spnMinScriptLength.Value;
//
Pref.WhenReturn := TReturnKeyFunction(rgpWhenReturn.ItemIndex);
Pref.WhenShiftReturn := TReturnKeyFunction(rgpWhenShiftReturn.ItemIndex);