Tempo ramps - remove the concept of bars from tempo sections.
[ardour.git] / libs / ardour / test / test_ui.cc
1 /*
2     Copyright (C) 2015 Tim Mayberry
3
4     This program is free software; you can redistribute it and/or modify it
5     under the terms of the GNU General Public License as published by the Free
6     Software Foundation; either version 2 of the License, or (at your option)
7     any later version.
8
9     This program is distributed in the hope that it will be useful, but WITHOUT
10     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12     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     675 Mass Ave, Cambridge, MA 02139, USA.
17 */
18
19 #include "test_ui.h"
20
21 #include <glibmm/threads.h>
22
23 #include "pbd/error.h"
24
25 #include "ardour/session_event.h"
26 #include "ardour/rc_configuration.h"
27
28 #include "pbd/abstract_ui.cc" // instantiate template
29
30 using namespace ARDOUR;
31
32 template class AbstractUI<TestUIRequest>;
33
34 TestUI::TestUI ()
35         : AbstractUI<TestUIRequest> ("test_ui")
36 {
37
38         pthread_set_name ("test_ui_thread");
39
40         run_loop_thread = Glib::Threads::Thread::self ();
41
42         set_event_loop_for_thread (this);
43
44         SessionEvent::create_per_thread_pool ("test", 512);
45
46         m_test_receiver.listen_to (PBD::error);
47         m_test_receiver.listen_to (PBD::info);
48         m_test_receiver.listen_to (PBD::fatal);
49         m_test_receiver.listen_to (PBD::warning);
50
51         /* We can't use VSTs here as we have a stub instead of the
52            required bits in gtk2_ardour.
53         */
54         Config->set_use_lxvst (false);
55 }
56
57 TestUI::~TestUI ()
58 {
59         m_test_receiver.hangup ();
60 }
61
62 void
63 TestUI::do_request (TestUIRequest* req)
64 {
65
66 }