File indexing completed on 2024-05-05 04:39:48
0001 /* 0002 SPDX-FileCopyrightText: 2008 Hamish Rodda <rodda@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #ifndef KDEVPLATFORM_PLUGIN_LICENSEPAGE_H 0008 #define KDEVPLATFORM_PLUGIN_LICENSEPAGE_H 0009 0010 #include <QWidget> 0011 0012 #include "ipagefocus.h" 0013 0014 namespace KDevelop { 0015 0016 /** 0017 * Assistant dialog page for choosing the license of new source files 0018 * 0019 * @todo Add the name of the Author at the top of the license 0020 */ 0021 class LicensePage : public QWidget, public IPageFocus 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit LicensePage(QWidget* parent); 0027 ~LicensePage() override; 0028 0029 /** 0030 * @return the full license header, which might either be a pre-defined 0031 * or user-supplied one. 0032 */ 0033 QString license() const; 0034 0035 void setFocusToFirstEditWidget() override; 0036 0037 private: 0038 // data 0039 struct LicensePagePrivate* const d; 0040 }; 0041 0042 } 0043 0044 #endif // KDEVPLATFORM_PLUGIN_LICENSEPAGE_H