Add a tools settings page and show the tools there.

No editing possible yet.
This commit is contained in:
con
2011-01-06 18:26:09 +01:00
parent b9f9cf3d79
commit d768008d60
12 changed files with 604 additions and 21 deletions

View File

@@ -0,0 +1,68 @@
/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
**
** 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.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at http://qt.nokia.com/contact.
**
**************************************************************************/
#ifndef TOOLSETTINGS_H
#define TOOLSETTINGS_H
#include "dialogs/externaltoolconfig.h"
#include "ioptionspage.h"
#include <QtCore/QPointer>
namespace Core {
namespace Internal {
class ToolSettings : public IOptionsPage
{
Q_OBJECT
public:
explicit ToolSettings(QObject *parent = 0);
~ToolSettings() {}
QString id() const;
QString displayName() const;
QString category() const;
QString displayCategory() const;
QIcon categoryIcon() const;
bool matches(const QString & searchKeyWord) const;
QWidget *createPage(QWidget *parent);
void apply();
void finish();
private:
QString m_searchKeywords;
QPointer<ExternalToolConfig> m_widget;
};
} // namespace Internal
} // namespace Core
#endif // TOOLSETTINGS_H