Changeset 148
- Timestamp:
- May 8, 2007, 8:50:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/MainForm.pas
r132 r148 2278 2278 2279 2279 CmdLineParameters.writeDetailsTo(Lines); 2280 writeSettingsDetailsTo(Lines); 2280 2281 end; 2281 2282 … … 6906 6907 end; 6907 6908 6909 6908 6910 Procedure TMainForm.NHMDisplayIndex( Var Msg: TMessage ); 6909 6911 begin 6910 6912 LogEvent(LogNHM, 'NHMDisplayIndex'); 6913 CmdLineParameters.addNhmDebugMessage('NHMDisplayIndex'); 6911 6914 RestoreWindow; 6912 6915 DisplayIndex; … … 6920 6923 begin 6921 6924 LogEvent(LogNHM, 'NHMDisplayContents'); 6925 CmdLineParameters.addNhmDebugMessage('NHMDisplayContents'); 6922 6926 RestoreWindow; 6923 6927 DisplayContents; … … 6935 6939 RestoreWindow; 6936 6940 if ShowLeftPanel then 6941 begin 6937 6942 DisplayContents; 6943 end; 6944 CmdLineParameters.addNhmDebugMessage('NHMTopicByResourceID ' + IntToStr(Msg.Param1)); 6938 6945 DisplayTopicByResourceID( Msg.Param1 ); 6939 6946 end; … … 6955 6962 6956 6963 LogEvent(LogNHM, '....NHMTopicByPanelName panel:' + PanelName); 6964 CmdLineParameters.addNhmDebugMessage('NHMTopicByPanelName ' + PanelName); 6957 6965 Topic := FindTopicByName( PanelName ); 6958 6966 if Topic = nil then … … 6970 6978 var 6971 6979 pSearchText: pchar; 6980 tmpSearchText : String; 6972 6981 begin 6973 6982 LogEvent(LogNHM, 'NHMSearch'); … … 6975 6984 6976 6985 pSearchText := pstring( Msg.Param1 ); 6977 SearchFor( StrPas( pSearchText ) ); 6986 tmpSearchText := StrPas(pSearchText); 6987 CmdLineParameters.addNhmDebugMessage('NHMSearch ' + tmpSearchText); 6988 SearchFor(tmpSearchText); 6978 6989 SharedMemory.Free( pSearchText ); 6979 6990 end; … … 6982 6993 var 6983 6994 pSearchText: pchar; 6995 tmpSearchText : String; 6984 6996 begin 6985 6997 LogEvent(LogNHM, 'NHMGlobalSearch'); … … 6987 6999 6988 7000 pSearchText := pstring( Msg.Param1 ); 6989 DoGlobalSearch( StrPas( pSearchText ) ); 7001 tmpSearchText := StrPas(pSearchText); 7002 CmdLineParameters.addNhmDebugMessage('NHMGlobalSearch ' + tmpSearchText); 7003 DoGlobalSearch(tmpSearchText); 6990 7004 SharedMemory.Free( pSearchText ); 6991 7005 end; … … 6994 7008 begin 6995 7009 LogEvent(LogNHM, 'NHMShowUsage'); 7010 CmdLineParameters.addNhmDebugMessage('NHMShowUsage'); 6996 7011 RestoreWindow; 6997 7012 ShowUsage; … … 7001 7016 var 7002 7017 pFileNames: pchar; 7018 tmpFileNames : String; 7003 7019 begin 7004 7020 LogEvent(LogNHM, 'NHMSetFiles'); 7021 7005 7022 // NOT restoring window here because this is not something the user should see... 7006 7023 pFileNames := pstring( Msg.Param1 ); 7007 OpenFilesFromTextList( StrPas( pFileNames ), false ); 7024 tmpFileNames := StrPas(pFileNames); 7025 CmdLineParameters.addNhmDebugMessage('NHMSetFiles ' + tmpFileNames); 7026 OpenFilesFromTextList(tmpFileNames, false); 7008 7027 SharedMemory.Free( pFileNames ); 7009 7028 end; … … 7014 7033 begin 7015 7034 LogEvent(LogNHM, 'NHMSetTitle'); 7035 7016 7036 pTitle := pstring( Msg.Param1 ); 7017 7037 MainTitle := StrPas( pTitle ); 7018 7038 SharedMemory.Free( pTitle ); 7019 7039 CmdLineParameters.addNhmDebugMessage('NHMSetTitle ' + MainTitle); 7020 7040 SetMainCaption; 7021 7041 end;
Note:
See TracChangeset
for help on using the changeset viewer.