Ardour  9.0-pre0-582-g084a23a80d
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 <gtkmm/label.h>
24 #include <gtkmm/progressbar.h>
25 #include "ardour_dialog.h"
26 
27 namespace ARDOUR {
28  class InterThreadInfo;
29  class ImportStatus;
30 }
31 
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 
50 
51 private:
52  void cancel_clicked ();
53 
55 };
56 
59 {
60 public:
61  ImportProgressWindow (ARDOUR::ImportStatus *, std::string const &, std::string const &);
62 
63 private:
64  bool update ();
65 
68 };
69 
ImportProgressWindow(ARDOUR::ImportStatus *, std::string const &, std::string const &)
ARDOUR::ImportStatus * _import_status
InterthreadProgressWindow(ARDOUR::InterThreadInfo *, std::string const &, std::string const &)
ARDOUR::InterThreadInfo * _interthread_info
virtual void on_hide()
This is a default handler for the signal signal_hide().