2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2007-11-13 07:59:25 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2007-11-13 07:59:25 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2007-11-13 07:54:49 +03:00
|
|
|
|
|
|
|
#ifndef AddCacheEntry_h
|
|
|
|
#define AddCacheEntry_h
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QCheckBox>
|
2011-11-20 01:21:41 +04:00
|
|
|
#include <QStringList>
|
2007-11-13 07:54:49 +03:00
|
|
|
|
|
|
|
#include "QCMake.h"
|
|
|
|
#include "ui_AddCacheEntry.h"
|
|
|
|
|
|
|
|
class AddCacheEntry : public QWidget, public Ui::AddCacheEntry
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-01-13 14:28:16 +04:00
|
|
|
AddCacheEntry(QWidget* p, const QStringList& varNames,
|
|
|
|
const QStringList& varTypes);
|
2007-11-13 07:54:49 +03:00
|
|
|
|
|
|
|
QString name() const;
|
|
|
|
QVariant value() const;
|
|
|
|
QString description() const;
|
2008-05-16 03:21:01 +04:00
|
|
|
QCMakeProperty::PropertyType type() const;
|
2014-01-13 14:28:16 +04:00
|
|
|
QString typeString() const;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void onCompletionActivated(const QString &text);
|
|
|
|
|
|
|
|
private:
|
|
|
|
const QStringList& VarNames;
|
|
|
|
const QStringList& VarTypes;
|
2007-11-13 07:54:49 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|