from ..util import is_qt_installed, is_imgui_installed

__all__ = []

if is_qt_installed():
    HAS_QT = True
    from .qt import load_dialog_folder, LBMMainWindow
else:
    HAS_QT = False
    load_dialog_folder = None
    LBMMainWindow = None

if is_imgui_installed():
    HAS_IMGUI = True
    from .imgui import SummaryDataWidget, PollenCalibrationWidget
else:
    HAS_IMGUI = False
    PollenCalibrationWidget = None
    SummaryDataWidget = None

from .run_gui import run_gui

__all__ += [
    "load_dialog_folder",
    "LBMMainWindow",
    "HAS_QT",
    "SummaryDataWidget",
    "PollenCalibrationWidget",
    "HAS_IMGUI",
    "run_gui",
]
