equal
deleted
inserted
replaced
35 |
35 |
36 /// Unnamed namespace for local definitions |
36 /// Unnamed namespace for local definitions |
37 namespace |
37 namespace |
38 { |
38 { |
39 // LOCAL CONSTANTS AND MACROS |
39 // LOCAL CONSTANTS AND MACROS |
40 _LIT( KSeparator, "\t" ); |
|
41 _LIT( KSpace, " " ); |
40 _LIT( KSpace, " " ); |
42 } |
41 } |
43 |
42 |
44 |
43 |
45 // ================= MEMBER FUNCTIONS ======================= |
44 // ================= MEMBER FUNCTIONS ======================= |
65 } |
64 } |
66 |
65 |
67 // inline because only one call site |
66 // inline because only one call site |
68 inline void CPbk2PhonebookInfoDlg::ConstructL() |
67 inline void CPbk2PhonebookInfoDlg::ConstructL() |
69 { |
68 { |
70 iListBox = new(ELeave) CAknSingleHeadingPopupMenuStyleListBox; |
69 iListBox = new(ELeave) CAknSinglePopupMenuStyleListBox; |
71 iPopupList = CAknPopupList::NewL(iListBox, |
70 iPopupList = CAknPopupList::NewL(iListBox, |
72 R_AVKON_SOFTKEYS_OK_EMPTY__OK, |
71 R_AVKON_SOFTKEYS_OK_EMPTY__OK, |
73 AknPopupLayouts::EMenuGraphicHeadingWindow); |
72 AknPopupLayouts::EMenuGraphicHeadingWindow); |
74 iListBox->ConstructL(iPopupList, EAknListBoxViewerFlags); |
73 iListBox->ConstructL(iPopupList, EAknListBoxViewerFlags); |
75 |
74 |
162 |
161 |
163 for (TInt i = 0; i < count; ++i) |
162 for (TInt i = 0; i < count; ++i) |
164 { |
163 { |
165 MPbk2StoreInfoUiItem& uiItem = *iInfoItems->At(i); |
164 MPbk2StoreInfoUiItem& uiItem = *iInfoItems->At(i); |
166 HBufC* itemBuf = HBufC::NewLC(uiItem.HeadingText().Length() + |
165 HBufC* itemBuf = HBufC::NewLC(uiItem.HeadingText().Length() + |
167 uiItem.ItemText().Length() + KSeparator().Length() + KSpace().Length()); |
166 uiItem.ItemText().Length() + KSpace().Length()); |
168 TPtr ptr(itemBuf->Des()); |
167 TPtr ptr(itemBuf->Des()); |
169 ptr.Append(KSeparator); |
|
170 ptr.Append(uiItem.HeadingText()); |
168 ptr.Append(uiItem.HeadingText()); |
171 ptr.Append(KSpace); |
169 ptr.Append(KSpace); |
172 ptr.Append(uiItem.ItemText()); |
170 ptr.Append(uiItem.ItemText()); |
173 // Convert digits |
171 // Convert digits |
174 AknTextUtils::DisplayTextLanguageSpecificNumberConversion(ptr); |
172 AknTextUtils::DisplayTextLanguageSpecificNumberConversion(ptr); |