File indexing completed on 2024-04-28 05:48:19

0001 /**
0002  * \file
0003  *
0004  * \brief Class \c kate::CloseConfirmDialog (interface)
0005  *
0006  * SPDX-FileCopyrightText: 2012 Alex Turbov <i.zaufi@gmail.com>
0007  *
0008  * \date Sun Jun 24 16:29:13 MSK 2012 -- Initial design
0009  */
0010 /*
0011  * KateCloseExceptPlugin is free software: you can redistribute it and/or modify it
0012  * under the terms of the GNU General Public License as published by the
0013  * Free Software Foundation, either version 3 of the License, or
0014  * (at your option) any later version.
0015  *
0016  * KateCloseExceptPlugin is distributed in the hope that it will be useful, but
0017  * WITHOUT ANY WARRANTY; without even the implied warranty of
0018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0019  * See the GNU General Public License for more details.
0020  *
0021  * You should have received a copy of the GNU General Public License along
0022  * with this program.  If not, see <http://www.gnu.org/licenses/>.
0023  */
0024 
0025 #pragma once
0026 
0027 // Project specific includes
0028 
0029 // Standard includes
0030 #include "ui_close_confirm_dialog.h"
0031 #include <KTextEditor/Document>
0032 #include <KToggleAction>
0033 #include <QCheckBox>
0034 #include <QDialog>
0035 #include <QList>
0036 #include <QTreeWidget>
0037 
0038 namespace kate
0039 {
0040 /**
0041  * \brief [Type brief class description here]
0042  *
0043  * [More detailed description here]
0044  *
0045  */
0046 class CloseConfirmDialog : public QDialog, public Ui::CloseConfirmDialog
0047 {
0048     Q_OBJECT
0049 public:
0050     /// Default constructor
0051     explicit CloseConfirmDialog(QList<KTextEditor::Document *> &, KToggleAction *, QWidget *const = nullptr);
0052     ~CloseConfirmDialog() override;
0053 
0054 private Q_SLOTS:
0055     void updateDocsList();
0056 
0057 private:
0058     QList<KTextEditor::Document *> &m_docs;
0059 };
0060 
0061 } // namespace kate