equal
deleted
inserted
replaced
35 #include <akntitle.h> |
35 #include <akntitle.h> |
36 #include <barsread.h> |
36 #include <barsread.h> |
37 #include <gulicon.h> // For CGulIcon |
37 #include <gulicon.h> // For CGulIcon |
38 #include <csxhelp/cp.hlp.hrh> |
38 #include <csxhelp/cp.hlp.hrh> |
39 #include <gsfwviewuids.h> // for KUidGS |
39 #include <gsfwviewuids.h> // for KUidGS |
|
40 #include "GsContainerExt.h" //For CGsContainerExt |
40 |
41 |
41 //CONSTANTS |
42 //CONSTANTS |
42 |
43 |
43 // ========================= MEMBER FUNCTIONS ================================ |
44 // ========================= MEMBER FUNCTIONS ================================ |
44 |
45 |
83 CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto ); |
84 CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto ); |
84 |
85 |
85 // Obtain reference to listbox's item text array: |
86 // Obtain reference to listbox's item text array: |
86 iItemTextArray |
87 iItemTextArray |
87 = STATIC_CAST( CDesCArray*, iListBox->Model()->ItemTextArray() ); |
88 = STATIC_CAST( CDesCArray*, iListBox->Model()->ItemTextArray() ); |
|
89 iExt = CGsContainerExt::NewL(); |
88 |
90 |
89 SetRect( aRect ); |
91 SetRect( aRect ); |
90 ActivateL(); |
92 ActivateL(); |
91 __GSLOGSTRING( "[CGSMainContainer] ConstructL()" ); |
93 __GSLOGSTRING( "[CGSMainContainer] ConstructL()" ); |
92 } |
94 } |
113 |
115 |
114 if ( iListBox ) |
116 if ( iListBox ) |
115 { |
117 { |
116 delete iListBox; |
118 delete iListBox; |
117 } |
119 } |
|
120 delete iExt; |
118 __GSLOGSTRING( "[CGSMainContainer] ~CGSMainContainer" ); |
121 __GSLOGSTRING( "[CGSMainContainer] ~CGSMainContainer" ); |
119 } |
122 } |
120 |
123 |
121 // --------------------------------------------------------------------------- |
124 // --------------------------------------------------------------------------- |
122 // CGSMainContainer::UpdateListbox |
125 // CGSMainContainer::UpdateListbox |
344 if (aListBox->CurrentItemIndex() < 0) |
347 if (aListBox->CurrentItemIndex() < 0) |
345 { |
348 { |
346 // Negative listbox value -> no item selected? |
349 // Negative listbox value -> no item selected? |
347 break; |
350 break; |
348 } |
351 } |
349 |
352 if ( iExt->iDblClickPreventer->IsActive() ) |
|
353 { |
|
354 break; |
|
355 } |
|
356 iExt->iDblClickPreventer->Start(); |
350 CGSPluginInterface* selectedPlugin = iVisiblePlugins->operator[]( |
357 CGSPluginInterface* selectedPlugin = iVisiblePlugins->operator[]( |
351 aListBox->CurrentItemIndex()); |
358 aListBox->CurrentItemIndex()); |
352 |
359 |
353 // Different command is used depending on the plugin type. |
360 // Different command is used depending on the plugin type. |
354 switch (selectedPlugin->ItemType()) |
361 switch (selectedPlugin->ItemType()) |