dtor first
[personal-kdebase.git] / workspace / ksysguard / gui / WorkSheetSettings.h
blob7f44e0fa0a52ffff90af21766e0f99ddf39a5964
1 /*
2 KSysGuard, the KDE System Guard
4 Copyright (c) 1999 - 2002 Chris Schlaeger <cs@kde.org>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License version 2 or at your option version 3 as published by
9 the Free Software Foundation.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 KSysGuard is currently maintained by Chris Schlaeger <cs@kde.org>.
21 Please do not commit any changes without consulting me first. Thanks!
25 #ifndef KSG_WORKSHEETSETTINGS_H
26 #define KSG_WORKSHEETSETTINGS_H
28 #include <kdialog.h>
30 class KLineEdit;
31 class KDoubleNumInput;
32 class KIntNumInput;
34 class WorkSheetSettings : public KDialog
36 Q_OBJECT
38 public:
39 WorkSheetSettings( QWidget* parent, bool locked );
40 ~WorkSheetSettings();
42 void setRows( int rows );
43 int rows() const;
45 void setColumns( int columns );
46 int columns() const;
48 void setInterval( float interval );
49 float interval() const;
51 void setSheetTitle( const QString &title );
52 QString sheetTitle() const;
54 private:
55 KLineEdit* mSheetTitle;
57 KIntNumInput* mColumns;
58 KDoubleNumInput* mInterval;
59 KIntNumInput* mRows;
62 #endif