Ejemplo n.º 1
0
 public SearchHeader(DefaultCodecHeaderManager defaultCodecHeaderManager,
                     BackgroundDataBlockScanner backgroundDataBlockScanner)
 {
     _defaultCodecHeaderManager  = defaultCodecHeaderManager;
     _backgroundDataBlockScanner = backgroundDataBlockScanner;
     InitializeComponent();
 }
Ejemplo n.º 2
0
        public FullFileScanner(BackgroundDataBlockScanner backgroundDataBlockScanner)
        {
            _backgroundDataBlockScanner = backgroundDataBlockScanner;
            ScanNumCodecStreams         = -1;
            ScanMoreThanOneFragment     = true;

            _backgroundDataBlockScanner.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundDataBlockScanner_RunWorkerCompleted);
            _backgroundDataBlockScanner.ProgressChanged    += new ProgressChangedEventHandler(backgroundDataBlockScanner_ProgressChanged);
        }
        public void SelectKeyframeAfterFileScannerComplete(BackgroundDataBlockScanner dataBlockScanner, IResultNode keyframeToSelect)
        {
            _keyframeToSelect = keyframeToSelect;
            _dataBlockScanner = dataBlockScanner;

            if (_dataBlockScanner.IsBusy)
            {
                _dataBlockScanner.RunWorkerCompleted += new RunWorkerCompletedEventHandler(fileScanner_RunWorkerCompleted);
            }
            else
            {
                ScannerCompleted();
            }
        }
        /// <summary>
        /// Creates a new workpad.
        /// </summary>
        public Workpad(HeaderPanel headerPanel, BackgroundDataBlockScanner backgroundDataBlockScanner, Creator <RenameForm, Workpad> renameformCreator)
        {
            this.headerPanel            = headerPanel;
            _backgroundDataBlockScanner = backgroundDataBlockScanner;
            _renameformCreator          = renameformCreator;

            InitializeComponent();

            WorkpadName = "Workpad " + (++_workpadInstanceCount);

            headerPanel.HeaderSelectionChanged += new EventHandler <EventArgs>(headerPanel_HeaderSelectionChanged);

            toolStripMenuItemHexDisplay.CheckState = (Settings.Default.DisplayMode == DisplayMode.Hex) ? CheckState.Checked : CheckState.Unchecked;

            headerPanel.RootResult = CreateRootResult();
            headerPanel.SetColumns(null);
            headerPanel.SortColumnName      = DefaultSortColumnName;
            headerPanel.SortColumnDirection = DefaultSortDirection;
        }
        public FileTreeObject(WorkpadManager workpadManager, SendToList sendToList, IFileExport fileExport, BackgroundDataBlockScanner backgroundDataBlockScanner)
        {
            _workpadManager             = workpadManager;
            _sendToList                 = sendToList;
            _fileExport                 = fileExport;
            _backgroundDataBlockScanner = backgroundDataBlockScanner;
            _backgroundDataBlockScanner.RunWorkerCompleted += BackgroundDataBlockScanner_RunWorkerCompleted;
            _backgroundDataBlockScanner.ProgressChanged    += BackgroundDataBlockScanner_ProgressChanged;

            HexWorkshopAvailable = sendToList.HexWorkshopAvailable();

            this.DataSourceChanged          += FileTree_DataSourceChanged;
            this.FocusRowChanged            += FileTree_FocusRowChanged;
            this.SaveAsSingleFile           += FileTree_SaveAsSingleFile;
            this.SaveAsContiguousFile       += FileTree_SaveAsContiguousFile;
            this.SaveAsSeparateFiles        += FileTree_SaveAsSeparateFiles;
            this.ExportToXml                += FileTree_ExportToXml;
            this.GotoOffsetInHexWorkshop    += FileTree_GotoOffsetInHexWorkshop;
            this.GotoEndOffsetInHexWorkshop += FileTree_GotoEndOffsetInHexWorkshop;
        }