OSDN Git Service

ログをドラッグ&ドロップしないオプション追加
authorC.Ponapalt <ponapalt@shillest.net>
Wed, 7 Sep 2005 10:01:59 +0000 (10:01 +0000)
committerC.Ponapalt <ponapalt@shillest.net>
Wed, 7 Sep 2005 10:01:59 +0000 (10:01 +0000)
bottleclient/BottleDef.pas
bottleclient/LogForm.pas
bottleclient/SettingForm.dfm
bottleclient/SettingForm.pas

index 1c9a14f..f3c1451 100755 (executable)
@@ -103,6 +103,7 @@ type
     FReplacePresets: TReplacePresets;
     FNoWarnOfEmptyFMO: Boolean;
     FShowEditorPreviewWindow: Boolean;
+    FLogItemDragDrop: Boolean;
 
     procedure SetDblClkInsert(const Value: boolean);
     procedure SetDefaultScript(const Value: String);
@@ -285,6 +286,9 @@ type
     //\83G\83f\83B\83^\83v\83\8c\83r\83\85\81[\83E\83C\83\93\83h\83E\82Ì\8fó\91Ô\95Û\91\97p
     property ShowEditorPreviewWindow: Boolean
       read FShowEditorPreviewWindow write FShowEditorPreviewWindow;
+    //\83\8d\83O\83h\83\89\83b\83O\81\95\83h\83\8d\83b\83v\97L\8cø
+    property LogItemDragDrop: Boolean
+      read FLogItemDragDrop write FLogItemDragDrop;
 
     //\83R\83\93\83X\83g\83\89\83N\83^\81E\83f\83X\83g\83\89\83N\83^\81E\95Û\91
     constructor Create;
@@ -551,6 +555,7 @@ begin
     ConfirmOnTabClose := FIni.ReadBool('System', 'ConfirmOnTabClose', false);
     NoWarnOfEmptyFMO := FIni.ReadBool('System', 'NoWarnOfEmptyFMO', False);
     ShowEditorPreviewWindow := FIni.ReadBool('System', 'ShowEditorPreviewWindow', False);
+    LogItemDragDrop := FIni.ReadBool('System', 'LogItemDragDrop', True);
 
     AutoClip := FIni.ReadBool('System', 'AutoClip', false);
     AutoStart := FIni.ReadBool('System', 'AutoStart', false);
@@ -1092,6 +1097,7 @@ begin
   FIni.WriteString('System', 'BrowserExeName', BrowserExeName);
   FIni.WriteBool('System', 'NoWarnOfEmptyFMO', NoWarnOfEmptyFMO);
   FIni.WriteBool('System', 'ShowEditorPreviewWindow', ShowEditorPreviewWindow);
+  FIni.WriteBool('System', 'LogItemDragDrop', LogItemDragDrop);
 
   Strs := TStringList.Create;
   try
index 100166e..a4b021b 100755 (executable)
@@ -1265,6 +1265,9 @@ var
   Rec: TRect; // \83_\83~\81[\81B
 begin
   Accept := False;
+  
+  if not Pref.LogItemDragDrop then
+    Exit;
   // \82Æ\82è\82 \82¦\82¸\8eó\82¯\95t\82¯\82é\89Â\94\\90«\82ª\82 \82é\82Ì\82ÍTBottleLogDragObject\82¾\82¯
   if not (Source is TBottleLogDragObject) then
     Exit;
@@ -1329,6 +1332,8 @@ var
 begin
   timScrollTimer.Enabled := false;
 
+  if not Pref.LogItemDragDrop then
+    Exit;
   if not (Source is TBottleLogDragObject) then
     Exit;
   Src := Source as TBottleLogDragObject;
index 36e4db9..9e71e08 100755 (executable)
@@ -36,7 +36,7 @@ object frmSetting: TfrmSetting
     Top = 32
     Width = 440
     Height = 291
