javauis/lcdui_akn/lcdui/inc/CMIDDisplayable.h
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
   163      * @see RestoreMenuL()
   163      * @see RestoreMenuL()
   164      **/
   164      **/
   165     void InitializeCbasL();
   165     void InitializeCbasL();
   166     void SetCba(CEikButtonGroupContainer* aCba);
   166     void SetCba(CEikButtonGroupContainer* aCba);
   167     TBool ShowOkOptionsMenuL();
   167     TBool ShowOkOptionsMenuL();
   168     TBool ShowScreenOrHelpOptionsMenuL();
       
   169     TInt NumCommandsForOkOptionsMenu() const;
   168     TInt NumCommandsForOkOptionsMenu() const;
   170     TInt NumCommandsForScreenOrHelpOptionsMenu() const;
       
   171     TInt GetHighestPriorityScreenOrHelpCommand() const;
   169     TInt GetHighestPriorityScreenOrHelpCommand() const;
   172     void SetItemCommandList(CMIDCommandList* aList, CMIDCommand* aMSKCommand);
   170     void SetItemCommandList(CMIDCommandList* aList, CMIDCommand* aMSKCommand);
   173     void SetMSKCommand(CMIDCommand* aMSKCommand);
   171     void SetMSKCommand(CMIDCommand* aMSKCommand);
   174 
       
   175     /**
   172     /**
   176      * Stores select command to Displayable
   173      * Stores select command to Displayable
   177      * @param aSelectCommand a command used in MSK and in menu
   174      * @param aSelectCommand a command used in MSK and in menu
   178      */
   175      */
   179     void SetSelectCommand(CMIDCommand* aSelectCommand);
   176     void SetSelectCommand(CMIDCommand* aSelectCommand);
   265     @param "aRect" Rentangle to be removed from exclusion list.
   262     @param "aRect" Rentangle to be removed from exclusion list.
   266     */
   263     */
   267     void RemoveDirectContentArea(const TRect& aRect);
   264     void RemoveDirectContentArea(const TRect& aRect);
   268 
   265 
   269     /**
   266     /**
       
   267     Checks if there were some direct content area added
       
   268     @return ETrue if there no DC Area has been added
       
   269     */
       
   270     TBool NoDirectContentAreaDefined();
       
   271 
       
   272     /**
   270      * Sets popup style TextBox boolean value. Called by CMIDTextBoxDialogControl when
   273      * Sets popup style TextBox boolean value. Called by CMIDTextBoxDialogControl when
   271      * TextBox presentation is pop-up.
   274      * TextBox presentation is pop-up.
   272      *
   275      *
   273      * @param "aPopup" boolean value indicating whether the textbox is popup or not.
   276      * @param "aPopup" boolean value indicating whether the textbox is popup or not.
   274      *
   277      *
   336      * @return void
   339      * @return void
   337      *
   340      *
   338      * @since S60 9.2
   341      * @since S60 9.2
   339      */
   342      */
   340     void ReleaseOrientation();
   343     void ReleaseOrientation();
   341 
       
   342 #ifdef RD_JAVA_NGA_ENABLED    
       
   343     /**
       
   344      * Gets the direct content areas that
       
   345      * have been added to this displayable.
       
   346      */
       
   347     void GetDirectContentsRegion(RRegion& region) const;
       
   348 
       
   349     /**
       
   350      * Returns the number of direct content areas currently added to this displayable.
       
   351      */
       
   352     TInt DirectContentsCount() const;
       
   353 #endif
       
   354 
   344 
   355 private:
   345 private:
   356     // Construction and destruction
   346     // Construction and destruction
   357     CMIDDisplayable(MMIDEnv& aEnv,CMIDUIManager& aUIManager);
   347     CMIDDisplayable(MMIDEnv& aEnv,CMIDUIManager& aUIManager);
   358     void ConstructL();
   348     void ConstructL();
   370                                     RArray<CEikMenuPaneItem::SData>& aItems, CMIDCommandList* aCommandList, TBool aSeparator);
   360                                     RArray<CEikMenuPaneItem::SData>& aItems, CMIDCommandList* aCommandList, TBool aSeparator);
   371     TBool CommandIsMappedToSk(const CMIDCommand* aCommand) const;
   361     TBool CommandIsMappedToSk(const CMIDCommand* aCommand) const;
   372     void HandleStandardCommandL(const TCommandEntry& aCmdEntry);
   362     void HandleStandardCommandL(const TCommandEntry& aCmdEntry);
   373     void HandleItemCommandL(const TCommandEntry& aCmdEntry);
   363     void HandleItemCommandL(const TCommandEntry& aCmdEntry);
   374     TInt GetInternalCommandIdFor(CMIDCommand* aCommand) const;
   364     TInt GetInternalCommandIdFor(CMIDCommand* aCommand) const;
   375     void GetOkOptionsMenuCommandsL(RPointerArray<CMIDCommand>& aCommands) const;
   365     void GetOkOptionsMenuCommands(RPointerArray<CMIDCommand>& aCommands) const;
   376     void ResetSoftKeysAndCommands(const RArray<CMIDCommandList*>& aLists);
   366     void ResetSoftKeysAndCommands(const RArray<CMIDCommandList*>& aLists);
   377 
   367 
   378     // Visual layouting and updating
   368     // Visual layouting and updating
   379     void UpdateVisualAppearanceL();
   369     void UpdateVisualAppearanceL();
   380     void UpdateTickerL();
   370     void UpdateTickerL();
   486 
   476 
   487     /**
   477     /**
   488      * If content control is CMIDCanvas, returns pointer to it, NULL otherwise.
   478      * If content control is CMIDCanvas, returns pointer to it, NULL otherwise.
   489      * @since S60 9.2
   479      * @since S60 9.2
   490      */
   480      */
   491     CMIDCanvas* GetContentCanvas() const;
   481     CMIDCanvas* GetContentCanvas();
   492 
   482 
   493 private:
   483 private:
   494     CMIDAppUi* iAppUi;
   484     CMIDAppUi* iAppUi;
   495     CMIDUIManager* iUIManager;
   485     CMIDUIManager* iUIManager;
   496     MMIDEnv& iEnv;
   486     MMIDEnv& iEnv;