lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
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
31
namespace
lmms::gui
32
{
33
34
class
LeftRightNav
:
public
QWidget
35
{
36
Q_OBJECT
37
public
:
38
LeftRightNav
(QWidget *parent=
nullptr
);
39
void
setShortcuts
(
const
QKeySequence &leftShortcut=Qt::Key_Minus,
const
QKeySequence &rightShortcut=Qt::Key_Plus);
40
signals:
41
void
onNavLeft
();
42
void
onNavRight
();
43
private
:
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
lmms::gui::LeftRightNav::m_layout
QHBoxLayout m_layout
Definition
LeftRightNav.h:44
lmms::gui::LeftRightNav::onNavLeft
void onNavLeft()
lmms::gui::LeftRightNav::LeftRightNav
LeftRightNav(QWidget *parent=nullptr)
Definition
LeftRightNav.cpp:35
lmms::gui::LeftRightNav::m_leftBtn
QPushButton m_leftBtn
Definition
LeftRightNav.h:45
lmms::gui::LeftRightNav::setShortcuts
void setShortcuts(const QKeySequence &leftShortcut=Qt::Key_Minus, const QKeySequence &rightShortcut=Qt::Key_Plus)
Definition
LeftRightNav.cpp:71
lmms::gui::LeftRightNav::m_rightBtn
QPushButton m_rightBtn
Definition
LeftRightNav.h:46
lmms::gui::LeftRightNav::onNavRight
void onNavRight()
lmms::gui
Definition
AudioPortAudio.cpp:209
Generated on
for lmms by
1.18.0