Beispiel #1
0
        public ThreadsUI(PluginMain pluginMain, ImageList imageList)
        {
            this.pluginMain = pluginMain;

            lv = new ListView();
            lv.ShowItemToolTips = true;
            this.imageColumnHeader = new ColumnHeader();
            this.imageColumnHeader.Text = string.Empty;
            this.imageColumnHeader.Width = 20;

            this.frameColumnHeader = new ColumnHeader();
            this.frameColumnHeader.Text = string.Empty;

            lv.Columns.AddRange(new ColumnHeader[] {
            this.imageColumnHeader,
            this.frameColumnHeader});
            lv.FullRowSelect = true;
            lv.BorderStyle = BorderStyle.None;
            lv.Dock = System.Windows.Forms.DockStyle.Fill;

            lv.SmallImageList = imageList;
            runningImageIndex = imageList.Images.IndexOfKey("StartContinue");
            suspendedImageIndex = imageList.Images.IndexOfKey("Pause");

            lv.View = System.Windows.Forms.View.Details;
            lv.MouseDoubleClick += new MouseEventHandler(lv_MouseDoubleClick);
            lv.KeyDown += new KeyEventHandler(lv_KeyDown);
            lv.SizeChanged += new EventHandler(lv_SizeChanged);

            this.Controls.Add(lv);
        }
        public StackframeUI(PluginMain pluginMain, ImageList imageList)
        {
            this.pluginMain = pluginMain;

            lv = new ListView();
            lv.ShowItemToolTips          = true;
            this.imageColumnHeader       = new ColumnHeader();
            this.imageColumnHeader.Text  = string.Empty;
            this.imageColumnHeader.Width = 20;

            this.frameColumnHeader      = new ColumnHeader();
            this.frameColumnHeader.Text = string.Empty;

            lv.Columns.AddRange(new ColumnHeader[] {
                this.imageColumnHeader,
                this.frameColumnHeader
            });
            lv.FullRowSelect = true;
            lv.BorderStyle   = BorderStyle.None;
            lv.Dock          = System.Windows.Forms.DockStyle.Fill;

            lv.SmallImageList = imageList;
            currentImageIndex = imageList.Images.IndexOfKey("StartContinue");

            lv.View              = System.Windows.Forms.View.Details;
            lv.MouseDoubleClick += new MouseEventHandler(lv_MouseDoubleClick);
            lv.KeyDown          += new KeyEventHandler(lv_KeyDown);
            lv.SizeChanged      += new EventHandler(lv_SizeChanged);

            this.Controls.Add(lv);
        }
