Ardour
9.0-pre0-427-gd2a3450e2f
button_config_widget.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 Johannes Mueller <github@johannes-mueller.org>
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 ardour_contourdesign_button_config_widget_h
20
#define ardour_contourdesign_button_config_widget_h
21
22
#include <
gtkmm/box.h
>
23
#include <
gtkmm/radiobutton.h
>
24
#include <
gtkmm/combobox.h
>
25
#include <
gtkmm/treestore.h
>
26
27
#include "
contourdesign.h
"
28
#include "
jump_distance_widget.h
"
29
30
namespace
ActionManager
31
{
32
class
ActionModel;
33
}
34
35
namespace
ArdourSurface
36
{
37
class
ButtonConfigWidget
:
public
Gtk::HBox
38
{
39
public
:
40
ButtonConfigWidget
();
41
~ButtonConfigWidget
() {};
42
43
void
set_current_config
(std::shared_ptr<ButtonBase> btn_cnf);
44
std::shared_ptr<ButtonBase>
get_current_config
(
ContourDesignControlProtocol
& ccp)
const
;
45
46
sigc::signal<void>
Changed
;
47
48
private
:
49
void
set_current_action
(std::string action_string);
50
void
set_jump_distance
(
JumpDistance
dist);
51
52
Gtk::RadioButton
_choice_jump
;
53
Gtk::RadioButton
_choice_action
;
54
55
void
update_choice
();
56
void
update_config
();
57
58
bool
find_action_in_model
(
const
Gtk::TreeModel::iterator
& iter, std::string
const
& action_path,
Gtk::TreeModel::iterator
* found);
59
60
JumpDistanceWidget
_jump_distance
;
61
Gtk::ComboBox
_action_cb
;
62
63
const
ActionManager::ActionModel
&
_action_model
;
64
};
65
}
66
67
#endif
/* ardour_contourdesign_button_config_widget_h */
ActionManager::ActionModel
Definition:
action_model.h:41
ArdourSurface::ButtonConfigWidget
Definition:
button_config_widget.h:38
ArdourSurface::ButtonConfigWidget::Changed
sigc::signal< void > Changed
Definition:
button_config_widget.h:46
ArdourSurface::ButtonConfigWidget::set_current_config
void set_current_config(std::shared_ptr< ButtonBase > btn_cnf)
ArdourSurface::ButtonConfigWidget::ButtonConfigWidget
ButtonConfigWidget()
ArdourSurface::ButtonConfigWidget::_choice_jump
Gtk::RadioButton _choice_jump
Definition:
button_config_widget.h:52
ArdourSurface::ButtonConfigWidget::set_jump_distance
void set_jump_distance(JumpDistance dist)
ArdourSurface::ButtonConfigWidget::update_config
void update_config()
ArdourSurface::ButtonConfigWidget::get_current_config
std::shared_ptr< ButtonBase > get_current_config(ContourDesignControlProtocol &ccp) const
ArdourSurface::ButtonConfigWidget::_action_model
const ActionManager::ActionModel & _action_model
Definition:
button_config_widget.h:63
ArdourSurface::ButtonConfigWidget::update_choice
void update_choice()
ArdourSurface::ButtonConfigWidget::_action_cb
Gtk::ComboBox _action_cb
Definition:
button_config_widget.h:61
ArdourSurface::ButtonConfigWidget::_choice_action
Gtk::RadioButton _choice_action
Definition:
button_config_widget.h:53
ArdourSurface::ButtonConfigWidget::set_current_action
void set_current_action(std::string action_string)
ArdourSurface::ButtonConfigWidget::_jump_distance
JumpDistanceWidget _jump_distance
Definition:
button_config_widget.h:60
ArdourSurface::ButtonConfigWidget::find_action_in_model
bool find_action_in_model(const Gtk::TreeModel::iterator &iter, std::string const &action_path, Gtk::TreeModel::iterator *found)
ArdourSurface::ButtonConfigWidget::~ButtonConfigWidget
~ButtonConfigWidget()
Definition:
button_config_widget.h:41
ArdourSurface::ContourDesignControlProtocol
Definition:
contourdesign.h:73
ArdourSurface::JumpDistanceWidget
Definition:
jump_distance_widget.h:34
Gtk::ComboBox
Definition:
combobox.h:72
Gtk::HBox
Definition:
tk/ytkmm/ytkmm/gtkmm/box.h:588
Gtk::RadioButton
Definition:
radiobutton.h:55
Gtk::TreeIter
Definition:
treeiter.h:130
combobox.h
contourdesign.h
jump_distance_widget.h
ActionManager
Definition:
gtk2_ardour/actions.h:31
ArdourSurface
Definition:
cc121.h:71
radiobutton.h
ArdourSurface::JumpDistance
Definition:
contourdesign.h:53
box.h
treestore.h
libs
surfaces
contourdesign
button_config_widget.h
Generated on Mon Nov 11 2024 08:48:51 for Ardour by
1.9.1