# Path: awesometts/paths.py
# ICONS = os.path.join(ADDON, 'gui/icons')
# 
# Path: awesometts/gui/common.py
# class Label(QtWidgets.QLabel):
#     """Label with HTML disabled."""
# 
#     def __init__(self, *args, **kwargs):
#         super(Label, self).__init__(*args, **kwargs)
#         self.setTextFormat(QtCore.Qt.PlainText)
# 
# class Note(Label):
#     """Label with wrapping enabled and HTML disabled."""
# 
#     def __init__(self, *args, **kwargs):
#         super(Note, self).__init__(*args, **kwargs)
#         self.setWordWrap(True)
# 
# ICON = QtGui.QIcon(ICON_FILE)


import inspect
from PyQt5 import QtCore, QtWidgets, QtGui
from ..paths import ICONS
from .common import Label, Note, ICON
    _FONT_TITLE.setBold(True)

    _SPACING = 10

    __slots__ = [
        '_addon',  # bundle of config, logger, paths, router, version
        '_title',  # description of this window
    ]

    def __init__(self, title, addon, parent):
        """
        Set the modal status for the dialog, sets its layout to the
        return value of the _ui() method, and sets a default title.
        """

        self._addon = addon
        self._addon.logger.debug(
            "Constructing %s (%s) dialog",
            title, self.__class__.__name__,
        )
        self._title = title

        super(Dialog, self).__init__(parent)

        self.setModal(True)
        self.setLayout(self._ui())
        self.setWindowFlags(
            self.windowFlags() &
            ~QtCore.Qt.WindowContextHelpButtonHint
        )

# Path: awesometts/paths.py
# ICONS = os.path.join(ADDON, 'gui/icons')
# 
# Path: awesometts/gui/common.py
# class Label(QtWidgets.QLabel):
#     """Label with HTML disabled."""
# 
#     def __init__(self, *args, **kwargs):
#         super(Label, self).__init__(*args, **kwargs)
#         self.setTextFormat(QtCore.Qt.PlainText)
# 
# class Note(Label):
#     """Label with wrapping enabled and HTML disabled."""
# 
#     def __init__(self, *args, **kwargs):
#         super(Note, self).__init__(*args, **kwargs)
#         self.setWordWrap(True)
# 
# ICON = QtGui.QIcon(ICON_FILE)


# Path: awesometts/gui/base.py
import inspect
from PyQt5 import QtCore, QtWidgets, QtGui
from ..paths import ICONS
from .common import Label, Note, ICON

    _FONT_TITLE.setBold(True)

    _SPACING = 10

    __slots__ = [
        '_addon',  # bundle of config, logger, paths, router, version
        '_title',  # description of this window
    ]

    def __init__(self, title, addon, parent):
        """
        Set the modal status for the dialog, sets its layout to the
        return value of the _ui() method, and sets a default title.
        """

        self._addon = addon
        self._addon.logger.debug(
            "Constructing %s (%s) dialog",
            title, self.__class__.__name__,
        )
        self._title = title

        super(Dialog, self).__init__(parent)

        self.setModal(True)
        self.setLayout(self._ui())
        self.setWindowFlags(
            self.windowFlags() &
            ~QtCore.Qt.WindowContextHelpButtonHint
        )

        self.setWindowIcon(ICON)