~zeller-benjamin/qtcreator-plugin-ubuntu/qtc41-beta

« back to all changes in this revision

Viewing changes to ubuntupackagingwidget.h

  • Committer: Juhapekka Piiroinen
  • Date: 2013-09-04 15:30:00 UTC
  • mto: (23.1.14 binary-plugin)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: juhapekka.piiroinen@canonical.com-20130904153000-r4lhfhrjlwmop277
Added cordova plugin from ubuntu-qtcreator-plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef UBUNTUPACKAGINGWIDGET_H
2
 
#define UBUNTUPACKAGINGWIDGET_H
3
 
 
4
 
#include <QWidget>
5
 
#include <QProcess>
6
 
#include "ubuntubzr.h"
7
 
#include "ubuntuclickmanifest.h"
8
 
 
9
 
namespace Ui {
10
 
class UbuntuPackagingWidget;
11
 
}
12
 
 
13
 
using namespace Ubuntu::Internal;
14
 
 
15
 
class UbuntuPackagingWidget : public QWidget
16
 
{
17
 
    Q_OBJECT
18
 
    
19
 
public:
20
 
    explicit UbuntuPackagingWidget(QWidget *parent = 0);
21
 
    ~UbuntuPackagingWidget();
22
 
 
23
 
public slots:
24
 
    void reload();
25
 
    void load_manifest(QString fileName);
26
 
    void load_apparmor(QString fileAppArmorName);
27
 
    void save(bool bSaveSimple = true);
28
 
    void openManifestForProject();
29
 
    void setAvailable(bool);
30
 
 
31
 
protected slots:
32
 
    void on_pushButton_addpolicy_clicked();
33
 
    void on_pushButtonClickPackage_clicked();
34
 
    void on_pushButtonReset_clicked();
35
 
 
36
 
    void on_pushButtonReload_clicked();
37
 
 
38
 
    void on_tabWidget_currentChanged(int);
39
 
 
40
 
    void on_listWidget_customContextMenuRequested(QPoint);
41
 
    void bzrChanged();
42
 
 
43
 
private:
44
 
    UbuntuClickManifest m_manifest;
45
 
    UbuntuClickManifest m_apparmor;
46
 
    QProcess m_click;
47
 
    UbuntuBzr m_bzr;
48
 
    QString m_projectName;
49
 
    int m_previous_tab;
50
 
    Ui::UbuntuPackagingWidget *ui;
51
 
};
52
 
 
53
 
#endif // UBUNTUPACKAGINGWIDGET_H