KVIrc 5.2.0
Developer APIs
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
40public:
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
54public:
55 OptionsWidget_soundGeneral(QWidget * parent);
57
58protected:
59 QComboBox * m_pSoundSystemBox;
60 QPushButton * m_pSoundTestButton;
62 QComboBox * m_pMediaPlayerBox;
63 QPushButton * m_pMediaTestButton;
65
66#if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
67 QComboBox * m_pWinampEncodingCombo;
68#endif
71
72protected:
73 void soundFillBox();
74 void mediaFillBox();
75 void commit() override;
76 void showEvent(QShowEvent * e) override;
77protected 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
93public:
94 OptionsWidget_sounds(QWidget * parent);
96};
97
98#endif //_OPTW_SOUND_H_
Definition KviOptionsWidget.h:40
Definition OptionsWidget_sound.h:52
QComboBox * m_pMediaPlayerBox
Definition OptionsWidget_sound.h:62
QPushButton * m_pMediaAutoDetectButton
Definition OptionsWidget_sound.h:64
QPushButton * m_pMediaTestButton
Definition OptionsWidget_sound.h:63
void mediaTest()
Definition OptionsWidget_sound.cpp:186
QComboBox * m_pTagsEncodingCombo
Definition OptionsWidget_sound.h:69
void soundFillBox()
Definition OptionsWidget_sound.cpp:218
void mediaAutoDetect()
Definition OptionsWidget_sound.cpp:204
bool m_bFirstShow
Definition OptionsWidget_sound.h:70
QPushButton * m_pSoundAutoDetectButton
Definition OptionsWidget_sound.h:61
void commit() override
Definition OptionsWidget_sound.cpp:284
void soundAutoDetect()
Definition OptionsWidget_sound.cpp:190
void soundTest()
Definition OptionsWidget_sound.cpp:163
void mediaFillBox()
Definition OptionsWidget_sound.cpp:251
void showEvent(QShowEvent *e) override
Definition OptionsWidget_sound.cpp:146
QComboBox * m_pSoundSystemBox
Definition OptionsWidget_sound.h:59
QPushButton * m_pSoundTestButton
Definition OptionsWidget_sound.h:60
Definition OptionsWidget_sound.h:38
Definition OptionsWidget_sound.h:91
#define e
Definition detector.cpp:70