Ardour  9.0-rc1-54-g6eeed82fb3
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 */
45  int width;
46  int height;
47  int x;
48  int y;
49 
50  /* MIDI specific */
51 
54  int channel;
55  int note_min;
56  int note_max;
57 
58  XMLNode& get_state () const;
59  int set_state (XMLNode const & state, int version);
60 };
61 
62 class RegionUISettingsManager : public std::map<PBD::ID, RegionUISettings> {
63  public:
65 
66  void save (std::string const & path);
67  int load (std::string const & path);
68 
69  XMLNode& get_state () const;
70  int set_state (XMLNode const & state, int version);
71 };
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:71
GridType
Definition: editing.h:53
ZoomFocus
Definition: editing.h:127
MouseMode
Definition: editing.h:99
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
ARDOUR::NoteMode note_mode