~ubuntu-branches/ubuntu/intrepid/bibletime/intrepid

« back to all changes in this revision

Viewing changes to bibletime/frontend/cswordsetupmodulelistview.h

  • Committer: Bazaar Package Importer
  • Author(s): Ralph Janke
  • Date: 2008-05-10 15:18:16 UTC
  • mfrom: (1.1.6 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080510151816-bqp8y1to705zd0fm
Tags: 1.6.5.1-1
* New upstream version (Closes: #441161, #271502)
* fixes for new autotools and gcc 4.3 (Closes: #407291)
* added poxml to Build-Depends
* No DFSG necessary anymore since biblestudy howto has 
  now Commons Licence 
* Added libclucene-dev to dev-depends (Closes: #436677)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********
 
2
*
 
3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
 
4
*
 
5
* Copyright 1999-2006 by the BibleTime developers.
 
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
 
7
*
 
8
**********/
 
9
 
 
10
 
 
11
 
 
12
#ifndef CSWORDMODULELISTVIEW_H
 
13
#define CSWORDMODULELISTVIEW_H
 
14
 
 
15
//Sword includes
 
16
#include <installmgr.h>
 
17
 
 
18
//QT includes
 
19
#include <qstring.h>
 
20
#include <qmap.h>
 
21
 
 
22
//KDE includes
 
23
#include <klistview.h>
 
24
 
 
25
class CSwordModuleInfo;
 
26
class CSwordBackend;
 
27
 
 
28
namespace BookshelfManager {
 
29
 
 
30
class CSwordSetupModuleListView : public KListView {
 
31
        Q_OBJECT
 
32
 
 
33
public:
 
34
        CSwordSetupModuleListView(QWidget* parent, bool is_remote, sword::InstallSource* installSource = 0);
 
35
        virtual ~CSwordSetupModuleListView();
 
36
 
 
37
        void addModule(CSwordModuleInfo *, QString localVersion);
 
38
        void finish();
 
39
        QStringList selectedModules();
 
40
        void clear();
 
41
 
 
42
        virtual QString tooltip(QListViewItem* i, int column) const;
 
43
        virtual bool showTooltip(QListViewItem* i, const QPoint& pos, int column) const;
 
44
 
 
45
protected slots:
 
46
        void slotItemClicked(QListViewItem*);
 
47
 
 
48
private:
 
49
        void init();
 
50
 
 
51
        CSwordBackend* m_backend;
 
52
        bool m_is_remote;
 
53
 
 
54
        QListViewItem* m_categoryBible;
 
55
        QListViewItem* m_categoryCommentary;
 
56
        QListViewItem* m_categoryLexicon;
 
57
        QListViewItem* m_categoryBook;
 
58
        QListViewItem* m_categoryDevotionals;
 
59
        QListViewItem* m_categoryGlossaries;
 
60
 
 
61
signals:
 
62
        void selectedModulesChanged();
 
63
};
 
64
 
 
65
} //NAMESPACE
 
66
 
 
67
#endif //CSWORDMODULELISTVIEW_H