LMMS
Loading...
Searching...
No Matches
LeftRightNav.h
Go to the documentation of this file.
1/*
2 * LeftRightNav.h - side-by-side left-facing and right-facing arrows for navigation (looks like < > )
3 *
4 * Copyright (c) 2015 Colin Wallace <wallacoloo/at/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_LEFT_RIGHT_NAV_H
26#define LMMS_GUI_LEFT_RIGHT_NAV_H
27
28#include <QPushButton>
29
30
31namespace lmms::gui
32{
33
34class LeftRightNav : public QWidget
35{
36 Q_OBJECT
37public:
38 LeftRightNav(QWidget *parent=nullptr);
39 void setShortcuts(const QKeySequence &leftShortcut=Qt::Key_Minus, const QKeySequence &rightShortcut=Qt::Key_Plus);
40signals:
41 void onNavLeft();
42 void onNavRight();
43private:
44 QHBoxLayout m_layout;
45 QPushButton m_leftBtn;
46 QPushButton m_rightBtn;
47};
48
49
50} // namespace lmms::gui
51
52#endif // LMMS_GUI_LEFT_RIGHT_NAV_H
QHBoxLayout m_layout
Definition LeftRightNav.h:44
LeftRightNav(QWidget *parent=nullptr)
Definition LeftRightNav.cpp:35
QPushButton m_leftBtn
Definition LeftRightNav.h:45
void setShortcuts(const QKeySequence &leftShortcut=Qt::Key_Minus, const QKeySequence &rightShortcut=Qt::Key_Plus)
Definition LeftRightNav.cpp:71
QPushButton m_rightBtn
Definition LeftRightNav.h:46
static uintptr_t parent
Definition pugl.h:1644
Definition AudioPortAudio.cpp:223