1
// Copyright (c) 2012, Thomas Goyne <plorkyeran@aegisub.org>
3
// Permission to use, copy, modify, and distribute this software for any
4
// purpose with or without fee is hereby granted, provided that the above
5
// copyright notice and this permission notice appear in all copies.
7
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
// Aegisub Project http://www.aegisub.org/
17
/// @file dialog_fonts_collector.h
18
/// @see dialog_fonts_collector.cpp
19
/// @ingroup tools_ui font_collector
22
#include <wx/dialog.h>
24
namespace agi { struct Context; }
27
class ScintillaTextCtrl;
34
class DialogFontsCollector : public wxDialog {
37
ScintillaTextCtrl *collection_log;
39
wxButton *dest_browse_button;
41
wxRadioBox *collection_mode;
42
wxStaticText *dest_label;
43
wxTextCtrl *dest_ctrl;
45
void OnStart(wxCommandEvent &);
46
void OnBrowse(wxCommandEvent &);
47
void OnRadio(wxCommandEvent &e);
49
/// Append text to log message from worker thread
50
void OnAddText(wxThreadEvent &event);
51
/// Collection complete notification from the worker thread to reenable buttons
52
void OnCollectionComplete(wxThreadEvent &);
55
DialogFontsCollector(agi::Context *c);