AddCacheEntry.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef AddCacheEntry_h
  11. #define AddCacheEntry_h
  12. #include <QWidget>
  13. #include <QCheckBox>
  14. #include <QStringList>
  15. #include "QCMake.h"
  16. #include "ui_AddCacheEntry.h"
  17. class AddCacheEntry : public QWidget, public Ui::AddCacheEntry
  18. {
  19. Q_OBJECT
  20. public:
  21. AddCacheEntry(QWidget* p, const QStringList& varNames,
  22. const QStringList& varTypes);
  23. QString name() const;
  24. QVariant value() const;
  25. QString description() const;
  26. QCMakeProperty::PropertyType type() const;
  27. QString typeString() const;
  28. private slots:
  29. void onCompletionActivated(const QString &text);
  30. private:
  31. const QStringList& VarNames;
  32. const QStringList& VarTypes;
  33. };
  34. #endif