File indexing completed on 2024-05-12 16:35:19

0001 /* This file is part of the KDE project
0002    Copyright (C) 2003 Norbert Andres <nandres@web.de>
0003              (C) 1999-2002 Laurent Montel <montel@kde.org>
0004              (C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
0005              (C) 2002 John Dailey <dailey@vt.edu>
0006              (C) 2000-2001 Werner Trobin <trobin@kde.org>
0007              (C) 2000 David Faure <faure@kde.org>
0008              (C) 1999 Stephan Kulow <coolo@kde.org>
0009              (C) 1998-2000 Torben Weis <weis@kde.org>
0010 
0011    This library is free software; you can redistribute it and/or
0012    modify it under the terms of the GNU Library General Public
0013    License as published by the Free Software Foundation; either
0014    version 2 of the License, or (at your option) any later version.
0015 
0016    This library is distributed in the hope that it will be useful,
0017    but WITHOUT ANY WARRANTY; without even the implied warranty of
0018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0019    Library General Public License for more details.
0020 
0021    You should have received a copy of the GNU Library General Public License
0022    along with this library; see the file COPYING.LIB.  If not, write to
0023    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0024    Boston, MA 02110-1301, USA.
0025 */
0026 
0027 #ifndef CALLIGRA_SHEETS_INSERT_DIALOG
0028 #define CALLIGRA_SHEETS_INSERT_DIALOG
0029 
0030 #include <KoDialog.h>
0031 
0032 class QRadioButton;
0033 
0034 namespace Calligra
0035 {
0036 namespace Sheets
0037 {
0038 class Selection;
0039 
0040 /**
0041  * \ingroup UI
0042  * Dialog to insert/remove cell by shifting other cells.
0043  */
0044 class InsertDialog : public KoDialog
0045 {
0046     Q_OBJECT
0047 public:
0048     enum Mode { Insert, Remove };
0049 
0050     InsertDialog(QWidget* parent, Selection* selection, Mode _mode);
0051 
0052 public Q_SLOTS:
0053     void slotOk();
0054 
0055 private:
0056     Selection* m_selection;
0057 
0058     QRadioButton *rb1;
0059     QRadioButton *rb2;
0060     QRadioButton *rb3;
0061     QRadioButton *rb4;
0062     Mode insRem;
0063 };
0064 
0065 } // namespace Sheets
0066 } // namespace Calligra
0067 
0068 #endif // CALLIGRA_SHEETS_INSERT_DIALOG