- struct LayoutInfo
- {
- Vector3 mTitleSize;
- Vector3 mContentSize;
- Vector3 mButtonBgSize;
- std::vector<Vector3> mButtonSize;
- };
-
-private:
-
- bool mShowing; ///< Popup is showing or not
-
- Layer mLayer; ///< Popup Layer (i.e. Dim backing and PopupBg reside in this)
- Toolkit::TableView mPopupLayout; ///< Popup layout (i.e. dialog reside in this)
- ImageActor mBacking; ///< Backing actor (dim effect)
-
- Actor mPreviousFocusedActor; ///< Store the previous focused actor to restore the focus when popup hide
-
- Actor mBackgroundImage; ///< Stores the background image.
- Actor mButtonAreaImage; ///< Stores the button background image.
- Toolkit::TextLabel mTitle; ///< Stores the text title.
- Actor mContent; ///< Stores popup's content.
- Actor mBottomBg; ///< bottom button bar background. ImageActor is replaced with Actor due to hidden image.
- Actor mTailImage; ///< Stores the tail image
-
- ActorContainer mButtons; ///< Keeps track of the buttons added to this popup.
- Toolkit::Popup::PopupState mState; ///< Popup current state.
- Animation mAnimation; ///< The animation instance managing state changing.
- bool mAlterAddedChild; ///< Flag used to control whether children are reparented or not.
- PopupStylePtr mPopupStyle; ///< The style to be used for this popup.
-
- LayoutInfo mLayoutInfo; ///< Stores sizes of all popup components.
-
- Toolkit::Popup::TouchedOutsideSignalType mTouchedOutsideSignal;
- Toolkit::Popup::HiddenSignalType mHiddenSignal;
-
- Property::Index mPropertyTitle; ///< Property index for Title.
- Property::Index mPropertyState; ///< Property index for popup state.
+ Toolkit::Popup::TouchedOutsideSignalType mTouchedOutsideSignal;
+ Toolkit::Popup::DisplayStateChangeSignalType mShowingSignal;
+ Toolkit::Popup::DisplayStateChangeSignalType mShownSignal;
+ Toolkit::Popup::DisplayStateChangeSignalType mHidingSignal;
+ Toolkit::Popup::DisplayStateChangeSignalType mHiddenSignal;
+
+ Layer mLayer; ///< Popup Layer (i.e. Dim backing and PopupBg reside in this).
+ Toolkit::TableView mPopupLayout; ///< Popup Background (i.e. dialog reside in this).
+ Toolkit::Control mBacking; ///< Backing actor (dim effect).
+ Actor mPreviousFocusedActor; ///< Store the previous focused actor to restore the focus when popup hide.
+ Actor mTailImage; ///< Stores the tail image.
+ Actor mPopupContainer; ///< This actor is used to house the background image and the main popup layout.
+ Animation mAnimation; ///< The current animation in use used to manage display state changing.
+ bool mAlterAddedChild; ///< Flag used to control whether children are reparented or not.
+ bool mLayoutDirty; ///< Set to true whenever any property that would require a layout update is modified.
+ Timer mAutoHideTimer; ///< Used to perform an auto-hide of the popup if desired.
+ bool mTouchTransparent; ///< Allows all events to pass through the popup.
+
+ // Main Content related properties:
+ Actor mTitle; ///< Stores the text title.
+ Actor mContent; ///< Stores the unselected content.
+ Actor mFooter; ///< Stores the footer content (typically controls).
+
+ // Display related properties.
+ Toolkit::Popup::DisplayState mDisplayState; ///< The current display state of the popup.
+ bool mTailVisible; ///< True if the popup tail should be visible.
+ Vector3 mTailPosition; ///< The position of the tail.
+ Toolkit::Popup::ContextualMode mContextualMode; ///< Allows the popup to be layed out adjacent to its parent in different directions.
+ float mAnimationDuration; ///< The duration of the transition in and out animations.
+ Toolkit::Popup::AnimationMode mAnimationMode; ///< The animation to use to transition in and out.
+ Dali::AnimationData mEntryAnimationData; ///< Stores description data that can be used for generating a custom entry animation.
+ Dali::AnimationData mExitAnimationData; ///< Stores description data that can be used for generating a custom exit animation.
+ unsigned int mAutoHideDelay; ///< If set, will auto-hide the popup after a specified amount of time.
+
+ // Style related properties:
+ bool mBackingEnabled; ///< True if a dimmed backing will be used.
+ Vector4 mBackingColor; ///< The color of the backing.
+ Actor mPopupBackgroundImage; ///< Stores the background image.
+ Vector4 mBackgroundOuterBorder; ///< Background external border margin size
+ float mMargin; ///< Internal margin for popup contents.
+ std::string mTailUpImage; ///< Image used for the tail for the up direction.
+ std::string mTailDownImage; ///< Image used for the tail for the down direction.
+ std::string mTailLeftImage; ///< Image used for the tail for the left direction.
+ std::string mTailRightImage; ///< Image used for the tail for the right direction.