File indexing completed on 2024-05-12 16:35:25
0001 /* This file is part of the KDE project 0002 Copyright (C) 2002-2004 Ariya Hidayat <ariya@kde.org> 0003 (C) 2003 Norbert Andres <nandres@web.de> 0004 (C) 2001-2003 Philipp Mueller <philipp.mueller@gmx.de> 0005 (C) 1999-2002 Laurent Montel <montel@kde.org> 0006 (C) 2002 John Dailey <dailey@vt.edu> 0007 (C) 2000 David Faure <faure@kde.org> 0008 (C) 1998-1999 Torben Weis <weis@kde.org> 0009 0010 This library is free software; you can redistribute it and/or 0011 modify it under the terms of the GNU Library General Public 0012 License as published by the Free Software Foundation; either 0013 version 2 of the License, or (at your option) any later version. 0014 0015 This library is distributed in the hope that it will be useful, 0016 but WITHOUT ANY WARRANTY; without even the implied warranty of 0017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0018 Library General Public License for more details. 0019 0020 You should have received a copy of the GNU Library General Public License 0021 along with this library; see the file COPYING.LIB. If not, write to 0022 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0023 Boston, MA 02110-1301, USA. 0024 */ 0025 0026 #ifndef CALLIGRA_SHEETS_RESIZE2_DIALOG 0027 #define CALLIGRA_SHEETS_RESIZE2_DIALOG 0028 0029 #include <KoDialog.h> 0030 0031 class KoUnitDoubleSpinBox; 0032 0033 namespace Calligra 0034 { 0035 namespace Sheets 0036 { 0037 class Selection; 0038 0039 /** 0040 * \ingroup UI 0041 * Dialog to resize rows. 0042 */ 0043 class ResizeRow: public KoDialog 0044 { 0045 Q_OBJECT 0046 0047 public: 0048 explicit ResizeRow(QWidget* parent, Selection* selection); 0049 double rowHeight; 0050 0051 protected Q_SLOTS: 0052 virtual void slotOk(); 0053 virtual void slotDefault(); 0054 0055 protected: 0056 Selection* m_selection; 0057 KoUnitDoubleSpinBox *m_pHeight; 0058 }; 0059 0060 /** 0061 * \ingroup UI 0062 * Dialog to resize columns. 0063 */ 0064 class ResizeColumn: public KoDialog 0065 { 0066 Q_OBJECT 0067 0068 public: 0069 explicit ResizeColumn(QWidget* parent, Selection* selection); 0070 double columnWidth; 0071 0072 protected Q_SLOTS: 0073 virtual void slotOk(); 0074 virtual void slotDefault(); 0075 0076 protected: 0077 Selection* m_selection; 0078 KoUnitDoubleSpinBox *m_pWidth; 0079 }; 0080 0081 } // namespace Sheets 0082 } // namespace Calligra 0083 0084 #endif // CALLIGRA_SHEETS_RESIZE2_DIALOG