moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kmplot / kmplot / ksliderwindow.h
blob227ca72989ece42ac337bc05448d9a6190b68276
1 /*
2 * KmPlot - a math. function plotter for the KDE-Desktop
4 * Copyright (C) 2005 Fredrik Edemar
5 * f_edemar@linux.se
7 * This file is part of the KDE Project.
8 * KmPlot is part of the KDE-EDU Project.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #ifndef KSLIDERWINDOW_H
27 #define KSLIDERWINDOW_H
29 #include <kpopupmenu.h>
31 #include "sliderwindow.h"
33 /** @short Slider window for changing a parameter value */
34 class KSliderWindow : public SliderWindow
36 Q_OBJECT
37 public:
38 /// @param parent points to the parent widget.
39 /// @param name of this instance.
40 KSliderWindow(QWidget* parent, int num );
41 virtual ~KSliderWindow();
43 private slots:
44 void mnuMinValue_clicked();
45 void mnuMaxValue_clicked();
47 signals:
48 /// emitted when the window has been closed
49 void windowClosed(int);
51 private:
52 bool eventFilter( QObject *obj, QEvent *ev );
53 void closeEvent( QCloseEvent * );
54 KPopupMenu *m_popupmenu;
55 int m_num;
58 #endif