コード例 #1
0
 public oTabAssemblyViewer(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, string tabTitle)
     : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
 {
     InitializeComponents();
     panelMain.Controls.Add(this.assemblyViewControl);
     assemblyViewControl.Visible = false;
 }
コード例 #2
0
        public formFilter(oFunctionList functionList, oTabManager tabManager, oTabFunctionList tab, FILTER_TYPE filterType, oVisPlayBar playBar)
        {
            InitializeComponent();
            this.tabManager = tabManager;
            this.tab = tab;
            this.functionGrid.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.functionGrid_CellValueNeeded);
            this.functionList = functionList;
            this.functionListOutput = functionList.Clone();
            updatePredictedOutput();
            timerRefreshOutput.Enabled = false;
            this.playBar = playBar;

            // Make changes to the interface as determined by the filterType
            this.filterType = filterType;
            switch(filterType)
            {
                case FILTER_TYPE.FUNCTION_LIST_FILTERED:
                    // Do nothing special
                    break;
                case FILTER_TYPE.FUNCTION_LIST_FULL:
                    // We cannot replace this list
                    this.buttonApplyReplace.Visible = false;
                    break;
                case FILTER_TYPE.GENERAL:
                    // We do not want to change any tabs, just provide functionListOutput as the result
                    buttonApplyReplace.Visible = false;
                    buttonApplyNew.Text = "Apply";

                    // We cannot clip data to selection
                    this.radioTimeRangeClip.Enabled = false;

                    break;
            }
        }
コード例 #3
0
 public oTabIntroPage(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip,
                      string tabTitle)
     : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
 {
     About about = new About {Dock = DockStyle.Fill};
     workingPage.Controls.Add(about);
 }
コード例 #4
0
 public oTabExportFunction(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip,
                      string tabTitle, oFunction function)
     : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
 {
     ExportFunction exportFunction = new ExportFunction(function) { Dock = DockStyle.Fill };
     workingPage.Controls.Add(exportFunction);
 }
コード例 #5
0
 public oTabSettingsPage(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip,
                      string tabTitle)
     : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
 {
     userSettings about = new userSettings { Dock = DockStyle.Fill };
     workingPage.Name = tabTitle;
     workingPage.Controls.Add(about);
 }
コード例 #6
0
ファイル: oTab.cs プロジェクト: obarhleam/FunctionHacker
 public oTab(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, string tabTitle)
 {
     this.toolStrip = toolStrip;
     this.parent = parent;
     this.panelMain = panelMain;
     toolStrip1 = mainToolStrip;
     this.tabTitle = tabTitle;
     activated = false;
     workingPage = new TabPage(tabTitle);
 }
コード例 #7
0
 public oTab(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, string tabTitle)
 {
     this.toolStrip = toolStrip;
     this.parent    = parent;
     this.panelMain = panelMain;
     toolStrip1     = mainToolStrip;
     this.tabTitle  = tabTitle;
     activated      = false;
     workingPage    = new TabPage(tabTitle);
 }
コード例 #8
0
ファイル: oTabIntroPage.cs プロジェクト: zH4x/FunctionHacker
        public oTabIntroPage(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip,
                             string tabTitle)
            : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
        {
            About about = new About {
                Dock = DockStyle.Fill
            };

            workingPage.Controls.Add(about);
        }
コード例 #9
0
        public oTabMemoryViewer(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, String tabTitle, ulong address, uint length)
            : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
        {
            MemoryViewer memoryViewer = new MemoryViewer(address, length)
            {
                Dock = DockStyle.Fill
            };

            WorkingPage.Controls.Add(memoryViewer);
        }
コード例 #10
0
        public oTabSettingsPage(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip,
                                string tabTitle)
            : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
        {
            userSettings about = new userSettings {
                Dock = DockStyle.Fill
            };

            workingPage.Name = tabTitle;
            workingPage.Controls.Add(about);
        }
コード例 #11
0
        public oTabExportFunction(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip,
                                  string tabTitle, oFunction function)
            : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
        {
            ExportFunction exportFunction = new ExportFunction(function)
            {
                Dock = DockStyle.Fill
            };

            workingPage.Controls.Add(exportFunction);
        }
コード例 #12
0
        public oTabFunctionList(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, string tabTitle, oFunctionList functionList, oVisMain visMain, oVisPlayBar visPlayBar)
            : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
        {
            // Initialize the controls we need
            InitializeComponents();

            // Set the data source for the control
            functionListControl.FunctionList = functionList;

            // Set the function list parent tab
            if (functionList != null)
                functionList.parentControl = functionListControl;
        }
コード例 #13
0
        public oTabFunctionList(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, string tabTitle, oFunctionList functionList, oVisMain visMain, oVisPlayBar visPlayBar)
            : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
        {
            // Initialize the controls we need
            InitializeComponents();

            // Set the data source for the control
            functionListControl.FunctionList = functionList;

            // Set the function list parent tab
            if (functionList != null)
            {
                functionList.parentControl = functionListControl;
            }
        }
コード例 #14
0
ファイル: formMain.cs プロジェクト: obarhleam/FunctionHacker
        public formMain()
        {
            InitializeComponent();

            // Create the tab manager
            tabControlMain.TabPages.Clear();
            tabManager = new oTabManager(tabControlMain, toolStrip2, panelVisualization, panelPlay, panelMain);

            // Add the basic tabs
            tabManager.addIntroTab("Introduction Page", true);
            //tabManager.addFunctionListTab("Function List: Empty", new oFunctionList( new List<oFunction>()), true );
            //tabManager.addAssemblyViewerTab("Assembly Viewer 1",false);
            //tabManager.addAssemblyViewerTab("Assembly Viewer 2",false);
            //tabManager.addMemoryViewerTab("Memory Viewer", false);

            // Main lock the tab control
            tabManager.mainLock(true);

            //Hotkey handler (we can register more hotkeys if we need them)
            hotKey = new SystemHotKey(Keys.F5, SystemHotKey.KeyModifiers.Control, OnHotKey);
        }
コード例 #15
0
 public oTabCallSender(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, string tabTitle, oFunctionList recordedData)
     : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
 {
     // Initialize the controls we need
     InitializeComponents(recordedData);
 }
コード例 #16
0
 public oTabMemoryViewer(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, String tabTitle, ulong address, uint length)
     : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
 {
     MemoryViewer memoryViewer = new MemoryViewer(address, length) {Dock = DockStyle.Fill};
     WorkingPage.Controls.Add(memoryViewer);
 }