ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Main.cs
(Generate patch)

Comparing trunk/RomCheater/Main.cs (file contents):
Revision 317 by william, Tue Jun 5 15:24:43 2012 UTC vs.
Revision 318 by william, Tue Jun 5 17:57:37 2012 UTC

# Line 34 | Line 34 | namespace RomCheater
34          private FloatingMemoryView m_memoryview = new FloatingMemoryView();
35          private FloatingDataTypeConverter m_typeconverter = new FloatingDataTypeConverter();
36          private FloatingMemorySearcher m_memsearcher = new FloatingMemorySearcher();
37 +        private FloatingPEViewer m_peviewer = new FloatingPEViewer();
38          //private bool log_window_expanded = false;
39          //private double log_window_splitter_default_position = 1.4045;
40          PluginLoader loader = null;
# Line 71 | Line 72 | namespace RomCheater
72              m_memsearcher.AcceptedPlugin = this.ConfigPlugin;
73              m_memsearcher.AcceptedProcess = SelectedProcess;
74              m_memsearcher.OnBrowseMemoryRegion += new BaseEventHandler<BrowseMemoryRegionEvent>(OnBrowseMemoryRegion);
75 +
76 +            m_peviewer.AcceptedPlugin = this.ConfigPlugin;
77 +            m_peviewer.AcceptedProcess = SelectedProcess;
78 +
79          }
80          private void OnBrowseMemoryRegion(BrowseMemoryRegionEvent e)
81          {
# Line 110 | Line 115 | namespace RomCheater
115              if (persistString == typeof(FloatingMemoryView).ToString()) { return m_memoryview; }
116              if (persistString == typeof(FloatingDataTypeConverter).ToString()) { return m_typeconverter; }
117              if (persistString == typeof(FloatingMemorySearcher).ToString()) { return m_memsearcher; }
118 +            if (persistString == typeof(FloatingPEViewer).ToString()) { return m_peviewer; }
119              else { return null; }
120          }
121          public void SetupDocks()
# Line 123 | Line 129 | namespace RomCheater
129              m_typeconverter = new FloatingDataTypeConverter();
130              m_memsearcher = new FloatingMemorySearcher();
131              m_memsearcher.OnBrowseMemoryRegion += new BaseEventHandler<BrowseMemoryRegionEvent>(OnBrowseMemoryRegion);
132 +            m_peviewer = new FloatingPEViewer();
133              m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
134          }
135          #region SetupDockWindowHandler support
# Line 134 | Line 141 | namespace RomCheater
141              SetupPIDSelectorWindowHandler();
142              SetupDataTypeConverterWindowHandler();
143              SetupMemorySearchWindowHandler();
144 +            SetupPEViewerWindowHandler();
145          }
146          private void SetupLogWindowHandler()
147          {
# Line 177 | Line 185 | namespace RomCheater
185              m_memsearcher.FormClosed += new FormClosedEventHandler(RemoveDockFromWindowList);
186              m_memsearcher.Activate();
187          }
188 +        private void SetupPEViewerWindowHandler()
189 +        {
190 +            if (m_peviewer == null) return;
191 +            m_peviewer.Shown += new EventHandler(AddDockToWindowList);
192 +            m_peviewer.FormClosed += new FormClosedEventHandler(RemoveDockFromWindowList);
193 +            m_peviewer.Activate();
194 +        }
195          #endregion
196          public void ShowDocks()
197          {
# Line 193 | Line 208 | namespace RomCheater
208              SetupDataTypeConverterWindowHandler();
209              ShowMemorySearch();
210              SetupMemorySearchWindowHandler();
211 +            ShowPEViewer();
212 +            SetupPEViewerWindowHandler();
213          }
214          public void ShowLogWindow()
215          {
# Line 241 | Line 258 | namespace RomCheater
258              m_memsearcher.OnBrowseMemoryRegion += new BaseEventHandler<BrowseMemoryRegionEvent>(OnBrowseMemoryRegion);
259              m_memsearcher.Show(dockPanel);
260          }
261 <
261 >        public void ShowPEViewer()
262 >        {
263 >            load_plugins();
264 >            m_peviewer = new FloatingPEViewer(ConfigPlugin);
265 >            m_peviewer.AcceptedProcess = SelectedProcess;
266 >            m_peviewer.Show(dockPanel);
267 >        }
268        
269          #endregion
270  
# Line 450 | Line 473 | namespace RomCheater
473              d = t.Day;
474              ushort v4 = (ushort)(y | m | d);
475          }
476 +
477 +        private void mnuItemShowPEViewer_Click(object sender, EventArgs e)
478 +        {
479 +            ShowPEViewer();
480 +        }
481 +
482          
483      }
484   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines