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:
29 
30 protected:
31  virtual void on_show ();
32  virtual void on_hide ();
33 
34 private:
35  void reset ();
36  bool idle ();
37 
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 
virtual void on_hide()
This is a default handler for the signal signal_hide().
int64_t _max
Definition: idleometer.h:50
double _var_m
Definition: idleometer.h:54
double _var_s
Definition: idleometer.h:54
int64_t _min
Definition: idleometer.h:49
Gtk::Label _label_acq
Definition: idleometer.h:43
int64_t _last
Definition: idleometer.h:48
bool idle()
int64_t _cnt
Definition: idleometer.h:52
void reset()
virtual void on_show()
This is a default handler for the signal signal_show().
Gtk::Label _label_avg
Definition: idleometer.h:41
Gtk::Label _label_cur
Definition: idleometer.h:38
sigc::connection _idle_connection
Definition: idleometer.h:55
Gtk::Label _label_dev
Definition: idleometer.h:42
double _total
Definition: idleometer.h:53
Gtk::Label _label_max
Definition: idleometer.h:40
int64_t _last_display
Definition: idleometer.h:45
Gtk::Label _label_min
Definition: idleometer.h:39
int64_t _start
Definition: idleometer.h:47