1 /****************************************************************************
3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (directui@nokia.com)
7 ** This file is part of meegotouch-controlpanelapplets.
9 ** If you have questions regarding the use of this file, please contact
10 ** Nokia at directui@nokia.com.
12 ** This library is free software; you can redistribute it and/or
13 ** modify it under the terms of the GNU Lesser General Public
14 ** License version 2.1 as published by the Free Software Foundation
15 ** and appearing in the file LICENSE.LGPL included in the packaging
18 ****************************************************************************/
19 #include "subtitlesapplet.h"
20 #include "subtitleswidget.h"
22 #include "dcpsubtitles.h"
24 #include <dcpwidget.h>
32 Q_EXPORT_PLUGIN2(subtitlesapplet, SubtitlesApplet)
34 SubtitlesApplet::SubtitlesApplet () :
39 SubtitlesApplet::~SubtitlesApplet ()
43 void SubtitlesApplet::init ()
48 SubtitlesApplet::constructStylableWidget (int widgetId)
52 * Please note that the m_MainWidget is a QPointer that will nullify itself
53 * when the widget is destroyed. Then we need to create a new one when we
56 if (m_MainWidget == NULL)
57 m_MainWidget = new SubtitlesWidget ();
62 QString SubtitlesApplet::title() const
64 return qtTrId ("Subtitles");
68 SubtitlesApplet::viewMenuItems ()
70 QVector<MAction*> vector;
76 SubtitlesApplet::constructBrief (int partId)