const
NGWORDNAME_PANEL = 3;
THREADSIZE_PANEL = 2;
- USER_RESPOPUPCLEAR = WM_USER + 2005; ///< wParam : TWebBrowser
-
+ USER_POPUPCLEAR = WM_USER + 2005; ///< wParam : TWebBrowser
type
TToolBarSettingSenderType = (tssNone, tssMain, tssList, tssBrowser);
N83: TMenuItem;
UpdateGikonaviAction1: TMenuItem;
N84: TMenuItem;
+ N85: TMenuItem;
+ URL2: TMenuItem;
+ URLPATHINFO1: TMenuItem;
+ URLQUERYSTRING1: TMenuItem;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure SaveSettingAll();
FResPopupBrowser: TResPopupBrowser;
FUpdateExePath: string; ///\83M\83R\83i\83r\8dX\90V\83C\83\93\83X\83g\81[\83\89\83p\83X
FUpdateExeArgs: string; ///\83M\83R\83i\83r\8dX\90V\83C\83\93\83X\83g\81[\83\89\88ø\90\94
+ FKokoPopupThreadItem: TThreadItem;
procedure DownloadEnd(Sender: TObject; Item: TDownloadItem);
procedure DownloadMsg(Sender: TObject; Item: TDownloadItem; Msg: string; Icon: TGikoMessageIcon);
procedure WorkBegin(Sender: TObject; AWorkMode: TWorkMode; const AWorkCountMax: Integer; Number: Integer; const AWorkTitle: string);
BrowserNullTab: TBrowserRecord;
FControlThread: TThreadControl;
FIconData : TNotifyIconData;
- procedure MoveToURL(const inURL: string);
+ procedure MoveToURL(const inURL: string; KeyMask: Boolean = False);
function InsertBrowserTab(ThreadItem: TThreadItem; ActiveTab: Boolean = True) : TBrowserRecord;
procedure ReloadBBS;
function GetHttpState: Boolean;
property ListViewBackGroundColor: TColor read FListViewBackGroundColor write SetListViewBackGroundColor;
property UseOddResOddColor : Boolean read FUseOddResOddColor write FUseOddResOddColor;
property OddColor : TColor read FOddColor write FOddColor;
+ //! \83\8c\83X\83\81\83j\83\85\81[\83A\83N\83e\83B\83u\83X\83\8c\83b\83h\83A\83C\83e\83\80
+ property KokoPopupThreadItem : TThreadItem read FKokoPopupThreadItem;
+
function FindToolBarButton( bar : TToolBar; action : TAction ) : TToolButton;
procedure OnPlugInMenuItem( Sender : TObject );
procedure TabFileURLReplace(oldURLs: TStringList; newURLs: TStringList);
// \8f\89\8aú\89»\82É\8e¸\94s\82µ\82½\83\82\83W\83\85\81[\83\8b\83`\83F\83b\83N
if (FavoriteDM.AbEnd) then begin
- GikoUtil.MsgBox(Self.Handle, '\82¨\8bC\82É\93ü\82è\82Ì\8f\89\8aú\89»\82É\8e¸\94s\82µ\82Ü\82µ\82½\81B\83M\83R\83i\83r\82ð\8fI\97¹\82µ\82Ü\82·\81B',
+ GikoUtil.MsgBox(Self.Handle,
+ '\82¨\8bC\82É\93ü\82è\82Ì\8f\89\8aú\89»\82É\8e¸\94s\82µ\82Ü\82µ\82½\81B\83M\83R\83i\83r\82ð\8fI\97¹\82µ\82Ü\82·\81B'#13#10 +
+ '\83M\83R\83i\83r\83t\83H\83\8b\83_\82ð\8aJ\82«\82Ü\82·\81Aconfig/' + Favorite.FAVORITE_FILE_NAME +
+ ' \82ð config/~' + Favorite.FAVORITE_FILE_NAME + '(\91O\89ñ\8bN\93®\8e\9e\82Ì\82¨\8bC\82É\93ü\82è)\82Å'#13#10 +
+ '\92u\82«\8a·\82¦\82é\8e\96\82Å\92¼\82é\89Â\94\\90«\82ª\82 \82è\82Ü\82·\81B',
'\8f\89\8aú\89»\88Ù\8fí');
+ GikoDM.GikoFolderOpenAction.Execute;
Self.Close;
end;
item : TThreadItem;
begin
if FStartUp then begin
+ FStartUp := false;
ShowWindow(Application.Handle, SW_HIDE);
-
//FormCreate\82Å\82â\82é\82Æ\89Â\8e\8b\90Ý\92è\82ª\94½\89f\82³\82ê\82È\82¢\8fê\8d\87\82ª\82 \82é\82Ì\82ÅFormShow\82Å\82â\82é\82±\82Æ\82É\82µ\82½
//\83c\81[\83\8b\83o\81[\95\\8e¦
GikoDM.StdToolBarVisibleAction.Checked := GikoSys.Setting.StdToolBarVisible;
// ResetBandInfo( ListCoolBar, ListToolBar );
FIsIgnoreResize := rtNone;
+ //ActionList\82ÌGroupIndex\82ð\8c³\82É\96ß\82·
+ SetGroupIndex(GikoDM.GikoFormActionList);
+
//FormCrete\82©\82ç\88Ú\93®\81B
if GikoSys.Setting.TabAutoLoadSave then begin
GikoDM.TabsOpenAction.Tag := 1;
GikoDM.TabsOpenAction.Tag := 0;
if (GikoSys.Setting.LastCloseTabURL <> '') then begin
if ( FActiveContent <> nil) and (FActiveContent.Browser <> nil) then begin
- PostMessage( Handle, USER_DOCUMENTCOMPLETE, Integer( FActiveContent.Browser ), 0 );
- end;
- if ( FActiveContent <> nil) and (FActiveContent.Browser <> nil) then begin
while (FActiveContent.Browser.ReadyState <> READYSTATE_COMPLETE) and
(FActiveContent.Browser.ReadyState <> READYSTATE_INTERACTIVE) do begin
- Application.ProcessMessages;
+ // \83\81\83b\83Z\81[\83W\82ð\8eó\82¯\8eæ\82ç\82È\82¢\82æ\82¤\82É\83X\83\8a\81[\83v\82É\95Ï\8dX
+ Sleep(1);
end;
end;
item := BBSsFindThreadFromURL( GikoSys.Setting.LastCloseTabURL );
+ GikoSys.Setting.LastCloseTabURL := '';
if (item <> nil) and (item.IsLogFile) then begin
OpenThreadItem(item, item.URL);
end;
- GikoSys.Setting.LastCloseTabURL := '';
+ //ShowWindow(Self.Handle, SW_SHOW);
end;
end;
-
- //ActionList\82ÌGroupIndex\82ð\8c³\82É\96ß\82·
- SetGroupIndex(GikoDM.GikoFormActionList);
-
- FStartUp := false;
end;
end;
{$IFDEF DEBUG}
Writeln(URL);
{$ENDIF}
+ FKokoPopupThreadItem := nil;
if Pos(kMenuName, URL) <> 0 then begin
sNo := Copy( URL, Pos( kMenuName, URL ) + Length( kMenuName ), Length( URL ) );
-
+
if not GikoSys.IsNumeric(sNo) then Exit;
Cancel := True;
TResPopupBrowser(Sender).ChildClear;
end;
end;
+ FKokoPopupThreadItem := GetActiveContent(true);
KokoPopupMenu.Tag := StrToInt(sNo);
KokoPopupMenu.Popup(p.x, p.y);
end else if Pos('mailto', LowerCase(URL)) <> 0 then begin
end;
end;
-procedure TGikoForm.MoveToURL(const inURL: string);
+procedure TGikoForm.MoveToURL(const inURL: string; KeyMask: Boolean = False);
var
protocol, host, path, document, port, bookmark : string;
URL, protocol2, host2, path2, document2, port2, bookmark2 : string;
GikoSys.ParseURI( inURL, protocol, host, path, document, port, bookmark );
GikoSys.Parse2chURL( inURL, path, document, BBSID, BBSKey );
-
-
- shiftDown := GetAsyncKeyState(VK_SHIFT) = Smallint($8001);
- ctrlDown := GetAsyncKeyState(VK_CONTROL) = Smallint($8001);
- if shiftDown then begin
- GikoSys.OpenBrowser(inURL, gbtUserApp);
- Exit;
- end else if ctrlDown then begin
- GikoSys.OpenBrowser(inURL, gbtIE);
- Exit;
- end;
+ // \83A\83N\83V\83\87\83\93\82©\82ç\8cÄ\82Î\82ê\82é\82Æshift/ctrl\82Í\82¨\82µ\82Á\82Ï\82Ì\8fê\8d\87\82ª\82Ù\82Æ\82ñ\82Ç\82È\82Ì\82Å\83}\83X\83N\82·\82é
+ if not KeyMask then begin
+ shiftDown := GetAsyncKeyState(VK_SHIFT) = Smallint($8001);
+ ctrlDown := GetAsyncKeyState(VK_CONTROL) = Smallint($8001);
+ if shiftDown then begin
+ GikoSys.OpenBrowser(inURL, gbtUserApp);
+ Exit;
+ end else if ctrlDown then begin
+ GikoSys.OpenBrowser(inURL, gbtIE);
+ Exit;
+ end;
+ end;
//===== \83v\83\89\83O\83C\83\93
try
senderBrowser := TWebBrowser( Message.WParam );
BrowserDocumentComplete( senderBrowser, senderBrowser.Parent, url );
end;
- USER_RESPOPUPCLEAR:
+ USER_POPUPCLEAR:
if (TObject(Message.WParam) is TResPopupBrowser) then begin
try
TResPopupBrowser( Message.WParam ).Clear;
except
end;
+ end else if (TObject(Message.WParam) is TPreviewBrowser) then begin
+ if FPreviewBrowser <> nil then begin
+ ShowWindow(FPreviewBrowser.Handle, SW_HIDE);
+ end;
end;
end;
begin
No := KokoPopupMenu.Tag;
if No = 0 then Exit;
- ThreadItem := GetActiveContent(True);
+ ThreadItem := GikoForm.KokoPopupThreadItem;
if ThreadItem = nil then Exit;
id := GikoSys.GetResID(No, ThreadItem);
begin
No := KokoPopupMenu.Tag;
if No = 0 then Exit;
- ThreadItem := GetActiveContent(True);
+ ThreadItem := GikoForm.KokoPopupThreadItem;
if ThreadItem = nil then Exit;
body := TStringList.Create;
try