~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric

« back to all changes in this revision

Viewing changes to applets/comic/configwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 09:50:14 UTC
  • mto: (0.4.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 68.
  • Revision ID: james.westby@ubuntu.com-20100525095014-e3cebfkdenjrx3xg
Tags: upstream-4.4.80
ImportĀ upstreamĀ versionĀ 4.4.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
2
 *   Copyright (C) 2007 by Tobias Koenig <tokoe@kde.org>                   *
3
 
 *   Copyright (C) 2008 Matthias Fuchs <mat69@gmx.net>                     *
 
3
 *   Copyright (C) 2008-2010 Matthias Fuchs <mat69@gmx.net>                *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
6
6
 *   it under the terms of the GNU General Public License as published by  *
27
27
#include <QtGui/QWidget>
28
28
#include <QTime>
29
29
 
30
 
#include <Plasma/DataEngine>
31
 
 
32
30
class ComicModel;
33
31
class QCheckBox;
34
32
class QComboBox;
39
37
    class DownloadDialog;
40
38
}
41
39
 
 
40
namespace Plasma {
 
41
    class DataEngine;
 
42
}
 
43
 
42
44
class ConfigWidget : public QWidget
43
45
{
44
46
        Q_OBJECT
45
47
    public:
46
 
        ConfigWidget( Plasma::DataEngine *engine, QWidget *parent );
 
48
        ConfigWidget( Plasma::DataEngine *engine, ComicModel *model, const QStringList &usedComics, QSortFilterProxyModel *proxy, QWidget *parent );
47
49
        ~ConfigWidget();
48
50
 
49
 
        void setComicIdentifier( const QStringList &comics );
50
 
        QStringList comicIdentifier() const;
51
 
 
52
51
        void setShowComicUrl( bool show );
53
52
        bool showComicUrl() const;
54
53
        void setShowComicAuthor( bool show );
69
68
        bool useTabs() const;
70
69
        void setSwitchTabs( bool switchTabs );
71
70
        bool switchTabs() const;
72
 
        QStringList comicName() const;
 
71
        void setTabView( int tabView );
 
72
        int tabView() const;
73
73
 
74
74
        QWidget *comicSettings;
75
75
        QWidget *appearanceSettings;
82
82
        void getNewStuff();
83
83
        void newStuffFinished();
84
84
 
 
85
    private slots:
 
86
        void slotCurrentIndexChanged( int newIndex );
 
87
        void slotComboBoxChosen();
 
88
 
85
89
    private:
86
90
        Ui::ComicSettings comicUi;
87
91
        Ui::AppearanceSettings appearanceUi;
 
92
        Plasma::DataEngine *mEngine;
88
93
        ComicModel *mModel;
89
 
        Plasma::DataEngine *mEngine;
 
94
        QStringList mUsedComics;
90
95
        QSortFilterProxyModel *mProxyModel;
91
96
        KNS3::DownloadDialog* mNewStuffDialog;
 
97
        QModelIndex mCurrentIndex;
92
98
};
93
99
 
94
100
#endif