]> git.sesse.net Git - vlc/blob - modules/gui/kde/languagemenu.cpp
Avoid \r\n problems between platforms
[vlc] / modules / gui / kde / languagemenu.cpp
1 /*****************************************************************************
2  * languagemenu.cpp: the KLanguageMenuAction class
3  *****************************************************************************
4  * Copyright (C) 2001-2003 VideoLAN
5  * $Id$
6  *
7  * Author: Sigmund Augdal <sigmunau@idi.ntnu.no>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #include "languagemenu.h"
25
26 KLanguageMenuAction::KLanguageMenuAction( intf_thread_t *p_intf, const QString &text, es_descriptor_t * p_es, QObject *parent) : KRadioAction( text,0,parent), p_es(p_es), p_intf(p_intf)
27 {
28     ;
29 }
30
31 void KLanguageMenuAction::setChecked( bool on )
32 {
33     if ( on != isChecked() )
34     {
35         emit toggled( on, p_es );
36         KRadioAction::setChecked( on );
37     }
38 }
39
40 KLanguageMenuAction::~KLanguageMenuAction()
41 {
42 }