~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/projectexplorer/projectwelcomepage.h

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include <utils/iwelcomepage.h>
36
36
 
37
37
QT_BEGIN_NAMESPACE
38
 
class QDeclarativeEngine;
 
38
class QQmlEngine;
39
39
QT_END_NAMESPACE
40
40
 
41
41
namespace ProjectExplorer {
42
42
 
43
43
class ProjectExplorerPlugin;
44
 
class SessionManager;
45
44
 
46
45
namespace Internal {
47
46
 
51
50
public:
52
51
    enum { DefaultSessionRole = Qt::UserRole+1, LastSessionRole, ActiveSessionRole, ProjectsPathRole, ProjectsDisplayRole };
53
52
 
54
 
    SessionModel(SessionManager* manager, QObject* parent = 0);
 
53
    explicit SessionModel(QObject *parent = 0);
55
54
    int rowCount(const QModelIndex &parent) const;
56
55
    QVariant data(const QModelIndex &index, int role) const;
57
56
 
62
61
    void cloneSession(const QString &session);
63
62
    void deleteSession(const QString &session);
64
63
    void renameSession(const QString &session);
65
 
 
66
 
private:
67
 
    SessionManager *m_manager;
68
64
};
69
65
 
70
66
 
91
87
public:
92
88
    ProjectWelcomePage();
93
89
 
94
 
    void facilitateQml(QDeclarativeEngine *engine);
 
90
    void facilitateQml(QQmlEngine *engine);
95
91
    QUrl pageLocation() const;
96
92
    QWidget *page() { return 0; }
97
 
    QString title() const { return tr("Develop"); }
 
93
    QString title() const { return tr("Projects"); }
98
94
    int priority() const { return 20; }
99
95
    Id id() const;
100
96