2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2009-04-24 16:47:39 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
|
|
|
|
|
** Contact: http://www.qt-project.org/legal
|
2009-04-24 16:47:39 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2009-04-24 16:47:39 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Digia. For licensing terms and
|
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
2009-04-24 16:47:39 +02:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2012-10-02 09:12:39 +02:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Digia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
2010-12-17 16:01:08 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2009-04-24 16:47:39 +02:00
|
|
|
|
|
|
|
|
#include "ioptionspage.h"
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\class Core::IOptionsPage
|
|
|
|
|
\mainclass
|
|
|
|
|
\brief The IOptionsPage is an interface for providing options pages.
|
|
|
|
|
|
2010-12-02 18:28:16 +01:00
|
|
|
You need to subclass this interface and put an instance of your subclass
|
|
|
|
|
into the plugin manager object pool (e.g. ExtensionSystem::PluginManager::addObject).
|
2009-04-24 16:47:39 +02:00
|
|
|
Guidelines for implementing:
|
|
|
|
|
\list
|
2010-12-02 18:28:16 +01:00
|
|
|
\o id() is a unique identifier for referencing this page
|
|
|
|
|
\o displayName() is the (translated) name for display
|
|
|
|
|
\o category() is the unique id for the category that the page should be displayed in
|
|
|
|
|
\o displayCategory() is the translated name of the category
|
|
|
|
|
\o createPage() is called to retrieve the widget to show in the preferences dialog
|
|
|
|
|
The widget will be destroyed by the widget hierarchy when the dialog closes
|
2009-04-24 16:47:39 +02:00
|
|
|
\o apply() is called to store the settings. It should detect if any changes have been
|
2010-12-02 18:28:16 +01:00
|
|
|
made and store those
|
|
|
|
|
\o finish() is called directly before the preferences dialog closes
|
|
|
|
|
\o matches() is used for the options dialog search filter
|
2009-04-24 16:47:39 +02:00
|
|
|
\endlist
|
|
|
|
|
*/
|