KVIrc  4.9.2
DeveloperAPIs
OptionsWidget_sound.h
Go to the documentation of this file.
1 #ifndef _OPTW_SOUND_H_
2 #define _OPTW_SOUND_H_
3 //=============================================================================
4 //
5 // File : OptionsWidget_sound.h
6 // Creation date : Fri Sep 6 02:18:21 2002 GMT by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2002-2010 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "KviOptionsWidget.h"
28 
29 #include <QComboBox>
30 #include <QPushButton>
31 
32 #define KVI_OPTIONS_WIDGET_ICON_OptionsWidget_sound KviIconManager::Sound
33 #define KVI_OPTIONS_WIDGET_NAME_OptionsWidget_sound __tr2qs_no_lookup("Sound")
34 #define KVI_OPTIONS_WIDGET_PARENT_OptionsWidget_sound OptionsWidget_general
35 #define KVI_OPTIONS_WIDGET_CONTAINER_OptionsWidget_sound true
36 
38 {
39  Q_OBJECT
40 public:
41  OptionsWidget_sound(QWidget * parent);
43 };
44 
45 #define KVI_OPTIONS_WIDGET_ICON_OptionsWidget_soundGeneral KviIconManager::Sound
46 #define KVI_OPTIONS_WIDGET_NAME_OptionsWidget_soundGeneral __tr2qs_no_lookup("Sound System")
47 #define KVI_OPTIONS_WIDGET_PARENT_OptionsWidget_soundGeneral OptionsWidget_sound
48 #define KVI_OPTIONS_WIDGET_KEYWORDS_OptionsWidget_soundGeneral __tr2qs_no_lookup("sound,xmms,audio,play,amarok")
49 #define KVI_OPTIONS_WIDGET_PRIORITY_OptionsWidget_soundGeneral 70000
50 
52 {
53  Q_OBJECT
54 public:
55  OptionsWidget_soundGeneral(QWidget * parent);
57 
58 protected:
59  QComboBox * m_pSoundSystemBox;
60  QPushButton * m_pSoundTestButton;
61  QPushButton * m_pSoundAutoDetectButton;
62  QComboBox * m_pMediaPlayerBox;
63  QPushButton * m_pMediaTestButton;
64  QPushButton * m_pMediaAutoDetectButton;
65 
66 #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
67  QComboBox * m_pWinampEncodingCombo;
68 #endif
69  QComboBox * m_pTagsEncodingCombo;
71 
72 protected:
73  void soundFillBox();
74  void mediaFillBox();
75  virtual void commit();
76  virtual void showEvent(QShowEvent * e);
77 protected slots:
78  void soundTest();
79  void soundAutoDetect();
80  void mediaTest();
81  void mediaAutoDetect();
82 };
83 
84 #define KVI_OPTIONS_WIDGET_ICON_OptionsWidget_sounds KviIconManager::Sound
85 #define KVI_OPTIONS_WIDGET_NAME_OptionsWidget_sounds __tr2qs_no_lookup("Sounds")
86 #define KVI_OPTIONS_WIDGET_PARENT_OptionsWidget_sounds OptionsWidget_sound
87 #define KVI_OPTIONS_WIDGET_KEYWORDS_OptionsWidget_sounds __tr2qs_no_lookup("sound,events")
88 #define KVI_OPTIONS_WIDGET_PRIORITY_OptionsWidget_sounds 80000
89 
91 {
92  Q_OBJECT
93 public:
94  OptionsWidget_sounds(QWidget * parent);
96 };
97 
98 #endif //_OPTW_SOUND_H_
void soundFillBox()
Definition: OptionsWidget_sound.cpp:218
virtual void commit()
Definition: OptionsWidget_sound.cpp:295
void soundAutoDetect()
Definition: OptionsWidget_sound.cpp:190
QPushButton * m_pMediaTestButton
Definition: OptionsWidget_sound.h:63
void mediaFillBox()
Definition: OptionsWidget_sound.cpp:258
void soundTest()
Definition: OptionsWidget_sound.cpp:163
#define e
Definition: detector.cpp:69
Definition: OptionsWidget_sound.h:37
Definition: KviOptionsWidget.h:40
QComboBox * m_pSoundSystemBox
Definition: OptionsWidget_sound.h:59
QPushButton * m_pMediaAutoDetectButton
Definition: OptionsWidget_sound.h:64
QComboBox * m_pTagsEncodingCombo
Definition: OptionsWidget_sound.h:69
virtual void showEvent(QShowEvent *e)
Definition: OptionsWidget_sound.cpp:146
QComboBox * m_pMediaPlayerBox
Definition: OptionsWidget_sound.h:62
Definition: OptionsWidget_sound.h:51
QPushButton * m_pSoundTestButton
Definition: OptionsWidget_sound.h:60
OptionsWidget_sound(QWidget *parent)
Definition: OptionsWidget_sound.cpp:42
OptionsWidget_sounds(QWidget *parent)
Definition: OptionsWidget_sound.cpp:330
QPushButton * m_pSoundAutoDetectButton
Definition: OptionsWidget_sound.h:61
OptionsWidget_soundGeneral(QWidget *parent)
Definition: OptionsWidget_sound.cpp:50
void mediaTest()
Definition: OptionsWidget_sound.cpp:186
void mediaAutoDetect()
Definition: OptionsWidget_sound.cpp:204
bool m_bFirstShow
Definition: OptionsWidget_sound.h:70
Definition: OptionsWidget_sound.h:90