|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 QScrollArea#dialogArea { |
|
19 /* General size parameters for all installer dialogs */ |
|
20 |
|
21 /* this depends on display; NHD portrait width:360px and height:640px used */ |
|
22 /* Note that popup width and height is according to portrait dimensions, and is the same in portrait and landscape */ |
|
23 width: 346.6px; /*expr(var(hb-param-screen-short-edge)- 2*var(hb-param-margin-gene-screen)); /* 2un*/ |
|
24 /*height: /*the size of MessageBox with 3-5 rows of text? */ |
|
25 max-height: 626.6px; /*expr(var(hb-param-long-edge)-2*var(hb-param-margin-gene-screen)); |
|
26 /*position: vertically and horizontally centre of screen - is this needed?*/ |
|
27 } |
|
28 |
|
29 QScrollArea#appInfoArea { |
|
30 /* This is valid for all installation query application details, |
|
31 * and also for application details in short error message */ |
|
32 /* (ViewBase) */ |
|
33 /* Note: this text area becomes scrollable if there are more text |
|
34 * that can be displayed at one time (this could be also QAbstractScrollArea?)*/ |
|
35 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
36 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
37 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
38 } |
|
39 |
|
40 QLabel#heading { |
|
41 /* Any installation query heading text: its text size, and top/left margins */ |
|
42 font-size: 26.8px; /*hb-param-text-height-primary;/*4un*/ |
|
43 font-weight: bold; |
|
44 max-height: 53.6px; /*expr(var(hb-param-text-height-primary)+2*var(hb-param-margin-gene-popup)) - same as hb-param-widget-popup-heading-height;*/ |
|
45 margin-top: 13.4px; /*hb-param-margin-gene-top; /*2un*/ |
|
46 margin-left: 13.4px; /*hb-param-margin-gene-left; /*2un*/ |
|
47 } |
|
48 |
|
49 QLabel#contentIcon { |
|
50 /* This is valid for all icons displayed in the installation query content area */ |
|
51 /* Application icon, question icon, error icon in installation error dialog etc */ |
|
52 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
53 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
54 /* size of icon - fixed size */ |
|
55 min-width: 53.6px; /*hb-param-graphic-size-primary-large;/*8un*/ |
|
56 max-width: 53.6px; /*hb-param-graphic-size-primary-large;/*8un*/ |
|
57 min-height: 53.6px; /* hb-param-graphic-size-primary-large;/*8un*/ |
|
58 max-height: 53.6px; /* hb-param-graphic-size-primary-large;/*8un*/ |
|
59 } |
|
60 |
|
61 QComboBox#driveSelector{ |
|
62 /* Combo box in installationquery. Need to define the top margin at least (InstallConfirmationView). */ |
|
63 margin-top: 5.025px; /*hb-param-margin-gene-middle-vertical; /*0.75un*/ |
|
64 } |
|
65 |
|
66 QProgressBar#progressBar{ |
|
67 /* Progress bar in installationquery. Need to define the top margin at least (ProgressView). */ |
|
68 margin-top: 5.025px; /*hb-param-margin-gene-middle-vertical; /*0.75un*/ |
|
69 } |
|
70 |
|
71 QLabel#permissionDetails{ |
|
72 /* String that requests access for protected functionality in permission query */ |
|
73 /* (PermissionInfo) */ |
|
74 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
75 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
76 } |
|
77 |
|
78 QLabel#errorLabel{ |
|
79 /* short error message from USIF (note: this is not Java specific error message but |
|
80 * common to all installers), (ErrorView) */ |
|
81 font-size: 23.45px; /*hb-param-text-height-secondary; /*3.5un*/ |
|
82 margin-top: 5.025px; /*hb-param-margin-gene-middle-vertical; /*0.75un*/ |
|
83 } |
|
84 |
|
85 QLabel#detailsWarningLabel{ |
|
86 /* Application is certified / is not certified views and permission details |
|
87 * view texts (CertificateDetailsView, PermissionDetailsView) */ |
|
88 font-size: 23.45px; /*hb-param-text-height-secondary; /*3.5un*/ |
|
89 } |
|
90 |
|
91 QLabel#urlLabel{ |
|
92 /* Text in authentication dialog (UsernamePasswordView) */ |
|
93 /* Note that this dialog is always in portrait */ |
|
94 font-size: 23.45px; /*hb-param-text-height-secondary; /*3.5un*/ |
|
95 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
96 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
97 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
98 } |
|
99 |
|
100 QLabel#authLabel{ |
|
101 /* Text in authentication dialog (UsernamePasswordView) */ |
|
102 /* Note that this dialog is always in portrait */ |
|
103 font-size: 23.45px; /*hb-param-text-height-secondary; /*3.5un*/ |
|
104 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
105 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
106 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
107 } |
|
108 |
|
109 QLabel#usernamePasswordLabel{ |
|
110 /* Label of username and password input fields in authentication dialog (UsernamePasswordView) */ |
|
111 /* Note that this dialog is always in portrait */ |
|
112 font-size: 23.45px; /*hb-param-text-height-secondary; /*3.5un*/ |
|
113 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
114 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
115 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
116 } |
|
117 |
|
118 QLabel#usernamePasswordInputField{ |
|
119 /* Input fields of username and password in authentication dialog (UsernamePasswordView) */ |
|
120 /* Note that this dialog is always in portrait */ |
|
121 font-size: 23.45px; /*hb-param-text-height-secondary; /*3.5un*/ |
|
122 margin-top: 5.025px; /*hb-param-margin-gene-middle-vertical; /*0.75un*/ |
|
123 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
124 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
125 margin-bottom: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
126 } |
|
127 |
|
128 /* --- Buttons --- */ |
|
129 |
|
130 QPushButton { |
|
131 font-size: 20.1px;/* hb-param-text-height-tiny; /*3un*/ |
|
132 } |
|
133 |
|
134 QPushButton#softKeyButton{ |
|
135 /* Installation query OK button (ConfirmationViewBase) */ |
|
136 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
137 height: 50.25px; /*hb-param-widget-popup-softkey-height;/*7.5un*/ |
|
138 /* this depends on display; NHD portrait width:360px and height:640px used */ |
|
139 width: 173.3px; /*expr((var(hb-param-screen-short-edge)-2*var(hb-param-margin-gene-screen))/2); /* width of one button is half of popup width*/ |
|
140 } |
|
141 |
|
142 QPushButton#softKeyButtonWide{ |
|
143 /* Ok button to go back from a details view (application is certified / not certified views |
|
144 * and permission details view) (CertificateDetailsView, PermissionDetailsView)*/ |
|
145 /* this ok button has different top margin otherwise the same as OkCommand button with max-width */ |
|
146 margin-top: 5.025px; /*hb-param-margin-gene-middle-vertical; /*0.75un*/ |
|
147 height: 50.25px; /*hb-param-widget-popup-softkey-height;/*7.5un*/ |
|
148 } |
|
149 |
|
150 QPushButton#securityButton{ |
|
151 /* Security lock icon button in installation query heading (ViewBase.createSecurityButton) */ |
|
152 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
153 /* size of icon */ |
|
154 min-width: 26.8px; /* hb-param-graphic-size-primary-small; /*4un*/ |
|
155 max-width: 26.8px; /* hb-param-graphic-size-primary-small; /*4un*/ |
|
156 min-height: 26.8px; /* hb-param-graphic-size-primary-small; /*4un*/ |
|
157 max-height: 26.8px; /* hb-param-graphic-size-primary-small; /*4un*/ |
|
158 |
|
159 } |
|
160 |
|
161 QPushButton#detailsLink{ |
|
162 /* Button in permission query to view details (PermissionConfirmationView) */ |
|
163 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
164 margin-left: 13.4px; /*hb-param-margin-gene-left; /*2un*/ |
|
165 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
166 } |
|
167 |
|
168 QPushButton#allowButton{ |
|
169 /* Allow always function button in permission query */ |
|
170 /* (PermissionConfirmationView) */ |
|
171 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
172 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
173 margin-top: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
174 |
|
175 } |
|
176 |
|
177 QPushButton#denyButton{ |
|
178 /* Ask me later function buttons in permission query */ |
|
179 /* (PermissionConfirmationView) */ |
|
180 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
181 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
182 margin-top: 5.025px; /*hb-param-margin-gene-middle-vertical; /*0.75un*/ |
|
183 } |
|
184 |
|
185 QPushButton#cancelButton{ |
|
186 /* Cancel installing function button in permission query */ |
|
187 /* (PermissionConfirmationView) */ |
|
188 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
189 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
190 margin-top: 5.025px; /*hb-param-margin-gene-middle-vertical; /*0.75un*/ |
|
191 margin-bottom: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
192 |
|
193 } |
|
194 |
|
195 QCheckBox#retainDataButton { |
|
196 /* Retain user data check box button in update query */ |
|
197 /* Note that there is 2*hb-param-margin-gene-middle-vertical margin at the top as this check box is placed |
|
198 * after drive selector combo */ |
|
199 /* (InstallConfirmationView) */ |
|
200 margin-right: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
201 margin-left: 13.4px; /*hb-param-margin-gene-popup; /*2un*/ |
|
202 margin-top: 10.05px; /*expr(2*var(hb-param-margin-gene-middle-vertical)); |
|
203 } |
|
204 |
|
205 /* --- End Buttons --- */ |