~john.vrbanac/ubuntu-app-reviews/minicast

« back to all changes in this revision

Viewing changes to mainwindow.h

  • Committer: Aaron Lewis
  • Date: 2012-07-09 07:22:35 UTC
  • Revision ID: the.warl0ck.1989@gmail.com-20120709072235-fubggzoo35iykjo4
Re-license

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* BEGIN_COMMON_COPYRIGHT_HEADER
 
2
 * (c)LGPL2+
 
3
 *
 
4
 * Copyright: 2012 Labo A.L
 
5
 * Authors:
 
6
 *   Aaron Lewis <the.warl0ck.1989@gmail.com>
 
7
 *
 
8
 * This program or library is free software; you can redistribute it
 
9
 * and/or modify it under the terms of the GNU Lesser General Public
 
10
 * License as published by the Free Software Foundation; either
 
11
 * version 2.1 of the License, or (at your option) any later version.
 
12
 *
 
13
 * This library is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * Lesser General Public License for more details.
 
17
 
 
18
 * You should have received a copy of the GNU Lesser General
 
19
 * Public License along with this library; if not, write to the
 
20
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
21
 * Boston, MA 02110-1301 USA
 
22
 *
 
23
 * END_COMMON_COPYRIGHT_HEADER */
 
24
#ifndef MAINWINDOW_H
 
25
#define MAINWINDOW_H
 
26
 
 
27
#include <QMovie>
 
28
#include <QSortFilterProxyModel>
 
29
#include <QStandardItemModel>
 
30
#include <QMainWindow>
 
31
#include <QClipboard>
 
32
#include <QAction>
 
33
#include <QSettings>
 
34
#include <QMessageBox>
 
35
#include <QKeyEvent>
 
36
 
 
37
#include "provider.h"
 
38
 
 
39
#include "qmpwidget.h"
 
40
 
 
41
namespace Ui {
 
42
class MainWindow;
 
43
}
 
44
 
 
45
class MainWindow : public QMainWindow
 
46
{
 
47
    Q_OBJECT
 
48
    
 
49
public:
 
50
    explicit MainWindow(QWidget *parent = 0);
 
51
    ~MainWindow();
 
52
    
 
53
private slots:
 
54
 
 
55
    void on_stopButton_clicked();
 
56
 
 
57
    void on_playPauseButton_clicked();
 
58
 
 
59
    void on_muteButton_toggled(bool checked);
 
60
 
 
61
protected:
 
62
    void keyPressEvent(QKeyEvent *e);
 
63
    void closeEvent(QCloseEvent *);
 
64
 
 
65
private:
 
66
    Ui::MainWindow *ui;
 
67
    int m_vol, m_completed_cnt;
 
68
 
 
69
    QSortFilterProxyModel *m_filterModel;
 
70
    QStandardItemModel *m_model;
 
71
 
 
72
    QList<Provider*> m_providers;
 
73
 
 
74
private slots:
 
75
    void copyDownloadURL ();
 
76
 
 
77
    void loadCompleted ();
 
78
    void mplayerStateChanged (int s);
 
79
    void update_volume_icon();
 
80
    void on_actionRefresh_triggered();
 
81
    void on_actionToggleView_triggered(bool checked);
 
82
    void on_programeListView_doubleClicked(const QModelIndex &index);
 
83
    void on_subtitleFilter_textChanged(const QString &arg1);
 
84
    void on_searchTextLine_textChanged(const QString &arg1);
 
85
    void on_lookForward_clicked();
 
86
    void on_lookBackward_clicked();
 
87
    void on_searchTextLine_returnPressed();
 
88
    void on_actionAbout_Qt_triggered();
 
89
    void on_actionAbout_Me_triggered();
 
90
    void on_actionQuit_Q_triggered();
 
91
};
 
92
 
 
93
#endif // MAINWINDOW_H
 
94
/* BEGIN_COMMON_COPYRIGHT_HEADER
 
95
 * (c)LGPL2+
 
96
 *
 
97
 * Copyright: 2012 Labo A.L
 
98
 * Authors:
 
99
 *   Aaron Lewis <the.warl0ck.1989@gmail.com>
 
100
 *
 
101
 * This program or library is free software; you can redistribute it
 
102
 * and/or modify it under the terms of the GNU Lesser General Public
 
103
 * License as published by the Free Software Foundation; either
 
104
 * version 2.1 of the License, or (at your option) any later version.
 
105
 *
 
106
 * This library is distributed in the hope that it will be useful,
 
107
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
108
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
109
 * Lesser General Public License for more details.
 
110
 
 
111
 * You should have received a copy of the GNU Lesser General
 
112
 * Public License along with this library; if not, write to the
 
113
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
114
 * Boston, MA 02110-1301 USA
 
115
 *
 
116
 * END_COMMON_COPYRIGHT_HEADER */
1
117
#ifndef MAINWINDOW_H
2
118
#define MAINWINDOW_H
3
119