javauis/lcdui_akn/lcdui/inc/CMIDChoiceGroupModel.h
branchRCL_3
changeset 77 7cee158cb8cd
parent 19 04becd199f91
child 83 26b2b12093af
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
    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
    56 };
    59 };
    57 
    60 
    58 
    61 
    59 /**
    62 /**
    60  * ChoiceGroup listbox model. Contains ChoiceGroup elements.
    63  * ChoiceGroup listbox model. Contains ChoiceGroup elements.
   157     // This should be done every time the contents of the model are changed,
   160     // This should be done every time the contents of the model are changed,
   158     // or icon array is retrieved with create flag set.
   161     // or icon array is retrieved with create flag set.
   159     // NOTE that the indices in the array and the item strings should
   162     // NOTE that the indices in the array and the item strings should
   160     // be synchronised. The selection icon is always at index
   163     // be synchronised. The selection icon is always at index
   161     // 0 (selected) and 1 (not selected)
   164     // 0 (selected) and 1 (not selected)
       
   165 #ifdef RD_JAVA_S60_RELEASE_9_2
       
   166     void UpdateIconArrayL(TBool aHighlighted);
       
   167 #else
   162     void UpdateIconArrayL();
   168     void UpdateIconArrayL();
       
   169 #endif // RD_JAVA_S60_RELEASE_9_2
   163 
   170 
   164     // Returns true if there is at least one item that has icon
   171     // Returns true if there is at least one item that has icon
   165     TBool HasIcons() const;
   172     TBool HasIcons() const;
   166 
   173 
   167 private:  // Utility functions
   174 private:  // Utility functions
   181     // Icon to display the selection state. Depending on the
   188     // Icon to display the selection state. Depending on the
   182     // choice type this is either a radiobutton or a checkbox
   189     // choice type this is either a radiobutton or a checkbox
   183     CGulIcon* iIconSelected;
   190     CGulIcon* iIconSelected;
   184     CGulIcon* iIconNotSelected;
   191     CGulIcon* iIconNotSelected;
   185 
   192 
       
   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 
   186     // Dummy icon for elements that have no icon
   200     // Dummy icon for elements that have no icon
   187     CGulIcon* iIconDummy;
   201     CGulIcon* iIconDummy;
   188 
   202 
   189     // Element array
   203     // Element array
   190     CArrayPtrFlat<CMIDChoiceGroupElement>* iElements;
   204     CArrayPtrFlat<CMIDChoiceGroupElement>* iElements;