kchart

kchartHeaderFooterConfigPage.h
1/* This file is part of the KDE project
2 Copyright (C) 2001,2002,2003,2004 Laurent Montel <montel@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __KCHARTHEADERFOOTERCONFIGPAGE_H__
21#define __KCHARTHEADERFOOTERCONFIGPAGE_H__
22
23#include <tqwidget.h>
24#include <kcolorbutton.h>
25
26class TQLineEdit;
27class TQPushButton;
28
29namespace KChart
30{
31
32class KChartParams;
33
34class KChartHeaderFooterConfigPage : public TQWidget
35{
36 TQ_OBJECT
37
38
39public:
40 KChartHeaderFooterConfigPage( KChartParams* params, TQWidget* parent );
41 void init();
42 void apply();
43protected slots:
44 void changeTitleFont();
45 void changeSubtitleFont();
46 void changeFooterFont();
47private:
48 KChartParams* _params;
49
50 TQLineEdit *titleEdit;
51 KColorButton *titleColorButton;
52 TQPushButton *titleFontButton;
53 TQFont titleFont;
54 TQButton::ToggleState titleFontIsRelative;
55
56 TQLineEdit *subtitleEdit;
57 KColorButton *subtitleColorButton;
58 TQPushButton *subtitleFontButton;
59 TQFont subtitleFont;
60 TQButton::ToggleState subtitleFontIsRelative;
61
62 TQLineEdit *footerEdit;
63 KColorButton *footerColorButton;
64 TQPushButton *footerFontButton;
65 TQFont footerFont;
66 TQButton::ToggleState footerFontIsRelative;
67};
68
69} //KChart namespace
70
71#endif