2 * Subtitles control panel applet.
3 * Copyright (C) 2011 Roman Moravcik
5 * Based on Battery applet from meegotouch-controlpanelapplets
6 * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
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.
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.
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
23 #include "subtitlesapplet.h"
24 #include "subtitleswidget.h"
26 #include "dcpsubtitles.h"
28 #include <dcpwidget.h>
36 Q_EXPORT_PLUGIN2 (subtitlesapplet, SubtitlesApplet)
38 SubtitlesApplet::SubtitlesApplet () : m_MainWidget (0)
42 SubtitlesApplet::~SubtitlesApplet ()
46 void SubtitlesApplet::init ()
51 SubtitlesApplet::constructStylableWidget (int widgetId)
55 if (m_MainWidget == NULL)
56 m_MainWidget = new SubtitlesWidget ();
61 QString SubtitlesApplet::title () const
63 return tr ("Subtitles");
67 SubtitlesApplet::viewMenuItems ()
69 QVector<MAction*> vector;
75 SubtitlesApplet::constructBrief (int partId)