# Path: wildfind/common/constants.py
# HARRIER_STATUS = ['Idle', 'Locate', 'Capture', 'Process']
# 
# Path: wildfind/falconer/utils_qt.py
# def set_max_text_width(label, textList):
#     longest = max(textList, key=len)
#     width = label.fontMetrics().width(longest)
#     label.setFixedWidth(width * 1.5)


from PySide import QtGui
from wildfind.common.constants import HARRIER_STATUS
from wildfind.falconer.utils_qt import set_max_text_width
                 'Opening...', 'Merging...', 'Saving...', 'Exporting...',
                 'Printing...', 'Processing...', 'Connecting to {}...',
                 'Downloading...']

    _CONNECTED = ['Not connected', 'Connected']
    _FIX = ['No fix', 'Fix']

    def __init__(self, statusBar):
        self._statusBar = statusBar

        statusBar.addPermanentWidget(QtGui.QLabel('Remote:'))

        self._labelConnected = QtGui.QLabel()
        self._labelConnected.setFrameStyle(QtGui.QFrame.Panel |
                                           QtGui.QFrame.Sunken)
        self._labelConnected.setToolTip('Remote connection')
        set_max_text_width(self._labelConnected, Status._CONNECTED)
        statusBar.addPermanentWidget(self._labelConnected)

        self._labelRemoteStatus = QtGui.QLabel()
        self._labelRemoteStatus.setFrameStyle(QtGui.QFrame.Panel |
                                              QtGui.QFrame.Sunken)
        self._labelRemoteStatus.setToolTip('Remote status')
        set_max_text_width(self._labelRemoteStatus, HARRIER_STATUS)
        statusBar.addPermanentWidget(self._labelRemoteStatus)

        self._labelRemoteFix = QtGui.QLabel()
        self._labelRemoteFix.setFrameStyle(QtGui.QFrame.Panel |
                                           QtGui.QFrame.Sunken)
        self._labelRemoteFix.setToolTip('Remote GPS fix')

# Path: wildfind/common/constants.py
# HARRIER_STATUS = ['Idle', 'Locate', 'Capture', 'Process']
# 
# Path: wildfind/falconer/utils_qt.py
# def set_max_text_width(label, textList):
#     longest = max(textList, key=len)
#     width = label.fontMetrics().width(longest)
#     label.setFixedWidth(width * 1.5)


# Path: wildfind/falconer/status.py
from PySide import QtGui
from wildfind.common.constants import HARRIER_STATUS
from wildfind.falconer.utils_qt import set_max_text_width

                 'Opening...', 'Merging...', 'Saving...', 'Exporting...',
                 'Printing...', 'Processing...', 'Connecting to {}...',
                 'Downloading...']

    _CONNECTED = ['Not connected', 'Connected']
    _FIX = ['No fix', 'Fix']

    def __init__(self, statusBar):
        self._statusBar = statusBar

        statusBar.addPermanentWidget(QtGui.QLabel('Remote:'))

        self._labelConnected = QtGui.QLabel()
        self._labelConnected.setFrameStyle(QtGui.QFrame.Panel |
                                           QtGui.QFrame.Sunken)
        self._labelConnected.setToolTip('Remote connection')
        set_max_text_width(self._labelConnected, Status._CONNECTED)
        statusBar.addPermanentWidget(self._labelConnected)

        self._labelRemoteStatus = QtGui.QLabel()
        self._labelRemoteStatus.setFrameStyle(QtGui.QFrame.Panel |
                                              QtGui.QFrame.Sunken)
        self._labelRemoteStatus.setToolTip('Remote status')
        set_max_text_width(self._labelRemoteStatus, HARRIER_STATUS)
        statusBar.addPermanentWidget(self._labelRemoteStatus)

        self._labelRemoteFix = QtGui.QLabel()
        self._labelRemoteFix.setFrameStyle(QtGui.QFrame.Panel |
                                           QtGui.QFrame.Sunken)
        self._labelRemoteFix.setToolTip('Remote GPS fix')

        set_max_text_width(self._labelRemoteFix, Status._FIX)