~ubuntu-branches/ubuntu/vivid/youker-assistant/vivid

« back to all changes in this revision

Viewing changes to src/updatedialog.h

  • Committer: Package Import Robot
  • Author(s): Kobe Lee (kylinkobe)
  • Date: 2013-09-18 16:22:14 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130918162214-6nqyjyf3cd3ynqky
Tags: 0.2.1-0ubuntu1
* Modify the mouse events of MonitorBall.
* Add reset button for clear pages.
* Add policykit for apt clear in sudodbus.
* Fixed the bug about software status and add masklayer.
* Rewrite the code of system information.
* Add some signals and slots.
* Fixed the bug about Software signals(LP: #1226389).
* Modify KThread and add base.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013 National University of Defense Technology(NUDT) & Kylin Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
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 General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#ifndef UPDATEDIALOG_H
 
18
#define UPDATEDIALOG_H
 
19
 
 
20
#include <QDialog>
 
21
//#include <qfiledialog.h>
 
22
namespace Ui {
 
23
class UpdateDialog;
 
24
}
 
25
 
 
26
class UpdateDialog : public QDialog
 
27
{
 
28
    Q_OBJECT
 
29
    
 
30
public:
 
31
    explicit UpdateDialog(QWidget *parent = 0);
 
32
    ~UpdateDialog();
 
33
    
 
34
private:
 
35
    Ui::UpdateDialog *ui;
 
36
    QPoint dragPos;
 
37
protected:
 
38
    void mousePressEvent(QMouseEvent *event);
 
39
    void mouseMoveEvent(QMouseEvent *event);
 
40
    void mouseReleaseEvent(QMouseEvent *event);
 
41
    bool eventFilter(QObject *obj, QEvent *event);
 
42
public slots:
 
43
    void update_software_source();
 
44
signals:
 
45
    void call_update();
 
46
};
 
47
 
 
48
#endif // UPDATEDIALOG_H