javauis/lcdui_akn/lcdui/inc/CMIDChoiceGroupModel.h
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
    51     };
    51     };
    52 public:
    52 public:
    53     virtual void HandleChoiceGroupModelEventL(
    53     virtual void HandleChoiceGroupModelEventL(
    54         CMIDChoiceGroupModel* aModel,
    54         CMIDChoiceGroupModel* aModel,
    55         TChoiceGroupModelEvent aEvent) = 0;
    55         TChoiceGroupModelEvent aEvent) = 0;
    56 #ifdef RD_JAVA_S60_RELEASE_9_2
       
    57     virtual TBool IsControlOnFormHighlighted() = 0;
       
    58 #endif // RD_JAVA_S60_RELEASE_9_2
       
    59 };
    56 };
    60 
    57 
    61 
    58 
    62 /**
    59 /**
    63  * ChoiceGroup listbox model. Contains ChoiceGroup elements.
    60  * ChoiceGroup listbox model. Contains ChoiceGroup elements.
   160     // This should be done every time the contents of the model are changed,
   157     // This should be done every time the contents of the model are changed,
   161     // or icon array is retrieved with create flag set.
   158     // or icon array is retrieved with create flag set.
   162     // NOTE that the indices in the array and the item strings should
   159     // NOTE that the indices in the array and the item strings should
   163     // be synchronised. The selection icon is always at index
   160     // be synchronised. The selection icon is always at index
   164     // 0 (selected) and 1 (not selected)
   161     // 0 (selected) and 1 (not selected)
   165 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   166     void UpdateIconArrayL(TBool aHighlighted);
       
   167 #else
       
   168     void UpdateIconArrayL();
   162     void UpdateIconArrayL();
   169 #endif // RD_JAVA_S60_RELEASE_9_2
       
   170 
   163 
   171     // Returns true if there is at least one item that has icon
   164     // Returns true if there is at least one item that has icon
   172     TBool HasIcons() const;
   165     TBool HasIcons() const;
   173 
   166 
   174 private:  // Utility functions
   167 private:  // Utility functions
   188     // Icon to display the selection state. Depending on the
   181     // Icon to display the selection state. Depending on the
   189     // choice type this is either a radiobutton or a checkbox
   182     // choice type this is either a radiobutton or a checkbox
   190     CGulIcon* iIconSelected;
   183     CGulIcon* iIconSelected;
   191     CGulIcon* iIconNotSelected;
   184     CGulIcon* iIconNotSelected;
   192 
   185 
   193 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   194     // The same icons as above, but used when whole ChoiceGroup
       
   195     // gets highlighted on Form
       
   196     CGulIcon* iIconSelectedHighlighted;
       
   197     CGulIcon* iIconNotSelectedHighlighted;
       
   198 #endif // RD_JAVA_S60_RELEASE_9_2
       
   199 
       
   200     // Dummy icon for elements that have no icon
   186     // Dummy icon for elements that have no icon
   201     CGulIcon* iIconDummy;
   187     CGulIcon* iIconDummy;
   202 
   188 
   203     // Element array
   189     // Element array
   204     CArrayPtrFlat<CMIDChoiceGroupElement>* iElements;
   190     CArrayPtrFlat<CMIDChoiceGroupElement>* iElements;