~nick-dedekind/unity8/indicator.ubuntu-settings-components

« back to all changes in this revision

Viewing changes to plugins/DashViews/abstractdashview.h

  • Committer: Nick Dedekind
  • Date: 2014-01-27 14:55:41 UTC
  • mfrom: (581.1.70 unity8)
  • Revision ID: nicholas.dedekind@gmail.com-20140127145541-h2a91st2lt9n116t
Merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
 
2
 * Copyright (C) 2013, 2014 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
14
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
 */
16
16
 
17
 
#ifndef ABSTRACTJOURNAL_H
18
 
#define ABSTRACTJOURNAL_H
 
17
#ifndef ABSTRACTDASHVIEW_H
 
18
#define ABSTRACTDASHVIEW_H
19
19
 
20
20
#include <QQuickItem>
21
21
 
31
31
#endif
32
32
#pragma GCC diagnostic pop
33
33
 
34
 
class AbstractJournal : public QQuickItem
 
34
class AbstractDashView : public QQuickItem
35
35
{
36
36
    Q_OBJECT
37
37
 
50
50
 
51
51
friend class VerticalJournalTest;
52
52
friend class HorizontalJournalTest;
 
53
friend class OrganicGridTest;
53
54
 
54
55
public:
55
 
    AbstractJournal();
 
56
    AbstractDashView();
56
57
 
57
58
    QAbstractItemModel *model() const;
58
59
    void setModel(QAbstractItemModel *model);
110
111
 
111
112
    virtual void findBottomModelIndexToAdd(int *modelIndex, qreal *yPos) = 0;
112
113
    virtual void findTopModelIndexToAdd(int *modelIndex, qreal *yPos) = 0;
113
 
    virtual void positionItem(int modelIndex, QQuickItem *item) = 0;
 
114
    virtual void addItemToView(int modelIndex, QQuickItem *item) = 0;
114
115
    virtual bool removeNonVisibleItems(qreal bufferFromY, qreal bufferToY) = 0;
115
116
    virtual void cleanupExistingItems() = 0;
116
117
    virtual void doRelayout() = 0;