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

0001 /* This file is part of the KDE project
0002    Copyright (C) 2003 Norbert Andres <nandres@web.de>
0003              (C) 2000-2002 Laurent Montel <montel@kde.org>
0004              (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
0005              (C) 2002 John Dailey <dailey@vt.edu>
0006 
0007    This library is free software; you can redistribute it and/or
0008    modify it under the terms of the GNU Library General Public
0009    License as published by the Free Software Foundation; either
0010    version 2 of the License, or (at your option) any later version.
0011 
0012    This library is distributed in the hope that it will be useful,
0013    but WITHOUT ANY WARRANTY; without even the implied warranty of
0014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015    Library General Public License for more details.
0016 
0017    You should have received a copy of the GNU Library General Public License
0018    along with this library; see the file COPYING.LIB.  If not, write to
0019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0020    Boston, MA 02110-1301, USA.
0021 */
0022 
0023 #ifndef CALLIGRA_SHEETS_SHOW_COL_ROW_DIALOG
0024 #define CALLIGRA_SHEETS_SHOW_COL_ROW_DIALOG
0025 
0026 #include <QList>
0027 
0028 #include <KoDialog.h>
0029 
0030 class QListWidget;
0031 class QListWidgetItem;
0032 
0033 namespace Calligra
0034 {
0035 namespace Sheets
0036 {
0037 class Selection;
0038 
0039 /**
0040  * \ingroup UI
0041  * Dialog to show hidden columns/rows.
0042  */
0043 class ShowColRow: public KoDialog
0044 {
0045     Q_OBJECT
0046 public:
0047     enum Type { Column, Row };
0048     ShowColRow(QWidget* parent, Selection* selection, Type _type);
0049 
0050 public Q_SLOTS:
0051     void slotOk();
0052     void slotDoubleClicked(QListWidgetItem *);
0053 
0054 protected:
0055     Selection* m_selection;
0056     QListWidget * list;
0057     Type typeShow;
0058     QList<int> listInt;
0059 };
0060 
0061 } // namespace Sheets
0062 } // namespace Calligra
0063 
0064 #endif // CALLIGRA_SHEETS_SHOW_COL_ROW_DIALOG