diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-25 15:05:58 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-25 15:05:58 +0200 |
commit | 036031c4784e273d48657fcba42481b3b8b13822 (patch) | |
tree | be0eec038ea046362d71d2fd04e80fb20b2684a1 /docview/src | |
parent | d46028e9a08098d56632be45e86c23cdc180bdb2 (diff) | |
download | fpGUI-036031c4784e273d48657fcba42481b3b8b13822.tar.xz |
docview: Move Debug - File Info to new Tools menu.
Diffstat (limited to 'docview/src')
-rw-r--r-- | docview/src/frm_main.pas | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/docview/src/frm_main.pas b/docview/src/frm_main.pas index fc5e6556..5adc008e 100644 --- a/docview/src/frm_main.pas +++ b/docview/src/frm_main.pas @@ -60,7 +60,6 @@ type miBookmarks: TfpgPopupMenu; miView: TfpgPopupMenu; miHelp: TfpgPopupMenu; - miDebug: TfpgPopupMenu; ToolBar: TfpgBevel; btnOpen: TfpgButton; btnBack: TfpgButton; @@ -485,9 +484,9 @@ begin sl.Clear; with sl do begin - Add('<b><u>Filename:</u></b> <red>' + f.Filename + '<black>'); + Add('<b><u>Filename:</u></b> <blue>' + f.Filename + '<black>'); Add('<b>Title:</b> ' + f.Title); - Add('<b>File size:</b> ' + IntToStr(fpgFileSize(f.Filename)) + 'bytes'); + Add('<b>File size:</b> ' + IntToStr(fpgFileSize(f.Filename)) + ' bytes'); Add('<b>Dictionary count:</b> ' + IntToStr(f.DictionaryCount)); Add('<b>Topic count:</b> ' + IntToStr(f.TopicCount)); Add('<b>Index count:</b> ' + IntToStr(f.Index.Count)); @@ -2340,6 +2339,7 @@ begin begin Name := 'miTools'; SetPosition(428, 96, 120, 20); + AddMenuItem('Show file info', '', @miDebugHeader); AddMenuItem('View source of RichView component', '', @ViewSourceMIOnClick); end; @@ -2351,20 +2351,10 @@ begin AddMenuItem('Help using DocView', '', @miHelpUsingDocView); AddMenuItem('Command line parameters', '', @miHelpCmdLineParams); AddMenuItem('-', '', nil); - AddMenuItem('Show help file header info', '', @miDebugHeader); - AddMenuItem('-', '', nil); AddMenuItem('About fpGUI Toolkit...', '', @miHelpAboutFPGui); AddMenuItem('Product Information...', '', @miHelpProdInfoClicked); end; - miDebug := TfpgPopupMenu.Create(self); - with miDebug do - begin - Name := 'miDebug'; - SetPosition(292, 192, 132, 20); - miDebugHexInfo := AddMenuItem('Toggle Hex INF Values in Contents', '', @miDebugHex); - end; - ToolBar := TfpgBevel.Create(self); with ToolBar do begin @@ -2537,7 +2527,6 @@ begin MainMenu.AddMenuItem('&Bookmarks', nil).SubMenu := miBookmarks; MainMenu.AddMenuItem('&Tools', nil).SubMenu := miTools; MainMenu.AddMenuItem('&Help', nil).SubMenu := miHelp; - MainMenu.AddMenuItem('&Debug', nil).SubMenu := miDebug; FFileOpenRecent.SubMenu := miOpenRecentMenu; tvContents.PopupMenu := miView; |