~michael-sheldon/ubuntu-keyboard/fix-oxide-dismiss-test

« back to all changes in this revision

Viewing changes to tests/unittests/ut_dynamic-layout/test-ui-constants.qml

  • Committer: Guenter Schwann
  • Date: 2013-10-24 10:17:12 UTC
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: guenter.schwann@canonical.com-20131024101712-82euciqg8delaxie
Reorganize tests let "make check" pass

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
import QtQuick 2.0
 
18
import Ubuntu.Components 0.1
 
19
 
 
20
 
 
21
/**
 
22
 * these items only hold variables
 
23
 */
 
24
 
 
25
Item {
 
26
     id: keyboard_constants
 
27
 
 
28
     property real key_area_borders:                        units.gu(  1.222    );
 
29
     property string font_color:                            "#666666"
 
30
     property string font_family:                           "Ubuntu Medium"
 
31
 
 
32
     property int  reference_width:                         720
 
33
     property int  reference_height:                        468
 
34
 
 
35
     property int  portrait_invisible_touch_area:           units.gu(  6.777    );
 
36
     property int  portrait_keyboard_visible_height:        units.gu( 26.0      );
 
37
     property real portrait_keyboard_screen_width_ratio:               1.0
 
38
 
 
39
     property real portrait_top_margin:                     units.gu(  1.35     );
 
40
     property real landscape_top_margin:                    units.gu(  4.35     );
 
41
     property real portrait_bottom_margin:                  units.gu(  2.00     );
 
42
     property real landscape_bottom_margin:                 units.gu(  2.00     );
 
43
 
 
44
     property real key_height:                              units.gu(  4.888     ); // not used
 
45
 
 
46
     // make sure when you change these, also change the unittest
 
47
     property real key_width_small:                         10
 
48
     property real key_width_medium:                        12
 
49
     property real key_width_large:                         15                   // shift
 
50
     property real key_width_xlarge:                        18                   // 123 key
 
51
     property real key_width_xxlarge:                       24                   // space
 
52
     property real key_width_stretched:                     30                   // ?
 
53
 
 
54
     property real font_size:                               12;
 
55
     property real font_size_small:                         10;
 
56
 
 
57
     property int  landscape_invisible_touch_area:          units.gu(  6.777    );
 
58
     property int  landscape_keyboard_visible_height:       units.gu( 33.4      );
 
59
     property real landscape_keyboard_screen_width_ratio:              1.0
 
60
 
 
61
     property real landscape_space_between_rows:            units.dp(  0.00     );
 
62
     property real landscape_space_between_keys:            units.dp(  0.00     );
 
63
     property real portrait_space_between_rows:             units.dp(  2.00     );
 
64
     property real portrait_space_between_keys:             units.dp( 10.00     );
 
65
 
 
66
     property string key_background_normal:                 "keybg@18.png"
 
67
     property string key_background_special:                "keybg_action@18.png"
 
68
     property string key_background_deadkey:                ""
 
69
 
 
70
     property real phone_keyboard_height_portrait:  0.365;
 
71
     property real phone_keyboard_height_landscape: 0.50;
 
72
 
 
73
     property real tablet_keyboard_height_portrait:  0.28;
 
74
     property real tablet_keyboard_height_landscape: 0.38;
 
75
 
 
76
     property int landscape_wordribbon_height:              units.gu( 4.0 );
 
77
     property int portrait_wordribbon_height:               units.gu( 4.0 );
 
78
}
 
79