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 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.
22
#ifndef KSG_WORKSPACE_H
23
#define KSG_WORKSPACE_H
26
#include <kdirwatch.h>
33
class Workspace : public KTabWidget
38
explicit Workspace( QWidget* parent);
41
void saveProperties( KConfigGroup& cfg );
42
void readProperties( const KConfigGroup& cfg );
46
bool restoreWorkSheet( const QString &fileName, bool switchToTab = true);
47
QList<WorkSheet *> getWorkSheets() const { return mSheetList; }
48
WorkSheet *currentWorkSheet();
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 removeWorkSheet( const QString &fileName );
59
void removeAllWorkSheets();
60
void getHotNewWorksheet();
61
void uploadHotNewWorksheet();
66
void updateSheetTitle( QWidget* );
68
void refreshActiveWorksheet();
71
virtual void contextMenu (int, const QPoint &);
74
void setCaption( const QString &text);
77
QList<WorkSheet *> mSheetList;
79
QString makeNameForNewSheet() const;