|
1 /* |
|
2 * Copyright (c) 1998-1999 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 |
|
19 #include "LAFBTGPC.H" |
|
20 #include <uikon.hrh> |
|
21 #include <eikon.hrh> |
|
22 |
|
23 #include <lafpublc.hrh> |
|
24 |
|
25 EXPORT_C TInt LafButtonGroupContainer::ButtonType(TInt aUse) |
|
26 { |
|
27 switch (aUse) |
|
28 { |
|
29 case SLafButtonGroupContainer::EView: |
|
30 return EEikBgToolBar; |
|
31 case SLafButtonGroupContainer::EDialog: |
|
32 return EEikBgButtonPanel; |
|
33 case SLafButtonGroupContainer::EToolbar: |
|
34 return EEikBgToolBar; |
|
35 case SLafButtonGroupContainer::ECba: |
|
36 return EEikBgCba; |
|
37 case SLafButtonGroupContainer::EDialogButtons: |
|
38 return EEikBgButtonPanel; |
|
39 default: |
|
40 return EEikBgToolBar; |
|
41 } |
|
42 } |
|
43 |
|
44 EXPORT_C TInt LafButtonGroupContainer::Location(TInt aUse) |
|
45 { |
|
46 SLafButtonGroupContainer::TLocation location; |
|
47 switch (aUse) |
|
48 { |
|
49 case SLafButtonGroupContainer::EView: |
|
50 location=SLafButtonGroupContainer::EExternal; |
|
51 break; |
|
52 case SLafButtonGroupContainer::EDialog: |
|
53 location=SLafButtonGroupContainer::EInternal; |
|
54 break; |
|
55 case SLafButtonGroupContainer::EToolbar: |
|
56 location=SLafButtonGroupContainer::EExternal; |
|
57 break; |
|
58 case SLafButtonGroupContainer::ECba: |
|
59 location=SLafButtonGroupContainer::EExternal; |
|
60 break; |
|
61 case SLafButtonGroupContainer::EDialogButtons: |
|
62 location=SLafButtonGroupContainer::EInternal; |
|
63 break; |
|
64 default: |
|
65 location=SLafButtonGroupContainer::EExternal; |
|
66 break; |
|
67 } |
|
68 return location; |
|
69 } |