author | Christian Morlok <symbian.org@christianmorlok.de> |
Sat, 27 Mar 2010 10:22:08 +0100 | |
branch | v5backport |
changeset 37 | 03b332946b95 |
parent 35 | 9d28e9ec8f22 |
permissions | -rw-r--r-- |
35
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
1 |
/* |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
3 |
* All rights reserved. |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
8 |
* |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
11 |
* |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
12 |
* Contributors: |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
13 |
* |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
14 |
* Description: Changes cba button's label to image. |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
15 |
* |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
16 |
*/ |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
17 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
18 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
19 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
20 |
#ifndef EIKSOFTKEYIMAGE_H |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
21 |
#define EIKSOFTKEYIMAGE_H |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
22 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
23 |
// FORWARD DECLARATIONS |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
24 |
class CEikButtonGroupContainer; |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
25 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
26 |
// CLASS DECLARATION |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
27 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
28 |
/** |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
29 |
* Changes cba button's label to image. |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
30 |
* |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
31 |
* @lib EIKCOCTL |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
32 |
* @since 2.0 |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
33 |
*/ |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
34 |
class EikSoftkeyImage |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
35 |
{ |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
36 |
public: |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
37 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
38 |
/** |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
39 |
* Set image to cba button by replacing label |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
40 |
* @since 2.0 |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
41 |
* @param aButtonGroupContainer Button container |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
42 |
* @param aImage Image to button, |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
43 |
* Takes Images ownership |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
44 |
* @param aLeft Boolean: left or right button. |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
45 |
* If true, then change left, |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
46 |
* if false, change right |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
47 |
*/ |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
48 |
IMPORT_C static void SetImage(CEikButtonGroupContainer* aButtonGroupContainer, CEikImage& aImage, TBool aLeft); |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
49 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
50 |
/** |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
51 |
* Change to cba button image back to label |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
52 |
* @since 2.0 |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
53 |
* @param aButtonGroupContainer Button container |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
54 |
* @param aLeft Boolean: left or right button. |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
55 |
* If true, then change left, |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
56 |
* if false, change right |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
57 |
*/ |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
58 |
IMPORT_C static void SetLabel(CEikButtonGroupContainer* aButtonGroupContainer, TBool aLeft); |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
59 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
60 |
private: |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
61 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
62 |
/** |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
63 |
* C++ default constructor. |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
64 |
*/ |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
65 |
EikSoftkeyImage() {}; |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
66 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
67 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
68 |
}; |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
69 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
70 |
#endif // EIKSOFTKEYIMAGE_H |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
71 |
|
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
72 |
// End of File |
9d28e9ec8f22
updated dependencies
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
73 |