2
KSysGuard, the KDE System Guard
4
Copyright (c) 1999, 2000 Chris Schlaeger <cs@kde.org>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of version 2 of the GNU General Public
8
License as published by the Free Software Foundation.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
KSysGuard is currently maintained by Chris Schlaeger <cs@kde.org>. Please do
20
not commit any changes without consulting me first. Thanks!
24
#ifndef KSG_WORKSPACE_H
25
#define KSG_WORKSPACE_H
34
class Workspace : public QTabWidget
39
explicit Workspace( QWidget* parent);
42
void saveProperties( KConfigGroup& cfg );
43
void readProperties( const KConfigGroup& cfg );
47
bool restoreWorkSheet( const QString &fileName, bool switchToTab = true);
48
void removeWorkSheet( const QString &fileName );
52
void importWorkSheet();
53
void importWorkSheet( const KUrl& );
54
bool saveWorkSheet( WorkSheet *sheet );
55
void exportWorkSheet();
56
void exportWorkSheet( WorkSheet *sheet );
57
void removeWorkSheet();
58
void removeAllWorkSheets();
63
void updateSheetTitle( QWidget* );
67
void setCaption( const QString &text);
70
QList<WorkSheet *> mSheetList;
72
QString makeNameForNewSheet() const;