/* +---------------------------------------------------------------------------+
   |                     Mobile Robot Programming Toolkit (MRPT)               |
   |                          https://www.mrpt.org/                            |
   |                                                                           |
   | Copyright (c) 2005-2024, Individual contributors, see AUTHORS file        |
   | See: https://www.mrpt.org/Authors - All rights reserved.                  |
   | Released under BSD License. See details in https://www.mrpt.org/License   |
   +---------------------------------------------------------------------------+
   */
#pragma once
#include <QDialog>
#include <memory>

#include "TypeOfConfig.h"

class QListWidget;
class QListWidgetItem;
namespace Ui
{
class CSelectType;
}

class CSelectType : public QDialog
{
 public:
  CSelectType(QWidget* parent = nullptr);
  ~CSelectType() override;
  int selectedItem() const;

 private:
  void addItem(const QString& name, TypeOfConfig type);

  std::unique_ptr<Ui::CSelectType> m_ui;
};
