| 1 |
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
| 2 |
# |
| 3 |
# Copyright (C) 2012, 2013, 2014 Canonical Ltd. |
| 4 |
# |
| 5 |
# This program is free software; you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU Lesser General Public License as published by |
| 7 |
# the Free Software Foundation; version 3. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, |
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
# GNU Lesser General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU Lesser General Public License |
| 15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
|
| 17 |
"""Emulators was the old name for the custom proxy objects.""" |
| 18 |
|
| 19 |
import logging |
| 20 |
|
| 21 |
from lomiriuitoolkit._custom_proxy_objects import ( |
| 22 |
check_autopilot_version, |
| 23 |
get_keyboard, |
| 24 |
get_pointing_device, |
| 25 |
CheckBox, |
| 26 |
Header, |
| 27 |
Dialog, |
| 28 |
UCListItem, |
| 29 |
MainView, |
| 30 |
OptionSelector, |
| 31 |
QQuickFlickable, |
| 32 |
QQuickListView, |
| 33 |
TabBar, |
| 34 |
Tabs, |
| 35 |
TextField, |
| 36 |
Toolbar, |
| 37 |
ToolkitException as ToolkitEmulatorException, |
| 38 |
LomiriUIToolkitCustomProxyObjectBase as LomiriUIToolkitEmulatorBase, |
| 39 |
) |
| 40 |
from lomiriuitoolkit._custom_proxy_objects.listitems import ( |
| 41 |
Base, |
| 42 |
Empty, |
| 43 |
ItemSelector, |
| 44 |
MultiValue, |
| 45 |
SingleControl, |
| 46 |
SingleValue, |
| 47 |
Standard, |
| 48 |
Subtitled |
| 49 |
) |
| 50 |
from lomiriuitoolkit._custom_proxy_objects.popups import ( |
| 51 |
TextInputPopover, |
| 52 |
ActionSelectionPopover, |
| 53 |
ComposerSheet |
| 54 |
) |
| 55 |
|
| 56 |
|
| 57 |
logger = logging.getLogger(__name__) |
| 58 |
|
| 59 |
|
| 60 |
logger.warning( |
| 61 |
'The lomiriuitoolkit.emulators module is deprecated. Import the autopilot ' |
| 62 |
'helpers from the top-level lomiriuitoolkit module.') |
| 63 |
|
| 64 |
|
| 65 |
__all__ = [ |
| 66 |
'check_autopilot_version', |
| 67 |
'get_keyboard', |
| 68 |
'get_pointing_device', |
| 69 |
'TextInputPopover', |
| 70 |
'ActionSelectionPopover', |
| 71 |
'Base', |
| 72 |
'CheckBox', |
| 73 |
'ComposerSheet', |
| 74 |
'Empty', |
| 75 |
'UCListItem', |
| 76 |
'Header', |
| 77 |
'Dialog', |
| 78 |
'ItemSelector', |
| 79 |
'MainView', |
| 80 |
'MultiValue', |
| 81 |
'OptionSelector', |
| 82 |
'QQuickFlickable', |
| 83 |
'QQuickListView', |
| 84 |
'SingleControl', |
| 85 |
'SingleValue', |
| 86 |
'Standard', |
| 87 |
'Subtitled', |
| 88 |
'TabBar', |
| 89 |
'Tabs', |
| 90 |
'TextField', |
| 91 |
'Toolbar', |
| 92 |
'ToolkitEmulatorException', |
| 93 |
'LomiriUIToolkitEmulatorBase', |
| 94 |
] |