Home · All Classes · Main Classes · Deprecated
Public Member Functions | Static Public Member Functions | Properties

MDialogModel Class Reference

Inherits MSceneWindowModel.

Inherited by MMessageBoxModel, and MPopupListModel.

List of all members.

Public Member Functions

QGraphicsWidgetcentralWidget ()
void addButton (MButtonModel *button)
MButtonModeladdButton (M::StandardButton button)
void removeButton (MButtonModel *button)
MButtonModelbutton (M::StandardButton which)
MButtonModelbutton (int index)
M::StandardButton standardButton (const MButtonModel *button) const

Static Public Member Functions

static M::ButtonRole roleFor (M::StandardButton button)

Properties

int resultCode
bool closeButtonVisible
bool buttonBoxVisible
bool titleBarVisible
QString title
bool system
bool modal
bool systemModal
bool alwaysPannable
MPannableWidget::PanningPolicy contentsVerticalPanningPolicy
bool progressIndicatorVisible
MDialogButtonsList buttons
QString titleBarIconId

Member Function Documentation

void MDialogModel::addButton ( MButtonModel button  ) 

Adds a given button to the button box.

Nothing happens if the button was already added, otherwise its reference count is increased.

Parameters:
button A button
MButtonModel * MDialogModel::addButton ( M::StandardButton  button  ) 

Creates a standard button specified by the button value.

The standard button has a predefined caption.

Returns a pointer to the newly created button. If button was already added, his model is returned instead and no new button is created.

MDialogModel holds ownership over the created button.

See also:
M::StandardButton, button(M::StandardButton which)
MButtonModel * MDialogModel::button ( M::StandardButton  which  ) 

Returns a pointer to the standard button specified by which.

Returns a null pointer if there is no given standard button in the button box.

Changing the properties of the returned button can make it not be considered as a standard button anymore by the dialog.

MButtonModel * MDialogModel::button ( int  index  ) 

Returns a non-const pointer to the button at the given index.

index is relative to buttons property.

MDialogModel::centralWidget (  ) 

Central widget for the dialog.

Non-const getter for centralWidget property. Used by view classes to add the central widget to their internal layouts.

void MDialogModel::removeButton ( MButtonModel button  ) 

Removes button from the dialog without deleting it.

The ownership of button is passed on to the caller.

See also:
addButton()
M::ButtonRole MDialogModel::roleFor ( M::StandardButton  button  )  [static]

Maps M::StandardButton enum values to corresponding M::ButtonRole.

See also:
button(M::StandardButton)
M::StandardButton MDialogModel::standardButton ( const MButtonModel button  )  const

Returns the standard button enum value corresponding to the given button, or NoButton if the given button isn't a standard button.

See also:
button(M::StandardButton)

Property Documentation

bool MDialogModel::alwaysPannable [read, write]
bool MDialogModel::buttonBoxVisible [read, write]
MDialogModel::buttons [read, write]

List of buttons int the button box.

MDialogModel::closeButtonVisible [read, write]
Deprecated:
Use MDialogStyle::hasCloseButton instead. OBS: Style properties are set in CSS files and consumed by the assigned view.
MDialogModel::contentsVerticalPanningPolicy [read, write]

Vertical panning policy for MDialog's contents.

See also:
MPannableWidget::PanningPolicy
bool MDialogModel::modal [read, write]
MDialogModel::progressIndicatorVisible [read, write]

Whether the progress indicator on the title bar is visible.

int MDialogModel::resultCode [read, write]
bool MDialogModel::system [read, write]
bool MDialogModel::systemModal [read, write]
QString MDialogModel::title [read, write]
QString MDialogModel::titleBarIconId [read, write]
MDialogModel::titleBarVisible [read, write]
Deprecated:
Use MDialogStyle::hasTitleBar instead. OBS: Style properties are set in CSS files and consumed by the assigned view.

Copyright © 2010 Nokia Corporation
MeeGo Touch