~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to systemsettings/classic/ClassicMode.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**************************************************************************
 
2
 * Copyright (C) 2009 Ben Cooksley <bcooksley@kde.org>                    *
 
3
 *                                                                        *
 
4
 * This program is free software; you can redistribute it and/or          *
 
5
 * modify it under the terms of the GNU General Public License            *
 
6
 * as published by the Free Software Foundation; either version 2         *
 
7
 * of the License, or (at your option) any later version.                 *
 
8
 *                                                                        *
 
9
 * This program is distributed in the hope that it will be useful,        *
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of         *
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
 
12
 * GNU General Public License for more details.                           *
 
13
 *                                                                        *
 
14
 * You should have received a copy of the GNU General Public License      *
 
15
 * along with this program; if not, write to the Free Software            *
 
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA          *
 
17
 * 02110-1301, USA.                                                       *
 
18
***************************************************************************/
 
19
#ifndef CLASSICMODE_H
 
20
#define CLASSICMODE_H
 
21
 
 
22
#include "BaseMode.h"
 
23
 
 
24
class MenuItem;
 
25
class ModuleView;
 
26
class QModelIndex;
 
27
 
 
28
class ClassicMode : public BaseMode
 
29
{
 
30
    Q_OBJECT
 
31
 
 
32
public:
 
33
    ClassicMode(QObject * parent, const QVariantList& );
 
34
    ~ClassicMode();
 
35
    void initEvent();
 
36
    void leaveModuleView();
 
37
    QWidget * mainWidget();
 
38
    KAboutData * aboutData();
 
39
    ModuleView * moduleView() const;
 
40
 
 
41
protected:
 
42
    QList<QAbstractItemView*> views() const;
 
43
 
 
44
public Q_SLOTS:
 
45
    void expandColumns();
 
46
    void searchChanged( const QString& text );
 
47
    void selectModule( const QModelIndex& selectedModule );
 
48
    void changeModule( const QModelIndex& activeModule );
 
49
    void saveState();
 
50
    void giveFocus();
 
51
    void addConfiguration( KConfigDialog * config );
 
52
    void loadConfiguration();
 
53
    void saveConfiguration();
 
54
 
 
55
private Q_SLOTS:
 
56
    void moduleLoaded();
 
57
    void initWidget();
 
58
    void moveUp( MenuItem * item );
 
59
 
 
60
private:
 
61
    class Private;
 
62
    Private *const d;
 
63
};
 
64
 
 
65
#endif