~ubuntu-branches/ubuntu/trusty/krusader/trusty

« back to all changes in this revision

Viewing changes to krusader/Panel/krinterview.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-08-08 13:47:36 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110808134736-8e630ivgd2c3sgg5
Tags: 1:2.4.0~beta1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
{
36
36
    friend class KrInterViewItem;
37
37
public:
38
 
    KrInterView(KrViewInstance &instance, const bool &left, KConfig *cfg, QAbstractItemView *itemView);
 
38
    KrInterView(KrViewInstance &instance, KConfig *cfg, QAbstractItemView *itemView);
39
39
    virtual ~KrInterView();
40
40
    virtual QModelIndex getCurrentIndex() {
41
41
        return _itemView->currentIndex();
42
42
    }
43
43
    virtual bool isSelected(const QModelIndex &ndx);
 
44
    virtual uint numSelected() const {
 
45
        return _selection.count();
 
46
    }
 
47
    virtual KUrl::List selectedUrls();
 
48
    virtual void setSelection(const KUrl::List urls);
44
49
    virtual KrViewItem* getFirst();
45
50
    virtual KrViewItem* getLast();
46
51
    virtual KrViewItem* getNext(KrViewItem *current);
79
84
        virtual void select(const QItemSelection & selection, QItemSelectionModel::SelectionFlags command) {}
80
85
    };
81
86
 
 
87
    virtual KIO::filesize_t calcSize();
 
88
    virtual KIO::filesize_t calcSelectedSize();
82
89
    virtual void populate(const QList<vfile*> &vfiles, vfile *dummy);
83
90
    virtual KrViewItem* preAddItem(vfile *vf);
84
91
    virtual void preDelItem(KrViewItem *item);
85
92
    virtual void preUpdateItem(vfile *vf);
86
 
    virtual uint intSetSelected(const vfile* vf, bool select);
 
93
    virtual void intSetSelected(const vfile* vf, bool select);
87
94
    virtual void showContextMenu(const QPoint & p) = 0;
88
95
 
89
96
    virtual QRect itemRect(const vfile *vf) = 0;