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 #ifndef SUBTITLESWIDGET_H
20 #define SUBTITLESWIDGET_H
22 #include <DcpStylableWidget>
29 class MLinearLayoutPolicy;
32 class SubtitlesWidget : public DcpStylableWidget
37 SubtitlesWidget (QGraphicsWidget *parent = 0);
45 void AutoloadSubtitlesToggled (bool enabled);
46 void RegularStyleButtonToggled (bool toggled);
47 void ItalicStyleButtonToggled (bool toggled);
48 void BoldStyleButtonToggled (bool toggled);
49 void SubtitlesFontSizeActivated (int index);
50 void SubtitlesEncodingActivated (int index);
53 void addHeaderContainer ();
54 void addAutoloadSubtitlesContainer ();
55 void addSubtitlesFontStyleContainer ();
56 void addSubtitlesFontSizeContainer ();
57 void addSubtitlesEncodingContainer ();
59 void retranslateUi ();
62 MLinearLayoutPolicy *m_MainLayout;
64 MButton *m_AutoloadSubtitlesSwitch;
65 MLabel *m_FontStyleLabel;
66 MButton *m_RegularStyleButton;
67 MButton *m_ItalicStyleButton;
68 MButton *m_BoldStyleButton;
69 MComboBox *m_SubtitlesFontSizeCombo;
70 MComboBox *m_SubtitlesEncodingCombo;
71 QSettings *m_SubtitlesSettings;
74 #endif // SUBTITLESWIDGET_H