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) 2002-2003 Norbert Andres <nandres@web.de>
0004              (C) 2002 John Dailey <dailey@vt.edu>
0005              (C) 1999-2002 Laurent Montel <montel@kde.org>
0006              (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
0007              (C) 2000-2001 Werner Trobin <trobin@kde.org>
0008              (C) 1998-2000 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_SERIES_DIALOG
0027 #define CALLIGRA_SHEETS_SERIES_DIALOG
0028 
0029 #include <KoDialog.h>
0030 
0031 class QRadioButton;
0032 class QDoubleSpinBox;
0033 
0034 namespace Calligra
0035 {
0036 namespace Sheets
0037 {
0038 class Selection;
0039 class Sheet;
0040 
0041 /**
0042  * \ingroup UI
0043  * Dialog to insert a value series.
0044  */
0045 class SeriesDialog : public KoDialog
0046 {
0047     Q_OBJECT
0048 public:
0049 
0050     SeriesDialog(QWidget* parent, Selection* selection);
0051 
0052     Sheet* sheet;
0053 
0054 public Q_SLOTS:
0055     void slotButtonClicked(int button) override;
0056 
0057 protected:
0058     Selection* m_selection;
0059     QDoubleSpinBox* start;
0060     QDoubleSpinBox* end;
0061     QDoubleSpinBox* step;
0062 
0063     QRadioButton* column;
0064     QRadioButton* row;
0065     QRadioButton* linear;
0066     QRadioButton* geometric;
0067     QPoint  marker;
0068 };
0069 
0070 } // namespace Sheets
0071 } // namespace Calligra
0072 
0073 #endif // CALLIGRA_SHEETS_SERIES_DIALOG