File indexing completed on 2024-05-12 16:33:36

0001 /* This file is part of the KDE project
0002 
0003    Copyright 2008 Johannes Simon <johannes.simon@gmail.com>
0004    Copyright 2008 Inge Wallin    <inge@lysator.liu.se>
0005    Copyright 2018 Dag Andersen <danders@get2net.dk>
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 
0024 #ifndef KOCHART_TITLESCONFIGWIDGET
0025 #define KOCHART_TITLESCONFIGWIDGET
0026 
0027 
0028 #include "ConfigWidgetBase.h"
0029 #include "ChartShape.h"
0030 #include "ui_TitlesConfigWidget.h"
0031 
0032 
0033 class KoShape;
0034 class QAction;
0035 
0036 namespace KChart
0037 {
0038     class Position;
0039     class CartesianAxis;
0040 }
0041 
0042 namespace KoChart
0043 {
0044 class ChartShape;
0045 class ChartTool;
0046 
0047 /**
0048  * Titles configuration widget.
0049  */
0050 class TitlesConfigWidget : public ConfigWidgetBase
0051 {
0052     Q_OBJECT
0053 
0054 public:
0055     TitlesConfigWidget();
0056     ~TitlesConfigWidget();
0057 
0058     QAction *createAction();
0059 
0060     /// reimplemented
0061     bool showOnShapeCreate() override { return true; }
0062 
0063 public Q_SLOTS:
0064     void updateData() override;
0065 
0066 private:
0067     friend ChartTool;
0068     Ui::TitlesConfigWidget  ui;
0069 };
0070 
0071 }  // namespace KoChart
0072 
0073 
0074 #endif // KOCHART_TITLESCONFIGWIDGET