hydrogen 1.2.6
SoundLibraryPropertiesDialog.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#ifndef SOUND_LIBRARY_PROPERTIES_DIALOG_H
24#define SOUND_LIBRARY_PROPERTIES_DIALOG_H
25
26#include "ui_SoundLibraryPropertiesDialog_UI.h"
28
29#include <core/Basics/Drumkit.h>
30#include <core/Object.h>
31
34namespace H2Core
35{
36
38class SoundLibraryPropertiesDialog : public QDialog,
40 public Ui_SoundLibraryPropertiesDialog_UI,
41 public H2Core::Object<SoundLibraryPropertiesDialog>
42{
44 Q_OBJECT
45 public:
46 SoundLibraryPropertiesDialog( QWidget* pParent,
47 std::shared_ptr<Drumkit> pDrumkit,
48 bool bDrumkitNameLocked );
50 void showEvent( QShowEvent *e ) override;
51
52 private slots:
53 void on_saveBtn_clicked();
55 void licenseComboBoxChanged( int );
57
58 private:
59 void updateLicenseTable();
60 void updateImage( QString& filename );
61
62 std::shared_ptr<Drumkit> m_pDrumkit;
77
79
80};
81
82}
83#endif
#define H2_OBJECT(name)
Definition Object.h:227
SoundLibraryPropertiesDialog(QWidget *pParent, std::shared_ptr< Drumkit > pDrumkit, bool bDrumkitNameLocked)
void showEvent(QShowEvent *e) override
On showing the dialog (after layout sizes have been applied), load the drumkit image if any.
bool m_bDrumkitNameLocked
This dialog can be accessed both via SoundLibrary/MainForm > Drumkits -> Properties and MainForm > Dr...
Widget is affected by the "Font size" settings in the PreferencesDialog.