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
|
|
|
|
|
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
|