~timo-jyrinki/qtcreator-plugin-ubuntu/add_cordova_depends

« back to all changes in this revision

Viewing changes to src/ubuntu/ubuntuprojectfile.h

  • Committer: Tarmac
  • Author(s): Timo Jyrinki, Zoltán Balogh, Juhapekka Piiroinen
  • Date: 2013-09-06 14:16:38 UTC
  • mfrom: (23.1.23 binary-plugin)
  • Revision ID: tarmac-20130906141638-3qx6mqmbo8uay2np
Tags: 2.7.2-0ubuntu1
[ Juhapekka Piiroinen ]
  * Move the plugin code from qtcreator source package to here, fix install
  * Depend on qtcreator-dev

  [ Zoltán Balogh ]
  * Fixing the build dependencies

  [ Timo Jyrinki ]
  * Follow Qt Creator version numbering but slightly higher to allow upgrades
  * Move icon out of debian/ directory
  * Remove provides/conflicts/replaces for old PPA ubuntu-qtcreator-plugins
  * Clean out packaging with wrap-and-sort -a -t
  * Add recommended cflags and QT_SELECT to debian/rules
  * Make dependencies stricter so that partial upgrades aren't allowed.
    Require Qt Creator >= 2.7.1 and recommend the plugins from the -common
    packages.

Approved by PS Jenkins bot, Timo Jyrinki, Zoltan Balogh, Juhapekka Piiroinen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation; version 2.1.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef UBUNTUPROJECTFILE_H
 
20
#define UBUNTUPROJECTFILE_H
 
21
 
 
22
#include <QObject>
 
23
#include "ubuntuconstants.h"
 
24
#include "ubuntuproject.h"
 
25
#include "ubuntuprojectmanager.h"
 
26
 
 
27
#include <coreplugin/idocument.h>
 
28
 
 
29
#include <utils/qtcassert.h>
 
30
#include <coreplugin/actionmanager/command.h>
 
31
#include <coreplugin/actionmanager/actioncontainer.h>
 
32
#include <coreplugin/actionmanager/actionmanager.h>
 
33
#include <coreplugin/coreconstants.h>
 
34
#include <coreplugin/icontext.h>
 
35
#include <coreplugin/mimedatabase.h>
 
36
#include <coreplugin/messagemanager.h>
 
37
#include <coreplugin/icore.h>
 
38
#include <coreplugin/idocument.h>
 
39
#include <coreplugin/documentmanager.h>
 
40
namespace Ubuntu {
 
41
namespace Internal {
 
42
class UbuntuProject;
 
43
class UbuntuProjectFile : public Core::IDocument
 
44
{
 
45
    Q_OBJECT
 
46
public:
 
47
    UbuntuProjectFile(UbuntuProject *parent, QString fileName);
 
48
    ~UbuntuProjectFile() {}
 
49
 
 
50
    bool save(QString *errorString, const QString &fileName, bool autoSave);
 
51
    QString fileName() const;
 
52
    void rename(const QString &newName);
 
53
 
 
54
    QString defaultPath() const;
 
55
    QString suggestedFileName() const;
 
56
    QString mimeType() const;
 
57
 
 
58
    bool isModified() const;
 
59
    bool isSaveAsAllowed() const;
 
60
 
 
61
    ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const;
 
62
    bool reload(QString *errorString, ReloadFlag flag, ChangeType);
 
63
 
 
64
private:
 
65
    UbuntuProject *m_project;
 
66
    QString m_fileName;
 
67
    
 
68
};
 
69
}
 
70
}
 
71
 
 
72
#endif // UBUNTUPROJECTFILE_H