equal
deleted
inserted
replaced
19 #include <ganes/HgItem.h> |
19 #include <ganes/HgItem.h> |
20 #include "HgMarquee.h" |
20 #include "HgMarquee.h" |
21 #include "HgLayoutData.h" |
21 #include "HgLayoutData.h" |
22 #include "HgIndicatorManager.h" |
22 #include "HgIndicatorManager.h" |
23 #include "HgDrawUtils.h" |
23 #include "HgDrawUtils.h" |
|
24 #include "HgScrollbar.h" |
24 |
25 |
25 #include <AknsUtils.h> |
26 #include <AknsUtils.h> |
26 #include <AknUtils.h> |
27 #include <AknUtils.h> |
27 #include <AknsDrawUtils.h> |
28 #include <AknsDrawUtils.h> |
28 |
29 |
71 |
72 |
72 iLayoutData->SetItemLayout(list_single_pane( 0 )); |
73 iLayoutData->SetItemLayout(list_single_pane( 0 )); |
73 for(TInt i = 0; i <= KMaxNumberOfTitleIndicators; ++i) |
74 for(TInt i = 0; i <= KMaxNumberOfTitleIndicators; ++i) |
74 iLayoutData->SetTitleLayout( i, list_single_pane_t1( i ) ); |
75 iLayoutData->SetTitleLayout( i, list_single_pane_t1( i ) ); |
75 iLayoutData->SetFirstIndicatorLayout(list_single_pane_g2(0)); |
76 iLayoutData->SetFirstIndicatorLayout(list_single_pane_g2(0)); |
76 iLayoutData->SetSecondIndicatorLayout(list_single_pane_g1(1)); |
77 TInt variety = iScrollbar && !iScrollbar->IsStatic() ? 1 : 0; |
|
78 iLayoutData->SetSecondIndicatorLayout(list_single_pane_g1(variety)); |
77 |
79 |
78 // Get the Row rect. |
80 // Get the Row rect. |
79 TAknLayoutRect layout; |
81 TAknLayoutRect layout; |
80 layout.LayoutRect(ListRect(), iLayoutData->ItemLayout()); |
82 layout.LayoutRect(ListRect(), iLayoutData->ItemLayout()); |
81 iRowHeight = layout.Rect().Height(); |
83 iRowHeight = layout.Rect().Height(); |
153 : CHgList( aItemCount, aDefaultIcon ) |
155 : CHgList( aItemCount, aDefaultIcon ) |
154 { |
156 { |
155 |
157 |
156 } |
158 } |
157 |
159 |
158 // EOF |
160 // ----------------------------------------------------------------------------- |
|
161 // CHgSingleTextList::HandleScrollbarVisibilityChange() |
|
162 // ----------------------------------------------------------------------------- |
|
163 // |
|
164 void CHgSingleTextList::HandleScrollbarVisibilityChange( TBool aVisible ) |
|
165 { |
|
166 TInt variety = aVisible ? 1 : 0; |
|
167 iLayoutData->SetSecondIndicatorLayout(list_single_pane_g1(variety)); |
|
168 } |
|
169 |
|
170 // End of file |