Ardour
9.0-pre0-822-g12e3bc5c20
interthread_progress_window.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010 Carl Hetherington <carl@carlh.net>
3
* Copyright (C) 2011 David Robillard <d@drobilla.net>
4
* Copyright (C) 2016 Robin Gareus <robin@gareus.org>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program; if not, write to the Free Software Foundation, Inc.,
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
*/
20
21
#pragma once
22
23
#include <ytkmm/label.h>
24
#include <ytkmm/progressbar.h>
25
#include "
ardour_dialog.h
"
26
27
namespace
ARDOUR
{
28
class
InterThreadInfo;
29
class
ImportStatus;
30
}
31
37
class
InterthreadProgressWindow
:
public
ArdourDialog
38
{
39
public
:
40
InterthreadProgressWindow
(
ARDOUR::InterThreadInfo
*, std::string
const
&, std::string
const
&);
41
42
protected
:
43
44
virtual
bool
update
();
45
virtual
void
on_hide
();
46
47
Gtk::Button
_cancel_button
;
48
Gtk::Label
_cancel_label
;
49
Gtk::ProgressBar
_bar
;
50
51
private
:
52
void
cancel_clicked
();
53
54
ARDOUR::InterThreadInfo
*
_interthread_info
;
55
};
56
58
class
ImportProgressWindow
:
public
InterthreadProgressWindow
59
{
60
public
:
61
ImportProgressWindow
(
ARDOUR::ImportStatus
*, std::string
const
&, std::string
const
&);
62
63
private
:
64
bool
update
();
65
66
Gtk::Label
_label
;
67
ARDOUR::ImportStatus
*
_import_status
;
68
};
69
ardour_dialog.h
ARDOUR::ImportStatus
Definition:
import_status.h:34
ARDOUR::InterThreadInfo
Definition:
interthread_info.h:29
ArdourDialog
Definition:
ardour_dialog.h:40
ImportProgressWindow
Definition:
interthread_progress_window.h:59
ImportProgressWindow::ImportProgressWindow
ImportProgressWindow(ARDOUR::ImportStatus *, std::string const &, std::string const &)
ImportProgressWindow::_import_status
ARDOUR::ImportStatus * _import_status
Definition:
interthread_progress_window.h:67
ImportProgressWindow::update
bool update()
ImportProgressWindow::_label
Gtk::Label _label
Definition:
interthread_progress_window.h:66
InterthreadProgressWindow
Definition:
interthread_progress_window.h:38
InterthreadProgressWindow::InterthreadProgressWindow
InterthreadProgressWindow(ARDOUR::InterThreadInfo *, std::string const &, std::string const &)
InterthreadProgressWindow::_bar
Gtk::ProgressBar _bar
Definition:
interthread_progress_window.h:49
InterthreadProgressWindow::_cancel_button
Gtk::Button _cancel_button
Definition:
interthread_progress_window.h:47
InterthreadProgressWindow::update
virtual bool update()
InterthreadProgressWindow::cancel_clicked
void cancel_clicked()
InterthreadProgressWindow::_cancel_label
Gtk::Label _cancel_label
Definition:
interthread_progress_window.h:48
InterthreadProgressWindow::_interthread_info
ARDOUR::InterThreadInfo * _interthread_info
Definition:
interthread_progress_window.h:54
InterthreadProgressWindow::on_hide
virtual void on_hide()
ARDOUR
Definition:
analysis_window.h:44
gtk2_ardour
interthread_progress_window.h
Generated on Wed Feb 5 2025 03:14:23 for Ardour by
1.9.1