File indexing completed on 2024-05-05 16:46:16

0001 /*
0002     SPDX-FileCopyrightText: 2011 Martin Heide <martin.heide@gmx.net>
0003     SPDX-FileCopyrightText: 2011 Julien Desgats <julien.desgats@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef QMAKEBUILDDIRCHOOSERDIALOG_H
0009 #define QMAKEBUILDDIRCHOOSERDIALOG_H
0010 
0011 #include <QDialog>
0012 
0013 class QMakeBuildDirChooser;
0014 
0015 class QDialogButtonBox;
0016 
0017 namespace KDevelop {
0018 class IProject;
0019 }
0020 
0021 class QMakeBuildDirChooserDialog : public QDialog
0022 {
0023     Q_OBJECT
0024     
0025 public:
0026     explicit QMakeBuildDirChooserDialog(KDevelop::IProject* project, QWidget *parent = nullptr);
0027     ~QMakeBuildDirChooserDialog() override;
0028 
0029     void loadConfig();
0030     void saveConfig();
0031 
0032     QString buildDir() const;
0033 
0034 public Q_SLOTS:
0035     void accept() override;
0036 
0037 private Q_SLOTS:
0038     void validate();
0039 
0040 private:
0041     QMakeBuildDirChooser* m_chooserUi;
0042     QDialogButtonBox* m_buttonBox;
0043 };
0044 
0045 #endif