lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
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
32
class
QToolButton;
33
34
namespace
lmms::gui
35
{
36
37
class
SideBarWidget
;
38
39
40
class
SideBar
:
public
QToolBar
41
{
42
Q_OBJECT
43
public
:
44
SideBar
( Qt::Orientation _orientation, QWidget * _parent );
45
~SideBar
()
override
=
default
;
46
47
void
appendTab
(
SideBarWidget
* _sbw );
48
49
50
private
slots:
51
void
toggleButton
( QAbstractButton * _btn );
52
53
54
private
:
55
QButtonGroup
m_btnGroup
;
56
using
ButtonMap
= QMap<QToolButton*, QWidget*>;
57
ButtonMap
m_widgets
;
58
59
} ;
60
61
}
// namespace lmms::gui
62
63
#endif
// LMMS_GUI_SIDE_BAR_H
lmms::gui::SideBar::SideBar
SideBar(Qt::Orientation _orientation, QWidget *_parent)
Definition
SideBar.cpp:89
lmms::gui::SideBar::toggleButton
void toggleButton(QAbstractButton *_btn)
Definition
SideBar.cpp:127
lmms::gui::SideBar::m_btnGroup
QButtonGroup m_btnGroup
Definition
SideBar.h:55
lmms::gui::SideBar::m_widgets
ButtonMap m_widgets
Definition
SideBar.h:57
lmms::gui::SideBar::~SideBar
~SideBar() override=default
lmms::gui::SideBar::appendTab
void appendTab(SideBarWidget *_sbw)
Definition
SideBar.cpp:104
lmms::gui::SideBar::ButtonMap
QMap< QToolButton *, QWidget * > ButtonMap
Definition
SideBar.h:56
lmms::gui::SideBarWidget
Definition
SideBarWidget.h:39
lmms::gui
Definition
AudioPortAudio.cpp:209
Generated on
for lmms by
1.18.0