File indexing completed on 2024-04-28 04:39:09
0001 /* 0002 SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_PLUGIN_PROJECTBUILDSETWIDGET_H 0008 #define KDEVPLATFORM_PLUGIN_PROJECTBUILDSETWIDGET_H 0009 0010 #include <QWidget> 0011 0012 class ProjectManagerViewPlugin; 0013 class ProjectManagerView; 0014 0015 namespace KDevelop 0016 { 0017 class ProjectBaseItem; 0018 } 0019 0020 namespace Ui 0021 { 0022 class ProjectBuildSetWidget; 0023 } 0024 0025 class ProjectBuildSetWidget : public QWidget 0026 { 0027 Q_OBJECT 0028 public: 0029 explicit ProjectBuildSetWidget( QWidget* parent = nullptr ); 0030 ~ProjectBuildSetWidget() override; 0031 void setProjectView( ProjectManagerView* view ); 0032 public Q_SLOTS: 0033 void selectionChanged(); 0034 private Q_SLOTS: 0035 void addItems(); 0036 void removeItems(); 0037 void moveUp(); 0038 void moveDown(); 0039 void moveToBottom(); 0040 void moveToTop(); 0041 void showContextMenu( const QPoint& p ); 0042 private: 0043 ProjectManagerView* m_view = nullptr ; 0044 0045 Ui::ProjectBuildSetWidget* m_ui; 0046 }; 0047 0048 #endif