Ardour  9.0-pre0-1467-gc8540a5ad6
region_ui_settings.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2025 Paul Davis <paul@linuxaudiosystems.com>
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 #pragma once
20 
21 #include <map>
22 #include <string>
23 
24 #include "temporal/beats.h"
25 #include "temporal/bbt_time.h"
26 
27 #include "editing.h"
28 
29 class XMLNode;
30 
32 {
34 
38  bool play_selection; /* XXX currently global */
44 
45  /* MIDI specific */
46 
49  int channel;
50  int note_min;
51  int note_max;
52 
53  XMLNode& get_state () const;
54  int set_state (XMLNode const & state, int version);
55 };
56 
57 class RegionUISettingsManager : public std::map<PBD::ID, RegionUISettings> {
58  public:
60 
61  void save (std::string const & path);
62  int load (std::string const & path);
63 
64  XMLNode& get_state () const;
65  int set_state (XMLNode const & state, int version);
66 };
XMLNode & get_state() const
int set_state(XMLNode const &state, int version)
int load(std::string const &path)
void save(std::string const &path)
Definition: xml++.h:114
SnapMode
Definition: editing.h:70
GridType
Definition: editing.h:52
ZoomFocus
Definition: editing.h:126
MouseMode
Definition: editing.h:98
Editing::GridType draw_length
XMLNode & get_state() const
Editing::SnapMode snap_mode
int set_state(XMLNode const &state, int version)
Editing::GridType grid_type
Editing::ZoomFocus zoom_focus
Temporal::timepos_t x_origin
Editing::MouseMode mouse_mode
Temporal::BBT_Offset recording_length