﻿Ext.ux.FileHashGridPanel = Ext.extend(Ext.ux.GenericDeviceGridPanel, {

    // standard initializer
    initComponent: function() {
        Ext.ux.FileHashGridPanel.superclass.initComponent.apply(this, arguments);

        // args have to go here as base class initComponent doesn't get called for some reason
        var config = {
            view: new Ext.ux.FileHashGridView({ scrollOffset: g_gridScrollOffset })
        };

        Ext.apply(this, config);
        Ext.apply(this.initialConfig, config);

        this.on('rowdblclick', this.onRowDblClick, this);
    },
    

    // create an array of filehash ids from the selected records
    createSelectedFileHashIdArray: function() {
        var fileHashIdArray = [];
        var selections      = this.getSelectionModel().getSelections();

        fileHashIdArray = fileHashHelper_createFileHashIdArray(selections);

        return fileHashIdArray;
    }
});

Ext.ux.FileHashGridView = Ext.extend(Ext.ux.GenericDeviceGridView, {
});

Ext.ux.FileHashGridDragZone = Ext.extend(Ext.ux.GenericDeviceGridDragZone, {
});