# -*- coding: utf-8 -*-
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QPushButton

'''
@author  : Zhou Jian
@email   : zhoujian@hust.edu.cn
@version : V1.1
@date    : 2018.04.22
'''

class BaseButton(QPushButton):
    '''
    基类按钮
    '''
    def __init__(self, name=""):
        super(BaseButton, self).__init__(name)


class SearchButton(BaseButton):
    '''
    搜素按钮，继承自基类按钮
    '''
    def __init__(self):
        super(SearchButton, self).__init__(name="商品搜索")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class AddButton(BaseButton):
    '''
    添加标签按钮，继承自基类按钮
    '''
    def __init__(self):
        super(AddButton, self).__init__(name="添加标签")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class AttachButton(BaseButton):
    '''
    标注标签按钮，继承自基类按钮
    '''
    def __init__(self):
        super(AttachButton, self).__init__(name="标注标签")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class ImportButton(BaseButton):
    '''
    导入数据按钮，继承自基类按钮
    '''
    def __init__(self):
        super(ImportButton, self).__init__(name="导入数据")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class ExportButton(BaseButton):
    '''
    导出数据按钮，继承自基类按钮
    '''
    def __init__(self):
        super(ExportButton, self).__init__(name="导出数据")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class InsertButton(BaseButton):
    '''
    添加数据按钮，继承自基类按钮
    '''
    def __init__(self):
        super(InsertButton, self).__init__(name="添加数据")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class DeleteButton(BaseButton):
    '''
    删除数据按钮，继承自基类按钮
    '''
    def __init__(self):
        super(DeleteButton, self).__init__(name="删除数据")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class ConfirmButton(BaseButton):
    '''
    确定按钮，继承自基类按钮
    '''
    def __init__(self):
        super(ConfirmButton, self).__init__(name="确定")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class CancelButton(BaseButton):
    '''
    取消按钮，继承自基类按钮
    '''
    def __init__(self):
        super(CancelButton, self).__init__(name="取消")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class GlobalSelectButton(BaseButton):
    '''
    全局按钮，继承自基类按钮
    '''
    def __init__(self):
        super(GlobalSelectButton, self).__init__(name="全局选择")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class AllSelectButton(BaseButton):
    '''
    全选按钮，继承自基类按钮
    '''
    def __init__(self):
        super(AllSelectButton, self).__init__(name="全部选择")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class ChangeConfigButton(BaseButton):
    '''
    更改配置按钮，继承自基类按钮
    '''
    def __init__(self):
        super(ChangeConfigButton, self).__init__(name="更改配置")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class ManualUpdateButton(BaseButton):
    '''
    手动更新按钮，继承自基类按钮
    '''
    def __init__(self):
        super(ManualUpdateButton, self).__init__(name="手动更新")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class SelectCommodityButton(BaseButton):
    '''
    选择商品按钮，继承自基类按钮
    '''
    def __init__(self):
        super(SelectCommodityButton, self).__init__(name="选择商品")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class MonthlyDataButton(BaseButton):
    '''
    月份数据按钮，继承自基类按钮
    '''
    def __init__(self):
        super(MonthlyDataButton, self).__init__(name="月份数据")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass


class YearlyDataButton(BaseButton):
    '''
    年份数据按钮，继承自基类按钮
    '''
    def __init__(self):
        super(YearlyDataButton, self).__init__(name="年份数据")
        self.function_init()
    
    # 功能绑定 - 
    def function_init(self):
        pass
