/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include"QtInstanceDialog.hxx"
#include <vcl/weldutils.hxx>
#include <QtWidgets/QWizard>
/* * weld::Assistant implementation using a QWizard widget. * * The weld::Assistant API uses two ways to refer to specific pages: * 1) an int page index * 2) an OUString identifier * * Qt's QWizard widget used by this class uses an int id to refer to pages. * This concept of an id does not match the index concept that weld::Assistant uses. * (The id generally does not match an index in the range between 0 and the number of pages - 1.) * * Instead, 1) is mapped to a custom QObject property and for 2), the QObject::objectName * of the QWizardPage objects is used.
*/ class QtInstanceAssistant : public QtInstanceDialog, publicvirtual weld::Assistant
{
Q_OBJECT
// get/set the page index as used in the weld::Assistant API staticint pageIndex(const QWizardPage& rPage); staticvoid setPageIndex(QWizardPage& rPage, int nIndex);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.