VKeybd: Pass on primary (Ctrl/Cmd) shortcuts
[ardour.git] / gtk2_ardour / plugin_scan_dialog.h
1 /*
2  * Copyright (C) 2005-2019 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 __gtk2_ardour_plugin_scan_dialog_h__
20 #define __gtk2_ardour_plugin_scan_dialog_h__
21
22 #include <gtkmm/label.h>
23 #include <gtkmm/box.h>
24 #include <gtkmm/button.h>
25 #include <gtkmm/progressbar.h>
26
27 #include "ardour_dialog.h"
28
29 class PluginScanDialog : public ArdourDialog
30 {
31   public:
32         PluginScanDialog (bool cache_only, bool verbose);
33         void start ();
34
35   private:
36         Gtk::Label       message;
37         Gtk::ProgressBar pbar;
38         Gtk::HBox        tbox;
39         Gtk::Button      timeout_button;
40         Gtk::Button      cancel_button;
41         bool             cache_only;
42         bool             verbose;
43
44         void cancel_plugin_scan ();
45         void cancel_plugin_timeout ();
46         void plugin_scan_timeout (int timeout);
47         void message_handler (std::string type, std::string plugin, bool can_cancel);
48
49         PBD::ScopedConnectionList connections;
50 };
51
52 #endif /* __gtk2_ardour_plugin_scan_dialog_h__ */