File indexing completed on 2024-04-21 04:36:04

0001 /*
0002  * XDebug Debugger Support
0003  *
0004  * Copyright 2009 Niko Sams <niko.sams@gmail.com>
0005  *
0006  * This program is free software; you can redistribute it and/or modify
0007  * it under the terms of the GNU 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 #ifndef XDEBUGLAUNCHCONFIGURATIONPAGE_H
0023 #define XDEBUGLAUNCHCONFIGURATIONPAGE_H
0024 
0025 #include <interfaces/launchconfigurationpage.h>
0026 
0027 namespace Ui {
0028 class LaunchConfigurationWidget;
0029 }
0030 
0031 namespace XDebug {
0032 class ConfigPageFactory
0033     : public KDevelop::LaunchConfigurationPageFactory
0034 {
0035 public:
0036     KDevelop::LaunchConfigurationPage* createWidget(QWidget* parent) override;
0037 };
0038 
0039 class ConfigPage
0040     : public KDevelop::LaunchConfigurationPage
0041 {
0042     Q_OBJECT
0043 
0044 public:
0045     ConfigPage(QWidget* parent = nullptr);
0046     QIcon icon() const override;
0047     void loadFromConfiguration(const KConfigGroup& cfg, KDevelop::IProject* = nullptr) override;
0048     void saveToConfiguration(KConfigGroup, KDevelop::IProject * = nullptr) const override;
0049     QString title() const override;
0050 
0051 private:
0052     Ui::LaunchConfigurationWidget* m_ui;
0053 };
0054 }
0055 
0056 #endif