1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2
# Copyright 2013 Canonical
4
# This program is free software: you can redistribute it and/or modify it
5
# under the terms of the GNU General Public License version 3, as published
6
# by the Free Software Foundation.
8
class MainWindow(object):
9
"""An emulator class that makes it easy to interact with the shell"""
11
def __init__(self, app):
14
def get_qml_view(self):
15
"""Get the main QML view"""
16
return self.app.select_single("QQuickView")
18
def get_greeter(self):
19
return self.app.select_single("Greeter")
21
def get_greeter_content_loader(self):
22
return self.app.select_single("QQuickLoader", objectName="greeterContentLoader")
24
def get_login_loader(self):
25
return self.app.select_single("QQuickLoader", objectName="loginLoader")
27
def get_login_list(self):
28
return self.app.select_single("LoginList")
31
return self.app.select_single("Hud")
33
def get_hud_showable(self):
34
return self.app.select_single("Showable", objectName="hudShowable")
36
def get_hud_show_button(self):
37
return self.app.select_single("HudButton")
40
return self.app.select_single("Dash")
42
def get_dash_home_applications_grid(self):
43
return self.app.select_single("ApplicationsFilterGrid", objectName="dashHomeApplicationsGrid")
45
def get_bottombar(self):
46
return self.app.select_single("Bottombar")
48
def get_launcher(self):
49
return self.app.select_single("Launcher")