LMMS
Loading...
Searching...
No Matches
SideBar.h
Go to the documentation of this file.
1/*
2 * SideBar.h - side-bar in LMMS' MainWindow
3 *
4 * Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
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_SIDE_BAR_H
26#define LMMS_GUI_SIDE_BAR_H
27
28#include <QMap>
29#include <QButtonGroup>
30#include <QToolBar>
31
32class QToolButton;
33
34namespace lmms::gui
35{
36
37class SideBarWidget;
38
39
40class SideBar : public QToolBar
41{
42 Q_OBJECT
43public:
44 SideBar( Qt::Orientation _orientation, QWidget * _parent );
45 ~SideBar() override = default;
46
47 void appendTab( SideBarWidget * _sbw );
48
49
50private slots:
51 void toggleButton( QAbstractButton * _btn );
52
53
54private:
55 QButtonGroup m_btnGroup;
56 using ButtonMap = QMap<QToolButton*, QWidget*>;
58
59} ;
60
61} // namespace lmms::gui
62
63#endif // LMMS_GUI_SIDE_BAR_H
SideBar(Qt::Orientation _orientation, QWidget *_parent)
Definition SideBar.cpp:89
void toggleButton(QAbstractButton *_btn)
Definition SideBar.cpp:127
QButtonGroup m_btnGroup
Definition SideBar.h:55
ButtonMap m_widgets
Definition SideBar.h:57
~SideBar() override=default
void appendTab(SideBarWidget *_sbw)
Definition SideBar.cpp:104
QMap< QToolButton *, QWidget * > ButtonMap
Definition SideBar.h:56
Definition SideBarWidget.h:39
Definition AudioPortAudio.cpp:223