Home · All Classes · Main Classes · Deprecated |
View class for standard dialogs. More...
Inherits MSceneWindowView.
Inherited by MMessageBoxView, and MPopupListView.
Public Member Functions | |
MDialogView (MDialog *controller) | |
virtual | ~MDialogView () |
Protected Member Functions | |
MDialogView (MDialogViewPrivate &dd, MDialog *controller) | |
QGraphicsLinearLayout * | contentsLayout () |
MPannableViewport * | contentsViewport () |
Protected Attributes | |
MDialogViewPrivate *const | d_ptr |
View class for standard dialogs.
MDialogView is used to visualize dialog windows. A dialog is comprised by three components: a title bar, central widget and a button box. Each of this components can be hidden. See MDialog for more details.
When the button box is visible, buttons can have different appearance depending on their position - left button can have different background, than right or middle. It is done in style sheet by defining different button viewTypes: first, middle, last, single. The last one is used when there is only one button in the dialog.
When the title bar is hidden, the dialog background can be styled differently, for example can have rounded corners. ViewType name for it is titlebarless.
Example stylesheet:
... MPannableWidgetStyle[titlebarless]#MDialogContentsViewport { background-image: "mdialog-query-background" 8px 8px 8px 0px; } MButtonStyle[first].Landscape { margin-right: 0; background-image: "mdialog-left-button-background" 10px 10px 10px 10px; } MButtonStyle[first].Landscape:pressed { background-image: "mdialog-left-button-background-pressed" 10px 10px 10px 10px; } MButtonStyle[first].Portrait { margin-bottom: 0; background-image: "mdialog-top-button-background" 10px 10px 10px 10px; } MButtonStyle[first].Portrait:pressed { background-image: "mdialog-top-button-background-pressed" 10px 10px 10px 10px; } ...
MDialogView::MDialogView | ( | MDialog * | controller | ) |
MDialogView::~MDialogView | ( | ) | [virtual] |
MDialogView::MDialogView | ( | MDialogViewPrivate & | dd, | |
MDialog * | controller | |||
) | [protected] |
QGraphicsLinearLayout * MDialogView::contentsLayout | ( | ) | [protected] |
Returns the layout used to arrange the dialog's contents. The layout contains three items: title bar, central widget and button box.
This method is useful for derived classes that wants to add new elements to the dialog.
Be careful not to remove any items already there since it will effectively cripple the existing functionality.
MPannableViewport * MDialogView::contentsViewport | ( | ) | [protected] |
MDialogViewPrivate* const MDialogView::d_ptr [protected] |
Reimplemented from MWidgetView.
Copyright © 2010 Nokia Corporation | MeeGo Touch |