root/branches/new_fx_rack_and_sample_fun/gui/src/PatternPropertiesDialog.h @ 762

Revision 762, 1.6 KB (checked in by wolke, 4 years ago)

merge rev 756:761 from trunk

Line 
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 *
5 * http://www.hydrogen-music.org
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY, without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 *
21 */
22
23#ifndef PATTERN_PROPERTIES_DIALOG_H
24#define PATTERN_PROPERTIES_DIALOG_H
25
26#include "config.h"
27
28#include <QtGui>
29#include "ui_PatternPropertiesDialog_UI.h"
30
31namespace H2Core
32{
33        class Pattern;
34}
35
36///
37///Pattern Properties Dialog
38///
39class PatternPropertiesDialog : public QDialog, public Ui_PatternPropertiesDialog_UI
40{
41        Q_OBJECT
42        public:
43                PatternPropertiesDialog( QWidget* parent, H2Core::Pattern* pattern );
44
45                ~PatternPropertiesDialog();
46
47                /// Does some name check
48                static bool nameCheck( QString );
49                void defaultNameCheck( QString );
50
51        private slots:
52                void on_cancelBtn_clicked();
53                void on_okBtn_clicked();
54                void on_patternNameTxt_textChanged();
55                void on_categoryComboBox_editTextChanged();
56
57        private:
58                H2Core::Pattern *pattern;
59
60};
61
62
63#endif
64
65
Note: See TracBrowser for help on using the browser.