hydrogen 1.2.6
InstrumentRack.h
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 * Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5 *
6 * http://www.hydrogen-music.org
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (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
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see https://www.gnu.org/licenses
20 *
21 */
22
23
24#ifndef INSTRUMENT_RACK_H
25#define INSTRUMENT_RACK_H
26
27#include <core/Object.h>
29
30#include <QtGui>
31#include <QtWidgets>
33
34class Button;
36
38class InstrumentRack : public QWidget, protected WidgetWithScalableFont<5, 6, 7>, private H2Core::Object<InstrumentRack>
39{
41 Q_OBJECT
42 public:
43 explicit InstrumentRack( QWidget *pParent );
45
47
50 static constexpr int m_nMinimumHeight = 450;
51
52public slots:
54 void showSoundLibrary( bool bShow );
56
57 private:
60
63
65
66};
67
68#endif
#define H2_OBJECT(name)
Definition Object.h:227
Generic Button with SVG icons or text.
Definition Button.h:60
Changes
Bitwise or-able options showing which part of the Preferences were altered using the PreferencesDialo...
Button * m_pShowSoundLibraryBtn
button for showing the Sound Library
InstrumentRack(QWidget *pParent)
Button * m_pShowInstrumentEditorBtn
button for showing the Instrument Editor
void showSoundLibrary(bool bShow)
Used by the #Shotlist.
SoundLibraryPanel * getSoundLibraryPanel()
void onPreferencesChanged(H2Core::Preferences::Changes changes)
SoundLibraryPanel * m_pSoundLibraryPanel
static constexpr int m_nMinimumHeight
450 - InstrumentEditor layer view + 24 - tab button
Widget is affected by the "Font size" settings in the PreferencesDialog.