Beispiel #3
0
        public PanelsHelper(PluginMain pluginMain, Image pluginImage)
        {
            localsUI = new LocalsUI(pluginMain);
            localsUI.Text = TextHelper.GetString("Title.LocalVariables");
            localsPanel = PluginBase.MainForm.CreateDockablePanel(localsUI, localsGuid, pluginImage, DockState.DockLeft);
            localsPanel.Hide();
            
            stackframeUI = new StackframeUI(pluginMain, MenusHelper.imageList);
            stackframeUI.Text = TextHelper.GetString("Title.StackTrace");
            stackframePanel = PluginBase.MainForm.CreateDockablePanel(stackframeUI, stackframeGuid, pluginImage, DockState.DockLeft);
            stackframePanel.Hide();

            watchUI = new WatchUI();
            watchUI.Text = TextHelper.GetString("Title.Watch");
            watchPanel = PluginBase.MainForm.CreateDockablePanel(watchUI, watchGuid, pluginImage, DockState.DockLeft);
            watchPanel.Hide();

            breakPointUI = new BreakPointUI(pluginMain, PluginMain.breakPointManager);
            breakPointUI.Text = TextHelper.GetString("Title.Breakpoints");
            breakPointPanel = PluginBase.MainForm.CreateDockablePanel(breakPointUI, breakPointGuid, pluginImage, DockState.DockLeft);
            breakPointPanel.Hide();

            immediateUI = new ImmediateUI();
            immediateUI.Text = TextHelper.GetString("Title.Immediate");
            immediatePanel = PluginBase.MainForm.CreateDockablePanel(immediateUI, immediateGuid, pluginImage, DockState.DockLeft);
            immediatePanel.Hide();

            threadsUI = new ThreadsUI(pluginMain, MenusHelper.imageList);
            threadsUI.Text = TextHelper.GetString("Title.Threads");
            threadsPanel = PluginBase.MainForm.CreateDockablePanel(threadsUI, threadsGuid, pluginImage, DockState.DockLeft);
            threadsPanel.Hide();
        }
        public PanelsHelper(PluginMain pluginMain, Image pluginImage)
        {
            localsUI      = new LocalsUI(pluginMain);
            localsUI.Text = TextHelper.GetString("Title.LocalVariables");
            localsPanel   = PluginBase.MainForm.CreateDockablePanel(localsUI, localsGuid, pluginImage, DockState.DockLeft);
            localsPanel.Hide();

            stackframeUI      = new StackframeUI(pluginMain, MenusHelper.imageList);
            stackframeUI.Text = TextHelper.GetString("Title.StackTrace");
            stackframePanel   = PluginBase.MainForm.CreateDockablePanel(stackframeUI, stackframeGuid, pluginImage, DockState.DockLeft);
            stackframePanel.Hide();

            watchUI      = new WatchUI();
            watchUI.Text = TextHelper.GetString("Title.Watch");
            watchPanel   = PluginBase.MainForm.CreateDockablePanel(watchUI, watchGuid, pluginImage, DockState.DockLeft);
            watchPanel.Hide();

            breakPointUI      = new BreakPointUI(pluginMain, PluginMain.breakPointManager);
            breakPointUI.Text = TextHelper.GetString("Title.Breakpoints");
            breakPointPanel   = PluginBase.MainForm.CreateDockablePanel(breakPointUI, breakPointGuid, pluginImage, DockState.DockLeft);
            breakPointPanel.Hide();

            immediateUI      = new ImmediateUI();
            immediateUI.Text = TextHelper.GetString("Title.Immediate");
            immediatePanel   = PluginBase.MainForm.CreateDockablePanel(immediateUI, immediateGuid, pluginImage, DockState.DockLeft);
            immediatePanel.Hide();

            threadsUI      = new ThreadsUI(pluginMain, MenusHelper.imageList);
            threadsUI.Text = TextHelper.GetString("Title.Threads");
            threadsPanel   = PluginBase.MainForm.CreateDockablePanel(threadsUI, threadsGuid, pluginImage, DockState.DockLeft);
            threadsPanel.Hide();
        }
Beispiel #5
0
 public BreakPointUI(PluginMain pluginMain, BreakPointManager breakPointManager)
 {
     init();
     InitializeLocalization();
     this.pluginMain        = pluginMain;
     this.breakPointManager = breakPointManager;
     this.breakPointManager.ChangeBreakPointEvent += breakPointManager_ChangeBreakPointEvent;
     this.breakPointManager.UpdateBreakPointEvent += breakPointManager_UpdateBreakPointEvent;
 }
 public BreakPointUI(PluginMain pluginMain, BreakPointManager breakPointManager)
 {
     init();
     this.pluginMain        = pluginMain;
     this.breakPointManager = breakPointManager;
     this.breakPointManager.ChangeBreakPointEvent += new ChangeBreakPointEventHandler(breakPointManager_ChangeBreakPointEvent);
     this.breakPointManager.UpdateBreakPointEvent += new UpdateBreakPointEventHandler(breakPointManager_UpdateBreakPointEvent);
     this.Controls.Add(this.dgv);
 }
Beispiel #7
0
 public StackframeUI(PluginMain pluginMain, ImageList imageList)
 {
     this.AutoKeyHandling = true;
     this.pluginMain      = pluginMain;
     wholeFrameStack      = new List <ListViewItem>();
     InitializeComponents(imageList);
     InitializeContextMenu();
     InitializeLocalization();
 }
Beispiel #8
0
 public BreakPointUI(PluginMain pluginMain, BreakPointManager breakPointManager)
 {
     init();
     this.pluginMain = pluginMain;
     this.breakPointManager = breakPointManager;
     this.breakPointManager.ChangeBreakPointEvent += new ChangeBreakPointEventHandler(breakPointManager_ChangeBreakPointEvent);
     this.breakPointManager.UpdateBreakPointEvent += new UpdateBreakPointEventHandler(breakPointManager_UpdateBreakPointEvent);
     this.Controls.Add(this.dgv);
 }
 public StackframeUI(PluginMain pluginMain, ImageList imageList)
 {
     this.AutoKeyHandling = true;
     this.pluginMain = pluginMain;
     wholeFrameStack = new List<ListViewItem>();
     InitializeComponents(imageList);
     InitializeContextMenu();
     InitializeLocalization();
 }
