PopupViewController Class

  • PopupViewController
  • class Esri::ArcGISRuntime::Toolkit::PopupViewController

    In MVC architecture, this is the controller for the corresponding PopupView. More...

    Header: #include <PopupViewController>
    Inherits: QObject

    Properties

    Public Functions

    PopupViewController(QObject *parent = nullptr)
    virtual ~PopupViewController()
    int attachmentThumbnailHeight() const
    int attachmentThumbnailWidth() const
    Esri::ArcGISRuntime::PopupAttachmentListModel *attachments() const
    QAbstractListModel *displayFields() const
    bool isShowAttachments() const
    Esri::ArcGISRuntime::PopupManager *popupManager() const
    void setAttachmentThumbnailHeight(int height)
    void setAttachmentThumbnailWidth(int width)
    void setPopupManager(Esri::ArcGISRuntime::PopupManager *popupManager)
    QString title() const

    Signals

    Detailed Description

    This controller is a thin wrapper around a PopupManager. It re-exposes some PopupManager properties, including the number of total rows to render as a property.

    Property Documentation

    [read-only] attachmentCount : const int

    Notifier signal:

    attachmentThumbnailHeight : int

    Access functions:

    Notifier signal:

    attachmentThumbnailWidth : int

    Access functions:

    Notifier signal:

    [read-only] attachments : QAbstractListModel* const

    Access functions:

    Esri::ArcGISRuntime::PopupAttachmentListModel *attachments() const

    Notifier signal:

    [read-only] displayFields : QAbstractListModel* const

    Access functions:

    QAbstractListModel *displayFields() const

    Notifier signal:

    [read-only] fieldCount : const int

    Notifier signal:

    popupManager : PopupManager*

    Access functions:

    Esri::ArcGISRuntime::PopupManager *popupManager() const
    void setPopupManager(Esri::ArcGISRuntime::PopupManager *popupManager)

    Notifier signal:

    [read-only] showAttachments : const bool

    Access functions:

    bool isShowAttachments() const

    Notifier signal:

    [read-only] title : const QString

    Access functions:

    QString title() const

    Notifier signal:

    Member Function Documentation

    [invokable] PopupViewController::PopupViewController(QObject *parent = nullptr)

    Constructor

    • parent Parent owning QObject.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    [virtual] PopupViewController::~PopupViewController()

    Destructor.

    [signal] void PopupViewController::attachmentCountChanged()

    Signal emitted when the number of rows in the attachments list-model changes.

    Note: Notifier signal for property attachmentCount.

    int PopupViewController::attachmentThumbnailHeight() const

    Returns the minimum attachment thumbnail width.

    Note: Getter function for property attachmentThumbnailHeight.

    See also setAttachmentThumbnailHeight().

    [signal] void PopupViewController::attachmentThumbnailHeightChanged()

    Signal emitted when the attachment minimum height changes.

    Note: Notifier signal for property attachmentThumbnailHeight.

    int PopupViewController::attachmentThumbnailWidth() const

    Returns the minimum attachment thumbnail width.

    Note: Getter function for property attachmentThumbnailWidth.

    See also setAttachmentThumbnailWidth().

    [signal] void PopupViewController::attachmentThumbnailWidthChanged()

    Signal emitted when the attachment minimum width changes.

    Note: Notifier signal for property attachmentThumbnailWidth.

    Esri::ArcGISRuntime::PopupAttachmentListModel *PopupViewController::attachments() const

    Returns a list model containing the attachment images of the Popup associated with this PopupManager.

    Note: This can be null.

    Note: Getter function for property attachments.

    QAbstractListModel *PopupViewController::displayFields() const

    Returns a list model containing the key/value fields of the Popup associated with this PopupManager.

    Note: This can be null.

    Note: Getter function for property displayFields.

    [signal] void PopupViewController::fieldCountChanged()

    Signal emitted when the number of rows in the displayFields list-model changes.

    Note: Notifier signal for property fieldCount.

    bool PopupViewController::isShowAttachments() const

    Returns whether attachments should be displayed or not according to the PopupManager.

    Note: Getter function for property showAttachments.

    Esri::ArcGISRuntime::PopupManager *PopupViewController::popupManager() const

    Returns the PopupManager that populates this controller with data.

    Note: Getter function for property popupManager.

    See also setPopupManager().

    [signal] void PopupViewController::popupManagerChanged()

    Signal emitted when the PopupManager changes.

    Note: Notifier signal for property attachments. Notifier signal for property displayFields. Notifier signal for property popupManager. Notifier signal for property showAttachments. Notifier signal for property title.

    void PopupViewController::setAttachmentThumbnailHeight(int height)

    Sets the minimum attachment thumbnail height to height.

    Note: Setter function for property attachmentThumbnailHeight.

    See also attachmentThumbnailHeight().

    void PopupViewController::setAttachmentThumbnailWidth(int width)

    Sets the minimum attachment thumbnail width to width.

    Note: Setter function for property attachmentThumbnailWidth.

    See also attachmentThumbnailWidth().

    void PopupViewController::setPopupManager(Esri::ArcGISRuntime::PopupManager *popupManager)

    Sets the PopupManager. Setting this will trigger a notify on all remaining properties.

    • popupManager To deliver data from.

    Note: Setter function for property popupManager.

    See also popupManager().

    QString PopupViewController::title() const

    Returns the title of the PopupManager.

    Note: Getter function for property title.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close