2006-12-28 23:31:33 +01:00
|
|
|
// Copyright (c) 2006, Niels Martin Hansen
|
|
|
|
// All rights reserved.
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright notice,
|
|
|
|
// this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
// this list of conditions and the following disclaimer in the documentation
|
|
|
|
// and/or other materials provided with the distribution.
|
|
|
|
// * Neither the name of the Aegisub Group nor the names of its contributors
|
|
|
|
// may be used to endorse or promote products derived from this software
|
|
|
|
// without specific prior written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
|
|
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
// POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//
|
2009-07-29 07:43:02 +02:00
|
|
|
// Aegisub Project http://www.aegisub.org/
|
|
|
|
|
|
|
|
/// @file dialog_automation.cpp
|
|
|
|
/// @brief Manage loaded Automation scripts
|
|
|
|
/// @ingroup secondary_ui
|
|
|
|
///
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2008-01-16 19:29:29 +01:00
|
|
|
|
2009-01-04 07:31:48 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
2009-09-10 15:06:40 +02:00
|
|
|
#ifndef AGI_PRE
|
2012-04-03 22:40:33 +02:00
|
|
|
#include <algorithm>
|
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
#include <wx/button.h>
|
2006-12-28 23:31:33 +01:00
|
|
|
#include <wx/filedlg.h>
|
2009-09-10 15:06:40 +02:00
|
|
|
#include <wx/filename.h>
|
2011-09-28 21:46:14 +02:00
|
|
|
#include <wx/listctrl.h>
|
2007-09-12 01:22:26 +02:00
|
|
|
#include <wx/log.h>
|
|
|
|
#include <wx/msgdlg.h>
|
2009-09-10 15:06:40 +02:00
|
|
|
#endif
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
#include "dialog_automation.h"
|
|
|
|
|
2009-09-10 15:06:40 +02:00
|
|
|
#include "auto4_base.h"
|
2010-05-21 03:13:36 +02:00
|
|
|
#include "compat.h"
|
2011-09-28 21:46:14 +02:00
|
|
|
#include "command/command.h"
|
2009-09-10 15:06:40 +02:00
|
|
|
#include "help_button.h"
|
2011-09-28 21:46:14 +02:00
|
|
|
#include "include/aegisub/context.h"
|
2009-09-10 15:06:40 +02:00
|
|
|
#include "libresrc/libresrc.h"
|
|
|
|
#include "main.h"
|
2011-09-28 21:46:14 +02:00
|
|
|
#include "subtitle_format.h"
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2012-09-25 01:35:27 +02:00
|
|
|
using std::placeholders::_1;
|
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
DialogAutomation::DialogAutomation(agi::Context *c)
|
2011-09-28 23:38:18 +02:00
|
|
|
: wxDialog(c->parent, -1, _("Automation Manager"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
|
2011-09-28 21:46:14 +02:00
|
|
|
, context(c)
|
|
|
|
, local_manager(c->local_scripts)
|
2012-03-09 01:23:30 +01:00
|
|
|
, local_scripts_changed(local_manager->AddScriptChangeListener(&DialogAutomation::RebuildList, this))
|
2011-09-28 21:46:14 +02:00
|
|
|
, global_manager(wxGetApp().global_scripts)
|
2012-03-09 01:23:30 +01:00
|
|
|
, global_scripts_changed(global_manager->AddScriptChangeListener(&DialogAutomation::RebuildList, this))
|
2006-12-28 23:31:33 +01:00
|
|
|
{
|
2012-04-03 22:40:24 +02:00
|
|
|
SetIcon(GETICON(automation_toolbutton_16));
|
2007-07-05 01:09:40 +02:00
|
|
|
|
2006-12-28 23:31:33 +01:00
|
|
|
// create main controls
|
2011-09-28 21:46:14 +02:00
|
|
|
list = new wxListView(this, -1, wxDefaultPosition, wxSize(600, 175), wxLC_REPORT|wxLC_SINGLE_SEL);
|
2012-02-01 19:47:47 +01:00
|
|
|
wxButton *add_button = new wxButton(this, -1, _("&Add"));
|
2011-09-28 21:46:14 +02:00
|
|
|
remove_button = new wxButton(this, -1, _("&Remove"));
|
|
|
|
reload_button = new wxButton(this, -1, _("Re&load"));
|
2012-02-01 19:47:47 +01:00
|
|
|
wxButton *info_button = new wxButton(this, -1, _("Show &Info"));
|
|
|
|
wxButton *reload_autoload_button = new wxButton(this, -1, _("Re&scan Autoload Dir"));
|
|
|
|
wxButton *close_button = new wxButton(this, wxID_CANCEL, _("&Close"));
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2012-09-25 01:35:27 +02:00
|
|
|
list->Bind(wxEVT_COMMAND_LIST_ITEM_SELECTED, std::bind(&DialogAutomation::UpdateDisplay, this));
|
|
|
|
list->Bind(wxEVT_COMMAND_LIST_ITEM_DESELECTED, std::bind(&DialogAutomation::UpdateDisplay, this));
|
2011-09-28 21:46:14 +02:00
|
|
|
add_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogAutomation::OnAdd, this);
|
|
|
|
remove_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogAutomation::OnRemove, this);
|
|
|
|
reload_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogAutomation::OnReload, this);
|
|
|
|
info_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogAutomation::OnInfo, this);
|
|
|
|
reload_autoload_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogAutomation::OnReloadAutoload, this);
|
|
|
|
|
2006-12-28 23:31:33 +01:00
|
|
|
// add headers to list view
|
2011-09-28 21:43:11 +02:00
|
|
|
list->InsertColumn(0, "", wxLIST_FORMAT_CENTER, 20);
|
2006-12-28 23:31:33 +01:00
|
|
|
list->InsertColumn(1, _("Name"), wxLIST_FORMAT_LEFT, 140);
|
|
|
|
list->InsertColumn(2, _("Filename"), wxLIST_FORMAT_LEFT, 90);
|
|
|
|
list->InsertColumn(3, _("Description"), wxLIST_FORMAT_LEFT, 330);
|
|
|
|
|
|
|
|
// button layout
|
|
|
|
wxSizer *button_box = new wxBoxSizer(wxHORIZONTAL);
|
|
|
|
button_box->AddStretchSpacer(2);
|
|
|
|
button_box->Add(add_button, 0);
|
|
|
|
button_box->Add(remove_button, 0);
|
|
|
|
button_box->AddSpacer(10);
|
|
|
|
button_box->Add(reload_button, 0);
|
|
|
|
button_box->Add(info_button, 0);
|
|
|
|
button_box->AddSpacer(10);
|
|
|
|
button_box->Add(reload_autoload_button, 0);
|
|
|
|
button_box->AddSpacer(10);
|
2011-09-28 21:43:11 +02:00
|
|
|
button_box->Add(new HelpButton(this,"Automation Manager"), 0);
|
2006-12-28 23:31:33 +01:00
|
|
|
button_box->Add(close_button, 0);
|
|
|
|
button_box->AddStretchSpacer(2);
|
|
|
|
|
|
|
|
// main layout
|
|
|
|
wxSizer *main_box = new wxBoxSizer(wxVERTICAL);
|
2011-09-28 21:46:14 +02:00
|
|
|
main_box->Add(list, wxSizerFlags(1).Expand().Border());
|
|
|
|
main_box->Add(button_box, wxSizerFlags().Expand().Border(wxALL & ~wxTOP));
|
|
|
|
SetSizerAndFit(main_box);
|
2006-12-28 23:31:33 +01:00
|
|
|
Center();
|
|
|
|
|
2007-07-05 17:23:31 +02:00
|
|
|
// why doesn't this work... the button gets the "default" decoration but doesn't answer to Enter
|
|
|
|
// ("esc" does work)
|
|
|
|
SetDefaultItem(close_button);
|
|
|
|
SetAffirmativeId(wxID_CANCEL);
|
|
|
|
close_button->SetDefault();
|
|
|
|
|
2006-12-28 23:31:33 +01:00
|
|
|
RebuildList();
|
|
|
|
}
|
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
template<class Container, class Pred>
|
2011-10-24 22:18:07 +02:00
|
|
|
static inline void for_each(Container const& c, Pred p)
|
2011-09-28 21:46:14 +02:00
|
|
|
{
|
|
|
|
std::for_each(c.begin(), c.end(), p);
|
|
|
|
}
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2011-10-24 22:18:07 +02:00
|
|
|
template<class Container, class Out, class Func>
|
|
|
|
static inline void transform(Container const& c, Out o, Func f)
|
|
|
|
{
|
|
|
|
std::transform(c.begin(), c.end(), o, f);
|
|
|
|
}
|
|
|
|
|
2006-12-28 23:31:33 +01:00
|
|
|
void DialogAutomation::RebuildList()
|
|
|
|
{
|
|
|
|
script_info.clear();
|
|
|
|
list->DeleteAllItems();
|
|
|
|
|
2012-09-25 03:15:20 +02:00
|
|
|
for_each(local_manager->GetScripts(), std::bind(&DialogAutomation::AddScript, this, _1, false));
|
|
|
|
for_each(global_manager->GetScripts(), std::bind(&DialogAutomation::AddScript, this, _1, true));
|
2012-03-09 01:23:30 +01:00
|
|
|
|
|
|
|
UpdateDisplay();
|
2006-12-28 23:31:33 +01:00
|
|
|
}
|
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
void DialogAutomation::SetScriptInfo(int i, Automation4::Script *script)
|
|
|
|
{
|
|
|
|
list->SetItem(i, 1, script->GetName());
|
|
|
|
list->SetItem(i, 2, wxFileName(script->GetFilename()).GetFullName());
|
|
|
|
list->SetItem(i, 3, script->GetDescription());
|
|
|
|
if (!script->GetLoadedState())
|
|
|
|
list->SetItemBackgroundColour(i, wxColour(255,128,128));
|
2012-02-01 19:47:47 +01:00
|
|
|
else
|
|
|
|
list->SetItemBackgroundColour(i, list->GetBackgroundColour());
|
2011-09-28 21:46:14 +02:00
|
|
|
}
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
void DialogAutomation::AddScript(Automation4::Script *script, bool is_global)
|
2006-12-28 23:31:33 +01:00
|
|
|
{
|
2011-09-28 21:46:14 +02:00
|
|
|
ExtraScriptInfo ei = { script, is_global };
|
2006-12-28 23:31:33 +01:00
|
|
|
script_info.push_back(ei);
|
|
|
|
|
|
|
|
wxListItem itm;
|
2011-09-28 21:46:14 +02:00
|
|
|
itm.SetText(is_global ? "G" : "L");
|
2006-12-28 23:31:33 +01:00
|
|
|
itm.SetData((int)script_info.size()-1);
|
|
|
|
itm.SetId(list->GetItemCount());
|
2011-09-28 21:46:14 +02:00
|
|
|
SetScriptInfo(list->InsertItem(itm), script);
|
2006-12-28 23:31:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void DialogAutomation::UpdateDisplay()
|
|
|
|
{
|
|
|
|
int i = list->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
|
|
|
bool selected = i >= 0;
|
2011-09-28 21:46:14 +02:00
|
|
|
bool local = selected && !script_info[list->GetItemData(i)].is_global;
|
|
|
|
remove_button->Enable(local);
|
2006-12-28 23:31:33 +01:00
|
|
|
reload_button->Enable(selected);
|
|
|
|
}
|
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
template<class Container>
|
|
|
|
static bool has_file(Container const& c, wxFileName const& fn)
|
|
|
|
{
|
|
|
|
return find_if(c.begin(), c.end(),
|
2012-09-25 03:15:20 +02:00
|
|
|
std::bind(&wxFileName::SameAs, fn, std::bind(&Automation4::Script::GetFilename, _1), wxPATH_NATIVE)) != c.end();
|
2011-09-28 21:46:14 +02:00
|
|
|
}
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
void DialogAutomation::OnAdd(wxCommandEvent &)
|
2006-12-28 23:31:33 +01:00
|
|
|
{
|
2011-10-24 22:17:48 +02:00
|
|
|
wxFileDialog diag(this,
|
2011-09-28 21:46:14 +02:00
|
|
|
_("Add Automation script"),
|
|
|
|
lagi_wxString(OPT_GET("Path/Last/Automation")->GetString()),
|
2011-10-24 22:17:48 +02:00
|
|
|
"",
|
2011-09-28 21:46:14 +02:00
|
|
|
Automation4::ScriptFactory::GetWildcardStr(),
|
2011-10-24 22:17:48 +02:00
|
|
|
wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_MULTIPLE);
|
2011-09-28 21:46:14 +02:00
|
|
|
|
2011-10-24 22:17:48 +02:00
|
|
|
if (diag.ShowModal() == wxID_CANCEL) return;
|
2011-09-28 21:46:14 +02:00
|
|
|
|
2011-10-24 22:17:48 +02:00
|
|
|
wxArrayString fnames;
|
|
|
|
diag.GetPaths(fnames);
|
2011-09-28 21:46:14 +02:00
|
|
|
|
2011-10-24 22:17:48 +02:00
|
|
|
for (size_t i = 0; i < fnames.size(); ++i) {
|
|
|
|
wxFileName fnpath(fnames[i]);
|
|
|
|
OPT_SET("Path/Last/Automation")->SetString(STD_STR(fnpath.GetPath()));
|
|
|
|
|
|
|
|
if (has_file(local_manager->GetScripts(), fnpath) || has_file(global_manager->GetScripts(), fnpath)) {
|
|
|
|
wxLogError("Script '%s' is already loaded", fnames[i]);
|
|
|
|
continue;
|
|
|
|
}
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2012-03-09 01:23:30 +01:00
|
|
|
local_manager->Add(Automation4::ScriptFactory::CreateFromFile(fnames[i], true));
|
2011-10-24 22:17:48 +02:00
|
|
|
}
|
2006-12-28 23:31:33 +01:00
|
|
|
}
|
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
void DialogAutomation::OnRemove(wxCommandEvent &)
|
2006-12-28 23:31:33 +01:00
|
|
|
{
|
|
|
|
int i = list->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
|
|
|
if (i < 0) return;
|
|
|
|
const ExtraScriptInfo &ei = script_info[list->GetItemData(i)];
|
|
|
|
if (ei.is_global) return;
|
2012-03-09 01:23:30 +01:00
|
|
|
|
2006-12-28 23:31:33 +01:00
|
|
|
local_manager->Remove(ei.script);
|
|
|
|
}
|
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
void DialogAutomation::OnReload(wxCommandEvent &)
|
2006-12-28 23:31:33 +01:00
|
|
|
{
|
|
|
|
int i = list->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
|
|
|
if (i < 0) return;
|
|
|
|
|
2011-10-25 21:02:01 +02:00
|
|
|
ExtraScriptInfo const& ei = script_info[list->GetItemData(i)];
|
|
|
|
if (ei.is_global)
|
|
|
|
global_manager->Reload(ei.script);
|
|
|
|
else
|
|
|
|
local_manager->Reload(ei.script);
|
2011-10-24 22:18:07 +02:00
|
|
|
}
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2011-10-24 22:18:07 +02:00
|
|
|
static wxString fac_to_str(const Automation4::ScriptFactory* f) {
|
|
|
|
return wxString::Format("- %s (%s)", f->GetEngineName(), f->GetFilenamePattern());
|
|
|
|
}
|
|
|
|
|
|
|
|
static wxString cmd_to_str(const cmd::Command *f, agi::Context *c) {
|
|
|
|
return wxString::Format(_(" Macro: %s (%s)"), f->StrDisplay(c), f->name());
|
|
|
|
}
|
|
|
|
|
|
|
|
static wxString filt_to_str(const Automation4::ExportFilter* f) {
|
|
|
|
return wxString::Format(_(" Export filter: %s"), f->GetName());
|
|
|
|
}
|
|
|
|
|
|
|
|
static wxString form_to_str(const SubtitleFormat* f) {
|
|
|
|
return wxString::Format(_(" Subtitle format handler: %s"), f->GetName());
|
2011-09-28 21:46:14 +02:00
|
|
|
}
|
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
void DialogAutomation::OnInfo(wxCommandEvent &)
|
2006-12-28 23:31:33 +01:00
|
|
|
{
|
|
|
|
int i = list->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
2011-09-28 21:46:14 +02:00
|
|
|
ExtraScriptInfo *ei = i >= 0 ? &script_info[list->GetItemData(i)] : 0;
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2011-10-24 22:18:07 +02:00
|
|
|
wxArrayString info;
|
|
|
|
std::back_insert_iterator<wxArrayString> append_info(info);
|
|
|
|
|
|
|
|
info.push_back(wxString::Format(
|
|
|
|
_("Total scripts loaded: %d\nGlobal scripts loaded: %d\nLocal scripts loaded: %d\n"),
|
2012-05-18 07:03:16 +02:00
|
|
|
(int)local_manager->GetScripts().size() + (int)global_manager->GetScripts().size(),
|
|
|
|
(int)global_manager->GetScripts().size(),
|
|
|
|
(int)local_manager->GetScripts().size()));
|
2006-12-28 23:31:33 +01:00
|
|
|
|
2011-10-24 22:18:07 +02:00
|
|
|
info.push_back(_("Scripting engines installed:"));
|
|
|
|
transform(Automation4::ScriptFactory::GetFactories(), append_info, fac_to_str);
|
2006-12-28 23:31:33 +01:00
|
|
|
|
|
|
|
if (ei) {
|
2011-10-24 22:18:07 +02:00
|
|
|
info.push_back(wxString::Format(_("\nScript info:\nName: %s\nDescription: %s\nAuthor: %s\nVersion: %s\nFull path: %s\nState: %s\n\nFeatures provided by script:"),
|
2011-09-28 21:43:48 +02:00
|
|
|
ei->script->GetName(),
|
|
|
|
ei->script->GetDescription(),
|
|
|
|
ei->script->GetAuthor(),
|
|
|
|
ei->script->GetVersion(),
|
|
|
|
ei->script->GetFilename(),
|
2011-10-24 22:18:07 +02:00
|
|
|
ei->script->GetLoadedState() ? _("Correctly loaded") : _("Failed to load")));
|
2011-09-28 21:48:47 +02:00
|
|
|
|
2012-09-25 03:15:20 +02:00
|
|
|
transform(ei->script->GetMacros(), append_info, std::bind(cmd_to_str, _1, context));
|
2011-10-24 22:18:07 +02:00
|
|
|
transform(ei->script->GetFilters(), append_info, filt_to_str);
|
|
|
|
transform(ei->script->GetFormats(), append_info, form_to_str);
|
2006-12-28 23:31:33 +01:00
|
|
|
}
|
|
|
|
|
2011-10-24 22:18:07 +02:00
|
|
|
wxMessageBox(wxJoin(info, '\n', 0), _("Automation Script Info"));
|
2006-12-28 23:31:33 +01:00
|
|
|
}
|
|
|
|
|
2011-09-28 21:46:14 +02:00
|
|
|
void DialogAutomation::OnReloadAutoload(wxCommandEvent &)
|
2006-12-28 23:31:33 +01:00
|
|
|
{
|
|
|
|
global_manager->Reload();
|
|
|
|
}
|