Develop and Download Open Source Software

Browse CVS Repository

Diff of /ttssh2/teraterm/source/teraterm/filesys.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.1.1 by yutakakn, Mon Nov 15 14:43:41 2004 UTC revision 1.8 by maya, Thu Jan 4 15:11:44 2007 UTC
# Line 165  static PProtoDlg PtDlg = NULL; Line 165  static PProtoDlg PtDlg = NULL;
165  BOOL OpenFTDlg(PFileVar fv)  BOOL OpenFTDlg(PFileVar fv)
166  {  {
167    PFileTransDlg FTDlg;    PFileTransDlg FTDlg;
168    #ifdef I18N
169      HWND HFTDlg;
170    #endif
171    
172    FTDlg = new CFileTransDlg();    FTDlg = new CFileTransDlg();
173        
174    if (FTDlg!=NULL)    if (FTDlg!=NULL)
175    {    {
176    #ifdef I18N
177        FTDlg->Create(fv, &cv, &ts);
178    #else
179      FTDlg->Create(fv, &cv);      FTDlg->Create(fv, &cv);
180    #endif
181      FTDlg->RefreshNum();      FTDlg->RefreshNum();
182      if (fv->OpId == OpLog)      if (fv->OpId == OpLog)
183        FTDlg->ShowWindow(SW_MINIMIZE);        FTDlg->ShowWindow(SW_MINIMIZE);
# Line 181  BOOL OpenFTDlg(PFileVar fv) Line 188  BOOL OpenFTDlg(PFileVar fv)
188    else    else
189      SendDlg = FTDlg; /* File send */      SendDlg = FTDlg; /* File send */
190    
191    #ifdef I18N
192      HFTDlg=FTDlg->GetSafeHwnd();
193    
194      GetDlgItemText(HFTDlg, IDC_TRANS_FILENAME, ts.UIMsg, sizeof(ts.UIMsg));
195      get_lang_msg("DLG_FILETRANS_FILENAME", ts.UIMsg, ts.UILanguageFile);
196      SetDlgItemText(HFTDlg, IDC_TRANS_FILENAME, ts.UIMsg);
197      GetDlgItemText(HFTDlg, IDC_FULLPATH_LABEL, ts.UIMsg, sizeof(ts.UIMsg));
198      get_lang_msg("DLG_FILETRANS_FULLPATH", ts.UIMsg, ts.UILanguageFile);
199      SetDlgItemText(HFTDlg, IDC_FULLPATH_LABEL, ts.UIMsg);
200      GetDlgItemText(HFTDlg, IDC_TRANS_TRANS, ts.UIMsg, sizeof(ts.UIMsg));
201      get_lang_msg("DLG_FILETRANS_TRNAS", ts.UIMsg, ts.UILanguageFile);
202      SetDlgItemText(HFTDlg, IDC_TRANS_TRANS, ts.UIMsg);
203      GetDlgItemText(HFTDlg, IDCANCEL, ts.UIMsg, sizeof(ts.UIMsg));
204      get_lang_msg("BTN_CANCEL", ts.UIMsg, ts.UILanguageFile);
205      SetDlgItemText(HFTDlg, IDCANCEL, ts.UIMsg);
206      GetDlgItemText(HFTDlg, IDC_TRANSPAUSESTART, ts.UIMsg, sizeof(ts.UIMsg));
207      get_lang_msg("DLG_FILETRANS_PAUSE", ts.UIMsg, ts.UILanguageFile);
208      SetDlgItemText(HFTDlg, IDC_TRANSPAUSESTART, ts.UIMsg);
209      GetDlgItemText(HFTDlg, IDC_TRANSHELP, ts.UIMsg, sizeof(ts.UIMsg));
210      get_lang_msg("BTN_HELP", ts.UIMsg, ts.UILanguageFile);
211      SetDlgItemText(HFTDlg, IDC_TRANSHELP, ts.UIMsg);
212    #endif
213    
214    return (FTDlg!=NULL);    return (FTDlg!=NULL);
215  }  }
216    
# Line 224  void FreeFileVar(PFileVar *fv) Line 254  void FreeFileVar(PFileVar *fv)
254  extern "C" {  extern "C" {
255  void LogStart()  void LogStart()
256  {  {
257    LONG Option;          LONG Option;
258    
259    if ((FileLog) || (BinLog)) return;          if ((FileLog) || (BinLog)) return;
260    
261    if (! LoadTTFILE()) return;          if (! LoadTTFILE()) return;
262    if (! NewFileVar(&LogVar))          if (! NewFileVar(&LogVar))
263    {          {
264      FreeTTFILE();                  FreeTTFILE();
265      return;                  return;
266    }          }
267    LogVar->OpId = OpLog;          LogVar->OpId = OpLog;
268    
269    if (strlen(&(LogVar->FullName[LogVar->DirLen]))==0)          if (strlen(&(LogVar->FullName[LogVar->DirLen]))==0)
270    {          {
271      Option = MAKELONG(ts.TransBin,ts.Append);                  // LOWORD
272      if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option))                  // 0x0001 = Binary
273      {                  // HIWORD
274        FreeFileVar(&LogVar);                  // 0x0001 = Append
275        FreeTTFILE();                  // 0x1000 = plain text (2005.2.20 yutaka)
276        return;                  // 0x2000 = timestamp (2006.7.23 maya)
277      }                  // teraterm.iniの設定を見てからデフォルトオプションを決める。(2005.5.7 yutaka)
278      ts.TransBin = LOWORD(Option);                  Option = MAKELONG(ts.TransBin,ts.Append |
279      ts.Append = HIWORD(Option);                                                    (0x1000 * ts.LogTypePlainText) |
280    }                                                    (0x2000 * ts.LogTimestamp));
281    else  
282      (*SetFileVar)(LogVar);                  // ログのデフォルトファイル名を設定 (2006.8.28 maya)
283                    strncat(LogVar->FullName, ts.LogDefaultName, sizeof(LogVar->FullName));
284                    ParseStrftimeFileName(LogVar->FullName);
285    
286    #ifdef I18N
287                    if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option, &ts))
288    #else
289                    if (! (*GetTransFname)(LogVar, ts.FileDir, GTF_LOG, &Option))
290    #endif
291                    {
292                            FreeFileVar(&LogVar);
293                            FreeTTFILE();
294                            return;
295                    }
296                    ts.TransBin = LOWORD(Option);
297                    ts.Append = HIWORD(Option);
298    
299    if (ts.TransBin > 0)                  if (ts.Append & 0x1000) {
300    {                          ts.LogTypePlainText = 1;
301      BinLog = TRUE;                  } else {
302      FileLog = FALSE;                          ts.LogTypePlainText = 0;
303      if (! CreateBinBuf())                  }
     {  
       FileTransEnd(OpLog);  
       return;  
     }  
   }  
   else {  
     BinLog = FALSE;  
     FileLog = TRUE;  
     if (! CreateLogBuf())  
     {  
       FileTransEnd(OpLog);  
       return;  
     }  
   }  
   cv.LStart = cv.LogPtr;  
   cv.LCount = 0;  
304    
305    HelpId = HlpFileLog;                  if (ts.Append & 0x2000) {
306    if (ts.Append > 0)                          ts.LogTimestamp = 1;
307    {                  }
308      LogVar->FileHandle = _lopen(LogVar->FullName,OF_WRITE);                  else {
309      if (LogVar->FileHandle>0)                          ts.LogTimestamp = 0;
310        _llseek(LogVar->FileHandle,0,2);                  }
311      else  
312        LogVar->FileHandle = _lcreat(LogVar->FullName,0);                  ts.Append &= 0x1; // 1bitにマスクする
313    }  
314    else          }
315      LogVar->FileHandle = _lcreat(LogVar->FullName,0);          else
316    LogVar->FileOpen = (LogVar->FileHandle>0);  #ifdef I18N
317    if (! LogVar->FileOpen)                  (*SetFileVar)(FileVar, &ts);
318    {  #else
319      FileTransEnd(OpLog);                  (*SetFileVar)(LogVar);
320      return;  #endif
321    }  
322    LogVar->ByteCount = 0;          if (ts.TransBin > 0)
323            {
324                    BinLog = TRUE;
325                    FileLog = FALSE;
326                    if (! CreateBinBuf())
327                    {
328                            FileTransEnd(OpLog);
329                            return;
330                    }
331            }
332            else {
333                    BinLog = FALSE;
334                    FileLog = TRUE;
335                    if (! CreateLogBuf())
336                    {
337                            FileTransEnd(OpLog);
338                            return;
339                    }
340            }
341            cv.LStart = cv.LogPtr;
342            cv.LCount = 0;
343    
344    if (! OpenFTDlg(LogVar))          HelpId = HlpFileLog;
345      FileTransEnd(OpLog);          if (ts.Append > 0)
346            {
347                    LogVar->FileHandle = _lopen(LogVar->FullName,OF_WRITE);
348                    if (LogVar->FileHandle>0)
349                            _llseek(LogVar->FileHandle,0,2);
350                    else
351                            LogVar->FileHandle = _lcreat(LogVar->FullName,0);
352            }
353            else
354                    LogVar->FileHandle = _lcreat(LogVar->FullName,0);
355            LogVar->FileOpen = (LogVar->FileHandle>0);
356            if (! LogVar->FileOpen)
357            {
358                    FileTransEnd(OpLog);
359                    return;
360            }
361            LogVar->ByteCount = 0;
362    
363            if (! OpenFTDlg(LogVar))
364                    FileTransEnd(OpLog);
365  }  }
366  }  }
367    
# Line 326  void LogPut1(BYTE b) Line 394  void LogPut1(BYTE b)
394      }      }
395      else cv.DCount++;      else cv.DCount++;
396    }    }
397    else    else {
398      cv.DCount = 0;      cv.DCount = 0;
399            // ログ採取中にマクロがストールする問題への修正。
400            // ログ採取中に一度マクロを止めると、バッファのインデックスが同期取れなくなり、
401            // 再度マクロを流しても正しいデータが送れないのが原因。
402            // マクロを停止させた状態でもインデックスの同期を取るようにした。
403            // (2006.12.26 yutaka)
404        cv.DStart = cv.LogPtr;
405      }
406  }  }
407    
408  void Log1Byte(BYTE b)  void Log1Byte(BYTE b)
# Line 378  void CommentLogToFile(char *buf, int siz Line 453  void CommentLogToFile(char *buf, int siz
453          DWORD wrote;          DWORD wrote;
454    
455          if (LogVar == NULL || !LogVar->FileOpen) {          if (LogVar == NULL || !LogVar->FileOpen) {
456    #ifdef I18N
457                    char uimsg[MAX_UIMSG];
458                    strcpy(uimsg, "ERROR");
459                    get_lang_msg("MSG_ERROR", uimsg, ts.UILanguageFile);
460                    strcpy(ts.UIMsg, "It is not opened by the log file yet.");
461                    get_lang_msg("MSG_COMMENT_LOG_OPEN_ERROR", ts.UIMsg, ts.UILanguageFile);
462                    ::MessageBox(NULL, ts.UIMsg, uimsg, MB_OK|MB_ICONEXCLAMATION);
463    #else
464                  ::MessageBox(NULL, "It is not opened by the log file yet.", "ERROR", MB_OK|MB_ICONEXCLAMATION);                  ::MessageBox(NULL, "It is not opened by the log file yet.", "ERROR", MB_OK|MB_ICONEXCLAMATION);
465    #endif
466                  return;                  return;
467          }          }
468    
# Line 420  void LogToFile() Line 504  void LogToFile()
504          {          {
505                  if (((cv.FilePause & OpLog)==0) && (! cv.ProtoFlag))                  if (((cv.FilePause & OpLog)==0) && (! cv.ProtoFlag))
506                  {                  {
507                            // 時刻を書き出す(2006.7.23 maya)
508                            // 日付フォーマットを日本ではなく世界標準に変更した (2006.7.23 yutaka)
509                            if (ts.LogTimestamp &&
510                                    (Start == 1 || Buf[Start-2] == 0x0a)) {
511    #if 0
512                                    SYSTEMTIME      LocalTime;
513                                    GetLocalTime(&LocalTime);
514                                    char strtime[27];
515    
516                                    // format time
517                                    sprintf(strtime, "[%04d/%02d/%02d %02d:%02d:%02d.%03d] ",
518                                                    LocalTime.wYear, LocalTime.wMonth,LocalTime.wDay,
519                                                    LocalTime.wHour, LocalTime.wMinute, LocalTime.wSecond,
520                                                    LocalTime.wMilliseconds);
521    #else
522                                            time_t tick = time(NULL);
523                                            char *strtime = ctime(&tick);
524    #endif
525    
526                                    // write to file
527                                    if (Start == 1 && ts.Append) {
528                                            _lwrite(LogVar->FileHandle,"\r\n",strlen("\r\n"));
529                                    }
530                                    _lwrite(LogVar->FileHandle,"[",1);
531                                    // 変換した文字列の終端に \n が含まれているので取り除く。
532                                    _lwrite(LogVar->FileHandle, strtime, strlen(strtime) - 1);
533                                    _lwrite(LogVar->FileHandle,"] ",2);
534                            }
535    
536                          _lwrite(LogVar->FileHandle,(PCHAR)&b,1);                          _lwrite(LogVar->FileHandle,(PCHAR)&b,1);
537                          (LogVar->ByteCount)++;                          (LogVar->ByteCount)++;
538                  }                  }
# Line 520  void FileSendStart() Line 633  void FileSendStart()
633    if (strlen(&(SendVar->FullName[SendVar->DirLen]))==0)    if (strlen(&(SendVar->FullName[SendVar->DirLen]))==0)
634    {    {
635      Option = MAKELONG(ts.TransBin,0);      Option = MAKELONG(ts.TransBin,0);
636            SendVar->FullName[0] = 0;
637    #ifdef I18N
638            if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option, &ts))
639    #else
640      if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option))      if (! (*GetTransFname)(SendVar, ts.FileDir, GTF_SEND, &Option))
641      {  #endif
642            {
643        FileTransEnd(OpSendFile);        FileTransEnd(OpSendFile);
644        return;        return;
645      }      }
646      ts.TransBin = LOWORD(Option);      ts.TransBin = LOWORD(Option);
647    }    }
648    else    else
649    #ifdef I18N
650        (*SetFileVar)(FileVar, &ts);
651    #else
652      (*SetFileVar)(SendVar);      (*SetFileVar)(SendVar);
653    #endif
654    
655    SendVar->FileHandle = _lopen(SendVar->FullName,OF_READ);    SendVar->FileHandle = _lopen(SendVar->FullName,OF_READ);
656    SendVar->FileOpen = (SendVar->FileHandle>0);    SendVar->FileOpen = (SendVar->FileHandle>0);
# Line 694  BOOL OpenProtoDlg(PFileVar fv, int IdPro Line 816  BOOL OpenProtoDlg(PFileVar fv, int IdPro
816  {  {
817    int vsize;    int vsize;
818    PProtoDlg pd;    PProtoDlg pd;
819    #ifdef I18N
820      HWND Hpd;
821    #endif
822    
823    ProtoId = IdProto;    ProtoId = IdProto;
824    
# Line 745  BOOL OpenProtoDlg(PFileVar fv, int IdPro Line 870  BOOL OpenProtoDlg(PFileVar fv, int IdPro
870      ProtoVar = NULL;      ProtoVar = NULL;
871      return FALSE;      return FALSE;
872    }    }
873    #ifdef I18N
874      pd->Create(fv,&ts);
875    #else
876    pd->Create(fv);    pd->Create(fv);
877    #endif
878    
879    #ifdef I18N
880      Hpd=pd->GetSafeHwnd();
881    
882      GetDlgItemText(Hpd, IDC_PROT_FILENAME, ts.UIMsg, sizeof(ts.UIMsg));
883      get_lang_msg("DLG_PROT_FIELNAME", ts.UIMsg, ts.UILanguageFile);
884      SetDlgItemText(Hpd, IDC_PROT_FILENAME, ts.UIMsg);
885      GetDlgItemText(Hpd, IDC_PROT_PROT, ts.UIMsg, sizeof(ts.UIMsg));
886      get_lang_msg("DLG_PROT_PROTO", ts.UIMsg, ts.UILanguageFile);
887      SetDlgItemText(Hpd, IDC_PROT_PROT, ts.UIMsg);
888      GetDlgItemText(Hpd, IDC_PROT_PACKET, ts.UIMsg, sizeof(ts.UIMsg));
889      get_lang_msg("DLG_PROT_PACKET", ts.UIMsg, ts.UILanguageFile);
890      SetDlgItemText(Hpd, IDC_PROT_PACKET, ts.UIMsg);
891      GetDlgItemText(Hpd, IDC_PROT_TRANS, ts.UIMsg, sizeof(ts.UIMsg));
892      get_lang_msg("DLG_PROT_TRANS", ts.UIMsg, ts.UILanguageFile);
893      SetDlgItemText(Hpd, IDC_PROT_TRANS, ts.UIMsg);
894      GetDlgItemText(Hpd, IDCANCEL, ts.UIMsg, sizeof(ts.UIMsg));
895      get_lang_msg("BTN_CANCEL", ts.UIMsg, ts.UILanguageFile);
896      SetDlgItemText(Hpd, IDCANCEL, ts.UIMsg);
897    #endif
898        
899    (*ProtoInit)(ProtoId,FileVar,ProtoVar,&cv,&ts);    (*ProtoInit)(ProtoId,FileVar,ProtoVar,&cv,&ts);
900    
# Line 826  int ProtoDlgParse() Line 975  int ProtoDlgParse()
975    P = ActiveWin;    P = ActiveWin;
976    if (PtDlg==NULL) return P;    if (PtDlg==NULL) return P;
977    
978    #ifdef I18N
979      if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv,&ts))
980    #else
981    if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv))    if ((*ProtoParse)(ProtoId,FileVar,ProtoVar,&cv))
982    #endif
983      P = 0; /* continue */      P = 0; /* continue */
984    else {    else {
985      CommSend(&cv);      CommSend(&cv);
# Line 865  void KermitStart(int mode) Line 1018  void KermitStart(int mode)
1018        FileVar->OpId = OpKmtSend;        FileVar->OpId = OpKmtSend;
1019        if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)        if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1020        {        {
1021    #ifdef I18N
1022            if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w,&ts) ||
1023    #else
1024          if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w) ||          if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_KERMIT,&w) ||
1025    #endif
1026              (FileVar->NumFname==0))              (FileVar->NumFname==0))
1027          {          {
1028            ProtoEnd();            ProtoEnd();
# Line 873  void KermitStart(int mode) Line 1030  void KermitStart(int mode)
1030          }          }
1031        }        }
1032        else        else
1033    #ifdef I18N
1034        (*SetFileVar)(FileVar, &ts);
1035    #else
1036          (*SetFileVar)(FileVar);          (*SetFileVar)(FileVar);
1037        break;  #endif
1038              break;
1039      case IdKmtReceive:      case IdKmtReceive:
1040        FileVar->OpId = OpKmtRcv;        FileVar->OpId = OpKmtRcv;
1041        break;        break;
# Line 890  void KermitStart(int mode) Line 1051  void KermitStart(int mode)
1051          }          }
1052        }        }
1053        else        else
1054    #ifdef I18N
1055        (*SetFileVar)(FileVar, &ts);
1056    #else
1057          (*SetFileVar)(FileVar);          (*SetFileVar)(FileVar);
1058        break;  #endif
1059              break;
1060      case IdKmtFinish:      case IdKmtFinish:
1061        FileVar->OpId = OpKmtFin;        FileVar->OpId = OpKmtFin;
1062        break;        break;
# Line 924  void XMODEMStart(int mode) Line 1089  void XMODEMStart(int mode)
1089    if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)    if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1090    {    {
1091      Option = MAKELONG(ts.XmodemBin,ts.XmodemOpt);      Option = MAKELONG(ts.XmodemBin,ts.XmodemOpt);
1092    #ifdef I18N
1093        if (! (*GetXFname)(FileVar->HMainWin,
1094          mode==IdXReceive,&Option,FileVar,ts.FileDir,&ts))
1095    #else
1096      if (! (*GetXFname)(FileVar->HMainWin,      if (! (*GetXFname)(FileVar->HMainWin,
1097        mode==IdXReceive,&Option,FileVar,ts.FileDir))        mode==IdXReceive,&Option,FileVar,ts.FileDir))
1098    #endif
1099      {      {
1100        ProtoEnd();        ProtoEnd();
1101        return;        return;
# Line 934  void XMODEMStart(int mode) Line 1104  void XMODEMStart(int mode)
1104      ts.XmodemBin = LOWORD(Option);      ts.XmodemBin = LOWORD(Option);
1105    }    }
1106    else    else
1107    #ifdef I18N
1108        (*SetFileVar)(FileVar, &ts);
1109    #else
1110      (*SetFileVar)(FileVar);      (*SetFileVar)(FileVar);
1111    #endif
1112    
1113    if (mode==IdXReceive)    if (mode==IdXReceive)
1114      FileVar->FileHandle = _lcreat(FileVar->FullName,0);      FileVar->FileHandle = _lcreat(FileVar->FullName,0);
# Line 971  void ZMODEMStart(int mode) Line 1145  void ZMODEMStart(int mode)
1145      FileVar->OpId = OpZSend;      FileVar->OpId = OpZSend;
1146      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1147      {      {
1148    #ifdef I18N
1149          if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt,&ts) ||
1150    #else
1151        if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt) ||        if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_Z,&Opt) ||
1152    #endif
1153            (FileVar->NumFname==0))            (FileVar->NumFname==0))
1154        {        {
1155          ProtoEnd();          ProtoEnd();
# Line 980  void ZMODEMStart(int mode) Line 1158  void ZMODEMStart(int mode)
1158        ts.XmodemBin = Opt;        ts.XmodemBin = Opt;
1159      }      }
1160      else      else
1161    #ifdef I18N
1162          (*SetFileVar)(FileVar, &ts);
1163    #else
1164        (*SetFileVar)(FileVar);        (*SetFileVar)(FileVar);
1165    #endif
1166    }    }
1167    else /* IdZReceive or IdZAuto */    else /* IdZReceive or IdZAuto */
1168      FileVar->OpId = OpZRcv;      FileVar->OpId = OpZRcv;
# Line 1006  void BPStart(int mode) Line 1188  void BPStart(int mode)
1188      FileVar->OpId = OpBPSend;      FileVar->OpId = OpBPSend;
1189      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1190      {      {
1191              FileVar->FullName[0] = 0;
1192    #ifdef I18N
1193          if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option, &ts))
1194    #else
1195        if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option))        if (! (*GetTransFname)(FileVar, ts.FileDir, GTF_BP, &Option))
1196        {  #endif
1197              {
1198          ProtoEnd();          ProtoEnd();
1199          return;          return;
1200        }        }
1201      }      }
1202      else      else
1203    #ifdef I18N
1204          (*SetFileVar)(FileVar, &ts);
1205    #else
1206        (*SetFileVar)(FileVar);        (*SetFileVar)(FileVar);
1207    #endif
1208    }    }
1209    else /* IdBPReceive or IdBPAuto */    else /* IdBPReceive or IdBPAuto */
1210      FileVar->OpId = OpBPRcv;      FileVar->OpId = OpBPRcv;
# Line 1041  void QVStart(int mode) Line 1231  void QVStart(int mode)
1231      FileVar->OpId = OpQVSend;      FileVar->OpId = OpQVSend;
1232      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)      if (strlen(&(FileVar->FullName[FileVar->DirLen]))==0)
1233      {      {
1234    #ifdef I18N
1235          if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W, &ts) ||
1236    #else
1237        if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W) ||        if (! (*GetMultiFname)(FileVar,ts.FileDir,GMF_QV, &W) ||
1238    #endif
1239            (FileVar->NumFname==0))            (FileVar->NumFname==0))
1240        {        {
1241          ProtoEnd();          ProtoEnd();
# Line 1049  void QVStart(int mode) Line 1243  void QVStart(int mode)
1243        }        }
1244      }      }
1245      else      else
1246    #ifdef I18N
1247          (*SetFileVar)(FileVar, &ts);
1248    #else
1249        (*SetFileVar)(FileVar);        (*SetFileVar)(FileVar);
1250    #endif
1251    }    }
1252    else    else
1253      FileVar->OpId = OpQVRcv;      FileVar->OpId = OpQVRcv;
# Line 1063  void QVStart(int mode) Line 1261  void QVStart(int mode)
1261      ProtoEnd();      ProtoEnd();
1262  }  }
1263  }  }
1264    
1265    /*
1266     * $Log$
1267     * Revision 1.8  2007/01/04 15:11:44  maya
1268     * 表示メッセージの読み込み対応
1269     *
1270     * Revision 1.7  2006/12/25 16:13:54  yutakapon
1271     * ログ採取中にマクロがストールする問題への修正。
1272     * ログ採取中に一度マクロを止めると、バッファのインデックスが同期取れなくなり、
1273     * 再度マクロを流しても正しいデータが送れないのが原因。
1274     * マクロを停止させた状態でもインデックスの同期を取るようにした。
1275     *
1276     * Revision 1.6  2006/08/28 12:27:16  maya
1277     * デフォルトのログファイル名を指定できるようにした。
1278     *   エディットコントロールを "Additional settings" ダイアログに追加した。
1279     *   teraterm.ini ファイルに LogDefaultName エントリを追加した。
1280     *   ファイル名に strftime のフォーマットを使えるようにした。
1281     *
1282     * Revision 1.5  2006/07/23 14:12:26  yutakakn
1283     * ログに含める日付フォーマットを世界標準書式に変更した。
1284     *
1285     * Revision 1.4  2006/07/22 16:15:54  maya
1286     * ログ記録時に時刻も書き込む機能を追加した。
1287     *
1288     * Revision 1.3  2005/05/07 09:49:24  yutakakn
1289     * teraterm.iniに LogTypePlainText を追加した。
1290     *
1291     * Revision 1.2  2005/02/20 14:51:29  yutakakn
1292     * ログファイルの種別に"plain text"を追加。このオプションが有効の場合は、ログファイルに
1293     * ASCII非表示文字の採取をしない。
1294     *
1295     * 現在、無視するキャラクタは以下のとおり。
1296     *  ・BS
1297     *  ・ASCII(0x00-0x1f)のうち非表示なもの
1298     *
1299     * ただし、例外として以下のものはログ採取対象。
1300     *  ・HT
1301     *  ・CR
1302     *  ・LF
1303     *
1304     */

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.8

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26