Beispiel #10
0
 public BreakPointUI(PluginMain pluginMain, BreakPointManager breakPointManager)
 {
     init();
     InitializeLocalization();
     this.pluginMain = pluginMain;
     this.breakPointManager = breakPointManager;
     this.breakPointManager.ChangeBreakPointEvent += breakPointManager_ChangeBreakPointEvent;
     this.breakPointManager.UpdateBreakPointEvent += breakPointManager_UpdateBreakPointEvent;
 }
Beispiel #11
0
 public PluginUI(PluginMain pluginMain)
 {
     this.pluginMain = pluginMain;
     this.treeControl = new DataTreeControl();
     this.treeControl.Tree.BorderStyle = BorderStyle.None;
     this.treeControl.Resize += new EventHandler(this.TreeControlResize);
     this.treeControl.Tree.Font = PluginBase.Settings.DefaultFont;
     this.treeControl.Dock = DockStyle.Fill;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.treeControl);
 }
 public PluginUI(PluginMain pluginMain)
 {
     this.pluginMain  = pluginMain;
     this.treeControl = new DataTreeControl();
     this.treeControl.Tree.BorderStyle = BorderStyle.None;
     this.treeControl.Resize          += new EventHandler(this.TreeControlResize);
     this.treeControl.Tree.Font        = PluginBase.Settings.DefaultFont;
     this.treeControl.Dock             = DockStyle.Fill;
     this.AutoScaleDimensions          = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.treeControl);
 }
        public PanelsHelper(PluginMain pluginMain, Image pluginImage)
        {
            pluginUI = new PluginUI(pluginMain);
            pluginUI.Text = TextHelper.GetString("Title.LocalVariables");
            pluginPanel = PluginBase.MainForm.CreateDockablePanel(pluginUI, pluginGuid, pluginImage, DockState.DockLeft);
            pluginPanel.Hide();
            
            stackframeUI = new StackframeUI(pluginMain, MenusHelper.imageList);
            stackframeUI.Text = TextHelper.GetString("Title.StackTrace");
            stackframePanel = PluginBase.MainForm.CreateDockablePanel(stackframeUI, stackframeGuid, pluginImage, DockState.DockLeft);
            stackframePanel.Hide();

			watchUI = new WatchUI();
			watchUI.Text = TextHelper.GetString("Title.Watch");
            watchPanel = PluginBase.MainForm.CreateDockablePanel(watchUI, watchGuid, pluginImage, DockState.DockLeft);
            watchPanel.Hide();

            breakPointUI = new BreakPointUI(pluginMain, PluginMain.breakPointManager);
            breakPointUI.Text = TextHelper.GetString("Title.Breakpoints");
            breakPointPanel = PluginBase.MainForm.CreateDockablePanel(breakPointUI, breakPointGuid, pluginImage, DockState.DockLeft);
            breakPointPanel.Hide();
        }
        public PanelsHelper(PluginMain pluginMain, Image pluginImage)
        {
            pluginUI      = new PluginUI(pluginMain);
            pluginUI.Text = TextHelper.GetString("Title.LocalVariables");
            pluginPanel   = PluginBase.MainForm.CreateDockablePanel(pluginUI, pluginGuid, pluginImage, DockState.DockLeft);
            pluginPanel.Hide();

            stackframeUI      = new StackframeUI(pluginMain, MenusHelper.imageList);
            stackframeUI.Text = TextHelper.GetString("Title.StackTrace");
            stackframePanel   = PluginBase.MainForm.CreateDockablePanel(stackframeUI, stackframeGuid, pluginImage, DockState.DockLeft);
            stackframePanel.Hide();

            watchUI      = new WatchUI();
            watchUI.Text = TextHelper.GetString("Title.Watch");
            watchPanel   = PluginBase.MainForm.CreateDockablePanel(watchUI, watchGuid, pluginImage, DockState.DockLeft);
            watchPanel.Hide();

            breakPointUI      = new BreakPointUI(pluginMain, PluginMain.breakPointManager);
            breakPointUI.Text = TextHelper.GetString("Title.Breakpoints");
            breakPointPanel   = PluginBase.MainForm.CreateDockablePanel(breakPointUI, breakPointGuid, pluginImage, DockState.DockLeft);
            breakPointPanel.Hide();
        }