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 #ifndef SUBTITLESWIDGET_H
24 #define SUBTITLESWIDGET_H
26 #include <DcpStylableWidget>
28 #include <MLinearLayoutPolicy>
35 class SubtitlesWidget : public DcpStylableWidget
40 SubtitlesWidget (QGraphicsWidget *parent = 0);
48 void AutoloadSubtitlesToggled (bool enabled);
49 void RegularStyleButtonToggled (bool toggled);
50 void ItalicStyleButtonToggled (bool toggled);
51 void BoldStyleButtonToggled (bool toggled);
52 void SubtitlesFontSizeActivated (int index);
53 void SubtitlesEncodingActivated (int index);
56 void addHeaderContainer ();
57 void addAutoloadSubtitlesContainer ();
58 void addSubtitlesFontStyleContainer ();
59 void addSubtitlesFontSizeContainer ();
60 void addSubtitlesEncodingContainer ();
62 void retranslateUi ();
65 MLinearLayoutPolicy *m_MainLayout;
67 MButton *m_AutoloadSubtitlesSwitch;
68 MLabel *m_FontStyleLabel;
69 MButton *m_RegularStyleButton;
70 MButton *m_ItalicStyleButton;
71 MButton *m_BoldStyleButton;
72 MComboBox *m_SubtitlesFontSizeCombo;
73 MComboBox *m_SubtitlesEncodingCombo;
74 QSettings *m_SubtitlesSettings;
77 #endif // SUBTITLESWIDGET_H