'''
Created on 05 nov. 2022

@author: arxit
'''
from __future__ import absolute_import

from builtins import object
from .import_shp_dialog import ImportShpDialog

class ImportSHP(object):
    '''
    Main class for the import data widget
    '''

    def __init__(self, filename):
        '''
        Constructor

        :param filename: The SHP filename
        :type filename: str, QString
        '''
        self.filename = filename

    def runImport(self):
        '''
        Import a SHP file
        '''

        self.dlg = ImportShpDialog(self.filename)
        if self.dlg.valid:
            self.dlg.show()