• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ギコナビ


Commit MetaInfo

Revisionf1a8b40c81fb7cda5bb9ec10f0d5a24a5828520c (tree)
Time2004-10-03 03:37:51
Authorcvs2git <cvs2git>
Commitercvs2git

Log Message

This commit was manufactured by cvs2svn to create tag 'v1_49_0_542'.

Change Summary

Incremental Difference

--- a/Editor.pas
+++ b/Editor.pas
@@ -410,11 +410,8 @@ end;
410410
411411 function TEditorForm.GetBody : string;
412412 var
413- body, tmp : string;
414- p, tail : PChar;
415- len : Integer;
416-const
417- TAB_LENGTH = 4;
413+ body : string;
414+ regexp : TAWKStr;
418415 begin
419416
420417 body := BodyEdit.Text;
@@ -422,65 +419,16 @@ begin
422419 // & ‚Ì’uŠ·‚͈ê”ԍŏ‰‚É‚â‚邱‚Æ
423420 body := CustomStringReplace( body, '&', '&amp;' );
424421 if SpaceToNBSPAction.Checked then begin
425- p := PChar( body );
426- tail := p + Length( body );
427- len := 0;
428- while p < tail do begin
429- case p^ of
430- #09:
431- begin
432- Inc( p );
433- repeat
434- Inc( len );
435- tmp := tmp + '&nbsp;';
436- until (len mod TAB_LENGTH) = 0;
437- end;
438-
439- #10, #13:
440- begin
441- tmp := tmp + p^; Inc( p );
442- len := 0;
443- end;
444-
445- ' ':
446- begin
447- tmp := tmp + '&nbsp;';
448- Inc( p );
449- Inc( len );
450- end;
451-
452- '&':
453- // ŽÀ‘ÌŽQÆ‚Í 1 •¶Žš•ª
454- begin
455- tmp := tmp + '&';
456- Inc( p );
457- Inc( len );
458- while p < tail do begin
459- if p^ in ['a'..'z', 'A'..'Z', '0'..'9', '#'] then begin
460- tmp := tmp + p^;
461- end else if p^ = ';' then begin
462- tmp := tmp + p^;
463- Inc( p );
464- Break;
465- end else begin
466- Break;
467- end;
468- Inc( p );
469- end;
470- end;
471-
472- else
473- if p^ in kYofKanji then begin
474- tmp := tmp + p^; Inc( p );
475- tmp := tmp + p^; Inc( p );
476- len := len + 2;
477- end else begin
478- tmp := tmp + p^; Inc( p );
479- Inc( len );
480- end;
481- end;
422+ body := CustomStringReplace( body, #09, '&nbsp;&nbsp;&nbsp;&nbsp;' );
423+ body := CustomStringReplace( body, ' ', '&nbsp;&nbsp;' );
424+ body := CustomStringReplace( body, '&nbsp; ', '&nbsp;&nbsp;' );
425+ regexp := TAWKStr.Create( nil );
426+ try
427+ regexp.RegExp := '^ ';
428+ regexp.GSub( '\&nbsp;', body );
429+ finally
430+ regexp.Free;
482431 end;
483- body := tmp;
484432 end;
485433
486434 Result := body;
@@ -1666,6 +1614,7 @@ procedure TEditorForm.GetTitlePictureActionExecute(Sender: TObject);
16661614 var
16671615 memStream: TMemoryStream;
16681616 tmpBoard: TBoard;
1617+ tmp : string;
16691618 begin
16701619 InitIdHTTP(Indy);
16711620 memStream := TMemoryStream.Create;
--- a/ExternalBoardPlugInMain.pas
+++ b/ExternalBoardPlugInMain.pas
@@ -229,8 +229,7 @@ var
229229 // httpSocket : TIdHTTP;
230230 resStream : TMemoryStream;
231231 content : string;
232-const
233- LIVEDOOR_URL = 'http://jbbs.livedoor.jp/';
232+
234233 begin
235234
236235 {$IFDEF DEBUG}
@@ -271,8 +270,7 @@ begin
271270 Result := socket.ResponseCode;
272271 if (Length( content ) = 0) and (Result = 206) then
273272 Result := 304;
274- //‚µ‚½‚ç‚ÎJBBS‚̓wƒbƒ_‚ɃGƒ‰[î•ñ‚ªÚ‚é‚炵‚¢‚̂ŁA‚±‚±‚Ń`ƒFƒbƒN
275- if ( AnsiPos(LIVEDOOR_URL, inURL) > 0 ) and (Result = 200) then begin
273+ if ( AnsiPos('http://jbbs.livedoor.com/', inURL) > 0 ) and (Result = 200) then begin
276274 if( AnsiPos('STORAGE IN', socket.Response.RawHeaders.Text) > 0 ) then begin
277275 Result := 302;
278276 end;
--- a/Favorite.pas
+++ b/Favorite.pas
@@ -117,50 +117,13 @@ function TFavoriteBoardItem.GetItem : TBoard;
117117 var
118118 protocol, host, path, document, port, bookmark : string;
119119 BBSID{, BBSKey} : string;
120- tmpURL, boardURL : string;
120+ tmpURL : string;
121121 // category : TCategory;
122- i, bi: Integer;
123- tmpThread: TThreadItem;
124- tmpBoard: TBoard;
125122 begin
126123
127124 if FItem = nil then begin
128125 FItem := BBSsFindBoardFromURL( URL );
129126 if FItem = nil then begin
130- //===== ƒvƒ‰ƒOƒCƒ“
131- try
132- //ì‹Æ’†//
133- bi := High( BoardPlugIns );
134- for i := Low( BoardPlugIns ) to bi do begin
135- if Assigned( Pointer( BoardPlugIns[ i ].Module ) ) then begin
136- case BoardPlugIns[ i ].AcceptURL( URL ) of
137- atThread:
138- begin
139- tmpThread := TThreadItem.Create( BoardPlugIns[ i ], URL );
140- boardURL := tmpThread.BoardPlugIn.GetBoardURL( DWORD( tmpThread ) );
141- FItem := BBSsFindBoardFromURL( boardURL );
142- URL := FItem.URL;
143- tmpThread.Free;
144- break;
145- end;
146- atBoard:
147- begin
148- tmpBoard := TBoard.Create(BoardPlugIns[ i ], URL);
149- FItem := BBSsFindBoardFromURL( tmpBoard.URL );
150- tmpBoard.Free;
151- if FItem <> nil then begin
152- URL := FItem.URL;
153- end;
154- break;
155- end;
156- end;
157- end;
158- end;
159- except
160- // exception ‚ª”­¶‚µ‚½ê‡‚Í“à•”ˆ—‚É”C‚¹‚½‚¢‚Ì‚Å‚±‚±‚ł͉½‚à‚µ‚È‚¢
161- end;
162- end;
163- if FItem = nil then begin
164127 tmpURL := URL;
165128 GikoSys.ParseURI( tmpURL, protocol, host, path, document, port, bookmark );
166129 if GikoSys.Is2chHost( host ) then begin
--- a/Giko.dfm
+++ b/Giko.dfm
@@ -1,11 +1,11 @@
11 object GikoForm: TGikoForm
2- Left = 246
3- Top = 188
2+ Left = 468
3+ Top = 21
44 HorzScrollBar.Visible = False
55 VertScrollBar.Visible = False
66 AutoScroll = False
77 Caption = '-'
8- ClientHeight = 404
8+ ClientHeight = 545
99 ClientWidth = 854
1010 Color = clBtnFace
1111 Font.Charset = SHIFTJIS_CHARSET
@@ -27,7 +27,7 @@ object GikoForm: TGikoForm
2727 TextHeight = 12
2828 object StatusBar: TStatusBar
2929 Left = 0
30- Top = 384
30+ Top = 525
3131 Width = 854
3232 Height = 20
3333 Panels = <
@@ -47,13 +47,13 @@ object GikoForm: TGikoForm
4747 Left = 0
4848 Top = 77
4949 Width = 854
50- Height = 307
50+ Height = 448
5151 Align = alClient
5252 BevelOuter = bvNone
5353 TabOrder = 1
5454 object MessageSplitter: TSplitter
5555 Left = 0
56- Top = 268
56+ Top = 409
5757 Width = 854
5858 Height = 5
5959 Cursor = crVSplit
@@ -66,7 +66,7 @@ object GikoForm: TGikoForm
6666 Left = 0
6767 Top = 0
6868 Width = 854
69- Height = 268
69+ Height = 409
7070 Align = alClient
7171 BevelOuter = bvNone
7272 TabOrder = 0
@@ -74,7 +74,7 @@ object GikoForm: TGikoForm
7474 Left = 145
7575 Top = 0
7676 Width = 5
77- Height = 268
77+ Height = 409
7878 Cursor = crHSplit
7979 AutoSnap = False
8080 ResizeStyle = rsUpdate
@@ -83,7 +83,7 @@ object GikoForm: TGikoForm
8383 Left = 0
8484 Top = 0
8585 Width = 145
86- Height = 268
86+ Height = 409
8787 Align = alLeft
8888 BevelOuter = bvNone
8989 TabOrder = 0
@@ -270,7 +270,7 @@ object GikoForm: TGikoForm
270270 Left = 150
271271 Top = 0
272272 Width = 704
273- Height = 268
273+ Height = 409
274274 Align = alClient
275275 BevelOuter = bvNone
276276 TabOrder = 1
@@ -548,7 +548,7 @@ object GikoForm: TGikoForm
548548 Left = 0
549549 Top = 194
550550 Width = 704
551- Height = 74
551+ Height = 215
552552 Align = alClient
553553 BevelOuter = bvNone
554554 TabOrder = 1
@@ -556,7 +556,7 @@ object GikoForm: TGikoForm
556556 Left = 0
557557 Top = 46
558558 Width = 704
559- Height = 8
559+ Height = 149
560560 Align = alClient
561561 BevelOuter = bvNone
562562 UseDockManager = False
@@ -566,7 +566,7 @@ object GikoForm: TGikoForm
566566 Left = 0
567567 Top = 0
568568 Width = 704
569- Height = 8
569+ Height = 149
570570 Align = alClient
571571 TabOrder = 0
572572 OnEnter = BrowserEnter
@@ -575,7 +575,7 @@ object GikoForm: TGikoForm
575575 OnNewWindow2 = BrowserNewWindow2
576576 OnDocumentComplete = BrowserDocumentComplete
577577 ControlData = {
578- 4C000000C3480000D40000000000000000000000000000000000000000000000
578+ 4C000000C3480000660F00000000000000000000000000000000000000000000
579579 000000004C000000000000000000000001000000E0D057007335CF11AE690800
580580 2B2E12620A000000000000004C0000000114020000000000C000000000000046
581581 8000000000000000000000000000000000000000000000000000000000000000
@@ -584,7 +584,7 @@ object GikoForm: TGikoForm
584584 end
585585 object BrowserBottomPanel: TGikoPanel
586586 Left = 0
587- Top = 54
587+ Top = 195
588588 Width = 704
589589 Height = 20
590590 Align = alBottom
@@ -862,7 +862,7 @@ object GikoForm: TGikoForm
862862 end
863863 object MessagePanel: TPanel
864864 Left = 0
865- Top = 273
865+ Top = 414
866866 Width = 854
867867 Height = 34
868868 Align = alBottom
@@ -6009,7 +6009,7 @@ object GikoForm: TGikoForm
60096009 end
60106010 object ActionList: TActionList
60116011 Images = ToobarImageList
6012- Left = 5
6012+ Left = 8
60136013 Top = 372
60146014 object OnlyAHundredResAction: TAction
60156015 Category = #12473#12524#12483#12489
@@ -7073,12 +7073,6 @@ object GikoForm: TGikoForm
70737073 OnExecute = JumpToNumOfResActionExecute
70747074 OnUpdate = JumpToNumOfResActionUpdate
70757075 end
7076- object FavoriteTreeViewCollapseAction: TAction
7077- Category = #12362#27671#12395#20837#12426
7078- Caption = #12362#27671#12395#20837#12426#12484#12522#12540#12434#12377#12409#12390#38281#12376#12427
7079- Hint = #12362#27671#12395#20837#12426#12484#12522#12540#12434#12377#12409#12390#38281#12376#12427
7080- OnExecute = FavoriteTreeViewCollapseActionExecute
7081- end
70827076 end
70837077 object BrowserPopupMenu: TPopupMenu
70847078 Left = 68
--- a/Giko.pas
+++ b/Giko.pas
@@ -578,7 +578,6 @@ type
578578 TabAutoLoadAction: TAction;
579579 ListColumnPopupMenu: TPopupMenu;
580580 JumpToNumOfResAction: TAction;
581- FavoriteTreeViewCollapseAction: TAction;
582581 procedure FormCreate(Sender: TObject);
583582 procedure FormDestroy(Sender: TObject);
584583 procedure CabinetPanelHide(Sender: TObject);
@@ -930,7 +929,6 @@ type
930929 Column: TListColumn; Point: TPoint);
931930 procedure JumpToNumOfResActionExecute(Sender: TObject);
932931 procedure JumpToNumOfResActionUpdate(Sender: TObject);
933- procedure FavoriteTreeViewCollapseActionExecute(Sender: TObject);
934932 private
935933 { Private éŒ¾ }
936934 //RoundList : TRoundList;
@@ -1008,7 +1006,7 @@ type
10081006 procedure WorkEnd(Sender: TObject; AWorkMode: TWorkMode; Number: Integer);
10091007 procedure Work(Sender: TObject; AWorkMode: TWorkMode; const AWorkCount: Integer; Number: Integer);
10101008
1011-
1009+ procedure SetActiveList(Obj: TObject);
10121010 procedure ListClick;
10131011 procedure ListDoubleClick(Shift: TShiftState);
10141012 procedure BrowserMovement(const AName: string); overload;
@@ -1090,6 +1088,8 @@ type
10901088 function LoadTabURLs : Boolean;
10911089 /// ƒoƒ“ƒh•‚ðÄŒvŽZEÄÝ’è‚·‚é
10921090 procedure ResetBandInfo( bar : TGikoCoolBar; band : TToolBar );
1091+ /// ListView ‚̃Jƒ‰ƒ€•‚¨‚æ‚шʒu‚Ì•Û‘¶
1092+ procedure ActiveListColumnSave;
10931093 /// ListView ‚Ì Column ‚ð^‚̃Jƒ‰ƒ€‚É•ÏŠ·
10941094 function ActiveListTrueColumn( column : TListColumn ) : TListColumn;
10951095 /// ListColumnPopupMenu ƒAƒCƒeƒ€‚̃NƒŠƒbƒNƒCƒxƒ“ƒg
@@ -1105,11 +1105,8 @@ type
11051105 { Public éŒ¾ }
11061106 // FDownload: TDownload;
11071107 FControlThread: TThreadControl;
1108- procedure MoveToURL(const inURL: string);
1109- function InsertBrowserTab(
1110- ThreadItem : TThreadItem;
1111- ActiveTab : Boolean = True
1112- ) : TBrowserRecord;
1108+ procedure MoveToURL(URL: string);
1109+ procedure InsertBrowserTab(ThreadItem: TThreadItem; ActiveTab: Boolean = True);
11131110 procedure ReloadBBS;
11141111 function GetHttpState: Boolean;
11151112 procedure SetEnabledCloseButton(Enabled: Boolean);
@@ -1129,7 +1126,7 @@ type
11291126 function GetActiveContent: TThreadItem;
11301127 function GetActiveList: TObject;
11311128
1132-
1129+ property ActiveList: TObject read GetActiveList write SetActiveList;
11331130 // property LastRoundTime: TDateTime read FLastRoundTime write FLastRoundTime;
11341131
11351132 procedure SetListViewType(AViewType: TGikoViewType); overload;
@@ -1153,19 +1150,16 @@ type
11531150 // property Favorite: TFavorite read FFavorite write FFavorite;
11541151 procedure SetToolBarPopup;
11551152 procedure ShowFavoriteAddDialog( Item : TObject );
1156- procedure FavoritesURLReplace(oldURLs: TStringList; newURLs: TStringList);
1157- procedure RoundListURLReplace(oldURLs: TStringList; newURLs: TStringList);
1153+ procedure FavoritesURLReplace(oldURLs: TStringList; newURLs: TStringList);
1154+ procedure RoundListURLReplace(oldURLs: TStringList; newURLs: TStringList);
11581155 property ListViewBackGroundColor: TColor read FListViewBackGroundColor write SetListViewBackGroundColor;
11591156 property UseOddResOddColor : Boolean read FUseOddResOddColor write FUseOddResOddColor;
11601157 property OddColor : TColor read FOddColor write FOddColor;
11611158
11621159 function FindToolBarButton( bar : TToolBar; action : TAction ) : TToolButton;
11631160 procedure OnPlugInMenuItem( Sender : TObject );
1164- procedure TabFileURLReplace(oldURLs: TStringList; newURLs: TStringList);
1165- /// ListView ‚̃Jƒ‰ƒ€•‚¨‚æ‚шʒu‚Ì•Û‘¶ KuroutSetting‚©‚ç‚æ‚Ñ‚¾‚µ‚½‚¢‚Ì‚Å
1166- procedure ActiveListColumnSave;
1167- procedure SetActiveList(Obj: TObject);
1168- property ActiveList: TObject read GetActiveList write SetActiveList;
1161+ procedure TabFileURLReplace(oldURLs: TStringList; newURLs: TStringList);
1162+
11691163 published
11701164 property EnabledCloseButton: Boolean read FEnabledCloseButton write SetEnabledCloseButton;
11711165 end;
@@ -1194,18 +1188,18 @@ type
11941188 TBrowserRecord = class( TObject )
11951189 private
11961190 FBrowser : TWebBrowser;
1197- FEvent: THTMLDocumentEventSink; //!< ƒuƒ‰ƒEƒUƒhƒLƒ…ƒƒ“ƒgƒCƒxƒ“ƒg
1191+ FEvent: THTMLDocumentEventSink;//ƒuƒ‰ƒEƒUƒhƒLƒ…ƒƒ“ƒgƒCƒxƒ“ƒg
11981192 FThread : TThreadItem;
11991193 FLastSize : Integer;
12001194 FRepaint : Boolean;
1201- FMovement : string; //!< ƒXƒNƒ[ƒ‹æƒAƒ“ƒJ[
1195+ // FOnlyHundred: Boolean;
12021196 public
12031197 destructor Destroy; override;
12041198 property Browser : TWebBrowser read FBrowser write FBrowser;
12051199 property Thread : TThreadItem read FThread write FThread;
12061200 property LastSize : Integer read FLastSize write FLastSize;
12071201 property Repaint : Boolean read FRepaint write FRepaint;
1208- property Movement : string read FMovement write FMovement;
1202+// property OnlyHundred : Boolean read FOnlyHundred write FOnlyHundred;
12091203 end;
12101204
12111205 var
@@ -1266,7 +1260,6 @@ const
12661260 USER_RESIZED = WM_USER + 2001;
12671261 USER_MINIMIZED = WM_USER + 2002;
12681262 USER_SETLINKBAR = WM_USER + 2003;
1269- USER_DOCUMENTCOMPLETE = WM_USER + 2004; ///< wParam : TWebBrowser
12701263 SELECTTIME_INTERBAL = 110;
12711264
12721265 BROWSER_COUNT = 5; //ƒuƒ‰ƒEƒU‚̐”
@@ -1721,7 +1714,7 @@ begin
17211714 //Samba24‚̃tƒ@ƒCƒ‹ƒ`ƒFƒbƒN
17221715 GikoSys.SambaFileExists();
17231716
1724- //‚É‚¿‚á‚ñŒêƒtƒ@ƒCƒ‹“ǂݏo‚µ
1717+ //ƒ^ƒuŽ©“®“ǂݍž‚Ý (AV”­¶‚Ì‚½‚߈ꎞ••ˆó)
17251718 end;
17261719
17271720 // CoolBar ‚̐ݒè‚ð•Ï”‚É•Û‘¶
@@ -1885,12 +1878,6 @@ begin
18851878 if GikoSys.Setting.TabAutoLoadSave then begin
18861879 TabAutoLoadAction.Execute;
18871880 end;
1888- //‚É‚¿‚á‚ñŒêˆÄ“àƒTƒ|[ƒg‹@”\
1889- if GikoSys.Setting.GengoSupport then begin
1890- //—\’è’n
1891- //TestŒü‚¯
1892- end;
1893-
18941881 FStartUp := true;
18951882 end;
18961883 end;
@@ -2687,25 +2674,17 @@ begin
26872674 else
26882675 Item.SubItems[ idx ] := '';
26892676
2690- gbcRoundDate://gbcLastModified:
2691- if (ThreadItem.RoundDate = ZERO_DATE) then begin
2677+ gbcLastModified:
2678+ if (ThreadItem.LastModified = ZERO_DATE) then begin
26922679 Item.SubItems[ idx ] := '';
26932680 end else
2694- Item.SubItems[ idx ] := FormatDateTime('yyyy/mm/dd hh:mm:ss', ThreadItem.RoundDate);
2681+ Item.SubItems[ idx ] := FormatDateTime('yyyy/mm/dd hh:mm:ss', ThreadItem.LastModified);
26952682
26962683 gbcCreated:
26972684 if ThreadItem.CreateDate = ZERO_DATE then begin
26982685 Item.SubItems[ idx ] := '';
26992686 end else
27002687 Item.SubItems[ idx ] := FormatDateTime('yyyy/mm/dd hh:mm:ss', ThreadItem.CreateDate);
2701-
2702- gbcLastModified:
2703- if (ThreadItem.LastModified = ZERO_DATE) then begin
2704- Item.SubItems[ idx ] := '';
2705- end else
2706- Item.SubItems[ idx ] := FormatDateTime('yyyy/mm/dd hh:mm:ss', ThreadItem.LastModified);
2707-
2708-
27092688 end;
27102689 Inc( idx );
27112690 end;
@@ -2726,7 +2705,7 @@ begin
27262705 gbcAllCount:
27272706 Item.SubItems[ idx ] := IntToStr(ThreadItem.AllResCount);
27282707
2729- gbcRoundDate://gbcLastModified:
2708+ gbcLastModified:
27302709 Item.SubItems[ idx ] := '';
27312710
27322711 gbcCreated:
@@ -2734,10 +2713,6 @@ begin
27342713 Item.SubItems[ idx ] := '';
27352714 end else
27362715 Item.SubItems[ idx ] := FormatDateTime('yyyy/mm/dd hh:mm:ss', ThreadItem.CreateDate);
2737-
2738- gbcLastModified:
2739- Item.SubItems[ idx ] := '';
2740-
27412716 else
27422717 Item.SubItems[ idx ] := '';
27432718 end;
@@ -2794,7 +2769,7 @@ var
27942769 ActiveFileName: string;
27952770 e: IHTMLElement;
27962771 Ext: string;
2797- buf, buf2: string;
2772+ buf: string;
27982773 PathRec: TPathRec;
27992774 begin
28002775 if not( TObject(Sender) is TWebBrowser )then
@@ -2877,43 +2852,30 @@ begin
28772852 end else begin
28782853 threadItem := GetActiveContent;
28792854 if Pos('about:blank..', Text) = 1 then begin
2880- wkInt := LastDelimiter( '/', threadItem.URL );
2881- if Pos( '?', Copy( threadItem.URL, wkInt, MaxInt ) ) = 0 then begin
2882- // Thread.URL ‚Í PATH_INFO “n‚µ
2883- URL := Copy( threadItem.URL, 1, LastDelimiter( '/', threadItem.URL ) );
2884- wkInt := LastDelimiter( '/', Text );
2885- if Pos( '?', Copy( Text, wkInt, MaxInt ) ) = 0 then
2886- // Text ‚à PATH_INFO “n‚µ
2887- URL := URL + Copy( Text, LastDelimiter( '/', Text ) + 1, MaxInt )
2888- else
2889- // Text ‚Í QUERY_STRING “n‚µ
2890- URL := URL + Copy( Text, LastDelimiter( '?', Text ) + 1, MaxInt );
2855+ if (AnsiPos('http://jbbs.livedoor.com/', threadItem.URL) <> 0) then begin
2856+ URL := Copy(threadItem.URL, 1, LastDelimiter('/',threadItem.URL));
2857+ Gikosys.GetPopupResNumber(Text,PathRec.FSt,PathRec.FTo);
2858+ if ( PathRec.FSt <> 0 ) and ( PathRec.FTo <> 0 ) then
2859+ buf := IntToStr(PathRec.FSt) + '-' + IntToStr(PathRec.FTo)
2860+ else if( PathRec.FSt <> 0 ) then
2861+ buf := IntToStr(PathRec.FSt);
2862+ end else if AnsiPos('machi.to/bbs/', threadItem.URL) <> 0 then begin
2863+ URL := threaditem.URL;
2864+ buf := Copy(Text,AnsiPos('&st=',Text),Length(Text)-AnsiPos('&st=',Text) + 1);
28912865 end else begin
2892- // Thread.URL ‚Í QUERY_STRING “n‚µ
2893- URL := Copy( threadItem.URL, 1, LastDelimiter( '?', threadItem.URL ) );
2894- wkInt := LastDelimiter( '/', Text );
2895- if Pos( '?', Copy( Text, wkInt, MaxInt ) ) = 0 then begin
2896- // Text ‚Í PATH_INFO “n‚µ
2897- // URL ‚ɔ‚ƃL[‚ª‘«‚ç‚È‚¢‚Ì‚Å Text ‚©‚ç’¸‘Õ‚·‚é
2898- wkInt := LastDelimiter( '/', Copy( Text, 1, wkInt - 1 ) );
2899- wkInt := LastDelimiter( '/', Copy( Text, 1, wkInt - 1 ) );
2900- URL := Copy( URL, 1, Length( URL ) - 1 ) + Copy( Text, wkInt, MaxInt );
2901- end else begin
2902- // Text ‚à QUERY_STRING “n‚µ
2903- URL := URL + Copy( Text, LastDelimiter( '?', Text ) + 1, MaxInt )
2904- end;
2866+ URL := Copy(threadItem.URL, 1, LastDelimiter('/',threadItem.URL));
2867+ buf := Copy(Text,LastDelimiter('/',Text)+1,Length(Text)-LastDelimiter('/',Text));
29052868 end;
2869+ URL := URL + buf;
29062870 end else begin
29072871 URL := Text;
29082872 end;
2909-
29102873 PathRec := Gikosys.Parse2chURL2(URL);
29112874 if (PathRec.FNoParam) then begin
29122875 PathRec.FSt := 1;
29132876 PathRec.FTo := 1;
2914- end else begin
2877+ end else
29152878 Gikosys.GetPopupResNumber(URL,PathRec.FSt,PathRec.FTo);
2916- end;
29172879 GikoSys.ParseURI( URL, Protocol, Host, Path, Document, Port, Bookmark );
29182880
29192881 if PathRec.FDone or (not GikoSys.Is2chHost( Host )) then begin
@@ -2940,10 +2902,10 @@ begin
29402902 // wkIntTo := 1;
29412903 //if PathRec.FFirst then
29422904 // wkIntSt := 1;
2943- //if PathRec.FStBegin then //http://````/-50‚Æ‚¢‚¤‚Æ‚«
2944- // wkIntSt := 1; //
2945- //if PathRec.FToEnd then //http://````/50-‚Æ‚¢‚¤‚Æ‚«
2946- // wkIntTo := 9999; // ‚Ç‚¿‚ç‚̏ꍇ‚àAGetPopupResNumber‚Å‚¤‚Ü‚­”ԍ†‚𒲐®‚·‚é‚̂łӂ悤B
2905+ if PathRec.FStBegin then
2906+ wkIntSt := 1;
2907+ if PathRec.FToEnd then
2908+ wkIntTo := 9999;
29472909
29482910 //ATitle := ActiveFileName <> PathRec.FKey;
29492911 if (FActiveContent <> nil) and (FActiveContent.Thread.URL = URL) then
@@ -3015,6 +2977,7 @@ procedure TGikoForm.ListViewKeyDown(Sender: TObject; var Key: Word;
30152977 Shift: TShiftState);
30162978 var
30172979 pos : TPoint;
2980+ rect : TRect;
30182981 begin
30192982 if GetActiveList is TBoard then begin
30202983 case Key of
@@ -3067,11 +3030,9 @@ Delphi 6 Personal
30673030 ³‚µ‚¢ƒJƒ‰ƒ€‚ª“n‚³‚ê‚È‚¢‚½‚߁A³‚µ‚¢ƒJƒ‰ƒ€‚É•ÏŠ·‚µ‚Ü‚·B
30683031 *}
30693032 function TGikoForm.ActiveListTrueColumn( column : TListColumn ) : TListColumn;
3070-{*
30713033 var
30723034 i, idx : Integer;
30733035 orderList : TList;
3074-*}
30753036 begin
30763037
30773038 // ³‚µ‚­•ÏŠ·‚·‚é•û–@‚ª•ª‚©‚ç‚È‚¢‚Ì‚Å•Û—¯
@@ -3185,8 +3146,6 @@ begin
31853146 GikoSys.Setting.BoardSortIndex := id;
31863147 GikoSys.Setting.BoardSortOrder := FSortOrder;
31873148 wkBoard.CustomSort(ThreadItemSortProc);
3188- end else begin
3189- id := 0;
31903149 end;
31913150
31923151 ListView.Refresh;
@@ -3459,7 +3418,6 @@ var
34593418 s: string;
34603419 boardPlugIn : TBoardPlugIn;
34613420 i: Integer;
3462- browserRec : TBrowserRecord;
34633421 begin
34643422 try
34653423 if Item.DownType = gdtBoard then
@@ -3494,27 +3452,21 @@ begin
34943452 ATitle := GikoSys.DivideStrLine(GikoSys.ReadThreadFile(Item.ThreadItem.GetThreadFileName, 1)).FTitle;
34953453 end;
34963454 for i := BrowserTab.Tabs.Count - 1 downto 0 do begin
3497- if TBrowserRecord(BrowserTab.Tabs.Objects[i]).Thread = Item.ThreadItem then begin
3455+ if TBrowserRecord(BrowserTab.Tabs.Objects[i]).Thread = Item.ThreadItem then
34983456 TBrowserRecord(BrowserTab.Tabs.Objects[i]).Repaint := true;
3499- break;
3500- end;
35013457 end;
35023458 if GikoSys.Setting.BrowserTabVisible then begin
35033459 if GetActiveContent = Item.ThreadItem then
3504- browserRec := InsertBrowserTab(Item.ThreadItem)
3460+ InsertBrowserTab(Item.ThreadItem)
35053461 else if (ListView.Selected <> nil ) and ( TObject(ListView.Selected.Data) is TThreadItem ) and ( Item.ThreadItem = TThreadItem(ListView.Selected.Data)) then
3506- browserRec := InsertBrowserTab(Item.ThreadItem, True)
3462+ InsertBrowserTab(Item.ThreadItem, True)
35073463 else
3508- browserRec := InsertBrowserTab(Item.ThreadItem, False);
3509- if browserRec.Thread = BrowserNullTab.Thread then begin
3510- browserRec.Movement := BrowserNullTab.Movement;
3511- BrowserNullTab.Movement := '';
3512- end;
3464+ InsertBrowserTab(Item.ThreadItem, False);
35133465 end else begin
35143466 if (GetActiveContent = Item.ThreadItem) or (FActiveContent = nil) or(FActiveContent.Browser = BrowserNullTab.Browser) then
35153467 InsertBrowserTab(Item.ThreadItem);
35163468 end;
3517- Application.ProcessMessages;
3469+
35183470 if Item.State = gdsComplete then begin
35193471 PlaySound('New');
35203472 AddMessageList(ATitle + ' [ƒXƒŒŽæ“¾Š®—¹]', nil, gmiOK);
@@ -3642,17 +3594,14 @@ begin
36423594 end;
36433595 end;}
36443596
3645-function TGikoForm.InsertBrowserTab(
3646- ThreadItem : TThreadItem;
3647- ActiveTab : Boolean = True
3648-) : TBrowserRecord;
3597+procedure TGikoForm.InsertBrowserTab(ThreadItem: TThreadItem; ActiveTab: Boolean = True);
3598+
36493599 var
3650- i, j, idx : Integer;
3651- favItem : TFavoriteThreadItem;
3600+ i, j, idx: Integer;
3601+ favItem : TFavoriteThreadItem;
36523602 newBrowser : TBrowserRecord;
36533603 begin
36543604
3655- Result := nil;
36563605 if Threaditem = nil then Exit;
36573606
36583607 if ThreadItem.IsLogFile then begin
@@ -3671,7 +3620,6 @@ begin
36713620 for i := 0 to BrowserTab.Tabs.Count - 1 do begin
36723621 if TObject(BrowserTab.Tabs.Objects[i]) is TBrowserRecord then begin
36733622 if TBrowserRecord(BrowserTab.Tabs.Objects[i]).Thread = ThreadItem then begin
3674- Result := TBrowserRecord( BrowserTab.Tabs.Objects[i] );
36753623 if TBrowserRecord(BrowserTab.Tabs.Objects[i]).FBrowser = nil then begin
36763624 for j := BrowserTab.Tabs.Count - 1 downto 0 do begin
36773625 if TBrowserRecord(BrowserTab.Tabs.Objects[j]).FBrowser = TWebBrowser(FBrowsers[BROWSER_COUNT - 1]) then begin
@@ -3758,7 +3706,6 @@ begin
37583706 BrowserTab.TabIndex := i;
37593707 end;
37603708 end;
3761- Result := newBrowser;
37623709 if(ActiveTab) or (idx = -1) then begin
37633710 BrowserTab.OnChange(nil);
37643711 end;
@@ -3768,7 +3715,6 @@ begin
37683715 BrowserNullTab.Browser := Browser;
37693716 end;
37703717 BrowserNullTab.thread := ThreadItem;
3771- Result := BrowserNullTab;
37723718 BrowserTab.TabIndex := -1;
37733719 SetContent(BrowserNullTab);
37743720 end;
@@ -3788,6 +3734,7 @@ var
37883734 s: string;
37893735 // OldCursor: TCursor;
37903736 i: Integer;
3737+ url: OleVariant;
37913738 idx: Integer;
37923739 ThreadItem: TThreadItem;
37933740 Thread: TBrowserRecord;
@@ -3795,7 +3742,6 @@ var
37953742 ThreadScrollTop: Integer;
37963743 ThreadIsLog, ThreadUnRead, ThreadNewArraical: boolean;
37973744 begin
3798-// AddMessageList('SetContent', nil, gmiWhat);
37993745 Thread := inThread;
38003746 idx := BrowserTab.TabIndex;
38013747 if (FActiveContent <> nil) and
@@ -3859,13 +3805,11 @@ begin
38593805
38603806
38613807 try
3862- {
38633808 if ThreadItem.UnRead then begin
38643809 ThreadItem.ParentBoard.UnRead := ThreadItem.ParentBoard.UnRead - 1;
38653810 if ThreadItem.ParentBoard.UnRead < 0 then ThreadItem.ParentBoard.UnRead := 0;
38663811 TreeView.Refresh;
38673812 end;
3868- }
38693813 if(FActiveContent <> nil) and (FActiveContent <> Thread) then begin
38703814 if (FActiveContent.Browser <> BrowserNullTab.Browser) then
38713815 ShowWindow(FActiveContent.Browser.Handle, SW_HIDE);
@@ -3898,21 +3842,55 @@ begin
38983842 Self.Caption := CAPTION_NAME + ' - [' + ThreadTitle + ']';
38993843 //Thread.Repaint‚́AƒXƒLƒ““™‚̐ݒè‚ð•ÏX‚µ‚½‚Æ‚«AThread‚ðƒ_ƒEƒ“ƒ[ƒh‚µ‚½‚Æ‚«
39003844 //V‹K‚ÉThread‚ðŠJ‚¢‚½‚Æ‚«‚ɐ^‚É‚È‚Á‚Ä‚¢‚éB
3845+// if(Thread.Repaint) or (Thread.OnlyHundred <> GikoSys.OnlyAHundredRes)then begin
39013846 if Thread.Repaint then begin
39023847 //Thread.LastSize := ThreadItem.Size;
39033848 Thread.Repaint := false;
3904-
3905- Thread.Browser.OnStatusTextChange := nil;
3906- doc := Idispatch( olevariant(Thread.Browser.ControlInterface).Document) as IHTMLDocument2;
3907- GikoSys.CreateHTML2(doc, ThreadItem, sTitle);
3908- Thread.Browser.OnStatusTextChange := BrowserStatusTextChange;
3909- PostMessage( Handle, USER_DOCUMENTCOMPLETE, Integer( Thread.Browser ), 0 );
3910- if ThreadItem = nil then begin
3911- FActiveContent := nil;
3912- BrowserTab.Repaint;
3913- Exit;
3849+ try
3850+ Thread.Browser.OnStatusTextChange := nil;
3851+ doc := Idispatch( olevariant(Thread.Browser.ControlInterface).Document) as IHTMLDocument2;
3852+ GikoSys.CreateHTML2(doc, ThreadItem, sTitle);
3853+
3854+ // if (Assigned(Thread.Browser)) and (Thread.Browser <> nil) then
3855+ Thread.Browser.OnStatusTextChange := BrowserStatusTextChange;
3856+ //‚È‚º‚©‚±‚±‚Å–¾Ž¦“I‚ÉDocumentComplete‚ðŒÄ‚΂Ȃ¢‚Æ‚¤‚Ü‚­‚¢‚©‚È‚¢
3857+ //’Ç‹L@200406/19
3858+ //Visible‚Ì‚Æ‚«‚µ‚©DocumentComplete‚͌Ă΂ê‚È‚¢‚炵‚¢
3859+ Thread.FBrowser.OnDocumentComplete(Thread.FBrowser, Thread.FBrowser.Parent, url);
3860+// Thread.OnlyHundred := GikoSys.OnlyAHundredRes;
3861+ Application.ProcessMessages;
3862+ //‚±‚±‚ÅApplication.ProcessMessages‚ðŒÄ‚Ô‚±‚Æ‚É‚æ‚Á‚ÄWebBrowser‚ðXV‚³‚¹‚éB
3863+ //‘Š‚µ‚È‚¢‚ƈê‰æ–Ê•ª‚µ‚©•`‰æ‚Å‚«‚Ä‚È‚¢‚Ì‚Å‚»‚êˆÈã‚̃XƒNƒ[ƒ‹—Ê‚ðŽw’肵‚Ä‚à–³Œø‚É‚È‚é
3864+ //@by‚à‚¶‚ã(2004/01/20)
3865+ try
3866+ //if (Assigned(Thread)) and (Assigned(ThreadItem))then begin
3867+ if(Thread <> nil) and (ThreadItem <>nil) then begin
3868+ if ThreadUnRead then
3869+ BrowserMovement('new', Thread)
3870+ else if ThreadScrollTop <> 0 then begin
3871+ try
3872+ doc.Body.ScrollTop := ThreadScrollTop;
3873+ except
3874+ on E: Exception do
3875+ MsgBox(Handle, E.Message, 'SetContent[ScrollTop<-]', 0);
3876+ end;
3877+ end;
3878+ // end;
3879+ end else begin
3880+ FActiveContent := nil;
3881+ BrowserTab.Repaint;
3882+ Exit;
3883+ end;
3884+ except
3885+ FActiveContent := nil;
3886+ BrowserTab.Repaint;
3887+ Exit;
3888+ end;
3889+ finally
3890+ // Application.ProcessMessages;
39143891 end;
39153892 end;
3893+ ThreadItem.UnRead := False;
39163894 ListView.Refresh;
39173895 end;
39183896 if (Assigned(Thread)) and (Assigned(Thread.Thread)) and (Thread <> nil) and (ThreadItem <>nil) then begin
@@ -4008,16 +3986,12 @@ end;
40083986 procedure TGikoForm.SetListViewType(AViewType: TGikoViewType; SelectText: string; KubetsuChk: Boolean);
40093987 var
40103988 Board: TBoard;
4011- i: Integer;
40123989 begin
40133990 if ActiveList is TBoard then begin
4014- for i := Length( BBSs ) - 1 downto 0 do begin
4015- BBSs[i].SelectText := SelectText;
4016- BBSs[i].KubetsuChk := KubetsuChk;
4017- end;
40183991 Board := TBoard(ActiveList);
4019-// Board.ParentCategory.ParenTBBS.SelectText := SelectText;
4020-// Board.ParentCategory.ParenTBBS.KubetsuChk := KubetsuChk;
3992+
3993+ Board.ParentCategory.ParenTBBS.SelectText := SelectText;
3994+ Board.ParentCategory.ParenTBBS.KubetsuChk := KubetsuChk;
40213995 // Board.SelectText := SelectText;
40223996 // Board.KubetsuChk := KubetsuChk;
40233997 ViewType := AViewType;
@@ -6658,13 +6632,11 @@ var
66586632 FDispHtmlDocument: DispHTMLDocument;
66596633 BrowserRecord :TBrowserRecord;
66606634 i :Integer;
6661- doc : Variant;
6662- threadItem : TThreadItem;
66636635 begin
6664-// AddMessageList('DocumentComplete', nil, gmiWhat);
6636+// AddMessageList('DocumentComplete', nil);
66656637 if TObject(Sender) is TWebBrowser then begin
6666- BrowserRecord := nil;
66676638 if TWebBrowser(Sender) <> Browser then begin
6639+ BrowserRecord := nil;
66686640 for i := BrowserTab.Tabs.Count - 1 downto 0 do begin
66696641 if TBrowserRecord(BrowserTab.Tabs.Objects[i]).Browser = TWebBrowser(Sender) then begin
66706642 BrowserRecord := TBrowserRecord(BrowserTab.Tabs.Objects[i]);
@@ -6680,7 +6652,7 @@ begin
66806652 BrowserRecord.FEvent.OnClick := WebBrowserClick; //’ljÁ‚µ‚½OnClickƒCƒxƒ“ƒg
66816653 end;
66826654 end else begin
6683- if GetActiveContent <> nil then begin
6655+ if GetActiveContent <> nil then begin
66846656 FDispHtmlDocument := Idispatch(OleVariant(Browser.ControlInterface).Document) as DispHTMLDocument;
66856657 if FEvent <> nil then
66866658 FEvent.Free;
@@ -6689,38 +6661,6 @@ begin
66896661 FEvent.OnClick := WebBrowserClick; //’ljÁ‚µ‚½OnClickƒCƒxƒ“ƒg
66906662 end;
66916663 end;
6692-
6693- if (BrowserRecord <> nil) and
6694- Assigned( BrowserRecord.Thread ) then begin
6695- threadItem := BrowserRecord.Thread;
6696-
6697- if (BrowserRecord <> nil) and (Length( BrowserRecord.Movement ) > 0) then begin
6698- if threadItem.UnRead then begin
6699- threadItem.UnRead := False;
6700- threadItem.ParentBoard.UnRead := ThreadItem.ParentBoard.UnRead - 1;
6701- if threadItem.ParentBoard.UnRead < 0 then threadItem.ParentBoard.UnRead := 0;
6702- TreeView.Refresh;
6703- ListView.Refresh;
6704- end;
6705- BrowserMovement( BrowserRecord.Movement, BrowserRecord );
6706- BrowserRecord.Movement := '';
6707- end else if threadItem.UnRead then begin
6708- threadItem.UnRead := False;
6709- threadItem.ParentBoard.UnRead := ThreadItem.ParentBoard.UnRead - 1;
6710- if threadItem.ParentBoard.UnRead < 0 then threadItem.ParentBoard.UnRead := 0;
6711- TreeView.Refresh;
6712- BrowserMovement( 'new', BrowserRecord );
6713- ListView.Refresh;
6714- end else if threadItem.ScrollTop <> 0 then begin
6715- try
6716- doc := Idispatch( OleVariant( BrowserRecord.Browser.ControlInterface ).Document ) as IHTMLDocument2;
6717- doc.Body.ScrollTop := threadItem.ScrollTop;
6718- except
6719- on E: Exception do
6720- MsgBox(Handle, E.Message, 'SetContent[ScrollTop<-]', 0);
6721- end;
6722- end;
6723- end;
67246664 end;
67256665 end;
67266666
@@ -7494,10 +7434,11 @@ begin
74947434 end;
74957435 end;
74967436
7497-procedure TGikoForm.MoveToURL(const inURL: string);
7437+procedure TGikoForm.MoveToURL(URL: string);
7438+
74987439 var
74997440 protocol, host, path, document, port, bookmark : string;
7500- URL, protocol2, host2, path2, document2, port2, bookmark2 : string;
7441+ URL2, protocol2, host2, path2, document2, port2, bookmark2 : string;
75017442 tmp1, tmp2: string;
75027443 BBSID, BBSKey: string;
75037444 tmpBoard, Board: TBoard;
@@ -7510,22 +7451,20 @@ var
75107451 // boardNode : TTreeNode;
75117452 shiftDown : Boolean;
75127453 ctrlDown : Boolean;
7513- stRes, edRes : Int64;
7514- browserRec : TBrowserRecord;
75157454 begin
75167455
7517- GikoSys.ParseURI( inURL, protocol, host, path, document, port, bookmark );
7518- GikoSys.Parse2chURL( inURL, path, document, BBSID, BBSKey );
7456+ GikoSys.ParseURI( URL, protocol, host, path, document, port, bookmark );
7457+ GikoSys.Parse2chURL( URL, path, document, BBSID, BBSKey );
75197458
75207459
75217460 shiftDown := GetAsyncKeyState(VK_SHIFT) = Smallint($8001);
7522- ctrlDown := GetAsyncKeyState(VK_CONTROL) = Smallint($8001);
7523- if shiftDown then begin
7524- GikoSys.OpenBrowser(inURL, gbtUserApp);
7525- Exit;
7526- end else if ctrlDown then begin
7527- GikoSys.OpenBrowser(inURL, gbtIE);
7528- Exit;
7461+ ctrlDown := GetAsyncKeyState(VK_CONTROL) = Smallint($8001);
7462+ if shiftDown then begin
7463+ GikoSys.OpenBrowser(URL, gbtUserApp);
7464+ Exit;
7465+ end else if ctrlDown then begin
7466+ GikoSys.OpenBrowser(URL, gbtIE);
7467+ Exit;
75297468 end;
75307469
75317470 //===== ƒvƒ‰ƒOƒCƒ“
@@ -7534,16 +7473,15 @@ begin
75347473 bi := High( BoardPlugIns );
75357474 for i := Low( BoardPlugIns ) to bi do begin
75367475 if Assigned( Pointer( BoardPlugIns[ i ].Module ) ) then begin
7537- case BoardPlugIns[ i ].AcceptURL( inURL ) of
7476+ case BoardPlugIns[ i ].AcceptURL( URL ) of
75387477 atThread:
75397478 begin
7540- tmpThread := TThreadItem.Create( BoardPlugIns[ i ], inURL );
7479+ tmpThread := TThreadItem.Create( BoardPlugIns[ i ], URL );
75417480 boardURL := tmpThread.BoardPlugIn.GetBoardURL( DWORD( tmpThread ) );
75427481 Board := BBSsFindBoardFromURL( boardURL );
75437482 if Board = nil then begin
7544- //break;
75457483 // ¦ì‚Á‚Ä‚à’ljÁ‚·‚é‚Æ‚±‚낪–³‚¢‚Ì‚ÅŒƒ‚µ‚­•Û—¯
7546- //GikoSys.OpenBrowser(inURL, gbtUserApp);
7484+ //GikoSys.OpenBrowser(URL, gbtUserApp);
75477485 //Exit;
75487486 {
75497487 Board := GikoSys.GetUnknownBoard( tmpThread.BoardPlugIn, boardURL );
@@ -7555,40 +7493,34 @@ begin
75557493 GikoSys.ReadSubjectFile( Board );
75567494 Exit;
75577495 end;
7558- ThreadItem := Board.FindThreadFromFileName( tmpThread.FileName );
7559- if ThreadItem = nil then begin
7560- ThreadItem := tmpThread;
7561- Board.Insert( 0, ThreadItem );
7562- if ActiveList is TBoard then begin
7563- if TBoard(ActiveList) = Board then
7564- ListView.Items.Count := ListView.Items.Count + 1;
7565- end;
7566- GikoSys.GetPopupResNumber( inURL, stRes, edRes );
7567- browserRec := InsertBrowserTab( ThreadItem );
7568- if (browserRec <> nil) and (stRes > 0) then
7569- browserRec.Movement := IntToStr( stRes );
7496+ end;
7497+
7498+ ThreadItem := Board.FindThreadFromFileName( tmpThread.FileName );
7499+ if ThreadItem = nil then begin
7500+ ThreadItem := tmpThread;
7501+ Board.Insert( 0, ThreadItem );
7502+ if ActiveList is TBoard then begin
7503+ if TBoard(ActiveList) = Board then
7504+ ListView.Items.Count := ListView.Items.Count + 1;
7505+ end;
7506+ InsertBrowserTab( ThreadItem );
7507+ DownloadContent( ThreadItem );
7508+ Exit;
7509+ end else begin
7510+ tmpThread.Free;
7511+ InsertBrowserTab( ThreadItem );
7512+ if not ThreadItem.IsLogFile then begin
75707513 DownloadContent( ThreadItem );
7571- Exit;
7572- end else begin
7573- tmpThread.Free;
7574- GikoSys.GetPopupResNumber( inURL, stRes, edRes );
7575- browserRec := InsertBrowserTab( ThreadItem );
7576- if ThreadItem.IsLogFile then begin
7577- if (browserRec <> nil) and (stRes > 0) then
7578- BrowserMovement( IntToStr( stRes ), browserRec );
7579- end else begin
7580- if (browserRec <> nil) and (stRes > 0) then
7581- browserRec.Movement := IntToStr( stRes );
7582- DownloadContent( ThreadItem );
7583- end;
7584- Exit;
75857514 end;
7515+ Exit;
75867516 end;
7517+
7518+ //Exit;
75877519 end;
75887520
75897521 atBoard:
75907522 begin
7591- tmpBoard := TBoard.Create(BoardPlugIns[ i ], inURL);
7523+ tmpBoard := TBoard.Create(BoardPlugIns[ i ], URL);
75927524 Board := BBSsFindBoardFromURL( tmpBoard.URL );
75937525 tmpBoard.Free;
75947526 if Board <> nil then begin
@@ -7607,7 +7539,7 @@ begin
76077539
76087540
76097541 if (Length( Trim(BBSKey) ) > 0) and (Length( Trim(BBSID) ) > 0) then begin
7610- boardURL := GikoSys.Get2chThreadURL2BoardURL( inURL );
7542+ boardURL := GikoSys.Get2chThreadURL2BoardURL( URL );
76117543 Board := BBSsFindBoardFromURL( boardURL );
76127544 if Board = nil then
76137545 Board := BBSsFindBoardFromBBSID( BBSID );
@@ -7619,23 +7551,23 @@ begin
76197551 end;
76207552 if Board = nil then begin
76217553 // “ü‚é‚ׂ«”‚ªŒ©‚‚©‚ç‚È‚©‚Á‚½‚̂ŁA•’ʂ̃uƒ‰ƒEƒU‚ÅŠJ‚­
7622- GikoSys.OpenBrowser(inURL, gbtUserApp);
7554+ GikoSys.OpenBrowser(URL, gbtUserApp);
76237555 Exit;
76247556 end else begin
76257557 // ŠO•”‚̔‚Ȃ̂É2ch‚ÌURL‚É‚³‚ê‚Ä‚µ‚Ü‚Á‚½“z‚ð‚±‚±‚ÅŠm”F‚·‚é
7626- URL := Board.URL;
7627- GikoSys.ParseURI(URL , protocol2, host2, path2, document2, port2, bookmark2 );
7558+ URL2 := Board.URL;
7559+ GikoSys.ParseURI(URL2 , protocol2, host2, path2, document2, port2, bookmark2 );
76287560 tmp1 := Copy(host, AnsiPos('.', host) + 1, Length(host));
76297561 tmp2 := Copy(host2, AnsiPos('.', host2) + 1, Length(host2));
76307562 if ( not GikoSys.Is2chHost(tmp1)) and (tmp1 <> tmp2) then begin
7631- GikoSys.OpenBrowser(inURL, gbtUserApp);
7563+ GikoSys.OpenBrowser(URL, gbtUserApp);
76327564 Exit;
76337565 end;
76347566 end;
76357567
76367568 if not Board.IsThreadDatRead then
76377569 GikoSys.ReadSubjectFile(Board);
7638- URL := GikoSys.Get2chBrowsableThreadURL( inURL );
7570+ URL := GikoSys.Get2chBrowsableThreadURL( URL );
76397571 ThreadItem := Board.FindThreadFromURL( URL );
76407572 //@‰ß‹ŽƒƒO‘qŒÉ‚©‚çAƒ_ƒEƒ\‚µ‚½ƒXƒŒ‚ª”­Œ©‚Å‚«‚È‚¢‚Ì‚Å‚±‚±‚Å’T‚·‚悤‚É‚·‚é (2004/01/22)
76417573 if ThreadItem = nil then begin
@@ -7648,9 +7580,9 @@ begin
76487580 {shiftDown := GetAsyncKeyState(VK_SHIFT) = Smallint($8001);
76497581 ctrlDown := GetAsyncKeyState(VK_CONTROL) = Smallint($8001);
76507582 if shiftDown then
7651- GikoSys.OpenBrowser(URL1, gbtUserApp)
7583+ GikoSys.OpenBrowser(URL, gbtUserApp)
76527584 else if ctrlDown then
7653- GikoSys.OpenBrowser(URL1, gbtIE)
7585+ GikoSys.OpenBrowser(URL, gbtIE)
76547586 else begin
76557587 }
76567588 ThreadItem := TThreadItem.Create( nil, URL );
@@ -7664,34 +7596,25 @@ begin
76647596 if TBoard(ActiveList) = Board then
76657597 ListView.Items.Count := ListView.Items.Count + 1;
76667598 end;
7667- GikoSys.GetPopupResNumber( inURL, stRes, edRes );
7668- browserRec := InsertBrowserTab(ThreadItem);
7669- if (browserRec <> nil) and (stRes > 0) then
7670- browserRec.Movement := IntToStr( stRes );
7599+ InsertBrowserTab(ThreadItem);
76717600 DownloadContent(ThreadItem);
76727601 {end;}
76737602 end else begin
7674- if ThreadItem.IsLogFile then begin
7675- GikoSys.GetPopupResNumber( inURL, stRes, edRes );
7676- browserRec := InsertBrowserTab(ThreadItem);
7677- if (browserRec <> nil) and (stRes > 0) then
7678- browserRec.Movement := IntToStr( stRes );
7679- end else begin
7603+ if ThreadItem.IsLogFile then
7604+ InsertBrowserTab(ThreadItem)
7605+ else begin
76807606 if AnsiPos(Host, Board.URL) = 0 then
76817607 ThreadItem.DownloadHost := Host
76827608 else
76837609 ThreadItem.DownloadHost := '';
7684- GikoSys.GetPopupResNumber( inURL, stRes, edRes );
7685- browserRec := InsertBrowserTab(ThreadItem);
7686- if (browserRec <> nil) and (stRes > 0) then
7687- browserRec.Movement := IntToStr( stRes );
7610+ InsertBrowserTab(ThreadItem);
76887611 DownloadContent(ThreadItem);
76897612 end;
76907613 end;
76917614 end else begin
7692- Board := BBSsFindBoardFromURL( inURL );
7615+ Board := BBSsFindBoardFromURL( URL );
76937616 if Board = nil then begin
7694- GikoSys.OpenBrowser(inURL, gbtAuto);
7617+ GikoSys.OpenBrowser(URL, gbtAuto);
76957618 end else begin
76967619 if FActiveBBS <> Board.ParentCategory.ParenTBBS then
76977620 ShowBBSTree( Board.ParentCategory.ParenTBBS );
@@ -7737,9 +7660,6 @@ begin
77377660 end;
77387661
77397662 procedure TGikoForm.WndProc(var Message: TMessage);
7740-var
7741- senderBrowser : TWebBrowser;
7742- url : OleVariant;
77437663 begin
77447664 try
77457665 case Message.Msg of
@@ -7757,12 +7677,6 @@ begin
77577677 OnMinimized;
77587678 USER_SETLINKBAR:
77597679 SetLinkBar;
7760- USER_DOCUMENTCOMPLETE:
7761- if (Message.WParam <> 0) and
7762- (TObject(Message.WParam) is TWebBrowser) then begin
7763- senderBrowser := TWebBrowser( Message.WParam );
7764- BrowserDocumentComplete( senderBrowser, senderBrowser.Parent, url );
7765- end;
77667680 end;
77677681
77687682 inherited;
@@ -8679,7 +8593,7 @@ begin
86798593 end;
86808594 end;
86818595 // Ý’è
8682- lResult := SendMessage( bar.Handle, RB_SETBANDINFO, idx, Integer( pBandInfo ) );
8596+ lResult := SendMessage( bar.Handle, RB_SETBANDINFO, i, Integer( pBandInfo ) );
86838597
86848598 end;
86858599
@@ -8924,7 +8838,7 @@ procedure TGikoForm.FormMouseWheel(Sender: TObject; Shift: TShiftState;
89248838 var
89258839 Wnd: THandle;
89268840 delta: Integer;
8927-// browserPos : TPoint;
8841+ browserPos : TPoint;
89288842 const
89298843 ICON_SIZE = 16;
89308844 begin
@@ -8938,43 +8852,31 @@ begin
89388852 if (Wnd = BrowserTab.Handle) or
89398853 (Wnd = BrowserTab.Parent.Handle) then begin
89408854 BrowserTab.ScrollTabs(Delta);
8941- end else begin
8855+ end;
8856+ { else begin
89428857 if FIsHandledWheel then begin
89438858 FIsHandledWheel := False;
89448859 Handled := False;
89458860 end else begin
89468861 FIsHandledWheel := True;
8947- if (Wnd = TreeView.Handle) or (Wnd = FavoriteTreeView.Handle)
8948- or (Wnd = ListView.Handle) or (Wnd = MessageListView.Handle)
8949- then
8950- SendMessage( Wnd, WM_MOUSEWHEEL, WheelDelta shl 16, (Mouse.CursorPos.X shl 16) or Mouse.CursorPos.Y )
8951- else
8952- Handled := False;
8953-
8954-{
89558862 // if (FActiveContent <> nil) and (FActiveContent.Browser <> nil) then begin
89568863 // TWebBrowser ‚Ì Handle ‚Æ”äŠr‚µ‚Ä‚àˆê’v‚µ‚È‚¢‚̂ōÀ•W‚Å TWebBrowser ‚©‚Ç‚¤‚©”»’è
89578864 browserPos.X := 0;
89588865 browserPos.Y := 0;
89598866 Windows.ClientToScreen( Browser.Handle, browserPos );
8960- if (Longword(Mouse.CursorPos.X - browserPos.X) >= Browser.Width)
8961- or (Longword(Mouse.CursorPos.Y - browserPos.Y) >= Browser.Height)
8962- or (Longword(Mouse.CursorPos.Y - browserPos.Y) < 0)
8963- or (Longword(Mouse.CursorPos.Y - browserPos.Y) < 0) then begin
8867+ //if (Longword(Mouse.CursorPos.X - browserPos.X) >= Browser.Width)
8868+ //or (Longword(Mouse.CursorPos.Y - browserPos.Y) >= Browser.Height) then begin
89648869 // or not FActiveContent.Browser.Focused then
89658870 // TWebBrowser ‚Í–³ŒÀƒ‹[ƒv‚·‚é‚Ì‚Å‚»‚êˆÈŠO‚È‚çƒRƒ“ƒgƒ[ƒ‹‚É‘—M
8966- if (Wnd <> BrowserToolBar.Handle) and (Wnd <> BrowserNameToolBar.Handle) then
8967- SendMessage( Wnd, WM_MOUSEWHEEL, WheelDelta shl 16, (Mouse.CursorPos.X shl 16) or Mouse.CursorPos.Y )
8968- else
8969- Handled := False;
8970- end else begin
8871+ // SendMessage( Wnd, WM_MOUSEWHEEL, WheelDelta shl 16, (MousePos.X shl 16) or MousePos.Y );
8872+ //end else begin
89718873 Handled := False;
8972- end;
8874+ //end;
89738875 // end else begin
89748876 // SendMessage( Wnd, WM_MOUSEWHEEL, WheelDelta shl 16, (MousePos.X shl 16) or MousePos.Y );
89758877 // end;
8976-} end;
8977- end;
8878+ end;
8879+ end;}
89788880 end;
89798881
89808882
@@ -9010,10 +8912,9 @@ begin
90108912 ModifySelectList;
90118913 end else if Length( SelectComboBox.Text ) = 0 then
90128914 begin
9013- {* SelectComboBox.Text‚ª‹ó‚Å‚àA“ü—Í“r’†‚ÅEsc‚µ‚½‚Æ‚©
9014- * ‹ó‚Ì‚Æ‚«‚ÉDelƒL[‚ð‰Ÿ‚µ‚½‚Æ‚©‚Ȃ̂ŁAƒXƒŒ‚̍iž‚Ý‚ðˆÛŽ‚·‚éB
9015- * i‚±‚±‚ł͉½‚à‚µ‚È‚¢j
9016- *}
8915+ AllItemAction.Checked := True;
8916+ LogItemAction.Checked := False;
8917+ NewItemAction.Checked := False;
90178918 end else begin
90188919 // ƒ`ƒ‰‚‚­‚ÆŒ™‚¾‚©‚çAˆê‰ž‰Ÿ‚µ‚Ä‚ ‚é‚Æ‚«‚¾‚¯ˆ—‚·‚é
90198920 if AllItemAction.Checked then
@@ -9648,26 +9549,25 @@ end;
96489549 procedure TGikoForm.FavoriteTreeViewKeyDown(Sender: TObject; var Key: Word;
96499550 Shift: TShiftState);
96509551 begin
9651- if not TTreeView(Sender).IsEditing then begin
9652- Case Key of
9653- VK_F2:
9654- begin
9655- FClickNode := FavoriteTreeView.Selected;
9656- FavoriteTreeViewRenameActionExecute( Sender );
9657- end;
9658- VK_DELETE:
9659- begin
9660- FClickNode := FavoriteTreeView.Selected;
9661- FavoriteTreeViewDeleteActionExecute( Sender );
9662- end;
9663- VK_RETURN:
9664- begin
9665- FavoriteClick( FavoriteTreeView.Selected );
9666- FavoriteTreeView.Selected.Expanded := not FavoriteTreeView.Selected.Expanded;
9667- end;
9668- VK_SPACE:
9669- FavoriteTreeViewDblClick( Sender );
9552+
9553+ Case Key of
9554+ VK_F2:
9555+ begin
9556+ FClickNode := FavoriteTreeView.Selected;
9557+ FavoriteTreeViewRenameActionExecute( Sender );
96709558 end;
9559+ VK_DELETE:
9560+ begin
9561+ FClickNode := FavoriteTreeView.Selected;
9562+ FavoriteTreeViewDeleteActionExecute( Sender );
9563+ end;
9564+ VK_RETURN:
9565+ begin
9566+ FavoriteClick( FavoriteTreeView.Selected );
9567+ FavoriteTreeView.Selected.Expanded := not FavoriteTreeView.Selected.Expanded;
9568+ end;
9569+ VK_SPACE:
9570+ FavoriteTreeViewDblClick( Sender );
96719571 end;
96729572
96739573 end;
@@ -10062,7 +9962,7 @@ begin
100629962 ThreadItem := FavThread.Item;
100639963
100649964 try
10065- s := ThreadItem.Title + #13#10 + ThreadItem.URL + #13#10;
9965+ s := ThreadItem.URL + #13#10 + ThreadItem.Title + #13#10;
100669966 if s <> '' then
100679967 Clipboard.AsText := s;
100689968 finally
@@ -10077,7 +9977,7 @@ begin
100779977 GikoSys.ReadSubjectFile(Board);
100789978
100799979 try
10080- s := Board.Title + #13#10 + Board.URL + #13#10;
9980+ s := Board.URL + #13#10 + Board.Title + #13#10;
100819981 if s <> '' then
100829982 Clipboard.AsText := s;
100839983 finally
@@ -10134,12 +10034,7 @@ procedure TGikoForm.BrowserTabMouseUp(Sender: TObject;
1013410034 begin
1013510035 if FDragWFirst <> true then begin
1013610036 FDragWFirst := false;
10137-{
10138- end else if (abs( X - FMouseDownPos.X ) < Mouse.DragThreshold)
10139- and (abs( Y - FMouseDownPos.Y ) < Mouse.DragThreshold) then begin
10140-(*}
10141- end else begin
10142-//*)
10037+ end else if (X = FMouseDownPos.X) and (Y = FMouseDownPos.Y) then begin
1014310038 if GikoSys.Setting.ListOrientation = gloHorizontal then begin
1014410039 if GikoSys.Setting.ListWidthState = glsMin then begin
1014510040 BrowserMaxAndFocusAction.Execute;
@@ -10620,6 +10515,8 @@ begin
1062010515 end;
1062110516 // TreeView ‚ªƒNƒŠƒbƒN‚³‚ꂽ
1062210517 procedure TGikoForm.TreeClick( Node : TTreeNode );
10518+var
10519+ i: Integer;
1062310520 begin
1062410521
1062510522 if Node = nil then
@@ -11165,16 +11062,12 @@ begin
1116511062 SelectListItem(List);
1116611063 for i := 0 to List.Count - 1 do begin
1116711064 if TObject(List[i]) is TThreadItem then begin
11168- if (TThreadItem(List[i]).UnRead) then begin
11169- TThreadItem(List[i]).UnRead := false;
11170- TThreadItem(List[i]).ParentBoard.UnRead := TThreadItem(List[i]).ParentBoard.UnRead - 1;
11171- end;
11065+ TThreadItem(List[i]).UnRead := false;
11066+ TThreadItem(List[i]).ParentBoard.UnRead := TThreadItem(List[i]).ParentBoard.UnRead - 1;
1117211067 end;
1117311068 end;
1117411069 if TreeView.Visible then
1117511070 TreeView.Refresh;
11176- if ListView.Visible then
11177- ListView.Refresh;
1117811071 finally
1117911072 List.Free;
1118011073 end;
@@ -11190,16 +11083,12 @@ begin
1119011083 SelectListItem(List);
1119111084 for i := 0 to List.Count - 1 do begin
1119211085 if TObject(List[i]) is TThreadItem then begin
11193- if (TThreadItem(List[i]).IsLogFile) and (not TThreadItem(List[i]).UnRead) then begin
11194- TThreadItem(List[i]).UnRead := true;
11195- TThreadItem(List[i]).ParentBoard.UnRead := TThreadItem(List[i]).ParentBoard.UnRead + 1;
11196- end;
11086+ TThreadItem(List[i]).UnRead := true;
11087+ TThreadItem(List[i]).ParentBoard.UnRead := TThreadItem(List[i]).ParentBoard.UnRead + 1;
1119711088 end;
1119811089 end;
1119911090 if TreeView.Visible then
1120011091 TreeView.Refresh;
11201- if ListView.Visible then
11202- ListView.Refresh;
1120311092 finally
1120411093 List.Free;
1120511094 end;
@@ -11350,7 +11239,7 @@ end;
1135011239 procedure TGikoForm.TabsSaveToFileActionExecute(Sender: TObject);
1135111240 var
1135211241 SaveTabList: TStringList;
11353- Result: Boolean;
11242+ Result: Boolean;
1135411243 begin
1135511244 SaveTabList := TStringList.Create;
1135611245 try
@@ -11776,20 +11665,6 @@ begin
1177611665 JumpToNumOfResAction.Enabled := (GetActiveContent <> nil) and (GetActiveContent.IsLogFile);
1177711666 end;
1177811667
11779-procedure TGikoForm.FavoriteTreeViewCollapseActionExecute(Sender: TObject);
11780-var
11781- node : TTreeNode;
11782-begin
11783-
11784- node := FavoriteTreeView.Items.GetFirstNode;
11785- while node <> nil do begin
11786- if node.HasChildren then
11787- node.Expanded := False;
11788- node := node.GetNext;
11789- end;
11790-
11791-end;
11792-
1179311668 initialization
1179411669 OleInitialize(nil);
1179511670 finalization
--- a/GikoSystem.pas
+++ b/GikoSystem.pas
@@ -187,7 +187,7 @@ type
187187 function Is2chHost(Host: string): Boolean;
188188 function Parse2chURL(const url: string; const path: string; const document: string; var BBSID: string; var BBSKey: string): Boolean;
189189 function Parse2chURL2(URL: string): TPathRec;
190- procedure ParseURI(const URL : string; var Protocol, Host, Path, Document, Port, Bookmark: string);
190+ procedure ParseURI(var URL, Protocol, Host, Path, Document, Port, Bookmark: string);
191191 function GetVersionBuild: Integer;
192192 function GetBrowsableThreadURL( inURL : string ) : string;
193193 function GetThreadURL2BoardURL( inURL : string ) : string;
@@ -3424,7 +3424,7 @@ begin
34243424 end;
34253425 end;
34263426
3427-procedure TGikoSys.ParseURI(const URL : string; var Protocol, Host, Path, Document, Port, Bookmark: string);
3427+procedure TGikoSys.ParseURI(var URL, Protocol, Host, Path, Document, Port, Bookmark: string);
34283428 var
34293429 URI: TIdURI;
34303430 begin
--- a/GikoXMLDoc.pas
+++ b/GikoXMLDoc.pas
@@ -157,6 +157,7 @@ procedure IXMLNode.AddAttribute(
157157 const Value : string
158158 );
159159 var
160+ t : Integer;
160161 index : Integer;
161162 begin
162163
@@ -297,12 +298,15 @@ var
297298
298299 found : PChar;
299300 tag : string;
301+ tagLen : Integer;
300302
301303 isClosed : boolean;
302304
303305 nodeName : string;
304306 attributeName : string;
305307 attributeValue : string;
308+
309+ t, t2 : Integer;
306310 label
307311 NextNode;
308312 begin
--- a/ItemDownload.pas
+++ b/ItemDownload.pas
@@ -156,7 +156,9 @@ var
156156 Idx: Integer;
157157 ATitle: string;
158158 DownloadResult: Boolean;
159+ foundPos: Integer;
159160 boardPlugIn : TBoardPlugIn;
161+ listContent : string;
160162 lastContent : string;
161163 logFile : TFileStream;
162164 adjustMargin : Integer;
@@ -1259,10 +1261,8 @@ begin
12591261 OldCnt := Body.IndexOf(oldBody.Strings[ LastIdx ]) + 1;
12601262 until ( OldCnt <> 0 ) or (LastIdx = 0);
12611263
1262- if OldCnt >= Body.Count then OldCnt := Body.Count - 1;
12631264 NewRes := Body.Count - OldCnt;
12641265
1265-
12661266 finally
12671267 oldBody.Free;
12681268 end;
@@ -1299,10 +1299,8 @@ begin
12991299 ThreadItem.AllResCount := ThreadItem.Count;
13001300 ThreadItem.IsLogFile := True;
13011301 ThreadItem.RoundDate := Now;
1302- if not ThreadItem.UnRead then begin
1303- ThreadItem.UnRead := True;
1304- ThreadItem.ParentBoard.UnRead := ThreadItem.ParentBoard.UnRead + 1;
1305- end;
1302+ ThreadItem.UnRead := True;
1303+ ThreadItem.ParentBoard.UnRead := ThreadItem.ParentBoard.UnRead + 1;
13061304 // if ThreadItem.RoundNo = 6 then
13071305 // ThreadItem.RoundNo := 0;
13081306
--- a/KuroutSetting.dfm
+++ b/KuroutSetting.dfm
@@ -1,6 +1,6 @@
11 object KuroutOption: TKuroutOption
2- Left = 43
3- Top = 114
2+ Left = 260
3+ Top = 167
44 Width = 525
55 Height = 457
66 Caption = #35443#32048#35373#23450
@@ -140,182 +140,6 @@ object KuroutOption: TKuroutOption
140140 TabOrder = 3
141141 end
142142 end
143- object GroupBox1: TGroupBox
144- Left = 14
145- Top = 232
146- Width = 475
147- Height = 57
148- Caption = #12395#12385#12419#12435#35486#26696#20869#27231#33021
149- TabOrder = 2
150- Visible = False
151- object Label5: TLabel
152- Left = 8
153- Top = 16
154- Width = 234
155- Height = 12
156- Caption = #12395#12385#12419#12435#35486#12434#20351#12387#12390#12462#12467#12490#12499#12434#12469#12509#12540#12488#12375#12414#12377#12290
157- end
158- object GengoSupport: TCheckBox
159- Left = 8
160- Top = 32
161- Width = 201
162- Height = 17
163- Caption = #12395#12385#12419#12435#35486#26696#20869#27231#33021#12434#26377#21177#12395#12377#12427
164- TabOrder = 0
165- end
166- end
167- end
168- object ColumnTabSheet: TTabSheet
169- Caption = #35443#32048#35373#23450'2'
170- ImageIndex = 1
171- object CategoryColumnGroupBox: TGroupBox
172- Left = 8
173- Top = 16
174- Width = 481
175- Height = 145
176- Caption = #34920#31034#12459#12521#12512#35373#23450'('#12459#12486#12468#12522#12540')'
177- TabOrder = 0
178- object Label1: TLabel
179- Left = 80
180- Top = 16
181- Width = 60
182- Height = 12
183- Caption = #38750#34920#31034#38917#30446
184- end
185- object Label2: TLabel
186- Left = 312
187- Top = 16
188- Width = 48
189- Height = 12
190- Caption = #34920#31034#38917#30446
191- end
192- object CUnVisibledListBox: TListBox
193- Left = 32
194- Top = 33
195- Width = 161
196- Height = 65
197- ItemHeight = 12
198- TabOrder = 0
199- end
200- object CVisibledListBox: TListBox
201- Left = 264
202- Top = 33
203- Width = 161
204- Height = 65
205- ItemHeight = 12
206- TabOrder = 1
207- end
208- object CAddButton: TButton
209- Left = 200
210- Top = 38
211- Width = 57
212- Height = 25
213- Caption = '>>'
214- TabOrder = 2
215- OnClick = CAddButtonClick
216- end
217- object CDeleteButton: TButton
218- Left = 200
219- Top = 70
220- Width = 57
221- Height = 25
222- Caption = '<<'
223- TabOrder = 3
224- OnClick = CDeleteButtonClick
225- end
226- object CUpButton: TButton
227- Left = 264
228- Top = 104
229- Width = 75
230- Height = 25
231- Caption = #19978#12408
232- TabOrder = 4
233- OnClick = CUpButtonClick
234- end
235- object CDownButton: TButton
236- Left = 352
237- Top = 104
238- Width = 75
239- Height = 25
240- Caption = #19979#12504
241- TabOrder = 5
242- OnClick = CDownButtonClick
243- end
244- end
245- object BoardColumnGroupBox: TGroupBox
246- Left = 8
247- Top = 168
248- Width = 481
249- Height = 185
250- Caption = #34920#31034#12459#12521#12512#35373#23450'('#26495')'
251- TabOrder = 1
252- object Label3: TLabel
253- Left = 80
254- Top = 16
255- Width = 60
256- Height = 12
257- Caption = #38750#34920#31034#38917#30446
258- end
259- object Label4: TLabel
260- Left = 312
261- Top = 16
262- Width = 48
263- Height = 12
264- Caption = #34920#31034#38917#30446
265- end
266- object BUnVisibledListBox: TListBox
267- Left = 32
268- Top = 31
269- Width = 161
270- Height = 113
271- ItemHeight = 12
272- TabOrder = 0
273- end
274- object BVisibledListBox: TListBox
275- Left = 264
276- Top = 31
277- Width = 161
278- Height = 113
279- ItemHeight = 12
280- TabOrder = 1
281- end
282- object BAddButton: TButton
283- Left = 200
284- Top = 48
285- Width = 57
286- Height = 25
287- Caption = '>>'
288- TabOrder = 2
289- OnClick = BAddButtonClick
290- end
291- object BDeleteButton: TButton
292- Left = 200
293- Top = 80
294- Width = 57
295- Height = 25
296- Caption = '<<'
297- TabOrder = 3
298- OnClick = BDeleteButtonClick
299- end
300- object BUpButton: TButton
301- Left = 264
302- Top = 152
303- Width = 75
304- Height = 25
305- Caption = #19978#12408
306- TabOrder = 4
307- OnClick = BUpButtonClick
308- end
309- object BDownButton: TButton
310- Left = 352
311- Top = 152
312- Width = 75
313- Height = 25
314- Caption = #19979#12504
315- TabOrder = 5
316- OnClick = BDownButtonClick
317- end
318- end
319143 end
320144 end
321145 object OkBotton: TButton
--- a/KuroutSetting.pas
+++ b/KuroutSetting.pas
@@ -8,67 +8,35 @@ uses
88
99 type
1010 TKuroutOption = class(TForm)
11- PageControl1: TPageControl;
12- TabSheet1: TTabSheet;
13- GroupBox11: TGroupBox;
14- Label17: TLabel;
15- Label18: TLabel;
16- RecvBufferSize: TEdit;
17- ProxyProtocolCheckBox: TCheckBox;
18- ProtocolCheckBox: TCheckBox;
19- GroupBox13: TGroupBox;
20- Label24: TLabel;
21- Label25: TLabel;
22- PostTimeLabel: TLabel;
23- Label27: TLabel;
24- PostTimeCheckBox: TCheckBox;
25- PostTimeEdit: TEdit;
26- PutPostTimeRadioButton: TRadioButton;
27- BackPostTimeRadioButton: TRadioButton;
28- OkBotton: TButton;
29- CancelBotton: TButton;
30- ApplyButton: TButton;
31- ColumnTabSheet: TTabSheet;
32- CategoryColumnGroupBox: TGroupBox;
33- CUnVisibledListBox: TListBox;
34- CVisibledListBox: TListBox;
35- CAddButton: TButton;
36- CDeleteButton: TButton;
37- BoardColumnGroupBox: TGroupBox;
38- BUnVisibledListBox: TListBox;
39- BVisibledListBox: TListBox;
40- BAddButton: TButton;
41- BDeleteButton: TButton;
42- Label1: TLabel;
43- Label2: TLabel;
44- Label3: TLabel;
45- Label4: TLabel;
46- CUpButton: TButton;
47- CDownButton: TButton;
48- BUpButton: TButton;
49- BDownButton: TButton;
50- GroupBox1: TGroupBox;
51- GengoSupport: TCheckBox;
52- Label5: TLabel;
53- procedure OkBottonClick(Sender: TObject);
54- procedure FormCreate(Sender: TObject);
55- procedure CDeleteButtonClick(Sender: TObject);
56- procedure CAddButtonClick(Sender: TObject);
57- procedure BAddButtonClick(Sender: TObject);
58- procedure BDeleteButtonClick(Sender: TObject);
59- procedure CUpButtonClick(Sender: TObject);
60- procedure CDownButtonClick(Sender: TObject);
61- procedure BUpButtonClick(Sender: TObject);
62- procedure BDownButtonClick(Sender: TObject);
11+ PageControl1: TPageControl;
12+ TabSheet1: TTabSheet;
13+ GroupBox11: TGroupBox;
14+ Label17: TLabel;
15+ Label18: TLabel;
16+ RecvBufferSize: TEdit;
17+ ProxyProtocolCheckBox: TCheckBox;
18+ ProtocolCheckBox: TCheckBox;
19+ GroupBox13: TGroupBox;
20+ Label24: TLabel;
21+ Label25: TLabel;
22+ PostTimeLabel: TLabel;
23+ Label27: TLabel;
24+ PostTimeCheckBox: TCheckBox;
25+ PostTimeEdit: TEdit;
26+ PutPostTimeRadioButton: TRadioButton;
27+ BackPostTimeRadioButton: TRadioButton;
28+ OkBotton: TButton;
29+ CancelBotton: TButton;
30+ ApplyButton: TButton;
31+ procedure OkBottonClick(Sender: TObject);
32+ procedure FormCreate(Sender: TObject);
6333 private
64- { Private éŒ¾ }
34+ { Private éŒ¾ }
6535 procedure SetValue;
6636 procedure SaveSetting;
6737 procedure RecvBufferSizeExit(Sender: TObject);
6838 procedure PostTimeEditExit(Sender: TObject);
6939 procedure PostTimeCheckBoxClick(Sender: TObject);
70- procedure SetColumnData();
71- procedure PostColumnData();
7240 public
7341 { Public éŒ¾ }
7442 end;
@@ -78,9 +46,6 @@ var
7846
7947 implementation
8048
81-uses
82- Giko, Setting;
83-
8449 {$R *.dfm}
8550
8651 procedure TKuroutOption.SetValue;
@@ -99,10 +64,6 @@ begin
9964 PutPostTimeRadioButton.Checked := True
10065 else
10166 BackPostTimeRadioButton.Checked := True;
102-
103- SetColumnData();
104-
105- PageControl1.ActivePageIndex := GikoSys.Setting.KuroutSettingTabIndex;
10667 end;
10768
10869 procedure TKuroutOption.SaveSetting;
@@ -120,10 +81,6 @@ begin
12081 else
12182 GikoSys.Setting.TimeAdjustSec := 0;
12283 GikoSys.Setting.TimeAdjust := PutPostTimeRadioButton.Checked;
123-
124- GikoSys.Setting.GengoSupport := GengoSupport.Checked;
125-
126- GikoSys.Setting.KuroutSettingTabIndex := PageControl1.ActivePageIndex;
12784 end;
12885
12986 procedure TKuroutOption.RecvBufferSizeExit(Sender: TObject);
@@ -152,7 +109,6 @@ procedure TKuroutOption.OkBottonClick(Sender: TObject);
152109 begin
153110 RecvBufferSizeExit(Sender);
154111 PostTimeEditExit(Sender);
155- PostColumnData();
156112 SaveSetting;
157113 end;
158114
@@ -162,191 +118,5 @@ begin
162118 PostTimeCheckBoxClick(Sender);
163119
164120 end;
165-procedure TKuroutOption.SetColumnData();
166-var
167- i, j : Integer;
168- flag : Boolean;
169-begin
170-
171- //===== ”ƒŠƒXƒg =====
172- for i := 0 to GikoSys.Setting.CategoryColumnOrder.Count - 1 do begin
173- for j := 1 to Length( GikoCategoryColumnCaption ) - 1 do begin
174- if GikoSys.Setting.CategoryColumnOrder[ i ] = TGikoCategoryColumnID( j ) then begin
175- CVisibledListBox.AddItem(GikoCategoryColumnCaption[ j ], nil);
176- break;
177- end;
178- end;
179- end;
180-
181- for i := 1 to Length( GikoCategoryColumnCaption ) - 1 do begin
182- flag := false;
183- for j := 0 to GikoSys.Setting.CategoryColumnOrder.Count - 1 do begin
184- if GikoSys.Setting.CategoryColumnOrder[ j ] = TGikoCategoryColumnID( i ) then begin
185- flag := true;
186- break;
187- end;
188- end;
189- if not flag then
190- CUnVisibledListBox.AddItem(GikoCategoryColumnCaption[ i ], nil);
191- end;
192-
193- //===== ƒXƒŒƒŠƒXƒg =====
194- for i := 0 to GikoSys.Setting.BoardColumnOrder.Count - 1 do begin
195- for j := 1 to Length( GikoBoardColumnCaption ) - 1 do begin
196- if GikoSys.Setting.BoardColumnOrder[ i ] = TGikoBoardColumnID( j ) then begin
197- BVisibledListBox.AddItem(GikoBoardColumnCaption[ j ], nil);
198- Break;
199- end;
200- end;
201- end;
202-
203- for i := 1 to Length( GikoBoardColumnCaption ) - 1 do begin
204- flag := false;
205- for j := GikoSys.Setting.BoardColumnOrder.Count - 1 downto 0 do begin
206- if GikoSys.Setting.BoardColumnOrder[ j ] = TGikoBoardColumnID( i ) then begin
207- flag := true;
208- Break;
209- end;
210- end;
211- if not flag then
212- BUnVisibledListBox.AddItem(GikoBoardColumnCaption[ i ], nil);
213-
214- end;
215-end;
216-procedure TKuroutOption.CDeleteButtonClick(Sender: TObject);
217-var
218- i: Integer;
219-begin
220- for i := 0 to CVisibledListBox.Count - 1 do begin
221- if CVisibledListBox.Selected[i] then begin
222- CUnVisibledListBox.AddItem( CVisibledListBox.Items.Strings[ i ], nil);
223- CVisibledListBox.DeleteSelected;
224- break;
225- end;
226- end;
227-end;
228-
229-procedure TKuroutOption.CAddButtonClick(Sender: TObject);
230-var
231- i: Integer;
232-begin
233- for i := 0 to CUnVisibledListBox.Count - 1 do begin
234- if CUnVisibledListBox.Selected[i] then begin
235- CVisibledListBox.AddItem( CUnVisibledListBox.Items.Strings[ i ], nil);
236- CUnVisibledListBox.DeleteSelected;
237- break;
238- end;
239- end;
240-end;
241-
242-procedure TKuroutOption.BAddButtonClick(Sender: TObject);
243-var
244- i: Integer;
245-begin
246- for i := 0 to BUnVisibledListBox.Count - 1 do begin
247- if BUnVisibledListBox.Selected[i] then begin
248- BVisibledListBox.AddItem( BUnVisibledListBox.Items.Strings[ i ], nil);
249- BUnVisibledListBox.DeleteSelected;
250- break;
251- end;
252- end;
253-end;
254-
255-procedure TKuroutOption.BDeleteButtonClick(Sender: TObject);
256-var
257- i: Integer;
258-begin
259- for i := 0 to BVisibledListBox.Count - 1 do begin
260- if BVisibledListBox.Selected[i] then begin
261- BUnVisibledListBox.AddItem( BVisibledListBox.Items.Strings[ i ], nil);
262- BVisibledListBox.DeleteSelected;
263- break;
264- end;
265- end;
266-end;
267-
268-procedure TKuroutOption.CUpButtonClick(Sender: TObject);
269-var
270- i: Integer;
271-begin
272- for i := 1 to CVisibledListBox.Count - 1 do begin
273- if CVisibledListBox.Selected[i] then begin
274- CVisibledListBox.Items.Exchange(i, i -1);
275- break;
276- end;
277- end;
278-end;
279-
280-procedure TKuroutOption.CDownButtonClick(Sender: TObject);
281-var
282- i: Integer;
283-begin
284- for i := 0 to CVisibledListBox.Count - 2 do begin
285- if CVisibledListBox.Selected[i] then begin
286- CVisibledListBox.Items.Exchange(i, i + 1);
287- break;
288- end;
289- end;
290-end;
291-
292-procedure TKuroutOption.BUpButtonClick(Sender: TObject);
293-var
294- i: Integer;
295-begin
296- for i := 1 to BVisibledListBox.Count - 1 do begin
297- if BVisibledListBox.Selected[i] then begin
298- BVisibledListBox.Items.Exchange(i, i -1);
299- break;
300- end;
301- end;
302-end;
303-
304-procedure TKuroutOption.BDownButtonClick(Sender: TObject);
305-var
306- i: Integer;
307-begin
308- for i := 0 to BVisibledListBox.Count - 2 do begin
309- if BVisibledListBox.Selected[i] then begin
310- BVisibledListBox.Items.Exchange(i, i + 1);
311- break;
312- end;
313- end;
314-end;
315-
316-
317-procedure TKuroutOption.PostColumnData();
318-var
319- i, j : Integer;
320-begin
321- GikoForm.ActiveListColumnSave;
322-
323- //===== ”ƒŠƒXƒg =====
324- for i := GikoSys.Setting.CategoryColumnOrder.Count -1 downto 1 do
325- GikoSys.Setting.CategoryColumnOrder.Delete(i);
326-
327- for i := 0 to CVisibledListBox.Count - 1 do begin
328- for j := 1 to Length( GikoCategoryColumnCaption ) - 1 do begin
329- if CVisibledListBox.Items.Strings[ i ] = GikoCategoryColumnCaption[ j ] then begin
330- GikoSys.Setting.CategoryColumnOrder.Add( TGikoCategoryColumnID(j) );
331- break;
332- end;
333- end;
334- end;
335-
336- //===== ƒXƒŒƒŠƒXƒg =====
337- for i := GikoSys.Setting.BoardColumnOrder.Count - 1 downto 1 do
338- GikoSys.Setting.BoardColumnOrder.Delete(i);
339-
340- for i := 0 to BVisibledListBox.Count - 1 do begin
341- for j := 1 to Length( GikoBoardColumnCaption ) - 1 do begin
342- if BVisibledListBox.Items.Strings[ i ] = GikoBoardColumnCaption[ j ] then begin
343- GikoSys.Setting.BoardColumnOrder.Add( TGikoBoardColumnID(j) );
344- Break;
345- end;
346- end;
347- end;
348- //ƒXƒŒˆê——‚Ì•`‰æ‚̍XV
349- GikoForm.SetActiveList(GikoForm.ActiveList);
350-end;
351121
352122 end.
--- a/Option.dfm
+++ b/Option.dfm
@@ -1,6 +1,6 @@
11 object OptionDialog: TOptionDialog
2- Left = 188
3- Top = 128
2+ Left = 410
3+ Top = 236
44 BorderStyle = bsDialog
55 Caption = #12458#12503#12471#12519#12531
66 ClientHeight = 428
@@ -60,9 +60,9 @@ object OptionDialog: TOptionDialog
6060 Top = 4
6161 Width = 509
6262 Height = 389
63- ActivePage = TabSheet3
63+ ActivePage = ThreadSheet
6464 MultiLine = True
65- TabIndex = 3
65+ TabIndex = 4
6666 TabOrder = 3
6767 OnChange = OptionTabChange
6868 object ConnectSheet: TTabSheet
@@ -252,7 +252,7 @@ object OptionDialog: TOptionDialog
252252 Top = 43
253253 Width = 417
254254 Height = 20
255- ItemHeight = 12
255+ ItemHeight = 0
256256 TabOrder = 0
257257 Text = 'BoardURLComboBox'
258258 end
@@ -654,7 +654,7 @@ object OptionDialog: TOptionDialog
654654 Left = 12
655655 Top = 8
656656 Width = 477
657- Height = 41
657+ Height = 64
658658 Caption = #34920#31034#35373#23450
659659 TabOrder = 0
660660 object ThreadListIconCheckBox: TCheckBox
@@ -665,10 +665,18 @@ object OptionDialog: TOptionDialog
665665 Caption = #12473#12524#12483#12489#26356#26032#12450#12452#12467#12531#12434#34920#31034#12377#12427'(&I)'
666666 TabOrder = 0
667667 end
668+ object NonAcquiredCountCheckBox: TCheckBox
669+ Left = 12
670+ Top = 40
671+ Width = 217
672+ Height = 17
673+ Caption = #21462#24471#25968#12398#20195#12431#12426#12395#26410#21462#24471#25968#12434#34920#31034#12377#12427
674+ TabOrder = 1
675+ end
668676 end
669677 object GroupBox16: TGroupBox
670678 Left = 12
671- Top = 52
679+ Top = 76
672680 Width = 477
673681 Height = 64
674682 Caption = #12473#12524#20316#25104#26085#26178#34920#31034#35373#23450
@@ -692,7 +700,7 @@ object OptionDialog: TOptionDialog
692700 end
693701 object GroupBox5: TGroupBox
694702 Left = 12
695- Top = 121
703+ Top = 145
696704 Width = 477
697705 Height = 86
698706 Caption = #12502#12521#12454#12470#12398#26368#22823#21270
@@ -720,7 +728,7 @@ object OptionDialog: TOptionDialog
720728 end
721729 object GroupBox17: TGroupBox
722730 Left = 12
723- Top = 212
731+ Top = 236
724732 Width = 477
725733 Height = 63
726734 Caption = #12502#12521#12454#12470#12479#12502#38750#34920#31034#26178#35373#23450
@@ -758,9 +766,9 @@ object OptionDialog: TOptionDialog
758766 end
759767 object GroupBox18: TGroupBox
760768 Left = 12
761- Top = 278
769+ Top = 302
762770 Width = 477
763- Height = 43
771+ Height = 41
764772 Caption = 'dat'#33853#12385#12473#12524#12477#12540#12488#38918
765773 TabOrder = 4
766774 object DatOchiSortCombo: TComboBox
@@ -778,9 +786,7 @@ object OptionDialog: TOptionDialog
778786 #21462#24471#26085#26178'('#26119#38918')'
779787 #21462#24471#26085#26178'('#38477#38918')'
780788 #12473#12524#20316#25104#26085#26178'('#26119#38918')'
781- #12473#12524#20316#25104#26085#26178'('#38477#38918')'
782- #12473#12524#26368#32066#26356#26032#26085#26178#65288#26119#38918#65289
783- #12473#12524#26368#32066#26356#26032#26085#26178#65288#38477#38918#65289)
789+ #12473#12524#20316#25104#26085#26178'('#38477#38918')')
784790 end
785791 end
786792 end
--- a/Option.pas
+++ b/Option.pas
@@ -90,6 +90,7 @@ type
9090 TabSheet3: TTabSheet;
9191 GroupBox9: TGroupBox;
9292 ThreadListIconCheckBox: TCheckBox;
93+ NonAcquiredCountCheckBox: TCheckBox;
9394 GroupBox16: TGroupBox;
9495 CreationTimeLogsCheckBox: TCheckBox;
9596 FutureThreadCheckBox: TCheckBox;
@@ -765,6 +766,7 @@ begin
765766
766767 //ƒXƒŒƒbƒhˆê——XVƒAƒCƒRƒ“
767768 ThreadListIconCheckBox.Checked := GikoSys.Setting.ListIconVisible;
769+ NonAcquiredCountCheckBox.Checked := GikoSys.Setting.NonAcquiredCount;
768770 CreationTimeLogsCheckBox.Checked := GikoSys.Setting.CreationTimeLogs;
769771 FutureThreadCheckBox.Checked := GikoSys.Setting.FutureThread;
770772 SelectIntervalEdit.Text := IntToStr(GikoSys.Setting.SelectInterval);
@@ -776,7 +778,7 @@ begin
776778 DatOchiSortCombo.ItemIndex := 1
777779 else
778780 DatOchiSortCombo.ItemIndex := 2;
779- gbcRoundDate://gbcLastModified:
781+ gbcLastModified:
780782 if GikoSys.Setting.DatOchiSortOrder then
781783 DatOchiSortCombo.ItemIndex := 3
782784 else
@@ -786,11 +788,6 @@ begin
786788 DatOchiSortCombo.ItemIndex := 5
787789 else
788790 DatOchiSortCombo.ItemIndex := 6;
789- gbcLastModified:
790- if GikoSys.Setting.DatOchiSortOrder then
791- DatOchiSortCombo.ItemIndex := 7
792- else
793- DatOchiSortCombo.ItemIndex := 8;
794791 else
795792 DatOchiSortCombo.ItemIndex := 0;
796793 end;
@@ -805,6 +802,7 @@ begin
805802
806803 //TabAutoLoad
807804 TabLoadSave.Checked := Gikosys.Setting.TabAutoLoadSave;
805+
808806 end;
809807
810808 procedure TOptionDialog.SaveSetting;
@@ -997,6 +995,11 @@ begin
997995 //ƒXƒŒƒbƒhˆê——XVƒAƒCƒRƒ“
998996 GikoSys.Setting.ListIconVisible := ThreadListIconCheckBox.Checked;
999997
998+ //Žæ“¾”A–¢Žæ“¾”
999+ if (GikoSys.Setting.NonAcquiredCount <> NonAcquiredCountCheckBox.Checked) and (GikoForm.ActiveList Is TBoard) then
1000+ FRepaintList := true;
1001+ GikoSys.Setting.NonAcquiredCount := NonAcquiredCountCheckBox.Checked;
1002+
10001003 GikoSys.Setting.CreationTimeLogs := CreationTimeLogsCheckBox.Checked;
10011004 GikoSys.Setting.FutureThread := FutureThreadCheckBox.Checked;
10021005 if StrToIntDef(SelectIntervalEdit.Text, 110) > 55 then
@@ -1017,11 +1020,11 @@ begin
10171020 end;
10181021 3: begin //Žæ“¾“úŽž(¸‡)
10191022 GikoSys.Setting.DatOchiSortOrder := true;
1020- GikoSys.Setting.DatOchiSortIndex := Ord( gbcRoundDate );{gbcLastModified}
1023+ GikoSys.Setting.DatOchiSortIndex := Ord( gbcLastModified );
10211024 end;
10221025 4: begin //Žæ“¾“úŽž(~‡)
10231026 GikoSys.Setting.DatOchiSortOrder := false;
1024- GikoSys.Setting.DatOchiSortIndex := Ord( gbcRoundDate );{gbcLastModified}
1027+ GikoSys.Setting.DatOchiSortIndex := Ord( gbcLastModified );
10251028 end;
10261029 5: begin //ƒXƒŒì¬“úŽž(¸‡)
10271030 GikoSys.Setting.DatOchiSortOrder := true;
@@ -1031,14 +1034,6 @@ begin
10311034 GikoSys.Setting.DatOchiSortOrder := false;
10321035 GikoSys.Setting.DatOchiSortIndex := Ord( gbcCreated );
10331036 end;
1034- 7: begin //ƒXƒŒÅIXV“úŽži¸‡j
1035- GikoSys.Setting.DatOchiSortOrder := true;
1036- GikoSys.Setting.DatOchiSortIndex := Ord( gbcLastModified );{gbcLastModified}
1037- end;
1038- 8: begin //ƒXƒŒÅIXV“úŽži~‡j
1039- GikoSys.Setting.DatOchiSortOrder := false;
1040- GikoSys.Setting.DatOchiSortIndex := Ord( gbcLastModified );{gbcLastModified}
1041- end;
10421037 end;
10431038
10441039 GikoSys.Setting.WriteSystemSettingFile;
--- a/Setting.pas
+++ b/Setting.pas
@@ -67,7 +67,7 @@ type
6767 procedure SetItem( index : integer; value : TGikoBBSColumnID);
6868 public
6969 constructor Create;
70- destructor Destroy; override;
70+ destructor Destroy;
7171 function Add( value : TGikoBBSColumnID ) : Integer;
7272 property Items[index : integer]: TGikoBBSColumnID read GetItem write SetItem; default;
7373 end;
@@ -83,21 +83,21 @@ type
8383 procedure SetItem( index : integer; value : TGikoCategoryColumnID);
8484 public
8585 constructor Create;
86- destructor Destroy; override;
86+ destructor Destroy;
8787 function Add( value : TGikoCategoryColumnID ) : Integer;
8888 property Items[index : integer]: TGikoCategoryColumnID read GetItem write SetItem; default;
8989 end;
9090 /// ƒXƒŒƒŠƒXƒg‚̃Jƒ‰ƒ€ ID
9191 type TGikoBoardColumnID = (gbcTitle, gbcAllCount, gbcLocalCount, gbcNonAcqCount,
92- gbcNewCount, gbcUnReadCount, gbcRoundName, gbcRoundDate, gbcCreated, gbcLastModified );{gbcLastModified,}
92+ gbcNewCount, gbcUnReadCount, gbcRoundName, gbcLastModified, gbcCreated );
9393 /// ƒXƒŒƒŠƒXƒg‚̃Jƒ‰ƒ€–¼
94- const GikoBoardColumnCaption : array[0..9] of string =
94+ const GikoBoardColumnCaption : array[0..8] of string =
9595 ( 'ƒXƒŒƒbƒh–¼', 'ƒJƒEƒ“ƒg', 'Žæ“¾', '–¢Žæ“¾', 'V’…',
96- '–¢“Ç', '„‰ñ—\–ñ', 'Žæ“¾“úŽž', 'ƒXƒŒì¬“úŽž', 'ÅIXV“úŽž' );
97- const GikoBoardColumnAlignment : array[0..9] of TAlignment = (
96+ '–¢“Ç', '„‰ñ—\–ñ', 'Žæ“¾“úŽž', 'ƒXƒŒì¬“úŽž' );
97+ const GikoBoardColumnAlignment : array[0..8] of TAlignment = (
9898 taLeftJustify, taRightJustify, taRightJustify, taRightJustify,
9999 taRightJustify, taRightJustify, taLeftJustify, taLeftJustify,
100- taLeftJustify, taLeftJustify);
100+ taLeftJustify );
101101 /// ƒXƒŒƒŠƒXƒgƒJƒ‰ƒ€”z—ñ
102102 type TGikoBoardColumnList = class( TList )
103103 private
@@ -105,7 +105,7 @@ type
105105 procedure SetItem( index : integer; value : TGikoBoardColumnID);
106106 public
107107 constructor Create;
108- destructor Destroy; override;
108+ destructor Destroy;
109109 function Add( value : TGikoBoardColumnID ) : Integer;
110110 property Items[index : integer]: TGikoBoardColumnID read GetItem write SetItem; default;
111111 end;
@@ -272,7 +272,7 @@ type
272272 //ƒŠƒXƒgƒJƒ‰ƒ€ƒwƒbƒ_[ƒTƒCƒY
273273 FBBSColumnWidth: array[0..0] of Integer;
274274 FCategoryColumnWidth: array[0..2] of Integer;
275- FBoardColumnWidth: array[0..9] of Integer;
275+ FBoardColumnWidth: array[0..8] of Integer;
276276
277277 /// ƒJƒeƒSƒŠƒŠƒXƒgƒJƒ‰ƒ€‡˜
278278 FBBSColumnOrder : TGikoBBSColumnList;
@@ -346,6 +346,8 @@ type
346346
347347 //ƒXƒŒƒbƒhˆê——XVƒAƒCƒRƒ“•\Ž¦
348348 FListIconVisible: Boolean;
349+ //Žæ“¾”‚Å‚Í‚È‚­–¢Žæ“¾‚ð•\Ž¦‚·‚é
350+ FNonAcquiredCount: Boolean;
349351
350352 //ƒXƒŒƒbƒhˆê——‚ÅLog‚Ì‚ ‚éƒXƒŒƒbƒh‚̂݃XƒŒì¬“ú‚ð•\Ž¦‚·‚é‚©
351353 FCreationTimeLogs: Boolean;
@@ -390,19 +392,12 @@ type
390392
391393 //TabŽ©“®•Û‘¶
392394 FTabAutoLoadSave : Boolean;
393-
394- //‚É‚¿‚á‚ñŒêˆÄ“àƒTƒ|[ƒg‹@”\
395- F2chSupport : Boolean;
396-
397395 // ƒGƒfƒBƒ^
398396 FSpaceToNBSP : Boolean; ///< ”¼ŠpƒXƒy[ƒXATab ‚ð &nbsp; ‚É’uŠ·
399397 FAmpToCharRef : Boolean; ///< '&' ‚ð &amp; ‚É’uŠ·
400398
401399 //ƒuƒ‰ƒEƒUƒ^ƒu”ñ•\Ž¦‚ÌŽž‚̃XƒŒˆê——‚ł̃J[ƒ\ƒ‹ƒL[ˆÚ“®‚Ì–³”½‰žŽžŠÔ
402400 FSelectInterval : Integer;
403-
404- //KuroutSettingTab Ú×Ý’èƒ^ƒu‚ÌActiveTab
405- FKuroutSettingTabIndex: Integer;
406401
407402 function GetMainCoolSet(Index: Integer): TCoolSet;
408403 function GetBoardCoolSet(Index: Integer): TCoolSet;
@@ -648,6 +643,7 @@ type
648643 property BrowserAutoMaximize: TGikoBrowserAutoMaximize read FBrowserAutoMaximize write FBrowserAutoMaximize;
649644
650645 property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
646+ property NonAcquiredCount: Boolean read FNonAcquiredCount write FNonAcquiredCount;
651647 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
652648 property FutureThread: Boolean read FFutureThread write FFutureThread;
653649
@@ -685,10 +681,8 @@ type
685681 property AmpToCharRef : Boolean read FAmpToCharRef write FAmpToCharRef;
686682
687683 property SelectInterval : Integer read FSelectInterval write FSelectInterval;
688- //Tab•Û‘¶
689- property TabAutoLoadSave: Boolean read FTabAutoLoadSave write FTabAutoLoadSave;
690- property GengoSupport : Boolean read F2chSupport write F2chSupport;
691- property KuroutSettingTabIndex: Integer read FKuroutSettingTabIndex write FKuroutSettingTabIndex;
684+ //Tab•Û‘¶
685+ property TabAutoLoadSave: Boolean read FTabAutoLoadSave write FTabAutoLoadSave;
692686 end;
693687
694688
@@ -850,7 +844,7 @@ procedure TSetting.ReadSettingFile();
850844 const
851845 DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
852846 DEFAULT_CATEGORY_WIDTH: array[0..2] of Integer = (150, 80, 130);
853- DEFAULT_BOARD_WIDTH: array[0..9] of Integer = (350, 60, 60, 60, 60, 60, 80, 130, 130, 130);
847+ DEFAULT_BOARD_WIDTH: array[0..8] of Integer = (350, 60, 60, 60, 60, 60, 80, 130, 130);
854848 MAX_WIDTH: Integer = 2000;
855849 var
856850 ini: TMemIniFile;
@@ -1158,6 +1152,7 @@ begin
11581152
11591153 //ƒXƒŒƒbƒhˆê——XVƒAƒCƒRƒ“
11601154 FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
1155+ FNonAcquiredCount := ini.ReadBool('ThreadList', 'NonAcquiredCount', False);
11611156 FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
11621157 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
11631158 FSelectInterval := ini.ReadInteger('ThreadList', 'SelectInterval', 110);
@@ -1223,13 +1218,11 @@ begin
12231218 FDeleteSyria := ini.ReadBool('Abon','DeleteSyria',false);
12241219
12251220 // ƒGƒfƒBƒ^
1226- FSpaceToNBSP := ini.ReadBool( 'Editor', 'SpaceToNBSP', False );
1221+ FSpaceToNBSP := ini.ReadBool( 'Editor', 'SpaceToNBSP', True );
12271222 FAmpToCharRef := ini.ReadBool( 'Editor', 'AmpToCharRef', False );
12281223
1229- //TabŽ©“®•Û‘¶A“ǂݍž‚Ý
1230- FTabAutoLoadSave := ini.ReadBool('TabAuto', 'TabAutoLoadSave', False);
1231-
1232- FKuroutSettingTabIndex := ini.ReadInteger('OptionDialog', 'KuroutTabIndex' , 0);
1224+ //TabŽ©“®•Û‘¶A“ǂݍž‚Ý
1225+ FTabAutoLoadSave := ini.ReadBool('TabAuto', 'TabAutoLoadSave', False);
12331226
12341227
12351228 finally
@@ -1457,6 +1450,7 @@ begin
14571450
14581451 //ƒXƒŒƒbƒhˆê——XVƒAƒCƒRƒ“
14591452 ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1453+ ini.WriteBool('ThreadList', 'NonAcquiredCount', FNonAcquiredCount);
14601454 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
14611455 ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
14621456 ini.WriteInteger('ThreadList', 'SelectInterval', FSelectInterval);
@@ -1555,15 +1549,9 @@ begin
15551549 ini.WriteBool( 'Editor', 'SpaceToNBSP', FSpaceToNBSP );
15561550 ini.WriteBool( 'Editor', 'AmpToCharRef', FAmpToCharRef );
15571551
1558- //ƒ^ƒuŽ©“®•Û‘¶
1559- ini.WriteBool('TabAuto', 'TabAutoLoadSave', FTabAutoLoadSave);
1560- //Ú×Ý’è
1561- ini.WriteInteger('OptionDialog', 'KuroutTabIndex', FKuroutSettingTabIndex);
1562-
1563- //‚É‚¿‚á‚ñŒêˆÄ“à‹@”\
1564- ini.WriteBool('2chSupport', 'Support', F2chSupport);
1552+ ini.WriteBool('TabAuto', 'TabAutoLoadSave', FTabAutoLoadSave);
15651553
1566- ini.UpdateFile;
1554+ ini.UpdateFile;
15671555 finally
15681556 ini.Free;
15691557 end;
--- a/Sort.pas
+++ b/Sort.pas
@@ -17,6 +17,7 @@ var
1717 SortOrder: Boolean;
1818 SortIndex: Integer;
1919 SortNoFlag: Boolean;
20+ SortNonAcquiredCountFlag: Boolean;
2021
2122 implementation
2223
@@ -34,8 +35,6 @@ begin
3435 Result := CompareInt(CategoryItem1.No, CategoryItem2.No)
3536 else
3637 Result := AnsiCompareText(CategoryItem1.Title, CategoryItem2.Title);
37- else
38- Result := CompareInt(CategoryItem1.No, CategoryItem2.No)
3938 end;
4039
4140 if not SortOrder then
@@ -61,8 +60,6 @@ begin
6160
6261 gccLastModified:
6362 Result := CompareDate(BoardItem1.RoundDate, BoardItem2.RoundDate);
64- else
65- Result := CompareInt(BoardItem1.No, BoardItem2.No)
6663 end;
6764
6865 if not SortOrder then
@@ -102,9 +99,8 @@ begin
10299 gbcNewCount: Result := CompareInt(ThreadItem1.NewResCount, ThreadItem2.NewResCount);
103100 gbcUnReadCount: Result := 0;
104101 gbcRoundName: Result := AnsiCompareText(ThreadItem1.RoundName, ThreadItem2.RoundName);
105- gbcRoundDate: Result := CompareDateTime(ThreadItem1.RoundDate, ThreadItem2.RoundDate); {gbcLastModified:}
102+ gbcLastModified: Result := CompareDateTime(ThreadItem1.RoundDate, ThreadItem2.RoundDate);
106103 gbcCreated: Result := CompareDateTime(ThreadItem1.CreateDate, ThreadItem2.CreateDate);
107- gbcLastModified: Result := CompareDateTime(ThreadItem1.LastModified, ThreadItem2.LastModified); {gbcLastModified:}
108104 else
109105 Result := 0;
110106 end;
--- a/YofUtils.pas
+++ b/YofUtils.pas
@@ -40,38 +40,11 @@ function MatchesMask(
4040 const filename, mask : string
4141 ) : boolean;
4242
43-/// ƒƒ^ƒLƒƒƒ‰ƒNƒ^‚𐳋K•\Œ»ˆµ‚¢‚É‚È‚ç‚È‚¢‚悤‚É’uŠ·
43+// ƒƒ^ƒLƒƒƒ‰ƒNƒ^‚𐳋K•\Œ»ˆµ‚¢‚É‚È‚ç‚È‚¢‚悤‚É’uŠ·
4444 function RegExpEncode(
4545 const text : string
4646 ) : string;
4747
48-{*!
49-\brief •\Ž¦ƒƒbƒZ[ƒW‚̐®Œ`
50-\param msg •\Ž¦‚·‚郁ƒbƒZ[ƒW
51-\param elements ’uŠ·’PŒê
52-
53-msg ‚Ì’†‚Ì’uŠ·‚³‚ê‚é’PŒê‚Í '^”ԍ†' ‚Å•\‚³‚êA
54-elements ‚͉üs‚É‚æ‚Á‚Ä’PŒê•ª‚¯‚³‚ê‚Ü‚·B<br>
55-
56-<pre><code>
57-elements := IntToStr( 10 ) + #10 + 'hoge';
58-m := MessageStyle(
59- '^0 ŒÂ‚́g^1h‚ð’uŠ·‚µ‚Ü‚µ‚½B',
60- elements );
61-</code></pre>
62-
63-‚ŏo—Í‚³‚ê‚é m ‚́u10 ŒÂ‚́ghogeh‚ð’uŠ·‚µ‚Ü‚µ‚½Bv‚Æ‚È‚è‚Ü‚·B
64-*}
65-function MessageStyle(
66- const msg : string;
67- const elements : string
68-) : string; overload;
69-
70-function MessageStyle(
71- const msg : string;
72- const elements : TStringList
73-) : string; overload;
74-
7548 type
7649 /// Mode ’l‚ª‚¨‚©‚µ‚¢
7750 EMappedFileModeError = class( Exception );
@@ -104,8 +77,6 @@ const
10477 implementation
10578 //==================================================
10679
107-uses MojuUtils;
108-
10980 // ‚Æ‚è‚ ‚¦‚¸‚Ì‘ã—p•i‚È‚Ì‚Å chrWhite ‚ðl—¶‚µ‚Ä‚¢‚È‚¢‚±‚Æ‚É’ˆÓIII
11081 procedure ExtractHttpFields(
11182 const chrSep : TSysCharSet;
@@ -420,38 +391,6 @@ begin
420391
421392 end;
422393
423-function MessageStyle(
424- const msg : string;
425- const elements : string
426-) : string;
427-var
428- list : TStringList;
429-begin
430-
431- list := TStringList.Create;
432- try
433- list.Text := elements;
434- Result := MessageStyle( msg, list );
435- finally
436- list.Free;
437- end;
438-
439-end;
440-
441-function MessageStyle(
442- const msg : string;
443- const elements : TStringList
444-) : string;
445-var
446- i : Integer;
447-begin
448-
449- Result := msg;
450- for i := elements.Count - 1 downto 0 do
451- Result := CustomStringReplace( Result, '^' + IntToStr( i ), elements[ i ], false );
452-
453-end;
454-
455394 { TMappedFile }
456395
457396 {*!
Binary files a/gikoNavi.res and b/gikoNavi.res differ
--- a/readme/readme.txt
+++ b/readme/readme.txt
@@ -1,4 +1,4 @@
1-¡ƒMƒRƒiƒr Version1.00 ÊÞÀ49 Readme.txt
1+¡ƒMƒRƒiƒr Version1.00 ÊÞÀ48 Readme.txt
22
33
44 ------------------------------
@@ -41,7 +41,7 @@
4141 ------------------------------
4242 ƒoƒO‚â—v–]‚́AƒMƒRƒiƒrƒXƒŒƒbƒh‚Ŏ󂯕t‚¯‚Ä‚¨‚è‚Ü‚·B
4343 ƒMƒRƒiƒrƒTƒCƒgFhttp://gikonavi.sourceforge.jp/
44-ƒMƒRƒiƒrƒXƒŒFhttp://pc5.2ch.net/test/read.cgi/software/1094289071/l50
44+ƒMƒRƒiƒrƒXƒŒFhttp://pc5.2ch.net/test/read.cgi/software/1079685385/l50
4545
4646 ------------------------------
4747 “]Ú‚ɂ‚¢‚Ä
@@ -89,21 +89,6 @@ Windows Server 2003 Enterprise Edition IE6
8989 ------------------------------
9090 —š—ð
9191 ------------------------------
92-2004/10/XX
93- Version ÊÞÀ49
94- ‚¨‹C‚É“ü‚è‚̓ǂݍž‚݂̍‚‘¬‰»‚É‚æ‚é‹N“®ŽžŠÔ‚Ì’Zk
95- StatusBar‚ÉNGƒ[ƒhƒtƒ@ƒCƒ‹‚Ì–¼‘O‚ªo‚È‚¢•s‹ï‡‚̏C³
96- uŽw’肵‚½”ԍ†‚̃ŒƒX‚É”ò‚ԁv‹@”\’ljÁiƒL[Ý’è‚ŁAƒXƒŒƒbƒhƒJƒeƒSƒŠ‚̈ê”ԍŌãj
97- ƒƒO‚ðíœ‚µ‚½Û‚É–¢“ǃXƒŒƒbƒh” (UnRead) ‚Ì•\Ž¦‚ªXV‚³‚ê‚È‚¢ƒoƒO‚ðC³
98- ‚±‚±‚ɃŒƒX‚¾‚ƁAƒŒƒXƒGƒfƒBƒ^[‚̃Vƒ‡[ƒgƒJƒbƒgƒL[‚ªÝ’肳‚ê‚È‚¢•s‹ï‡‚̏C³
99- ‚ ‚ځ[‚ñŽž‚ɃRƒR‚Ü‚Å“Ç‚ñ‚¾‚ƐV’…ƒŒƒX‚𒲐®‚·‚é‚Ì‚É•s‹ï‡‚ª‚ ‚Á‚½‚̂ŏC³
100- ƒXƒŒƒbƒhˆê——‚Ì•\Ž¦ƒJƒ‰ƒ€‚̐ݒ肪‚Å‚«‚é‚悤‚É‚È‚Á‚½BuƒIƒvƒVƒ‡ƒ“v->uÚ×Ý’èv->uÚ×Ý’è2v
101- ƒfƒtƒHƒ‹ƒg‚ł̃ŒƒXƒAƒ“ƒJ[ƒ|ƒbƒvƒAƒbƒv‚ªŽíŽí‚ÌŒ`Ž®‚ɑΉž
102- ‚R‚¿‚á‚ñ‚Ë‚éi8‚¿‚á‚ñ‚Ë‚éj‚ð“o˜^‚·‚é‚Æ‚Q‚¿‚á‚ñ‚Ë‚é‚̔‚ª•\Ž¦‚³‚ê‚é•s‹ï‡‚̉ðÁ
103- ‚¨‹C‚É“ü‚è‚ŕҏW’†‚ɃXƒy[ƒXƒL[“ü—Í‚Ì•s‹ï‡‚̏C³
104- ‚µ‚½‚ç‚ÎJBBS‚̉ߋŽƒƒO‚ÉŠÖ‚·‚é•s‹ï‡‚̏C³
105- ƒXƒŒƒbƒh‚̃Šƒ“ƒN‚ŃŒƒX”Ô‚ª‚ ‚é‚à‚̂𓥂ñ‚¾‚Æ‚«‚ɁA‚»‚̃ŒƒX”ԍ†‚܂ŃXƒNƒ[ƒ‹‚·‚é‚悤‚É‚µ‚½B
106-
10792 2004/09/05
10893 Version ÊÞÀ48
10994 ƒŒƒXƒ|ƒbƒvƒAƒbƒv‚ ‚ځ`‚ñ—LŒø‚É‚µ‚Ä‚¢‚Ä‚àA“§–¾‚ ‚ځ`‚ñ‚ð•\Ž¦‚·‚é•s‹ï‡‚̉ðÁ
--- a/res/ExternalBoardPlugIn/ShitarabaJBBSPlugIn.dpr
+++ b/res/ExternalBoardPlugIn/ShitarabaJBBSPlugIn.dpr
@@ -3,7 +3,7 @@ library ShitarabaJBBSPlugIn;
33 {
44 ShitarabaJBBSPlugIn
55 ‚µ‚½‚ç‚Ώˆ—ƒ†ƒjƒbƒg
6- $Id: ShitarabaJBBSPlugIn.dpr,v 1.36 2004/09/30 11:49:44 h677 Exp $
6+ $Id: ShitarabaJBBSPlugIn.dpr,v 1.30 2004/09/06 16:41:41 h677 Exp $
77 }
88
99 uses
@@ -33,7 +33,7 @@ type
3333
3434 private
3535 function Download : TDownloadState;
36- function StorageDownload(AURL : string) : TDownloadState;
36+ function StorageDownload(Path, Document : string) : TDownloadState;
3737 function Write( inName : string; inMail : string; inMessage : string ) : TDownloadState;
3838 function GetRes( inNo : Integer ) : string;
3939 function GetDat( inNo : Integer ) : string;
@@ -281,8 +281,7 @@ var
281281 // i : Integer;
282282 const
283283 BBS_HOST_OLD = 'jbbs.shitaraba.com';
284- BBS_HOST_OLD2 = 'jbbs.livedoor.com';
285- BBS_HOST = 'jbbs.livedoor.jp';
284+ BBS_HOST = 'jbbs.livedoor.com';
286285 THREAD_MARK = '/bbs/read.cgi';
287286 begin
288287
@@ -291,7 +290,7 @@ begin
291290 uri := TIdURI.Create( inURL );
292291 uriList := TStringList.Create;
293292 try
294- if (uri.Host = BBS_HOST_OLD) or (uri.Host = BBS_HOST_OLD2) then
293+ if uri.Host = BBS_HOST_OLD then
295294 uri.Host := BBS_HOST;
296295
297296 ExtractHttpFields( ['/'], [], uri.Path, uriList );
@@ -350,13 +349,12 @@ var
350349
351350 found : Integer;
352351 found2 : Integer;
353- pos : Integer;
354352 board : string;
355353 const
356354 CATEGORY_INPUT = 'ƒJƒeƒSƒŠ‚ð“ü—Í‚µ‚Ä‚­‚¾‚³‚¢';
357355 KEYWORD_INPUT = 'ŒŸõ‚·‚é”–¼‚ð“ü—Í‚µ‚Ä‚­‚¾‚³‚¢';
358356 SAVEPATH_SELECT = '•Û‘¶‚·‚éƒtƒ@ƒCƒ‹–¼‚ð“ü—Í‚µ‚Ä‚­‚¾‚³‚¢';
359- BBS_HOST = 'http://jbbs.livedoor.jp/';
357+ BBS_HOST = 'http://jbbs.livedoor.com/';
360358 label
361359 NextBoard;
362360 begin
@@ -439,12 +437,8 @@ begin
439437
440438 saveText.Add( board );
441439 NextBoard:
442- found := AnsiPos( '<a ', downResult );
440+ found := AnsiPos( '<a ', downResult );
443441 end;
444- pos := saveText.IndexOf('JBBS=/');
445- if pos > 0 then
446- saveText.Delete(pos);
447-
448442 saveText.SaveToFile( savepath );
449443 saveText.Free;
450444 end else begin
@@ -505,14 +499,22 @@ begin
505499 uriList := TStringList.Create;
506500 try
507501 ExtractHttpFields( ['/', '?'], [], uri.Path, uriList );
508- if uriList[ 5 ] = 'l100' then begin
509- FileName := uriList[ 4 ] + '.dat';
510- FilePath := MyLogFolder + uriList[ 2 ] + '\' + uriList[ 3 ] + '\' + uriList[ 4 ] + '.dat';
511- IsLogFile := FileExists( FilePath );
512- end else begin
513- FileName := uriList[ 5 ] + '.dat';
514- FilePath := MyLogFolder + uriList[ 3 ] + '\' + uriList[ 4 ] + '\' + uriList[ 5 ] + '.dat';
502+ if (AnsiPos('.html', uri.Document) = 0) then begin //’ʏí
503+ if uriList[ 5 ] = 'l100' then begin
504+ FileName := uriList[ 4 ] + '.dat';
505+ FilePath := MyLogFolder + uriList[ 2 ] + '\' + uriList[ 3 ] + '\' + uriList[ 4 ] + '.dat';
506+ IsLogFile := FileExists( FilePath );
507+ end else begin
508+ FileName := uriList[ 5 ] + '.dat';
509+ FilePath := MyLogFolder + uriList[ 3 ] + '\' + uriList[ 4 ] + '\' + uriList[ 5 ] + '.dat';
510+ IsLogFile := FileExists( FilePath );
511+ end;
512+ end else begin //‰ß‹ŽƒƒO
513+ //http://jbbs.livedoor.com/game/1578/storage/1086710948.html
514+ FileName := Copy(uri.Document, 1, Length(uri.Document) - 5) + '.dat';
515+ FilePath := MyLogFolder + CustomStringReplace(CustomStringReplace(uri.Path, '/storage', ''), '/', '\') + FileName;
515516 IsLogFile := FileExists( FilePath );
517+
516518 end;
517519 finally
518520 uri.Free;
@@ -549,109 +551,115 @@ var
549551 logStream : TFileStream;
550552 uri : TIdURI;
551553 uriList : TStringList;
552- datURL, tmpURL : string;
553- tmpText: string;
554+ datURL : string;
555+ tmpText: string;
554556 begin
555557
556558 Result := dsError;
557559
558560 uri := TIdURI.Create( ReadURL );
559- uriList := TStringList.Create;
560- try
561- ExtractHttpFields( ['/', '?'], [], uri.Path, uriList );
562- FileName := uriList[ 5 ] + '.dat';
563- // http://jbbs.livedoor.com/bbs/rawmode.cgi/game/1578/1067968274/l100
564- // protocol://host/1/2/3/4/5/uriList.Count - 1
565- if MyLogFolder = '' then begin
566- // ‚Ç‚±‚É•Û‘¶‚µ‚Ä‚¢‚¢‚Ì‚©•ª‚©‚ç‚È‚¢‚̂ňꎞƒtƒ@ƒCƒ‹‚É•Û‘¶
567- FilePath := TemporaryFile;
568- FIsTemporary := True;
569- end else begin
570- FilePath := MyLogFolder + uriList[ 3 ] + '\' + uriList[ 4 ] + '\' + uriList[ 5 ] + '.dat';
571- FIsTemporary := False;
572- end;
573- finally
561+ if(( AnsiPos('.html', uri.Document) >0 ) and ( AnsiPos('/storage/', uri.Path) > 0 )) then begin
562+ //‰ß‹ŽƒƒO
563+ Result := StorageDownload(uri.Path, uri.Document);
574564 uri.Free;
575- uriList.Free;
576- end;
565+ end else begin
566+ //Œ»Ý¶‚«‚Ä‚éƒXƒŒƒbƒh
567+ uriList := TStringList.Create;
568+ try
569+ ExtractHttpFields( ['/', '?'], [], uri.Path, uriList );
570+ FileName := uriList[ 5 ] + '.dat';
571+ // http://jbbs.livedoor.com/bbs/rawmode.cgi/game/1578/1067968274/l100
572+ // protocol://host/1/2/3/4/5/uriList.Count - 1
573+ if MyLogFolder = '' then begin
574+ // ‚Ç‚±‚É•Û‘¶‚µ‚Ä‚¢‚¢‚Ì‚©•ª‚©‚ç‚È‚¢‚̂ňꎞƒtƒ@ƒCƒ‹‚É•Û‘¶
575+ FilePath := TemporaryFile;
576+ FIsTemporary := True;
577+ end else begin
578+ FilePath := MyLogFolder + uriList[ 3 ] + '\' + uriList[ 4 ] + '\' + uriList[ 5 ] + '.dat';
579+ FIsTemporary := False;
580+ end;
581+ finally
582+ uri.Free;
583+ uriList.Free;
584+ end;
577585
578- // •Û‘¶—p‚̃fƒBƒŒƒNƒgƒŠ‚ðŒ@‚é
579- ForceDirectoriesEx( Copy( FilePath, 1, LastDelimiter( '\', FilePath ) ) );
586+ // •Û‘¶—p‚̃fƒBƒŒƒNƒgƒŠ‚ðŒ@‚é
587+ ForceDirectoriesEx( Copy( FilePath, 1, LastDelimiter( '\', FilePath ) ) );
580588
581- // “ÆŽ©‚Ƀ_ƒEƒ“ƒ[ƒh‚âƒtƒBƒ‹ƒ^ƒŠƒ“ƒO‚ðs‚í‚È‚¢ê‡‚Í
582- // InternalDownload ‚É”C‚¹‚邱‚Æ‚ªo—ˆ‚é
583- modified := LastModified;
584- datURL := ReadURL + IntToStr( Count + 1 ) + '-'; // V’…‚Ì‚Ý
585- responseCode := InternalDownload( PChar( datURL ), modified, tmp, 0 );
589+ // “ÆŽ©‚Ƀ_ƒEƒ“ƒ[ƒh‚âƒtƒBƒ‹ƒ^ƒŠƒ“ƒO‚ðs‚í‚È‚¢ê‡‚Í
590+ // InternalDownload ‚É”C‚¹‚邱‚Æ‚ªo—ˆ‚é
591+ modified := LastModified;
592+ datURL := ReadURL + IntToStr( Count + 1 ) + '-'; // V’…‚Ì‚Ý
593+ responseCode := InternalDownload( PChar( datURL ), modified, tmp, 0 );
586594
587- try
588- if (responseCode = 200) or (responseCode = 206) then begin
589- downResult := TStringList.Create;
590- try
591- tmpText := CustomStringReplace( string( tmp ), '¡÷¡®', ',' );
592- downResult.Text := EUCtoSJIS( tmpText );
593- ArrangeDownloadData(Count, downResult);
594- if downResult.Count > 0 then begin
595- if FileExists( FilePath ) then
596- logStream := TFileStream.Create( FilePath, fmOpenReadWrite or fmShareDenyWrite )
597- else
598- logStream := TFileStream.Create( FilePath, fmCreate or fmShareDenyWrite );
599- try
600- logStream.Position := logStream.Size;
601- logStream.Write( PChar( downResult.Text )^, Length( downResult.Text ) );
602- finally
603- logStream.Free;
604- end;
595+ try
596+ if (responseCode = 200) or (responseCode = 206) then begin
597+ downResult := TStringList.Create;
598+ try
599+ tmpText := CustomStringReplace( string( tmp ), '¡÷¡®', ',' );
600+ downResult.Text := EUCtoSJIS( tmpText );
601+ ArrangeDownloadData(Count, downResult);
602+ if downResult.Count > 0 then begin
603+ if FileExists( FilePath ) then
604+ logStream := TFileStream.Create( FilePath, fmOpenReadWrite or fmShareDenyWrite )
605+ else
606+ logStream := TFileStream.Create( FilePath, fmCreate or fmShareDenyWrite );
607+ try
608+ logStream.Position := logStream.Size;
609+ logStream.Write( PChar( downResult.Text )^, Length( downResult.Text ) );
610+ finally
611+ logStream.Free;
612+ end;
605613
606- if Count = 0 then
607- // V‹K
608- Result := dsComplete
609- else
610- // ’Ç‹L
611- Result := dsDiffComplete;
614+ if Count = 0 then
615+ // V‹K
616+ Result := dsComplete
617+ else
618+ // ’Ç‹L
619+ Result := dsDiffComplete;
612620
613- Size := Size + Length( downResult.Text );
614- // CGI ‚©‚ç‚͐³‚µ‚¢“ú•t‚ª“¾‚ç‚ê‚È‚¢‚Ì‚ÅŒ»Ý‚ɐݒè
615- LastModified := Now;
621+ Size := Size + Length( downResult.Text );
622+ // CGI ‚©‚ç‚͐³‚µ‚¢“ú•t‚ª“¾‚ç‚ê‚È‚¢‚Ì‚ÅŒ»Ý‚ɐݒè
623+ LastModified := Now;
616624
617625
618626
619- NewReceive := Count + 1;
620- Count := Count + downResult.Count;
621- NewResCount := downResult.Count;
627+ NewReceive := Count + 1;
628+ Count := Count + downResult.Count;
629+ NewResCount := downResult.Count;
622630
623631
624632
625- end else begin
626- Result := dsNotModify;
633+ end else begin
634+ Result := dsNotModify;
635+ end;
636+ finally
637+ downResult.Free;
627638 end;
628- finally
629- downResult.Free;
630- end;
631- end else if responseCode = 302 then begin
632- //http://jbbs.shitaraba.com/bbs/read.cgi/game/3477/1077473358/
633- //http://jbbs.shitaraba.com/game/bbs/read.cgi?BBS=3477&KEY=1077473358
634- //http://jbbs.shitaraba.com/game/3477/storage/1077473358.html
635- //‰ß‹ŽƒƒO
636- //tmpURL := URL;
637- if Assigned( InternalPrint ) then
638- InternalPrint( '‰ß‹ŽƒƒO‘qŒÉ“ü‚è' );
639- uri := TIdURI.Create( ReadURL );
640- uriList := TStringList.Create;
641- try
642- ExtractHttpFields( ['/', '?'], [], uri.Path, uriList );
643- tmpURL := uri.Protocol + '://' + uri.Host +
644- '/' + uriList[3] + '/' + uriList[4] + '/storage/' + uriList[ 5 ] + '.html';
645- finally
646- uriList.Free;
639+ end else if responseCode = 302 then begin
640+ //http://jbbs.shitaraba.com/bbs/read.cgi/game/3477/1077473358/
641+ //http://jbbs.shitaraba.com/game/bbs/read.cgi?BBS=3477&KEY=1077473358
642+ //http://jbbs.shitaraba.com/game/3477/storage/1077473358.html
643+ //‰ß‹ŽƒƒO
644+ uri := TIdURI.Create( ReadURL );
645+ uriList := TStringList.Create;
646+ try
647+ ExtractHttpFields( ['/', '?'], [], uri.Path, uriList );
648+ URL := uri.Protocol + '://' + uri.Host +
649+ '/' + uriList[3] + '/' + uriList[4] + '/storage/' + uriList[ 5 ] + '.html';
650+ finally
651+ uriList.Free;
652+ uri.Free;
653+ end;
654+ uri := TIdURI.Create( ReadURL );
655+ Result := StorageDownload(uri.Path, uri.Document);
647656 uri.Free;
657+ end else if responseCode = 304 then begin
658+ Result := dsNotModify;
648659 end;
649- Result := StorageDownload(tmpURL);
650- end else if responseCode = 304 then begin
651- Result := dsNotModify;
660+ finally
661+ DisposeResultString( tmp );
652662 end;
653- finally
654- DisposeResultString( tmp );
655663 end;
656664
657665 end;
@@ -691,16 +699,17 @@ end;
691699 // ‰ß‹ŽƒƒO—pDownloadŠÖ”
692700 // *************************************************************************
693701 function TShitarabaThreadItem.StorageDownload(
694- AURL : string
702+ Path, Document : string
695703 ) : TDownloadState;
696704 var
697705 modified : Double;
698706 tmp : PChar;
699- uri : TIdURI;
700- uriList : TStringList;
701707 downResult : TStringList;
702708 responseCode : Longint;
703709 logStream : TFileStream;
710+ //uri : TIdURI;
711+ //uriList : TStringList;
712+ datURL : string;
704713 tmpText, tmpLine, tmpTitle: string;
705714 tmpHTML: TStringList;
706715
@@ -709,24 +718,23 @@ var
709718 begin
710719
711720 Result := dsError;
712- uri := TIdURI.Create( ReadURL );
713- uriList := TStringList.Create;
721+
722+ //uri := TIdURI.Create( ReadURL );
714723 try
715- ExtractHttpFields( ['/', '?'], [], uri.Path, uriList );
716- FileName := uriList[ 5 ] + '.dat';
717- // http://jbbs.livedoor.com/bbs/rawmode.cgi/game/1578/1067968274/l100
718- // protocol://host/1/2/3/4/5/uriList.Count - 1
724+ FileName := Copy(Document, 1, Length(Document) - 5) + '.dat';
719725 if MyLogFolder = '' then begin
720726 // ‚Ç‚±‚É•Û‘¶‚µ‚Ä‚¢‚¢‚Ì‚©•ª‚©‚ç‚È‚¢‚̂ňꎞƒtƒ@ƒCƒ‹‚É•Û‘¶
721727 FilePath := TemporaryFile;
722728 FIsTemporary := True;
723729 end else begin
724- FilePath := MyLogFolder + uriList[ 3 ] + '\' + uriList[ 4 ] + '\' + uriList[ 5 ] + '.dat';
730+ FilePath := MyLogFolder
731+ + CustomStringReplace(CustomStringReplace(Path, '/storage', ''), '/', '\')
732+ + FileName;
733+
725734 FIsTemporary := False;
726735 end;
727736 finally
728- uri.Free;
729- uriList.Free;
737+ //uri.Free;
730738 end;
731739
732740 // •Û‘¶—p‚̃fƒBƒŒƒNƒgƒŠ‚ðŒ@‚é
@@ -738,7 +746,8 @@ begin
738746 // InternalDownload ‚É”C‚¹‚邱‚Æ‚ªo—ˆ‚é
739747 modified := LastModified;
740748
741- responseCode := InternalDownload( PChar( AURL ), modified, tmp, 0 );
749+ datURL := ReadURL;
750+ responseCode := InternalDownload( PChar( datURL ), modified, tmp, 0 );
742751
743752 try
744753 if (responseCode = 200) or (responseCode = 206) then begin
@@ -1149,8 +1158,7 @@ var
11491158 tmphost: String;
11501159 const
11511160 BBS_HOST_OLD = 'jbbs.shitaraba.com';
1152- BBS_HOST_OLD2 = 'jbbs.livedoor.com';
1153- BBS_HOST = 'jbbs.livedoor.jp';
1161+ BBS_HOST = 'jbbs.livedoor.com';
11541162 begin
11551163
11561164 uri := TIdURI.Create( ReadURL );
@@ -1160,15 +1168,22 @@ begin
11601168
11611169 tmphost := uri.Host;
11621170
1163- if (tmphost = BBS_HOST_OLD) or (tmphost = BBS_HOST_OLD2) then
1171+ if tmphost = BBS_HOST_OLD then
11641172 tmphost := BBS_HOST;
11651173
1166- FileName := uriList[ 5 ] + '.dat';
1167- // http://jbbs.livedoor.com/bbs/read.cgi/computer/351/1090404452/l100
1168- // http://jbbs.livedoor.com/bbs/read.cgi/game/1578/1067968274/l100
1169- // http://jbbs.livedoor.com/game/1000/subject.txt
1170- Result := CreateResultString(
1171- uri.Protocol + '://' + tmphost + '/' + uriList[ 3 ] + '/' + uriList[ 4 ] + '/' );
1174+ if( AnsiPos('.html', uri.Document) = 0 ) then begin //’ʏí
1175+ FileName := uriList[ 5 ] + '.dat';
1176+ // http://jbbs.livedoor.com/bbs/read.cgi/computer/351/1090404452/l100
1177+ // http://jbbs.livedoor.com/bbs/read.cgi/game/1578/1067968274/l100
1178+ // http://jbbs.livedoor.com/game/1000/subject.txt
1179+ Result := CreateResultString(
1180+ uri.Protocol + '://' + tmphost + '/' + uriList[ 3 ] + '/' + uriList[ 4 ] + '/' );
1181+ end else begin
1182+ //http://jbbs.livedoor.com/game/1578/storage/1086710948.html
1183+ Result := CreateResultString(
1184+ uri.Protocol + '://' + tmphost + CustomStringReplace(uri.Path, '/storage', ''));
1185+ end;
1186+
11721187 finally
11731188 uri.Free;
11741189 uriList.Free;
@@ -1218,8 +1233,7 @@ var
12181233 dir, tmphost : string;
12191234 const
12201235 BBS_HOST_OLD = 'jbbs.shitaraba.com';
1221- BBS_HOST_OLD2 = 'jbbs.livedoor.com';
1222- BBS_HOST = 'jbbs.livedoor.jp';
1236+ BBS_HOST = 'jbbs.livedoor.com';
12231237 begin
12241238
12251239 foundPos := AnsiPos( '?', URL );
@@ -1232,7 +1246,7 @@ begin
12321246 dir := uriList[ 1 ];
12331247
12341248 tmphost := uri.Host;
1235- if (tmphost = BBS_HOST_OLD) or (tmphost = BBS_HOST_OLD2) then
1249+ if tmphost = BBS_HOST_OLD then
12361250 tmphost := BBS_HOST;
12371251
12381252 ExtractHttpFields( ['&'], [], Copy( URL, foundPos + 1, MaxInt ), uriList );
@@ -1254,7 +1268,7 @@ begin
12541268 ExtractHttpFields( ['/'], [], uri.Path, uriList );
12551269
12561270 tmphost := uri.Host;
1257- if (tmphost = BBS_HOST_OLD) or (tmphost = BBS_HOST_OLD2) then
1271+ if tmphost = BBS_HOST_OLD then
12581272 tmphost := BBS_HOST;
12591273
12601274 if( AnsiPos(THREAD_MARK, URL) > 0) and (uriList.Count > 5) then begin
@@ -1265,8 +1279,7 @@ begin
12651279 end else if AnsiPos(THREAD_MARK, URL) = 0 then begin
12661280 //ƒRƒR‚ʼnߋŽƒƒO‚©‚Ç‚¤‚©ƒ`ƒFƒbƒNH
12671281 if(AnsiPos('.html/', uri.Path) > 0) then begin
1268- Result := uri.Protocol + '://' + tmphost + THREAD_MARK +
1269- CustomStringReplace(CustomStringReplace(uri.Path, '/storage', ''), '.html/', '/') + 'l100';
1282+ Result := uri.Protocol + '://' + tmphost + Copy(uri.Path, 1, Length(uri.Path) - 1);
12701283 end else
12711284 Result := URL;
12721285 end;
@@ -1291,8 +1304,7 @@ var
12911304 dir, tmphost : string;
12921305 const
12931306 BBS_HOST_OLD = 'jbbs.shitaraba.com';
1294- BBS_HOST_OLD2 = 'jbbs.livedoor.com';
1295- BBS_HOST = 'jbbs.livedoor.jp';
1307+ BBS_HOST = 'jbbs.livedoor.com';
12961308 begin
12971309
12981310 foundPos := AnsiPos( '?', URL );
@@ -1305,7 +1317,7 @@ begin
13051317 dir := uriList[ 1 ];
13061318
13071319 tmphost := uri.Host;
1308- if (tmphost = BBS_HOST_OLD) or (tmphost = BBS_HOST_OLD2) then
1320+ if tmphost = BBS_HOST_OLD then
13091321 tmphost := BBS_HOST;
13101322
13111323 ExtractHttpFields( ['&'], [], Copy( URL, foundPos + 1, MaxInt ), uriList );
@@ -1327,13 +1339,19 @@ begin
13271339 ExtractHttpFields( ['/'], [], uri.Path, uriList );
13281340
13291341 tmphost := uri.Host;
1330- if (tmphost = BBS_HOST_OLD) or (tmphost = BBS_HOST_OLD2) then
1342+ if tmphost = BBS_HOST_OLD then
13311343 tmphost := BBS_HOST;
13321344 // http://jbbs.livedoor.com/bbs/read.cgi/game/1578/1067968274/l100
13331345 if( AnsiPos(THREAD_MARK, URL) > 0) and (uriList.Count > 5) then begin
13341346 Result :=
13351347 uri.Protocol + '://' + tmphost + '/bbs/rawmode.cgi/' +
13361348 uriList[ 3 ] + '/' + uriList[ 4 ] + '/' + uriList[ 5 ] + '/';
1349+ end else if AnsiPos(THREAD_MARK, URL) = 0 then begin
1350+ //ƒRƒR‚ʼnߋŽƒƒO‚©‚Ç‚¤‚©ƒ`ƒFƒbƒNH
1351+ if(AnsiPos('.html/', uri.Path) > 0) then begin
1352+ Result := uri.Protocol + '://' + tmphost + Copy(uri.Path, 1, Length(uri.Path) - 1);
1353+ end else
1354+ Result := URL;
13371355 end;
13381356 finally
13391357 uri.Free;
@@ -1415,8 +1433,7 @@ var
14151433 uriList : TStringList;
14161434 const
14171435 BBS_HOST_OLD = 'jbbs.shitaraba.com';
1418- BBS_HOST_OLD2 = 'jbbs.livedoor.com';
1419- BBS_HOST = 'jbbs.livedoor.jp';
1436+ BBS_HOST = 'jbbs.livedoor.com';
14201437 begin
14211438
14221439 inherited;
@@ -1433,7 +1450,7 @@ begin
14331450 uri := TIdURI.Create( SubjectURL );
14341451 uriList := TStringList.Create;
14351452 try
1436- if (uri.Host = BBS_HOST_OLD) or (uri.Host = BBS_HOST_OLD2) then
1453+ if uri.Host = BBS_HOST_OLD then
14371454 uri.Host := BBS_HOST;
14381455 URL := uri.Protocol + '://' + uri.Host + uri.Path;
14391456
--- a/res/skin/skin30-2G/Header.html
+++ b/res/skin/skin30-2G/Header.html
@@ -15,7 +15,7 @@
1515 var start_time = new Date();
1616 //==========ƒOƒ[ƒoƒ‹•Ï”
1717 var anchorHead="";
18-var skinName="skin30-2 v3.3.09xx";
18+var skinName="skin30-2 v3.1.11xx";
1919 var browser="ƒMƒRƒiƒr";
2020 //==========ƒMƒRƒiƒr—pƒAƒ“ƒJ[‚Ì”»’èi0:ˆ—–³‚µ,1:ƒ|ƒbƒvƒAƒbƒv,2:ƒ{ƒ^ƒ“‘}“üj
2121 // ƒMƒRƒiƒr‚ł́AƒŒƒXƒAƒ“ƒJ[‚Í‘Š‘΃AƒhƒŒƒX‚Å‹Lq‚³‚ê‚é
@@ -27,22 +27,13 @@ function checkAnchor(href){if(!href){return(0)}
2727 //==========ƒŠƒ“ƒNÝ’è
2828 function addAnchor(inner,num){
2929 if(!t_url){threadurl()}
30- var url=document.getElementsByName("ThreadURL")[0].content;
31- if(url.match(/&/)){
32- return('<a href="../test/read.cgi?bbs='+t_bbs+'&key='+t_key+'&st='+inner+'&to='+inner+'&nofirst=true" target="_blank" onclick="blur()">'+num+'</a>')
33- }else{
34- return('<a href="../test/read.cgi/'+t_bbs+'/'+t_key+'/'+inner+'" target="_blank" onclick="blur()">'+num+'</a>')
35- }
30+ return('<a href="../test/read.cgi/'+t_bbs+'/'+t_key+'/'+inner+'" target="_blank" onclick="blur()">'+num+'</a>')
3631 }
3732 // ƒXƒŒƒbƒhURL‚̎擾
3833 var t_url=false,t_domain,t_bbs,t_key;
3934 function threadurl(){
4035 var threadurl=document.getElementsByName("ThreadURL")[0].content;
41- if(threadurl.match(/&/)){
42- threadurl.match(/bbs=(.*)&key=(\d*)/);
43- }else{
44- threadurl.match(/^.*\/test\/read.cgi\/(.*)\/(.*)\//);
45- }
36+ threadurl.match(/^.*\/test\/read.cgi\/(.*)\/(.*)\//);
4637 t_url=true;
4738 t_bbs=RegExp.$1;
4839 t_key=RegExp.$2;
--- a/res/skin/skin30-2G/chie_event.js
+++ b/res/skin/skin30-2G/chie_event.js
@@ -2,8 +2,7 @@
22 //ŠO•”ŠÖ”Ftohan
33 //ŠO•”•Ï”FanchorHead,lightmode,getID,skinName,browser,dts
44 //ƒOƒ[ƒoƒ‹•Ï”
5-var buffer=1; // ’ᑬ‰ñü‚â’ᑬƒ}ƒVƒ“‚̏ꍇ‚É‚Íbuffer‚̐”’l‚𑝂₷‚Æ‚æ‚萳Šm‚ɃWƒƒƒ“ƒvi1‘‚â‚·‚Æ0.1•b’x‚ê‚éj
6-var newResJump=1; // V’…ƒŒƒXƒWƒƒƒ“ƒvi0:ƒuƒ‰ƒEƒU”C‚¹A1:“Ç—¹Žž‚̂݁A2:íŽžj–‚©‚¿‚ãAOpenJaneAtwintail‚݂̂̐ݒè
5+var buffer=1; // ’ᑬ‰ñü‚â’ᑬƒ}ƒVƒ“‚̏ꍇ‚É‚Íbuffer‚̐”’l‚𑝂₷‚Æ‚æ‚萳Šm‚ɃWƒƒƒ“ƒvi1‘‚â‚·‚Æ0.1•b’x‚ê‚éj
76 //========Clickˆ—¨search,‘¼
87 document.onclick = clickEvent;
98 function clickEvent(){
@@ -41,19 +40,10 @@ function mouseOverEvent() {
4140 else if(e.innerText.match(/^‚ ‚ځ`‚ñ$/)) {abonePopup(e);}
4241 }
4342 if(e.tagName=='A'){
44- if(!e.innerText.match(/%/)){ // URLƒGƒ“ƒR[ƒh‚Å‚ ‚肪‚¿‚È%‚ª‚È‚¯‚ê‚Î
45- e.href=e.href.replace(/>/g,"");
46- e.href=e.href.replace(/\/ime.nu/g,"");
47- }else{
48- try{
49- e.title=decodeURI(e.innerText);
50- }catch(err){
51- // ShiftJIS,EUC-JP‚̃fƒR[ƒh‚Í–Ê“|‚¾‚©‚ç‚‚¯‚È‚¢B
52- }
53- }
43+ e.href=e.href.replace(/>/g,"");
44+ e.href=e.href.replace(/\/ime.nu/g,"");
5445 if (checkAnchor(e.href)==2){insButton(e);return;}
5546 else if(checkAnchor(e.href)==1){
56- if(event.shiftKey){if(e.rel){e.href=e.rel}return}
5747 // ‘½’iƒ|ƒbƒvƒAƒbƒv
5848 var aNum=parseInt(e.sourceIndex)+1;
5949 if(!document.getElementById("p"+aNum)){
@@ -106,10 +96,10 @@ function scroll_End(){document.getElementsByTagName("DL")[0].lastChild.scrollInt
10696 // IMG
10797 function imgCommand(mode,s){
10898 if(!waited){
109- var nHTML='<div id="command" onclick="clearCommand()"><input type="button" onclick="allImageLoad(\'all\')" value="‘SƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="allImageLoad(\'new\')" value="VƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="removeError()" value="Error‰æ‘œíœ"><br></div>';
99+ var nHTML='<div id="command" onclick="clearCommand()"><input type="button" onclick="allImageLoad(\'all\')" value="‘SƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="allImageLoad(\'new\')" value="VƒŒƒXˆêŠ‡“Ǎž"><br></div>';
110100 event.srcElement.parentElement.insertAdjacentHTML('beforeEnd',nHTML);
111101 if(skinName.match(/30-2/)){
112- //if(!lightmode){document.getElementById("command").insertAdjacentHTML('afterBegin','<input type="button" onclick="changePanel()" value="ƒpƒlƒ‹Ø‘Ö"><br>')}
102+ if(!lightmode){document.getElementById("command").insertAdjacentHTML('afterBegin','<input type="button" onclick="changePanel()" value="ƒpƒlƒ‹Ø‘Ö"><br>')}
113103 document.getElementById("command").insertAdjacentHTML('beforeEnd','<input type="button" onclick="changeMode()" value="ƒ‚[ƒhØ‘Ö">')
114104 }
115105 waited=true;
@@ -119,7 +109,7 @@ function imgCommand(mode,s){
119109 }
120110 function clearCommand(){
121111 waited=false;
122- document.getElementById("command").removeNode(true);
112+ event.srcElement.parentElement.removeNode(true);
123113 }
124114 //=========¶’·‰Ÿˆ—¨copyMenu()
125115 document.onmousedown=mousedownEvent;
@@ -132,7 +122,6 @@ function mousedownEvent(){
132122 clickTimer=setTimeout("copyMenu()",500);
133123 }
134124 }
135-
136125 //ƒRƒs[ƒƒjƒ…[¨colorChange(),search::copyText()
137126 function copyMenu(){
138127 clickCancel=true; clearTimeout(clickTimer);
@@ -176,53 +165,27 @@ function key(){
176165 }
177166 }
178167
179-//=========V’…ƒŒƒXŽæ“¾Œãˆ—i•W€ƒXƒLƒ“–¢‘Ήžƒuƒ‰ƒEƒU—pj©Timer–”‚ÍFooter‚©‚çŒÄ‚яo‚µ
180-//=========‚©‚¿‚ãAABoneAƒ]ƒk‚Q
168+//=========Loadi‘ã‘ցjˆ—iŠeFooter‚à‚µ‚­‚́AHeader‚ł̃‹[ƒv‚©‚çŒÄo‚µj
181169 var newResNum=parseInt(document.getElementsByName("GetRescount")[0].content)+1;
182170 var k=0;
183-function loadEvent(num){ // Timer–”‚ÍFooter‚©‚ç
184- //====V’…ƒŒƒXƒWƒƒƒ“ƒv
185- if(newResJump==0){clearInterval(timerID);return} //uƒuƒ‰ƒEƒU”C‚¹v‚È‚çI—¹
186- //V’…ƒŒƒX‚ÌŠJŽn”ԍ†‚ðŽæ“¾
187- if (browser=="‚©‚¿‚ã`‚µ‚á"){if(isNaN(newResNum)){while(dts[k]){if(dts[k].className=="new"){newResNum=parseInt(dts[k].firstChild.innerText);break;} k++;}}}
188- else if(browser=="ƒzƒbƒgƒ]ƒk‚Q"){newResNum=num+1;}
171+function loadEvent(){
172+ //GetRescount‘ã‘Ö "”Žš‚Å‚È‚¯‚ê‚Î"
173+ if(isNaN(newResNum)){while(dts[k]){if(dts[k].className=="new"){newResNum=parseInt(dts[k].firstChild.innerText);break;} k++; }}
174+ //V’…ŠJŽnƒiƒ“ƒo[‚ðÝ’肵‚ăWƒƒƒ“ƒv
189175 var anc=document.anchors(anchorHead+newResNum);
190- if(!anc || !anc.parentElement){return} // “§–¾‚ ‚ځ`‚ñ‚³‚ê‚Ä‚½‚çI—¹
191- //V’…ƒŒƒXƒWƒƒƒ“ƒv
192- scr=lightmode ? document.body : document.getElementById("dl");
193- viewPos=scr.scrollTop+scr.clientHeight;// ƒXƒNƒ[ƒ‹Œã‚̉æ–ʉº•”ˆÊ’u
194- endPos =anc.offsetTop+20; // VƒŒƒXƒAƒ“ƒJ[ˆÊ’u
195- //ÅŒã‚Ü‚Å“Ç—¹ or uí‚ɐV’…ƒWƒƒƒ“ƒvv‚È‚çƒWƒƒƒ“ƒv
196- if(viewPos>endPos || newResJump==2){clearInterval(timerID);setTimeout("moveToNew("+newResNum+")",buffer*100)}
197- else{firstNew=document.anchors(anchorHead+newResNum).parentElement.nextSibling;}
198-}
199-//=========V’…ƒŒƒXŽæ“¾Œãˆ—i•W€ƒXƒLƒ“‘Ήžƒuƒ‰ƒEƒU—pj©NewMark‚©‚çŒÄ‚яo‚µ
200-//=========OpenJAtwin
201-var scr,viewPos,endPos=0;
202-function reloadEvent(){
203- //====Šù“lj»
204- var lastDt=dts[dts.length-2];if(!lastDt){return}// ‘S•”V’…‚È‚çI—¹
205- while(lastDt && lastDt.className=="new"){lastDt.className="";lastDt=lastDt.previousSibling.previousSibling;}
206- //====V’…ƒŒƒXƒWƒƒƒ“ƒv
207- if(newResJump==0){return} //uƒuƒ‰ƒEƒU”C‚¹v‚È‚çI—¹
208- var ancs=document.anchors;
209- var newResNum=parseInt(ancs[ancs.length-1].name)+1;
210- scr=lightmode ? document.body : document.getElementById("dl");
211- viewPos=scr.scrollTop;
212- endPos =scr.scrollHeight-scr.clientHeight-20;
213- //ÅŒã‚Ü‚Å“Ç—¹ or uí‚ɐV’…ƒWƒƒƒ“ƒvv‚È‚çƒWƒƒƒ“ƒv
214- if(viewPos>endPos || newResJump==2){setTimeout("moveToNew("+newResNum+")",buffer*100);}
176+ if(anc && anc.parentElement){
177+ if(buffer==0){clearInterval(timerID);moveToNew(newResNum);}
178+ else {buffer--;}
179+ }
215180 }
216-
217181 // V’…ƒŒƒXˆÚ“®{V’…ƒŒƒX‚̈ʒu‚ð‹L‰¯
218182 var firstNew;
219183 function moveToNew(num){
220184 firstNew=getDTfromAnc(num);
221- while(!firstNew){num--;firstNew=getDTfromAnc(num);} //‘Ώۂª“§–¾‚ ‚ځ`‚ñ‚Ȃ琔‚ðŒ¸‚ç‚·
222- firstNew.scrollIntoView(true);
185+ if(firstNew){firstNew.scrollIntoView(true);}
223186 }
224187
225-//=========DoubleClickˆ—¨defaultPopup()
188+//=========DblClickˆ—¨defaultPopup()
226189 document.ondblclick=defaultPopup;
227190 function defaultPopup(){
228191 var num=document.selection.createRange().text.replace(/\s$/,"");
@@ -237,17 +200,4 @@ function defaultPopup(){
237200 obj.innerText="ID:"+num;
238201 search(obj);
239202 }
240-}
241-
242-//=========Copyˆ—
243-//head‚©‚ç“Ç‚Þ‚Æbody‚ÍŒ©‚¦‚È‚¢‚̂ŁAê—pƒuƒ‰ƒEƒU‚Ì“ÁŽ¿‚ð—˜—p‚µ‚Äbody‚ÌŒã‚ë‚ɏ‘‚«o‚·
244-//–{—ˆ‚Ç‚¨‚èhead‚ɏ‘‚«o‚·SkinManager‘΍ô‚Å”»’è‚ðˆê‚“ü‚ê‚é
245- if(document.body) document.write('<script type="text/javascript">document.body.oncopy=copyEvent</script>\n');
246-function copyEvent(){
247- var textarea=document.createElement("TEXTAREA");
248- textarea.value=document.selection.createRange().text.replace(/\s(\r\n|$)/g,"\n");
249- var copyText=textarea.createTextRange();
250- copyText.execCommand("Copy");
251- return false;
252-}
253-
203+}
\ No newline at end of file
--- a/res/skin/skin30-2G/chie_image.js
+++ b/res/skin/skin30-2G/chie_image.js
@@ -2,8 +2,7 @@
22 // ŠO•”ŠÖ”FaddAnchor
33 // ŠO•”•Ï”Fcp,tp,vp,dds
44 //======‰æ‘œ“Ǎž‚̐ݒè
5-var onMouseLoad=true; // true:ƒJ[ƒ\ƒ‹‚ð‡‚í‚¹‚½‚¾‚¯Afalse:LOADƒ{ƒ^ƒ“‚ðƒNƒŠƒbƒN‚µ‚Ä‚©‚ç
6-var takeArisk=false; // true:‰æ‘œ“ǂݍž‚ÝŽž‚Ƀ‚[ƒhØ‘ցAfalse:Žè“®‚Ń‚[ƒhØ‘Ö
5+var onMouseLoad=true; // true:ƒJ[ƒ\ƒ‹‚ð‡‚í‚¹‚½‚¾‚¯Afalse:LOADƒ{ƒ^ƒ“‚ðƒNƒŠƒbƒN‚µ‚Ä‚©‚ç
76 //==========ƒOƒ[ƒoƒ‹•Ï”
87 //==========‰æ‘œˆ—“™
98 var lightmode = true;
@@ -69,13 +68,12 @@ function insButton(a,hRH) {
6968 // ‰æ‘œ“Ǎž
7069 function loadImage(btn,href){
7170 if(!panel){changePanel()}
72- if(takeArisk && lightmode){changeMode()}
7371 if(btn.tagName!="A"){
7472 var thumbs = document.images;
7573 var l=thumbs.length;
7674 for(var i=l;i--;){if(thumbs[i].src==href){
7775 if(lightmode){tp.style.visibility="visible";viewed=true;}
78- //thumbs[i].scrollIntoView(true);
76+ thumbs[i].scrollIntoView(true);
7977 imgOver(thumbs[i],100);
8078 return true;
8179 }}
@@ -105,7 +103,7 @@ function loadImage(btn,href){
105103 function imgResult(img){
106104 var btn=img.parentElement.children.item(2);
107105 if(event.type=="load"){btn.value='___'; img.style.display='block';}
108- else {btn.value='NONE';btn.style.color='#C00';setTimeout("viewed=false",3000)}
106+ else {btn.value='NONE';btn.style.color='#C00';}
109107 }
110108 // ƒTƒCƒY‚̐ؑÖ
111109 function changeSize(btn){
@@ -124,15 +122,6 @@ function changeSize(btn){
124122 }
125123 // ƒTƒ€ƒlƒCƒ‹‚̍폜
126124 function removeThumb(btn){btn.parentElement.removeNode(true);}
127-function removeError(){
128- if(tp){
129- var l=tp.childNodes.length;
130- for(var i=l;i--;){
131- var stateBtn=tp.childNodes[i].childNodes[2];
132- if(stateBtn.tagName=="BUTTON" && stateBtn.innerText=="NONE"){stateBtn.parentElement.removeNode(true);}
133- }
134- }
135-}
136125 // ‰æ‘œ•\Ž¦‚̐ؑÖ
137126 function changeView(mode,href){
138127 if(!href){href=event.srcElement.src}
--- a/res/skin/skin30-2G/chie_popup.js
+++ b/res/skin/skin30-2G/chie_popup.js
@@ -15,7 +15,7 @@ var pb;
1515 function namePopup(e,before,num,after){
1616 var hnum=tohan(num);
1717 //‚RŽü”NA‚SŽü”NASocket774A774KBA21‹ÖA[1-30]A‚ȂǂɑΉž
18- if(before){if(hnum==5 || hnum==774 || hnum==4 || hnum==21 || hnum==1 || hnum==30){return}}
18+ if(before){if(hnum==3 || hnum==774 || hnum==4 || hnum==21 || hnum==1 || hnum==30){return}}
1919 e.outerHTML = "<b>"+before+"</b><b>"+addAnchor(hnum,num)+"</b><b>"+after+"</b>";
2020 }
2121 //=========Žã‚ ‚ځ`‚ñ‚̃|ƒbƒvƒAƒbƒv
--- a/res/skin/skin30-2G/chie_search.js
+++ b/res/skin/skin30-2G/chie_search.js
@@ -110,7 +110,7 @@ function clearResult(obj){
110110 for(var i=l;i--;){
111111 var dt=eval(arrayElement); var dd=dt.nextSibling;
112112 //Live‹@”\’ljÁ - “§–¾‚ ‚ځ`‚ñ
113- if(browser=="Live2ch"){location.href='func:ABONECLEAR?'+dt.firstChild.innerText;}
113+ if(browser=="Live2ch"){location.href='func:ABONECLEAR?'+dt.firstChild.innerText;continue;}
114114 dt.removeNode(true); dd.removeNode(true);
115115 }
116116 }
@@ -144,7 +144,7 @@ function findIt(word){
144144
145145 //==========‹tŽQÆ
146146 function searchRef(obj){
147- if(obj.name!='referred'){
147+ if(obj.name!='reffered'){
148148 var num=obj.firstChild.innerText;
149149 var l=dds.length;
150150 var found = new Array;
@@ -171,7 +171,7 @@ function searchRef(obj){
171171 if(exist){
172172 var dt=dds[i].previousSibling.cloneNode(true);
173173 found.unshift(dt.outerHTML.replace(/name=.*?>/,">")+dd.outerHTML.replace(/<a name=.*>/i,""));
174- obj.name="referred";
174+ obj.name="reffered";
175175 }
176176 }
177177 if(found.length){returnRef(obj.nextSibling,found)}
@@ -190,12 +190,13 @@ function returnRef(dd,found){
190190 function copyText(target){
191191 var num=event.srcElement.parentElement.name;
192192 var obj=getDTfromAnc(num);
193+ var decoy=document.createDocumentFragment();
193194 var textarea=document.createElement("TEXTAREA");
194- var message=obj.nextSibling.innerText.replace(/\s(\r\n|$)/g,"\n");
195- if (target=="res") {textarea.value=obj.firstChild.innerText+" F"+obj.childNodes[1].innerText+" F"+obj.lastChild.innerText+"\n"+message;}
195+ if (target=="res") {textarea.value=obj.firstChild.innerText+" F"+obj.childNodes[1].innerText+" F"+obj.lastChild.innerText+"\n"+obj.nextSibling.innerText+"\n";}
196196 else if(target=="name"){textarea.value=obj.childNodes[1].innerText+"\n";}
197- else if(target=="id") {textarea.value="ID:"+(obj.lastChild.innerText.split(/ID:/))[1]+"\n";}
198- var copyText=textarea.createTextRange();
197+ else if(target=="id") {textarea.value=obj.lastChild.innerText.substr(15)+"\n";}
198+ decoy.appendChild(textarea);
199+ var copyText=decoy.getElementsByTagName("TEXTAREA")[0].createTextRange();
199200 copyText.execCommand("Copy")
200201 event.srcElement.parentElement.removeNode(true);
201202 }
--- a/res/skin/skin30-3G/Header.html
+++ b/res/skin/skin30-3G/Header.html
@@ -15,11 +15,11 @@
1515 var start_time = new Date();
1616 //==========ƒOƒ[ƒoƒ‹•Ï”
1717 var anchorHead="";
18-var skinName="skin30-3 v3.3.09xx";
18+var skinName="skin30-3 v3.1.11xx";
1919 var browser="ƒMƒRƒiƒr";
2020 //==========ƒMƒRƒiƒr—pƒAƒ“ƒJ[‚Ì”»’èi0:ˆ—–³‚µ,1:ƒ|ƒbƒvƒAƒbƒv,2:ƒ{ƒ^ƒ“‘}“üj
2121 // ƒMƒRƒiƒr‚ł́AƒŒƒXƒAƒ“ƒJ[‚Í‘Š‘΃AƒhƒŒƒX‚Å‹Lq‚³‚ê‚é
22-function checkAnchor(href){if(!href){return(0)}
22+function checkAnchor(href){
2323 if (href.match(/decoy:|about:blank/)){return(1)}
2424 else if(href.match(/menu:|read\.cgi|2ch\.net\/.*\/kako/)){return(0)}
2525 else{return(2)}
@@ -27,22 +27,13 @@ function checkAnchor(href){if(!href){return(0)}
2727 //==========ƒŠƒ“ƒNÝ’è
2828 function addAnchor(inner,num){
2929 if(!t_url){threadurl()}
30- var url=document.getElementsByName("ThreadURL")[0].content;
31- if(url.match(/&/)){
32- return('<a href="../test/read.cgi?bbs='+t_bbs+'&key='+t_key+'&st='+inner+'&to='+inner+'&nofirst=true" target="_blank" onclick="blur()">'+num+'</a>')
33- }else{
34- return('<a href="../test/read.cgi/'+t_bbs+'/'+t_key+'/'+inner+'" target="_blank" onclick="blur()">'+num+'</a>')
35- }
30+ return('<a href="../test/read.cgi/'+t_bbs+'/'+t_key+'/'+inner+'" target="_blank" onclick="blur()">'+num+'</a>')
3631 }
3732 // ƒXƒŒƒbƒhURL‚̎擾
3833 var t_url=false,t_domain,t_bbs,t_key;
3934 function threadurl(){
4035 var threadurl=document.getElementsByName("ThreadURL")[0].content;
41- if(threadurl.match(/&/)){
42- threadurl.match(/bbs=(.*)&key=(\d*)/);
43- }else{
44- threadurl.match(/^.*\/test\/read.cgi\/(.*)\/(.*)\//);
45- }
36+ threadurl.match(/^.*\/test\/read.cgi\/(.*)\/(.*)\//);
4637 t_url=true;
4738 t_bbs=RegExp.$1;
4839 t_key=RegExp.$2;
--- a/res/skin/skin30-3G/chie_event.js
+++ b/res/skin/skin30-3G/chie_event.js
@@ -2,8 +2,7 @@
22 //ŠO•”ŠÖ”Ftohan
33 //ŠO•”•Ï”FanchorHead,lightmode,getID,skinName,browser,dts
44 //ƒOƒ[ƒoƒ‹•Ï”
5-var buffer=1; // ’ᑬ‰ñü‚â’ᑬƒ}ƒVƒ“‚̏ꍇ‚É‚Íbuffer‚̐”’l‚𑝂₷‚Æ‚æ‚萳Šm‚ɃWƒƒƒ“ƒvi1‘‚â‚·‚Æ0.1•b’x‚ê‚éj
6-var newResJump=1; // V’…ƒŒƒXƒWƒƒƒ“ƒvi0:ƒuƒ‰ƒEƒU”C‚¹A1:“Ç—¹Žž‚̂݁A2:íŽžj–‚©‚¿‚ãAOpenJaneAtwintail‚݂̂̐ݒè
5+var buffer=1; // ’ᑬ‰ñü‚â’ᑬƒ}ƒVƒ“‚̏ꍇ‚É‚Íbuffer‚̐”’l‚𑝂₷‚Æ‚æ‚萳Šm‚ɃWƒƒƒ“ƒvi1‘‚â‚·‚Æ0.1•b’x‚ê‚éj
76 //========Clickˆ—¨search,‘¼
87 document.onclick = clickEvent;
98 function clickEvent(){
@@ -41,19 +40,10 @@ function mouseOverEvent() {
4140 else if(e.innerText.match(/^‚ ‚ځ`‚ñ$/)) {abonePopup(e);}
4241 }
4342 if(e.tagName=='A'){
44- if(!e.innerText.match(/%/)){ // URLƒGƒ“ƒR[ƒh‚Å‚ ‚肪‚¿‚È%‚ª‚È‚¯‚ê‚Î
45- e.href=e.href.replace(/>/g,"");
46- e.href=e.href.replace(/\/ime.nu/g,"");
47- }else{
48- try{
49- e.title=decodeURI(e.innerText);
50- }catch(err){
51- // ShiftJIS,EUC-JP‚̃fƒR[ƒh‚Í–Ê“|‚¾‚©‚ç‚‚¯‚È‚¢B
52- }
53- }
43+ e.href=e.href.replace(/>/g,"");
44+ e.href=e.href.replace(/\/ime.nu/g,"");
5445 if (checkAnchor(e.href)==2){insButton(e);return;}
5546 else if(checkAnchor(e.href)==1){
56- if(event.shiftKey){if(e.rel){e.href=e.rel}return}
5747 // ‘½’iƒ|ƒbƒvƒAƒbƒv
5848 var aNum=parseInt(e.sourceIndex)+1;
5949 if(!document.getElementById("p"+aNum)){
@@ -106,10 +96,10 @@ function scroll_End(){document.getElementsByTagName("DL")[0].lastChild.scrollInt
10696 // IMG
10797 function imgCommand(mode,s){
10898 if(!waited){
109- var nHTML='<div id="command" onclick="clearCommand()"><input type="button" onclick="allImageLoad(\'all\')" value="‘SƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="allImageLoad(\'new\')" value="VƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="removeError()" value="Error‰æ‘œíœ"><br></div>';
99+ var nHTML='<div id="command" onclick="clearCommand()"><input type="button" onclick="allImageLoad(\'all\')" value="‘SƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="allImageLoad(\'new\')" value="VƒŒƒXˆêŠ‡“Ǎž"><br></div>';
110100 event.srcElement.parentElement.insertAdjacentHTML('beforeEnd',nHTML);
111101 if(skinName.match(/30-2/)){
112- //if(!lightmode){document.getElementById("command").insertAdjacentHTML('afterBegin','<input type="button" onclick="changePanel()" value="ƒpƒlƒ‹Ø‘Ö"><br>')}
102+ if(!lightmode){document.getElementById("command").insertAdjacentHTML('afterBegin','<input type="button" onclick="changePanel()" value="ƒpƒlƒ‹Ø‘Ö"><br>')}
113103 document.getElementById("command").insertAdjacentHTML('beforeEnd','<input type="button" onclick="changeMode()" value="ƒ‚[ƒhØ‘Ö">')
114104 }
115105 waited=true;
@@ -119,7 +109,7 @@ function imgCommand(mode,s){
119109 }
120110 function clearCommand(){
121111 waited=false;
122- document.getElementById("command").removeNode(true);
112+ event.srcElement.parentElement.removeNode(true);
123113 }
124114 //=========¶’·‰Ÿˆ—¨copyMenu()
125115 document.onmousedown=mousedownEvent;
@@ -132,7 +122,6 @@ function mousedownEvent(){
132122 clickTimer=setTimeout("copyMenu()",500);
133123 }
134124 }
135-
136125 //ƒRƒs[ƒƒjƒ…[¨colorChange(),search::copyText()
137126 function copyMenu(){
138127 clickCancel=true; clearTimeout(clickTimer);
@@ -176,53 +165,27 @@ function key(){
176165 }
177166 }
178167
179-//=========V’…ƒŒƒXŽæ“¾Œãˆ—i•W€ƒXƒLƒ“–¢‘Ήžƒuƒ‰ƒEƒU—pj©Timer–”‚ÍFooter‚©‚çŒÄ‚яo‚µ
180-//=========‚©‚¿‚ãAABoneAƒ]ƒk‚Q
168+//=========Loadi‘ã‘ցjˆ—iŠeFooter‚à‚µ‚­‚́AHeader‚ł̃‹[ƒv‚©‚çŒÄo‚µj
181169 var newResNum=parseInt(document.getElementsByName("GetRescount")[0].content)+1;
182170 var k=0;
183-function loadEvent(num){ // Timer–”‚ÍFooter‚©‚ç
184- //====V’…ƒŒƒXƒWƒƒƒ“ƒv
185- if(newResJump==0){clearInterval(timerID);return} //uƒuƒ‰ƒEƒU”C‚¹v‚È‚çI—¹
186- //V’…ƒŒƒX‚ÌŠJŽn”ԍ†‚ðŽæ“¾
187- if (browser=="‚©‚¿‚ã`‚µ‚á"){if(isNaN(newResNum)){while(dts[k]){if(dts[k].className=="new"){newResNum=parseInt(dts[k].firstChild.innerText);break;} k++;}}}
188- else if(browser=="ƒzƒbƒgƒ]ƒk‚Q"){newResNum=num+1;}
171+function loadEvent(){
172+ //GetRescount‘ã‘Ö "”Žš‚Å‚È‚¯‚ê‚Î"
173+ if(isNaN(newResNum)){while(dts[k]){if(dts[k].className=="new"){newResNum=parseInt(dts[k].firstChild.innerText);break;} k++; }}
174+ //V’…ŠJŽnƒiƒ“ƒo[‚ðÝ’肵‚ăWƒƒƒ“ƒv
189175 var anc=document.anchors(anchorHead+newResNum);
190- if(!anc || !anc.parentElement){return} // “§–¾‚ ‚ځ`‚ñ‚³‚ê‚Ä‚½‚çI—¹
191- //V’…ƒŒƒXƒWƒƒƒ“ƒv
192- scr=lightmode ? document.body : document.getElementById("dl");
193- viewPos=scr.scrollTop+scr.clientHeight;// ƒXƒNƒ[ƒ‹Œã‚̉æ–ʉº•”ˆÊ’u
194- endPos =anc.offsetTop+20; // VƒŒƒXƒAƒ“ƒJ[ˆÊ’u
195- //ÅŒã‚Ü‚Å“Ç—¹ or uí‚ɐV’…ƒWƒƒƒ“ƒvv‚È‚çƒWƒƒƒ“ƒv
196- if(viewPos>endPos || newResJump==2){clearInterval(timerID);setTimeout("moveToNew("+newResNum+")",buffer*100)}
197- else{firstNew=document.anchors(anchorHead+newResNum).parentElement.nextSibling;}
198-}
199-//=========V’…ƒŒƒXŽæ“¾Œãˆ—i•W€ƒXƒLƒ“‘Ήžƒuƒ‰ƒEƒU—pj©NewMark‚©‚çŒÄ‚яo‚µ
200-//=========OpenJAtwin
201-var scr,viewPos,endPos=0;
202-function reloadEvent(){
203- //====Šù“lj»
204- var lastDt=dts[dts.length-2];if(!lastDt){return}// ‘S•”V’…‚È‚çI—¹
205- while(lastDt && lastDt.className=="new"){lastDt.className="";lastDt=lastDt.previousSibling.previousSibling;}
206- //====V’…ƒŒƒXƒWƒƒƒ“ƒv
207- if(newResJump==0){return} //uƒuƒ‰ƒEƒU”C‚¹v‚È‚çI—¹
208- var ancs=document.anchors;
209- var newResNum=parseInt(ancs[ancs.length-1].name)+1;
210- scr=lightmode ? document.body : document.getElementById("dl");
211- viewPos=scr.scrollTop;
212- endPos =scr.scrollHeight-scr.clientHeight-20;
213- //ÅŒã‚Ü‚Å“Ç—¹ or uí‚ɐV’…ƒWƒƒƒ“ƒvv‚È‚çƒWƒƒƒ“ƒv
214- if(viewPos>endPos || newResJump==2){setTimeout("moveToNew("+newResNum+")",buffer*100);}
176+ if(anc && anc.parentElement){
177+ if(buffer==0){clearInterval(timerID);moveToNew(newResNum);}
178+ else {buffer--;}
179+ }
215180 }
216-
217181 // V’…ƒŒƒXˆÚ“®{V’…ƒŒƒX‚̈ʒu‚ð‹L‰¯
218182 var firstNew;
219183 function moveToNew(num){
220184 firstNew=getDTfromAnc(num);
221- while(!firstNew){num--;firstNew=getDTfromAnc(num);} //‘Ώۂª“§–¾‚ ‚ځ`‚ñ‚Ȃ琔‚ðŒ¸‚ç‚·
222- firstNew.scrollIntoView(true);
185+ if(firstNew){firstNew.scrollIntoView(true);}
223186 }
224187
225-//=========DoubleClickˆ—¨defaultPopup()
188+//=========DblClickˆ—¨defaultPopup()
226189 document.ondblclick=defaultPopup;
227190 function defaultPopup(){
228191 var num=document.selection.createRange().text.replace(/\s$/,"");
@@ -237,17 +200,4 @@ function defaultPopup(){
237200 obj.innerText="ID:"+num;
238201 search(obj);
239202 }
240-}
241-
242-//=========Copyˆ—
243-//head‚©‚ç“Ç‚Þ‚Æbody‚ÍŒ©‚¦‚È‚¢‚̂ŁAê—pƒuƒ‰ƒEƒU‚Ì“ÁŽ¿‚ð—˜—p‚µ‚Äbody‚ÌŒã‚ë‚ɏ‘‚«o‚·
244-//–{—ˆ‚Ç‚¨‚èhead‚ɏ‘‚«o‚·SkinManager‘΍ô‚Å”»’è‚ðˆê‚“ü‚ê‚é
245- if(document.body) document.write('<script type="text/javascript">document.body.oncopy=copyEvent</script>\n');
246-function copyEvent(){
247- var textarea=document.createElement("TEXTAREA");
248- textarea.value=document.selection.createRange().text.replace(/\s(\r\n|$)/g,"\n");
249- var copyText=textarea.createTextRange();
250- copyText.execCommand("Copy");
251- return false;
252-}
253-
203+}
\ No newline at end of file
--- a/res/skin/skin30-3G/chie_popup.js
+++ b/res/skin/skin30-3G/chie_popup.js
@@ -15,7 +15,7 @@ var pb;
1515 function namePopup(e,before,num,after){
1616 var hnum=tohan(num);
1717 //‚RŽü”NA‚SŽü”NASocket774A774KBA21‹ÖA[1-30]A‚ȂǂɑΉž
18- if(before){if(hnum==5 || hnum==774 || hnum==4 || hnum==21 || hnum==1 || hnum==30){return}}
18+ if(before){if(hnum==3 || hnum==774 || hnum==4 || hnum==21 || hnum==1 || hnum==30){return}}
1919 e.outerHTML = "<b>"+before+"</b><b>"+addAnchor(hnum,num)+"</b><b>"+after+"</b>";
2020 }
2121 //=========Žã‚ ‚ځ`‚ñ‚̃|ƒbƒvƒAƒbƒv
--- a/res/skin/skin30-3G/chie_search.js
+++ b/res/skin/skin30-3G/chie_search.js
@@ -110,7 +110,7 @@ function clearResult(obj){
110110 for(var i=l;i--;){
111111 var dt=eval(arrayElement); var dd=dt.nextSibling;
112112 //Live‹@”\’ljÁ - “§–¾‚ ‚ځ`‚ñ
113- if(browser=="Live2ch"){location.href='func:ABONECLEAR?'+dt.firstChild.innerText;}
113+ if(browser=="Live2ch"){location.href='func:ABONECLEAR?'+dt.firstChild.innerText;continue;}
114114 dt.removeNode(true); dd.removeNode(true);
115115 }
116116 }
@@ -144,7 +144,7 @@ function findIt(word){
144144
145145 //==========‹tŽQÆ
146146 function searchRef(obj){
147- if(obj.name!='referred'){
147+ if(obj.name!='reffered'){
148148 var num=obj.firstChild.innerText;
149149 var l=dds.length;
150150 var found = new Array;
@@ -171,7 +171,7 @@ function searchRef(obj){
171171 if(exist){
172172 var dt=dds[i].previousSibling.cloneNode(true);
173173 found.unshift(dt.outerHTML.replace(/name=.*?>/,">")+dd.outerHTML.replace(/<a name=.*>/i,""));
174- obj.name="referred";
174+ obj.name="reffered";
175175 }
176176 }
177177 if(found.length){returnRef(obj.nextSibling,found)}
@@ -190,12 +190,13 @@ function returnRef(dd,found){
190190 function copyText(target){
191191 var num=event.srcElement.parentElement.name;
192192 var obj=getDTfromAnc(num);
193+ var decoy=document.createDocumentFragment();
193194 var textarea=document.createElement("TEXTAREA");
194- var message=obj.nextSibling.innerText.replace(/\s(\r\n|$)/g,"\n");
195- if (target=="res") {textarea.value=obj.firstChild.innerText+" F"+obj.childNodes[1].innerText+" F"+obj.lastChild.innerText+"\n"+message;}
195+ if (target=="res") {textarea.value=obj.firstChild.innerText+" F"+obj.childNodes[1].innerText+" F"+obj.lastChild.innerText+"\n"+obj.nextSibling.innerText+"\n";}
196196 else if(target=="name"){textarea.value=obj.childNodes[1].innerText+"\n";}
197- else if(target=="id") {textarea.value="ID:"+(obj.lastChild.innerText.split(/ID:/))[1]+"\n";}
198- var copyText=textarea.createTextRange();
197+ else if(target=="id") {textarea.value=obj.lastChild.innerText.substr(15)+"\n";}
198+ decoy.appendChild(textarea);
199+ var copyText=decoy.getElementsByTagName("TEXTAREA")[0].createTextRange();
199200 copyText.execCommand("Copy")
200201 event.srcElement.parentElement.removeNode(true);
201202 }