cmake/Source/QtDialog/AddCacheEntry.h

37 lines
811 B
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef AddCacheEntry_h
#define AddCacheEntry_h
2016-07-09 11:21:54 +02:00
#include "QCMake.h"
#include <QCheckBox>
2012-02-18 12:40:36 +02:00
#include <QStringList>
2016-07-09 11:21:54 +02:00
#include <QWidget>
#include "ui_AddCacheEntry.h"
2018-08-09 18:06:22 +02:00
class AddCacheEntry
: public QWidget
, public Ui::AddCacheEntry
{
Q_OBJECT
public:
2014-08-03 19:52:23 +02:00
AddCacheEntry(QWidget* p, const QStringList& varNames,
2016-07-09 11:21:54 +02:00
const QStringList& varTypes);
QString name() const;
QVariant value() const;
QString description() const;
QCMakeProperty::PropertyType type() const;
2014-08-03 19:52:23 +02:00
QString typeString() const;
private slots:
2016-07-09 11:21:54 +02:00
void onCompletionActivated(const QString& text);
2014-08-03 19:52:23 +02:00
private:
const QStringList& VarNames;
const QStringList& VarTypes;
};
#endif