# Path: hashmal_lib/core/chainparams.py
# class ParamsPreset(object):
#     def __init__(self, **kwargs):
#     def raw_signature_hash(cls, script, txTo, inIdx, hashtype):
#     def signature_hash(cls, script, txTo, inIdx, hashtype):
# def add_preset(preset):
# def remove_preset(preset):
# def get_presets():
# def get_tx_fields():
# def set_tx_fields(fields):
# def set_tx_serializer(cls):
# def get_block_header_fields():
# def set_block_header_fields(fields):
# def get_block_fields():
# def set_block_fields(fields):
# def get_opcode_overrides():
# def set_opcode_overrides(ops):
# def set_opcodes(op_names, ops_by_name, disabled_ops):
# def get_script_engine_class():
# def set_script_engine_class(cls):
# def set_to_preset(name):
# def signature_hash(script, txTo, inIdx, hashtype):
#         HASH_ONE = b'\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'


from PyQt4.QtGui import *
from PyQt4.QtCore import *
from hashmal_lib.core import chainparams
from gui_utils import floated_buttons, Amount, monospace_font, Separator
import logging


class ChainparamsComboBox(QComboBox):
    """ComboBox for selecting chainparams presets.

    Separated from SettingsDialog so it can be used elsewhere.
    """
    paramsChanged = pyqtSignal()
    def __init__(self, main_window, parent=None):
        super(ChainparamsComboBox, self).__init__(parent)
        self.gui = main_window
        self.config = self.gui.config


# Path: hashmal_lib/core/chainparams.py
# class ParamsPreset(object):
#     def __init__(self, **kwargs):
#     def raw_signature_hash(cls, script, txTo, inIdx, hashtype):
#     def signature_hash(cls, script, txTo, inIdx, hashtype):
# def add_preset(preset):
# def remove_preset(preset):
# def get_presets():
# def get_tx_fields():
# def set_tx_fields(fields):
# def set_tx_serializer(cls):
# def get_block_header_fields():
# def set_block_header_fields(fields):
# def get_block_fields():
# def set_block_fields(fields):
# def get_opcode_overrides():
# def set_opcode_overrides(ops):
# def set_opcodes(op_names, ops_by_name, disabled_ops):
# def get_script_engine_class():
# def set_script_engine_class(cls):
# def set_to_preset(name):
# def signature_hash(script, txTo, inIdx, hashtype):
#         HASH_ONE = b'\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'


# Path: hashmal_lib/settings_dialog.py
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from hashmal_lib.core import chainparams
from gui_utils import floated_buttons, Amount, monospace_font, Separator
import logging



class ChainparamsComboBox(QComboBox):
    """ComboBox for selecting chainparams presets.

    Separated from SettingsDialog so it can be used elsewhere.
    """
    paramsChanged = pyqtSignal()
    def __init__(self, main_window, parent=None):
        super(ChainparamsComboBox, self).__init__(parent)
        self.gui = main_window
        self.config = self.gui.config


        preset_names = [i.name for i in chainparams.get_presets()]