2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2007-11-12 23:54:49 -05:00
|
|
|
#ifndef AddCacheEntry_h
|
|
|
|
#define AddCacheEntry_h
|
|
|
|
|
2016-04-29 09:40:20 -04:00
|
|
|
#include "QCMake.h"
|
|
|
|
|
2007-11-12 23:54:49 -05:00
|
|
|
#include <QCheckBox>
|
2011-11-19 22:21:41 +01:00
|
|
|
#include <QStringList>
|
2016-04-29 10:53:13 -04:00
|
|
|
#include <QWidget>
|
2007-11-12 23:54:49 -05:00
|
|
|
|
|
|
|
#include "ui_AddCacheEntry.h"
|
|
|
|
|
|
|
|
class AddCacheEntry : public QWidget, public Ui::AddCacheEntry
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-01-13 17:28:16 +07:00
|
|
|
AddCacheEntry(QWidget* p, const QStringList& varNames,
|
2016-05-16 10:34:04 -04:00
|
|
|
const QStringList& varTypes);
|
2007-11-12 23:54:49 -05:00
|
|
|
|
|
|
|
QString name() const;
|
|
|
|
QVariant value() const;
|
|
|
|
QString description() const;
|
2008-05-15 19:21:01 -04:00
|
|
|
QCMakeProperty::PropertyType type() const;
|
2014-01-13 17:28:16 +07:00
|
|
|
QString typeString() const;
|
|
|
|
|
|
|
|
private slots:
|
2016-05-16 10:34:04 -04:00
|
|
|
void onCompletionActivated(const QString& text);
|
2014-01-13 17:28:16 +07:00
|
|
|
|
|
|
|
private:
|
|
|
|
const QStringList& VarNames;
|
|
|
|
const QStringList& VarTypes;
|
2007-11-12 23:54:49 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|