Advertisement
Guest User

wxHexEditor 0.09 gcc 4.5 patch

a guest
Apr 27th, 2010
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.96 KB | None | 0 0
  1. diff -aur wxHexEditor/src/HexEditor.cpp src/wxHexEditor/src/HexEditor.cpp
  2. --- wxHexEditor/src/HexEditor.cpp   2010-04-21 17:35:38.000000000 -0500
  3. +++ src/wxHexEditor/src/HexEditor.cpp   2010-04-27 23:04:40.000000000 -0500
  4. @@ -868,21 +868,21 @@
  5.             GetEventHandler()->ProcessEvent( eventx );
  6.     }
  7.  
  8. -void HexEditor::FindDialog( void ){
  9. -   class FindDialog *myfind = new FindDialog::FindDialog( this, myfile );
  10. +void HexEditor::HexFindDialog( void ){
  11. +   FindDialog *myfind = new FindDialog( this, myfile );
  12.     myfind->ShowModal();
  13.     myfind->Destroy();
  14.     }
  15.  
  16. -void HexEditor::ReplaceDialog( void ){
  17. -   class ReplaceDialog *myfind = new ReplaceDialog::ReplaceDialog( this, myfile );
  18. +void HexEditor::HexReplaceDialog( void ){
  19. +   ReplaceDialog *myfind = new ReplaceDialog( this, myfile );
  20.     myfind->ShowModal();
  21.     myfind->Destroy();
  22.     }
  23.  
  24. -void HexEditor::GotoDialog( void ){
  25. +void HexEditor::HexGotoDialog( void ){
  26.     uint64_t newoffset;
  27. -   class GotoDialog *mygoto = new GotoDialog::GotoDialog( this, newoffset, CursorOffset(), FileLength(), myDialogVector );
  28. +   GotoDialog *mygoto = new GotoDialog( this, newoffset, CursorOffset(), FileLength(), myDialogVector );
  29.     if( mygoto->ShowModal() == wxID_OK ){
  30.         Goto( newoffset );
  31.         }
  32. diff -aur wxHexEditor/src/HexEditorFrame.cpp src/wxHexEditor/src/HexEditorFrame.cpp
  33. --- wxHexEditor/src/HexEditorFrame.cpp  2010-04-23 15:53:08.000000000 -0500
  34. +++ src/wxHexEditor/src/HexEditorFrame.cpp  2010-04-27 23:05:08.000000000 -0500
  35. @@ -295,9 +295,9 @@
  36.                     case wxID_PASTE:        MyHexEditor->PasteFromClipboard();  break;
  37.                     case wxID_DELETE:       MyHexEditor->DeleteSelection();     break;
  38.                     case idInjection:       MyHexEditor->InsertBytes();         break;
  39. -                   case wxID_FIND:     MyHexEditor->FindDialog();              break;
  40. -                   case wxID_REPLACE:  MyHexEditor->ReplaceDialog();           break;
  41. -                   case idGotoOffset:  MyHexEditor->GotoDialog();              break;
  42. +                   case wxID_FIND:     MyHexEditor->HexFindDialog();           break;
  43. +                   case wxID_REPLACE:  MyHexEditor->HexReplaceDialog();        break;
  44. +                   case idGotoOffset:  MyHexEditor->HexGotoDialog();           break;
  45.                     case idFileRO:{
  46.                         MyHexEditor->SetFileAccessMode( FileDifference::ReadOnly );
  47.                         MyInfoPanel->Set( MyHexEditor->GetFileName(), MyHexEditor->FileLength(), MyHexEditor->GetFileAccessModeString(), MyHexEditor->GetFD() );
  48. diff -aur wxHexEditor/src/HexEditor.h src/wxHexEditor/src/HexEditor.h
  49. --- wxHexEditor/src/HexEditor.h 2010-04-21 17:35:38.000000000 -0500
  50. +++ src/wxHexEditor/src/HexEditor.h 2010-04-27 23:04:12.000000000 -0500
  51. @@ -85,9 +85,9 @@
  52.         int GetFD( void ){ return myfile->fd(); }
  53.         bool IsAvailable_Undo( void ){ return myfile->IsAvailable_Undo(); }
  54.         bool IsAvailable_Redo( void ){ return myfile->IsAvailable_Redo(); }
  55. -       void FindDialog( void );
  56. -       void ReplaceDialog( void );
  57. -       void GotoDialog( void );
  58. +       void HexFindDialog( void );
  59. +       void HexReplaceDialog( void );
  60. +       void HexGotoDialog( void );
  61.         struct DialogVector *myDialogVector;
  62.  
  63.         void UpdateCursorLocation( bool force=false );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement