Macro qtTrIdx() replaced by tr() and QT_TRANSLATE_NOOP()
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / applet / subtitlesapplet.h
1 /*
2  *  Subtitles control panel applet.
3  *  Copyright (C) 2011 Roman Moravcik
4  *
5  *  Based on Battery applet from meegotouch-controlpanelapplets
6  *  Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program 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
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef SUBTITLESAPPLET_H
24 #define SUBTITLESAPPLET_H
25
26 #include <DcpAppletIf>
27 #include <QObject>
28 #include <QPointer>
29
30 class DcpWidget;
31 class MAction;
32 class SubtitlesWidget;
33
34 class Q_DECL_EXPORT SubtitlesApplet : public QObject, public DcpAppletIf
35 {
36     Q_OBJECT
37     Q_INTERFACES(DcpAppletIf)
38
39 public:
40     SubtitlesApplet ();
41     ~SubtitlesApplet ();
42
43     virtual void init ();
44     virtual DcpStylableWidget *constructStylableWidget (int widgetId);
45     virtual QString title () const;
46     virtual QVector<MAction *> viewMenuItems ();
47     virtual DcpBrief* constructBrief (int partId = 0);
48
49 private:
50     QPointer<SubtitlesWidget> m_MainWidget;
51 };
52
53 #endif