亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? main.pas

?? 該程序用D5編譯
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
  if extn='.wpj' then result:= 91 else
  if extn='.pr' then result:= 92 else
  if extn='.wsp' then result:= 93 else
  if extn='.java' then result:= 94 else
  if extn='.mdl' then result:= 95 else
  if extn='.rc' then result:= 96 else
  if extn='.dot' then result:= 97 else
  if extn='.vhd' then result:= 102 else
  if (extn='.v')or(extn='.tf') then result:= 103 else
  if extn='.xls' then result:= 104 else
  if extn='.psd' then result:= 108 else
end;

procedure TMainForm.ShowToolsForm(index: integer);
begin
  with ToolsForm do
  begin
    Show;
    if WindowState = wsMinimized then ShowWindow(Handle, SW_RESTORE);
    PageCtrl.ActivePageIndex := index;
  end;
end;

function TMainForm.GroupFunc(s:string):string;
begin
  if ((s<>'')and(s[1]='\')){or(s='查找')or(s='收藏')} then result:='未知'
  else result:=s;
end;

procedure TMainForm.AddCap(group:string;dir:string);
begin
  if (group='')and(dir='') then
  begin
    pnlHeader.Caption := '';
    exit;
  end;
  if group[length(group)]=#0 then delete(group,length(group),1);
  pnlHeader.Caption := ' 工作組:'+GroupFunc(group)+'      主機和文件夾:'+dir;
  StatusBar.Panels[2].Text := pnlHeader.Caption;

  CurDirName := dir + '\';
end;

procedure TExecuteThread.Execute;
begin
  ExecuteFile(exefile,'',exedir,SW_SHOW);
end;

procedure TMainForm.PageControlWndProc1(var Message: TMessage);  //Client
begin
  FOriginalPageControlWndProc1(Message);
  with Message do
    if (Msg = TCM_ADJUSTRECT) and (Message.WParam = 0) then
    begin
      PRect(LParam)^.Top := PRect(LParam)^.Top-5;
      PRect(LParam)^.Bottom := PRect(LParam)^.Bottom-2;
      PRect(LParam)^.left := PRect(LParam)^.left;
      PRect(LParam)^.Right := PRect(LParam)^.Right+1;
      InflateRect(PRect(LParam)^, 5, 3);
    end;
end;

procedure TMainForm.PageControlWndProc3(var Message: TMessage); //left
begin
  FOriginalPageControlWndProc3(Message);
  with Message do
    if (Msg = TCM_ADJUSTRECT) and (Message.WParam = 0) then
    begin
      PRect(LParam)^.Top := PRect(LParam)^.Top;
      PRect(LParam)^.Bottom := PRect(LParam)^.Bottom +3;
      PRect(LParam)^.left := PRect(LParam)^.left-1;
      PRect(LParam)^.Right := PRect(LParam)^.Right;
      InflateRect(PRect(LParam)^, 5, 3);
    end;
end;

procedure TMainForm.PageControlWndProc4(var Message: TMessage); //bottom
begin
  FOriginalPageControlWndProc4(Message);
  with Message do
    if (Msg = TCM_ADJUSTRECT) and (Message.WParam = 0) then
    begin
      PRect(LParam)^.Top := PRect(LParam)^.Top-7;
      PRect(LParam)^.left := PRect(LParam)^.left;
      InflateRect(PRect(LParam)^, 5, 1);
    end;
end;

procedure TMainForm.PageControlWndProc5(var Message: TMessage); //search
begin
  FOriginalPageControlWndProc5(Message);
  with Message do
    if (Msg = TCM_ADJUSTRECT) and (Message.WParam = 0) then
    begin
      PRect(LParam)^.Top := PRect(LParam)^.Top-3;
      PRect(LParam)^.Bottom := PRect(LParam)^.Bottom +2;
      PRect(LParam)^.left := PRect(LParam)^.left;
      InflateRect(PRect(LParam)^, 4, 1);
    end;
end;

procedure TMainForm.CheckFile(FileName,MyDir,MyGroup:string;ImageIndex:integer);
var
  listitem: TListitem;
begin
  with ConfigForm do
    begin

     if CheckDest(FileName) then
     begin
       listitem:=FindListview.Items.Add;
       if ImageIndex<>0 then listitem.ImageIndex:= GetImgIndex(FileName) else
       listitem.ImageIndex := ImageIndex;
       listitem.Caption := extractfilename(FileName);
       listitem.SubItems.add(MyDir);
       listitem.SubItems.add(MyGroup);
       StrListSearch.Add(' 工作組:'+GroupFunc(MyGroup)+' 地址:'+MyDir+'\'+FileName);
     end;

     if CheckMP3(FileName) then
     begin
       listitem:=MP3Listview.Items.Add;
       if ImageIndex<>0 then listitem.ImageIndex:= GetImgIndex(FileName) else
       listitem.ImageIndex := ImageIndex;
       listitem.Caption := extractfilename(FileName);
       listitem.SubItems.add(MyDir);
       listitem.SubItems.add(MyGroup);
       StrListMp3.Add(' 工作組:'+GroupFunc(MyGroup)+' 地址:'+MyDir+'\'+FileName);
     end;

     if CheckMovie(FileName) then
     begin
       listitem:=MovieListview.Items.Add;
       if ImageIndex<>0 then listitem.ImageIndex:= GetImgIndex(FileName) else
       listitem.ImageIndex := ImageIndex;
       listitem.Caption := extractfilename(FileName);
       listitem.SubItems.add(MyDir);
       listitem.SubItems.add(MyGroup);
       StrListMovie.Add(' 工作組:'+GroupFunc(MyGroup)+' 地址:'+MyDir+'\'+FileName);
     end;

  end;
end;

procedure TMainForm.OpenIni;
begin

  ini:=Tinifile.create(AppDir+'LanExplorer.ini');
  if not fileexists('LanExplorer.ini')
  then
  begin
    ini.writeInteger('window position','top',top);
    ini.writeInteger('window position','left',left);
    ini.writeInteger('window position','width',width);
    ini.writeInteger('window position','height',height);

    ini.writeInteger('panel position','left_panel',LeftPanel.Width);
    //ini.writeInteger('panel position','right_panel',RightPanel.Width);
    ini.writeInteger('panel position','bottom_panel',BottomPanel.Height);

    ini.writeString('Dock','RightDockPanel','alRight');

    // nbtstat IP address
    ini.writeString('NBT_IP','IP1','192.168.0.1');
    ini.writeString('NBT_IP','IP2','192.168.0.255');

    // TCP port scan address
    ini.writeString('TCP_PORT_SCAN','IP1','192.168.0.1');
    ini.writeString('TCP_PORT_SCAN','IP2','192.168.0.255');

    // ping IP address
    ini.writeString('PING','IP1','192.168.0.1');
    ini.writeString('PING','IP2','192.168.0.255');

    // Scan IP address
    ini.writeString('SCAN','IP1','192.168.0.1');
    ini.writeString('SCAN','IP2','192.168.0.255');

    // Save history or not
    ini.writeString('history','save','yes');
    ini.writeString('history','save_when_share','yes');
    ini.writeString('history','save_nbt','yes');
  end
  else
  begin
    top:=ini.ReadInteger('window position','top',50);
    left:=ini.ReadInteger('window position','left',50);
    width:=ini.ReadInteger('window position','width',500);
    height:=ini.ReadInteger('window position','height',50);

    if (width=screen.Width)and(height=screen.Height)then WindowState:=wsMaximized; 

    LeftPanel.Width:=ini.ReadInteger('panel position','left_panel',LeftPanel.Width);
    //RightPanel.Width:=ini.ReadInteger('panel position','right_panel',RightPanel.Width);
    BottomPanel.Height:=ini.ReadInteger('panel position','bottom_panel',BottomPanel.Height);

    //nbtstat IP address
    Nbt_IP1 := ini.ReadString('NBT_IP', 'IP1', '192.168.0.1');
    Nbt_IP2 := ini.ReadString('NBT_IP', 'IP2', '192.168.0.255');

    //TCP port scan address
    ScanPort_IP1 := ini.ReadString('TCP_PORT_SCAN','IP1','192.168.0.1');
    ScanPort_IP2 := ini.ReadString('TCP_PORT_SCAN','IP2','192.168.0.255');

    //ping IP address
    Ping_IP1 := ini.ReadString('PING','IP1','192.168.0.1');
    Ping_IP2 := ini.ReadString('PING','IP2','192.168.0.255');

    //CheckIpForm.edtStart.Text
    edtIP1.Text := ini.ReadString('SCAN', 'IP1', '192.168.0.1');
    edtIP2.Text := ini.ReadString('SCAN', 'IP2', '192.168.0.255');

    // Save History or not
    cbSaveHistory.Checked := (ini.ReadString('history','save','yes') = 'yes');
    cbSaveOpt.Checked := (ini.ReadString('history','save_when_share','yes') = 'yes');
    bNotAutoSaveNbt := (ini.ReadString('history','save_nbt','yes') = 'yes');
  end;
  ini.Free;
  
  
end;

procedure TMainForm.SaveIni;
begin

  if AppDir[1]='\' then exit; //open on the LAN
  //showmessage(mydir);
  ini:=Tinifile.create(AppDir+'LanExplorer.ini');

  ini.writeInteger('window position','top',top);
  ini.writeInteger('window position','left',left);
  ini.writeInteger('window position','width',width);
  ini.writeInteger('window position','height',height);

  ini.writeInteger('panel position','left_panel',LeftPanel.Width);
  //ini.writeInteger('panel position','right_panel',RightPanel.Width);
  ini.writeInteger('panel position','bottom_panel',BottomPanel.Height);

  //nbtstat IP address
  ini.WriteString('NBT_IP', 'IP1', ToolsForm.edtNbtIP1.Text);
  ini.WriteString('NBT_IP', 'IP2', ToolsForm.edtNbtIP2.Text);

  //TCP port scan address
  ini.writeString('TCP_PORT_SCAN','IP1',ToolsForm.edtScanIP1.Text);
  ini.writeString('TCP_PORT_SCAN','IP2',ToolsForm.edtScanIP2.Text);

  //ping IP address
  ini.writeString('PING','IP1',ToolsForm.edtPing1.Text);
  ini.writeString('PING','IP2',ToolsForm.edtPing2.Text);

  //Scan IP address
  ini.writeString('SCAN','IP1',edtIP1.Text);
  ini.writeString('SCAN','IP2',edtIP2.Text);

  // Save History or not
  if cbSaveHistory.Checked then ini.writeString('history','save','yes')
  else ini.writeString('history','save','no');

  if cbSaveOpt.Checked then ini.writeString('history','save_when_share','yes')
  else ini.writeString('history','save_when_share','no');

  if ToolsForm.cbNbtDataLoad.Checked then ini.writeString('history','save_nbt','yes')
  else ini.writeString('history','save_nbt','no');

  ini.Free;
  
end;

procedure TMainForm.OpenHistory;
var
  RootNode, TemNode, GroupNode: TTreeNode;
  s: string;
  f: TextFile;
  MyItemPtr     : PMyTreeItem;
begin

  RootNode:=HistoryTree.Items[0];
  GroupNode := RootNode;  ///
  if FileExists('History.txt') then
  begin
    AssignFile(f,'History.txt');
    reset(f);

    HistoryTree.Items.BeginUpdate; ///
    while not eof(f) do
    begin
      Application.ProcessMessages;

      readln(f,s);
      s := trim(s);
      if s = '' then continue;
      if s[1] <> '\' then  //group
      begin
       GroupNode := HistoryTree.Items.AddChild(RootNode,s);
       GroupNode.ImageIndex := 9;
       GroupNode.SelectedIndex := 9;
      end
      else
      begin
       New(MyItemPtr);
       MyItemPtr^.group := GroupNode.Text;
       MyItemPtr^.dirName := s;
       TemNode:=HistoryTree.Items.AddChild(GroupNode, s);
       TemNode.Data := MyItemPtr;
       TemNode.ImageIndex := 7;
       TemNode.SelectedIndex := 7;//12;
       GroupNode.Expand(false);
      end;
    end;
    HistoryTree.Items.EndUpdate; ////
    
    CloseFile(f);

    RootNode.Expand(false);
  end;

end;

procedure TMainForm.SaveHistory;
var
  i, j          : integer;
  TempGroupNode : TTreeNode;
  f             : TextFile;
begin

  if (not cbSaveHistory.Checked) then exit;
   
  if AppDir[1]<>'\' then     //open on the LAN
  begin
    assignfile(f, AppDir+'\History.txt');
    rewrite(f);
    if HistoryTree.Items[0].HasChildren  then
    begin
      HistoryTree.Items.BeginUpdate; ///
      //TempGroupNode:=nil; // just remove warning;
      for i:=1 to HistoryTree.Items[0].count do
      begin
        TempGroupNode:= HistoryTree.Items[0].Item[i-1]; //groups
        writeln(f,TempGroupNode.text);
        for j := 1 to TempGroupNode.Count do writeln(f,TempGroupNode.Item[j-1].Text); //host
      end;
      //caption:=TempGroupNode.text; // just remove warning;
      HistoryTree.Items.EndUpdate; ////
    end;
    closefile(f);
  end;

end;

function CheckFavo(s:string):integer;
var
  i, j: integer;
begin
  j:=0;
  for i:=1 to length(s) do if s[i]='\' then inc(j);
  result := j;
end;

procedure TMainForm.OpenFavorite;
var
  RootNode,TemNode      : TTreeNode;
  fg,fs                 : string;
  f                     : TextFile;
  MyItemPtr     : PMyTreeItem;
begin

   RootNode:=FavoTree.Items[0];
   if fileexists('Favorite.txt') then
   begin
     assignfile(f,'Favorite.txt');
     reset(f);

     FavoTree.Items.BeginUpdate;

     while not eof(f) do
     begin
        Application.ProcessMessages;
        
        readln(f,fg);
        New(MyItemPtr);
        MyItemPtr^.group := trim(fg);

        readln(f,fs);
        MyItemPtr^.dirName := trim(fs);

        if (trim(fg)='')or(trim(fs)='') then
        begin
          Dispose(MyItemPtr);
          continue;
        end;

        TemNode:=FavoTree.Items.AddChild(RootNode,fs);
        TemNode.Data := MyItemPtr;
        case CheckFavo(fs) of
          0:begin
              TemNode.ImageIndex := 5;
              TemNode.SelectedIndex := 5;//16;
            end;
          2:begin
              TemNode.ImageIndex := 7;
              TemNode.SelectedIndex := 7;//12;
            end;
          else TemNode.ImageIndex := 0;
        end;  //end of case;

     end;

     FavoTree.Items.EndUpdate;

     CloseFile(f);
     
     try
       FavoTree.Items[0].Expand(false);
       except on ETreeViewError do FavoTree.Items.AddChildFirst(nil,'收藏');
     end; //end of try
   end;

end;

procedure TMainForm.SaveFavorite;
var
  i             : integer;
  TempNode      : TTreeNode;
  f             : TextFile;
begin

  if AppDir[1]<>'\' then     //open on the LAN
  try
  begin
    AssignFile(f,AppDir+'\Favorite.txt');
    ReWrite(f);

    FavoTree.Items.BeginUpdate;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美自拍偷拍午夜视频| 欧美色爱综合网| 欧美日韩黄色影视| 欧美国产乱子伦| 亚洲成人动漫一区| 成人aaaa免费全部观看| 日韩免费观看高清完整版| 亚洲欧洲性图库| 国产米奇在线777精品观看| 欧美疯狂做受xxxx富婆| 亚洲精品欧美综合四区| 国产91丝袜在线18| 精品国产一区二区三区忘忧草| 亚洲超丰满肉感bbw| 91麻豆国产福利精品| 国产女人aaa级久久久级| 精品一区二区影视| 91精品福利在线一区二区三区| 亚洲午夜视频在线| 色拍拍在线精品视频8848| 国产精品女同互慰在线看| 在线观看日韩电影| 亚洲天堂精品视频| 成人avav在线| 亚洲婷婷综合色高清在线| 成人精品高清在线| 亚洲视频免费观看| av不卡在线观看| 国产精品国产三级国产aⅴ中文| 国产精品1区二区.| 国产欧美日本一区视频| 国产盗摄精品一区二区三区在线 | 久久91精品国产91久久小草| 制服丝袜成人动漫| 日日欢夜夜爽一区| 欧美一区在线视频| 国产综合色视频| 久久综合中文字幕| 高清成人在线观看| 国产精品成人网| 99久久精品免费看国产免费软件| 欧美极品美女视频| 91免费版在线看| 一区二区激情视频| 欧美日韩国产首页在线观看| 日本特黄久久久高潮| 欧美va亚洲va国产综合| 国产激情视频一区二区在线观看| 欧美激情中文不卡| 91网址在线看| 日韩高清不卡一区二区| 久久欧美一区二区| 91免费看视频| 婷婷丁香久久五月婷婷| 精品99一区二区| 成a人片亚洲日本久久| 亚洲免费在线播放| 日韩一区二区在线看| 国产高清不卡一区二区| 亚洲另类在线一区| 在线播放一区二区三区| 激情综合色综合久久| 一区在线观看免费| 337p亚洲精品色噜噜| 国产成人在线免费观看| 一个色综合av| 精品播放一区二区| 在线免费亚洲电影| 国产综合色精品一区二区三区| 精品一区二区在线看| 亚洲日本在线a| 欧美一区二区久久| 色综合色综合色综合色综合色综合| 亚洲18影院在线观看| 中文字幕av在线一区二区三区| 91免费视频观看| 国产精品自拍av| 亚洲午夜久久久久久久久电影网| 欧美大片国产精品| 欧美中文字幕一区| 成人国产精品免费观看视频| 久久成人麻豆午夜电影| 亚洲激情自拍视频| 亚洲国产精品成人综合色在线婷婷 | ㊣最新国产の精品bt伙计久久| 欧美老年两性高潮| 99re热视频这里只精品| 国产伦精品一区二区三区免费| 亚洲午夜久久久久久久久电影网| 国产精品国产自产拍高清av王其| 欧美一区二区三区免费在线看| 91在线播放网址| 国产精品资源在线看| 蜜桃视频一区二区三区| 亚洲图片欧美色图| 中文字幕一区二区三区在线观看| 欧美成人bangbros| 欧美一区二区在线视频| 91国偷自产一区二区三区观看| 成人午夜私人影院| 国产在线播放一区| 奇米影视在线99精品| 亚洲成人自拍一区| 亚洲嫩草精品久久| 亚洲欧美另类小说视频| 国产精品久久久久久久久免费丝袜| 欧美成人性战久久| 欧美mv和日韩mv国产网站| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲国产美女搞黄色| 最新欧美精品一区二区三区| 国产欧美一区在线| 国产三级精品在线| 久久久久久免费| 久久嫩草精品久久久精品| 日韩欧美国产不卡| 久久综合色鬼综合色| 欧美mv日韩mv国产网站app| 4438x成人网最大色成网站| 欧美日韩激情在线| 91精品在线免费观看| 欧美精品免费视频| 欧美成人国产一区二区| 精品美女一区二区| 国产欧美在线观看一区| 国产精品丝袜一区| 一区二区三区在线影院| 日本在线播放一区二区三区| 久久不见久久见免费视频7| 国产麻豆精品95视频| 日韩女优av电影| 国产精品天天看| 亚洲精品成人悠悠色影视| 日韩成人一级片| 国产在线播精品第三| 91女人视频在线观看| 欧美精品 国产精品| 欧美电影精品一区二区 | 欧美一卡二卡三卡| 26uuu久久综合| 亚洲人123区| 奇米影视一区二区三区| 国产成人精品免费在线| 99re热视频精品| 这里只有精品电影| 欧美国产激情一区二区三区蜜月| 亚洲视频一区在线观看| 天堂成人国产精品一区| 国产乱子伦视频一区二区三区 | 国产精品自在欧美一区| 一本大道综合伊人精品热热| 日韩欧美国产系列| 亚洲视频一区在线| 久久成人久久爱| 色8久久精品久久久久久蜜| 欧美一区二区三区人| 中文字幕亚洲区| 蜜桃av噜噜一区| 91网站黄www| 精品盗摄一区二区三区| 综合电影一区二区三区| 久久99国产乱子伦精品免费| 91丨porny丨首页| 日韩欧美亚洲国产另类| 亚洲人xxxx| 成人小视频在线| 日韩欧美黄色影院| 亚洲午夜羞羞片| 99久久99久久免费精品蜜臀| 久久综合九色综合欧美98| 午夜视频在线观看一区二区三区| 成人一区在线看| 日韩欧美一二三四区| 午夜久久久久久| 色综合久久综合中文综合网| 日本一区二区三区国色天香 | 中文字幕欧美一区| 极品少妇一区二区| 日韩欧美成人激情| 丝袜亚洲另类欧美综合| 欧美午夜在线一二页| 亚洲三级电影网站| 国产高清精品在线| 久久日韩精品一区二区五区| 久久精品99国产国产精| 91精品福利在线一区二区三区| 亚洲国产欧美另类丝袜| 色婷婷亚洲一区二区三区| 国产视频一区二区在线观看| 狠狠网亚洲精品| 欧美不卡一区二区三区| 日本不卡在线视频| 91精品国产麻豆| 日本伊人午夜精品| 91精品国产色综合久久不卡蜜臀| 一区二区三区四区在线免费观看 | 成人夜色视频网站在线观看| 久久久国产午夜精品| 国内外精品视频| 欧美国产国产综合|