LMMS
Loading...
Searching...
No Matches
TapTempoView.h
Go to the documentation of this file.
1/*
2 * TapTempoView.h - Plugin to count beats per minute
3 *
4 * Copyright (c) 2026 saker <sakertooth@gmail.com>
5 *
6 * This file is part of LMMS - https://lmms.io
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
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 GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program (see COPYING); if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
22 *
23 */
24
25#ifndef LMMS_GUI_TAP_TEMPO_VIEW_H
26#define LMMS_GUI_TAP_TEMPO_VIEW_H
27
28#include "ToolPluginView.h"
29
30class QCheckBox;
31class QLabel;
32class QPushButton;
33
34namespace lmms {
35class TapTempo;
36}
37
38namespace lmms::gui {
39
41{
42 Q_OBJECT
43public:
44 TapTempoView(TapTempo* plugin);
45
46private:
47 void closeEvent(QCloseEvent*) override;
48 void keyPressEvent(QKeyEvent*) override;
49 void update();
50 void reset();
51 QPushButton* m_tapButton;
52 QPushButton* m_resetButton;
53 QPushButton* m_syncButton;
55 QCheckBox* m_muteCheckBox;
56 QLabel* m_msLabel;
57 QLabel* m_hzLabel;
59};
60} // namespace lmms::gui
61
62#endif // LMMS_GUI_TAP_TEMPO_VIEW_H
Definition TapTempo.h:36
QCheckBox * m_precisionCheckBox
Definition TapTempoView.h:54
QLabel * m_msLabel
Definition TapTempoView.h:56
QCheckBox * m_muteCheckBox
Definition TapTempoView.h:55
void update()
Definition TapTempoView.cpp:126
void reset()
Definition TapTempoView.cpp:137
void closeEvent(QCloseEvent *) override
Definition TapTempoView.cpp:145
TapTempo * m_plugin
Definition TapTempoView.h:58
QPushButton * m_syncButton
Definition TapTempoView.h:53
QPushButton * m_resetButton
Definition TapTempoView.h:52
QLabel * m_hzLabel
Definition TapTempoView.h:57
void keyPressEvent(QKeyEvent *) override
Definition TapTempoView.cpp:151
TapTempoView(TapTempo *plugin)
Definition TapTempoView.cpp:39
QPushButton * m_tapButton
Definition TapTempoView.h:51
ToolPluginView(ToolPlugin *_toolPlugin)
Definition ToolPluginView.cpp:39
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35