~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to ksysguard/gui/Workspace.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-09-05 20:45:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070905204514-632hhspl0nvrc84i
Tags: upstream-3.93.0
ImportĀ upstreamĀ versionĀ 3.93.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    KSysGuard, the KDE System Guard
 
3
 
 
4
    Copyright (c) 1999, 2000 Chris Schlaeger <cs@kde.org>
 
5
 
 
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.
 
9
 
 
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.
 
14
 
 
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.
 
18
 
 
19
    KSysGuard is currently maintained by Chris Schlaeger <cs@kde.org>. Please do
 
20
    not commit any changes without consulting me first. Thanks!
 
21
 
 
22
*/
 
23
 
 
24
#ifndef KSG_WORKSPACE_H
 
25
#define KSG_WORKSPACE_H
 
26
 
 
27
#include <QTabWidget>
 
28
 
 
29
class KConfig;
 
30
class KUrl;
 
31
class QString;
 
32
class WorkSheet;
 
33
 
 
34
class Workspace : public QTabWidget
 
35
{
 
36
  Q_OBJECT
 
37
 
 
38
  public:
 
39
    explicit Workspace( QWidget* parent);
 
40
    ~Workspace();
 
41
 
 
42
    void saveProperties( KConfigGroup& cfg );
 
43
    void readProperties( const KConfigGroup& cfg );
 
44
 
 
45
    bool saveOnQuit();
 
46
 
 
47
    bool restoreWorkSheet( const QString &fileName, bool switchToTab = true);
 
48
    void removeWorkSheet( const QString &fileName );
 
49
 
 
50
  public Q_SLOTS:
 
51
    void newWorkSheet();
 
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();
 
59
    void cut();
 
60
    void copy();
 
61
    void paste();
 
62
    void configure();
 
63
    void updateSheetTitle( QWidget* );
 
64
    void applyStyle();
 
65
 
 
66
  Q_SIGNALS:
 
67
    void setCaption( const QString &text);
 
68
 
 
69
  private:
 
70
    QList<WorkSheet *> mSheetList;
 
71
 
 
72
    QString makeNameForNewSheet() const;
 
73
};
 
74
 
 
75
#endif