Ardour
9.0-pre0-582-g084a23a80d
idleometer.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Robin Gareus <robin@gareus.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
#pragma once
20
21
#include <
gtkmm/label.h
>
22
#include "
ardour_dialog.h
"
23
24
class
IdleOMeter
:
public
ArdourDialog
25
{
26
public
:
27
IdleOMeter
();
28
~IdleOMeter
();
29
30
protected
:
31
virtual
void
on_show
();
32
virtual
void
on_hide
();
33
34
private
:
35
void
reset
();
36
bool
idle
();
37
38
Gtk::Label
_label_cur
;
39
Gtk::Label
_label_min
;
40
Gtk::Label
_label_max
;
41
Gtk::Label
_label_avg
;
42
Gtk::Label
_label_dev
;
43
Gtk::Label
_label_acq
;
44
45
int64_t
_last_display
;
46
47
int64_t
_start
;
48
int64_t
_last
;
49
int64_t
_min
;
50
int64_t
_max
;
51
52
int64_t
_cnt
;
53
double
_total
;
54
double
_var_m
,
_var_s
;
55
sigc::connection
_idle_connection
;
56
};
57
ardour_dialog.h
ArdourDialog
Definition:
ardour_dialog.h:40
Gtk::Label
Definition:
label.h:55
IdleOMeter
Definition:
idleometer.h:25
IdleOMeter::on_hide
virtual void on_hide()
This is a default handler for the signal signal_hide().
IdleOMeter::_max
int64_t _max
Definition:
idleometer.h:50
IdleOMeter::_var_m
double _var_m
Definition:
idleometer.h:54
IdleOMeter::IdleOMeter
IdleOMeter()
IdleOMeter::_var_s
double _var_s
Definition:
idleometer.h:54
IdleOMeter::_min
int64_t _min
Definition:
idleometer.h:49
IdleOMeter::_label_acq
Gtk::Label _label_acq
Definition:
idleometer.h:43
IdleOMeter::_last
int64_t _last
Definition:
idleometer.h:48
IdleOMeter::idle
bool idle()
IdleOMeter::_cnt
int64_t _cnt
Definition:
idleometer.h:52
IdleOMeter::reset
void reset()
IdleOMeter::on_show
virtual void on_show()
This is a default handler for the signal signal_show().
IdleOMeter::_label_avg
Gtk::Label _label_avg
Definition:
idleometer.h:41
IdleOMeter::_label_cur
Gtk::Label _label_cur
Definition:
idleometer.h:38
IdleOMeter::_idle_connection
sigc::connection _idle_connection
Definition:
idleometer.h:55
IdleOMeter::_label_dev
Gtk::Label _label_dev
Definition:
idleometer.h:42
IdleOMeter::_total
double _total
Definition:
idleometer.h:53
IdleOMeter::~IdleOMeter
~IdleOMeter()
IdleOMeter::_label_max
Gtk::Label _label_max
Definition:
idleometer.h:40
IdleOMeter::_last_display
int64_t _last_display
Definition:
idleometer.h:45
IdleOMeter::_label_min
Gtk::Label _label_min
Definition:
idleometer.h:39
IdleOMeter::_start
int64_t _start
Definition:
idleometer.h:47
label.h
gtk2_ardour
idleometer.h
Generated on Wed Dec 25 2024 05:44:33 for Ardour by
1.9.1