kchart

kchartFontConfigPage.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001,2002,2003,2004 Laurent Montel <montel@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __KCHARTFONTCONFIGPAGE_H__
00021 #define __KCHARTFONTCONFIGPAGE_H__
00022 
00023 #include <qwidget.h>
00024 #include <qbutton.h>
00025 
00026 #include "kchartcolorarray.h"
00027 
00028 #include "koChart.h"
00029 
00030 class QLineEdit;
00031 class QListBox;
00032 class QPushButton;
00033 
00034 namespace KChart
00035 {
00036 
00037 class KChartParams;
00038 
00039 class KChartFontConfigPage : public QWidget
00040 {
00041     Q_OBJECT
00042 
00043 public:
00044     KChartFontConfigPage( KChartParams* params,QWidget* parent, 
00045               KDChartTableData *dat);
00046     void init();
00047     void apply();
00048     void initList();
00049 
00050 public slots:
00051     void changeLabelFont();
00052 
00053 private:
00054     KChartParams  *m_params;
00055 
00056     // Widgets
00057     QLineEdit     *m_font;
00058     QListBox      *m_list;
00059     QPushButton   *m_fontButton;
00060 
00061     // Fonts for different things.
00062     QFont xTitle;
00063     QFont yTitle;
00064     QFont yAxis;
00065     QFont xAxis;
00066     QFont label;
00067 
00068     // Old stuff.  Remove?
00069     QButton::ToggleState xTitleIsRelative;
00070     QButton::ToggleState yTitleIsRelative;
00071     QButton::ToggleState labelIsRelative;
00072     QButton::ToggleState yAxisIsRelative;
00073     QButton::ToggleState xAxisIsRelative;
00074     QButton::ToggleState legendIsRelative;
00075     KDChartTableData *data;
00076 };
00077 
00078 }  //KChart namespace
00079 
00080 #endif
00081 
KDE Home | KDE Accessibility Home | Description of Access Keys