kchart

kchartBackgroundPixmapConfigPage.h
1/* This file is part of the KDE project
2 Copyright (C) 2000 Matthias Kalle Dalheimer <kalle@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 __KCHARTBACKGROUNDPIXMAPCONFIGPAGE_H__
21#define __KCHARTBACKGROUNDPIXMAPCONFIGPAGE_H__
22
23#include <tqwidget.h>
24#include <tqpixmap.h>
25#include <tqvgroupbox.h>
26
27class TQSpinBox;
28class TQRadioButton;
29class TQComboBox;
30class TQPixmap;
31class TQListBox;
32class KColorButton;
33
34namespace KChart
35{
36
37class KChartParams;
38
39class KChartBackgroundPixmapConfigPage : public TQWidget
40{
41 TQ_OBJECT
42
43
44public:
45 KChartBackgroundPixmapConfigPage( KChartParams* params,
46 TQWidget* parent );
47 void init();
48 void apply();
49
50private slots:
51 void showSettings( const TQString& );
52 void slotBrowse();
53 void slotWallPaperChanged( int );
54
55private:
56 bool loadWallPaper();
57 void loadWallpaperFilesList();
58 KChartParams* _params;
59 TQComboBox* wallCB;
60 TQWidget* wallWidget;
61 TQSpinBox* intensitySB;
62 TQRadioButton* stretchedRB;
63 TQRadioButton* scaledRB;
64 TQRadioButton* centeredRB;
65 TQRadioButton* tiledRB;
66 TQString wallFile;
67 TQPixmap wallPixmap;
68#if 0
69 TQListBox *regionList;
70#endif
71 KColorButton* _backgroundCB;
72 TQVGroupBox* right;
73 TQMap<TQString,int> m_wallpaper;
74};
75
76} //KChart namespace
77
78#endif