# Path: argos/qt/bindings.py
# API_PYSIDE2 = 'pyside2'
# API_PYQT5 = 'pyqt5'
# ALL_API = [API_PYQT5, API_PYSIDE2]
# QT_API_NAME = os.environ.get('QT_API')
#     QT_API_NAME = None
#         QT_API_NAME = API_PYQT5
#         QT_API_NAME = API_PYSIDE2
#         QT_API_NAME = API_PYQT5
#         QT_API_NAME = API_PYSIDE2


import logging
from argos.qt import QtWidgets, Qt
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Argos. If not, see <http://www.gnu.org/licenses/>.

""" Common functionality, look and feel for all table views in Argos.

    Control-C copies all data.
"""
from __future__ import print_function



logger = logging.getLogger(__name__)

# Qt classes have many ancestors
#pylint: disable=R0901

class ArgosTableView(QtWidgets.QTableView):
    """ QTableView that defines common functionality for argos
    """
    def __init__(self, *args, **kwargs):
        """ Constructor
        """
        super(ArgosTableView, self).__init__(*args, **kwargs)


    def keyPressEvent(self, event):
        """ Overrides key press events to capture Ctrl-C
        """

# Path: argos/qt/bindings.py
# API_PYSIDE2 = 'pyside2'
# API_PYQT5 = 'pyqt5'
# ALL_API = [API_PYQT5, API_PYSIDE2]
# QT_API_NAME = os.environ.get('QT_API')
#     QT_API_NAME = None
#         QT_API_NAME = API_PYQT5
#         QT_API_NAME = API_PYSIDE2
#         QT_API_NAME = API_PYQT5
#         QT_API_NAME = API_PYSIDE2


# Path: argos/widgets/argostableview.py
import logging
from argos.qt import QtWidgets, Qt

# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Argos. If not, see <http://www.gnu.org/licenses/>.

""" Common functionality, look and feel for all table views in Argos.

    Control-C copies all data.
"""
from __future__ import print_function



logger = logging.getLogger(__name__)

# Qt classes have many ancestors
#pylint: disable=R0901

class ArgosTableView(QtWidgets.QTableView):
    """ QTableView that defines common functionality for argos
    """
    def __init__(self, *args, **kwargs):
        """ Constructor
        """
        super(ArgosTableView, self).__init__(*args, **kwargs)


    def keyPressEvent(self, event):
        """ Overrides key press events to capture Ctrl-C
        """

        if event.key() == Qt.Key_C and event.modifiers() == Qt.ControlModifier: