Ardour  9.0-pre0-822-g12e3bc5c20
dsp_stats_ui.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 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 #ifndef _gtkardour_dspstats_ui_h_
20 #define _gtkardour_dspstats_ui_h_
21 
22 #include <ytkmm/button.h>
23 #include <ytkmm/box.h>
24 #include <ytkmm/table.h>
25 #include <ytkmm/label.h>
26 
27 #include "ardour/session_handle.h"
28 
29 class DspStatisticsGUI : public Gtk::VBox, public ARDOUR::SessionHandlePtr
30 {
31 public:
33 
34  void start_updating ();
35  void stop_updating ();
36 
37 protected:
38  bool on_key_press_event (GdkEventKey*);
39 
40 private:
41  void update ();
42 
43  sigc::connection update_connection;
44 
46  Gtk::Label buffer_size_label;
47  Gtk::Label** labels;
48  Gtk::Button reset_button;
49  Gtk::Label info_text;
50 
52 
53 };
54 
55 #endif
bool on_key_press_event(GdkEventKey *)
void reset_button_clicked()
Gtk::Label ** labels
Definition: dsp_stats_ui.h:47
Gtk::Table table
Definition: dsp_stats_ui.h:45
sigc::connection update_connection
Definition: dsp_stats_ui.h:43
Gtk::Label info_text
Definition: dsp_stats_ui.h:49
Gtk::Label buffer_size_label
Definition: dsp_stats_ui.h:46
Gtk::Button reset_button
Definition: dsp_stats_ui.h:48
struct Table Table