-    ActivePage = tstReceive
+    ActivePage = tstGeneral
     Anchors = [akLeft, akTop, akRight, akBottom]
     MultiLine = True
     TabOrder = 0
@@ -76,7 +76,7 @@ object frmSetting: TfrmSetting
       end
       object cbxConfirmOnExit: TCheckBox
         Left = 8
-        Top = 224
+        Top = 208
         Width = 281
         Height = 17
         Hint = 'Client'#12398#32066#20102#26178#12395#30906#35469#12513#12483#12475#12540#12472#12434#20986#12375#12414#12377
@@ -85,7 +85,7 @@ object frmSetting: TfrmSetting
       end
       object cbxIgnoreTimeCritical: TCheckBox
         Left = 8
-        Top = 193
+        Top = 177
         Width = 297
         Height = 17
         Hint = #12525#12540#12459#12523#30906#35469#26178#12395'\t'#12434#36865#20449#12375#12394#12356#12371#12392#12391#20182#12398'SSTP'#12364#34920#31034#12373#12428#12420#12377#12367#12377#12427
@@ -105,7 +105,7 @@ object frmSetting: TfrmSetting
       end
       object cbxConfirmOnTabClose: TCheckBox
         Left = 8
-        Top = 240
+        Top = 224
         Width = 257
         Height = 17
         Hint = #12525#12464#12454#12451#12531#12489#12454#12391#12479#12502#12434#38281#12376#12427#26178#12395#30906#35469#12480#12452#12450#12525#12464#12434#34920#31034#12375#12414#12377
@@ -144,6 +144,17 @@ object frmSetting: TfrmSetting
         Caption = #12468#12540#12473#12488#12364#35211#12388#12363#12425#12394#12367#12390#12418#35686#21578#12375#12394#12356'(&G)'
         TabOrder = 7
       end
+      object cbxLogItemDragDrop: TCheckBox
+        Left = 8
+        Top = 240
+        Width = 305
+        Height = 17
+        Hint = #12525#12464#12454#12451#12531#12489#12454#12391#12489#12521#12483#12464#65286#12489#12525#12483#12503#12395#12424#12427#12525#12464#12487#12540#12479#12398#31227#21205#12539#12467#12500#12540#25805#20316#12434#26377#21177#12395#12375#12414#12377
+        Caption = #12525#12464#12454#12451#12531#12489#12454#12395#34920#31034#20013#12398#12525#12464#12434#12489#12521#12483#12464#65286#12489#12525#12483#12503#12377#12427'(&D)'
+        Checked = True
+        State = cbChecked
+        TabOrder = 8
+      end
     end
     object tstDisplay: TTabSheet
       Caption = #34920#31034': '#30011#38754#34920#31034#38306#20418#12398#35373#23450
index 277c028..c8b3764 100755 (executable)
@@ -116,6 +116,7 @@ type
     lblProxyPass: TLabel;
     lblMinScriptLength: TLabel;
     spnMinScriptLength: TSpinEdit;
+    cbxLogItemDragDrop: TCheckBox;
     procedure FormClose(Sender: TObject; var Action: TCloseAction);
     procedure edtProxyPortKeyPress(Sender: TObject; var Key: Char);
     procedure ctvBottleNodeChecked(Sender: TObject;
@@ -277,6 +278,7 @@ begin
   end;
   edtBrowserName.Text := Pref.BrowserExeName;
   cbxNoWarnOfEmptyFMO.Checked := Pref.NoWarnOfEmptyFMO;
+  cbxLogItemDragDrop.Checked := Pref.LogItemDragDrop;
 
   //
   ShowModal;
@@ -372,6 +374,7 @@ begin
   //
   Pref.BrowserExeName := edtBrowserName.Text;
   Pref.NoWarnOfEmptyFMO := cbxNoWarnOfEmptyFMO.Checked;
+  Pref.LogItemDragDrop := cbxLogItemDragDrop.Checked;
 end;
 
 procedure TfrmSetting.edtProxyPortKeyPress(Sender: TObject; var Key: Char);