File indexing completed on 2024-04-21 04:34:28

0001 /*
0002  * This file is part of KDevelop project
0003  * Copyright 2016 Patrick José Pereira <patrickelectric@gmail.com>
0004  * Copyright 2010 Aleix Pol Gonzalez <aleixpol@kde.org>
0005  *
0006  * This program is free software; you can redistribute it and/or modify
0007  * it under the terms of the GNU Library General Public License as
0008  * published by the Free Software Foundation; either version 2 of the
0009  * License, or (at your option) any later version.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public
0017  * License along with this program; if not, write to the
0018  * Free Software Foundation, Inc.,
0019  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0020  */
0021 
0022 #pragma once
0023 
0024 #include <QComboBox>
0025 #include <project/projectmodel.h>
0026 
0027 namespace KDevelop
0028 {
0029 class ProjectFolderItem;
0030 }
0031 
0032 class ProjectTargetsComboBox : public QComboBox
0033 {
0034     Q_OBJECT
0035 public:
0036     explicit ProjectTargetsComboBox(QWidget* parent = nullptr);
0037 
0038     void setBaseItem(KDevelop::ProjectFolderItem* item, bool exec);
0039     void setCurrentItemPath(const QStringList& str);
0040 
0041     QStringList currentItemPath() const;
0042 
0043 };