2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2007-11-13 07:54:49 +03:00
|
|
|
#ifndef AddCacheEntry_h
|
|
|
|
#define AddCacheEntry_h
|
|
|
|
|
2016-04-29 16:40:20 +03:00
|
|
|
#include "QCMake.h"
|
|
|
|
|
2007-11-13 07:54:49 +03:00
|
|
|
#include <QCheckBox>
|
2011-11-20 01:21:41 +04:00
|
|
|
#include <QStringList>
|
2016-04-29 17:53:13 +03:00
|
|
|
#include <QWidget>
|
2007-11-13 07:54:49 +03:00
|
|
|
|
|
|
|
#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,
|
2016-05-16 17:34:04 +03:00
|
|
|
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:
|
2016-05-16 17:34:04 +03:00
|
|
|
void onCompletionActivated(const QString& text);
|
2014-01-13 14:28:16 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
const QStringList& VarNames;
|
|
|
|
const QStringList& VarTypes;
|
2007-11-13 07:54:49 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|