Ardour  8.12
transform_dialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2015 David Robillard <d@drobilla.net>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef __transform_dialog_h__
20 #define __transform_dialog_h__
21 
22 #include <list>
23 #include <string>
24 
25 #include <gtkmm/combobox.h>
26 #include <gtkmm/liststore.h>
27 #include <gtkmm/treemodel.h>
28 #include <gtkmm/spinbutton.h>
29 
30 #include "ardour/midi_model.h"
31 #include "ardour/transform.h"
32 #include "ardour/types.h"
33 
34 #include "ardour_dialog.h"
35 
51 {
52 public:
54 
56 
57 private:
63 
66 
69  };
70 
73 
76  };
77 
80 
83  };
84 
85  struct Model {
86  Model();
87 
89  Glib::RefPtr<Gtk::ListStore> source_list;
91  Glib::RefPtr<Gtk::ListStore> property_list;
93  Glib::RefPtr<Gtk::ListStore> operator_list;
94  };
95 
96  struct ValueChooser : public Gtk::HBox {
98 
100  void get(std::list<Operation>& ops);
101 
104 
105  double get_value () const;
106  double get_max () const;
107 
108  const Model& model;
115  };
116 
117  struct OperationChooser : public Gtk::HBox {
119 
121  void get(std::list<Operation>& ops);
122 
124 
125  const Model& model;
129  };
130 
132  void add_clicked();
133 
139 };
140 
141 #endif /* __transform_dialog_h__ */
void add(TreeModelColumnBase &column)
ARDOUR::MidiModel::NoteDiffCommand::Property Property
Gtk::ComboBox _property_combo
ARDOUR::Transform::Program get()
ARDOUR::Transform::Value Value
ARDOUR::Transform::Operation Operation
ValueChooser * _seed_chooser
ARDOUR::Transform::Value::Source Source
Gtk::Button _add_button
Gtk::VBox _operations_box
void property_changed()
ARDOUR::Transform::Operation::Operator Operator
Glib::RefPtr< Gtk::ListStore > property_list
Glib::RefPtr< Gtk::ListStore > operator_list
Glib::RefPtr< Gtk::ListStore > source_list
OperationChooser(const Model &model)
void get(std::list< Operation > &ops)
Gtk::TreeModelColumn< Operator > op
Gtk::TreeModelColumn< std::string > label
Gtk::TreeModelColumn< std::string > label
Gtk::TreeModelColumn< Property > property
Gtk::TreeModelColumn< Source > source
Gtk::TreeModelColumn< std::string > label
const Model & model
Models for combo boxes.
Gtk::ComboBox source_combo
Value source chooser.
Gtk::SpinButton value_spinner
Value or minimum for RANDOM.
void get(std::list< Operation > &ops)
Gtk::ComboBox property_combo
Property chooser.
Gtk::SpinButton max_spinner
Maximum for RANDOM.
void set_target_property(Property prop)
ValueChooser(const Model &model)
Property target_property
Property on source.
Gtk::Label to_label
"to" label for RANDOM