hydrogen 1.2.3
PatternFillDialog.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-2024 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 PATTERN_FILL_DIALOG_H
24#define PATTERN_FILL_DIALOG_H
25
26
27#include <QtGui>
28#include <QtWidgets>
29
30#include "ui_PatternFillDialog_UI.h"
31
32#include <core/Object.h>
33
34namespace H2Core
35{
36 class Pattern;
37}
38
39struct FillRange {
40
42 int toVal;
43 bool bInsert;
44};
45
46
50
51class PatternFillDialog : public QDialog, public Ui_PatternFillDialog_UI, public H2Core::Object<PatternFillDialog>
52{
54 Q_OBJECT
55 public:
56 PatternFillDialog( QWidget* parent, FillRange* range );
58
59 private slots:
61 void on_okBtn_clicked();
62 void on_fromText_textChanged(const QString & text);
63 void on_toText_textChanged(const QString & text);
64
65 private:
67
69 void __text_changed();
70
71
72};
73
74
75#endif
76
77
#define H2_OBJECT(name)
Definition Object.h:224
Pattern Fill Dialog.
void on_toText_textChanged(const QString &text)
PatternFillDialog(QWidget *parent, FillRange *range)
void on_fromText_textChanged(const QString &text)
void __text_changed()
Does some name check.