Code::Blocks
SVN r11506
|
#include <scriptingsettingsdlg.h>
Public Member Functions | |
ScriptingSettingsDlg (wxWindow *parent) | |
~ScriptingSettingsDlg () | |
void | EndModal (int retCode) |
Public Member Functions inherited from wxScrollingDialog | |
wxScrollingDialog () | |
wxScrollingDialog (wxWindow *parent, int id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("dialogBox")) | |
Public Member Functions inherited from wxDialog | |
virtual int | ShowModal () |
Protected Member Functions | |
void | FillScripts () |
void | UpdateState () |
void | FillTrusts () |
void | UpdateTrustsState () |
void | LoadItem (long item) |
void | SaveItem (long item) |
void | OnListSelection (wxListEvent &event) |
void | OnListDeselection (wxListEvent &event) |
void | OnAddScript (wxCommandEvent &event) |
void | OnRemoveScript (wxCommandEvent &event) |
void | OnScriptChanged (wxCommandEvent &event) |
void | OnScriptMenuChanged (wxCommandEvent &event) |
void | OnEnable (wxCommandEvent &event) |
void | OnRegister (wxCommandEvent &event) |
void | OnBrowse (wxCommandEvent &event) |
void | OnTrustSelection (wxListEvent &event) |
void | OnDeleteTrust (wxCommandEvent &event) |
void | OnValidateTrusts (wxCommandEvent &event) |
Protected Attributes | |
ScriptsVector | m_ScriptsVector |
bool | m_IgnoreTextEvents |
Definition at line 40 of file scriptingsettingsdlg.h.
ScriptingSettingsDlg::ScriptingSettingsDlg | ( | wxWindow * | parent | ) |
Definition at line 46 of file scriptingsettingsdlg.cpp.
References _(), _T, wxXmlResource::Get(), wxListCtrl::InsertColumn(), wxXmlResource::LoadObject(), and wxLIST_FORMAT_LEFT.
ScriptingSettingsDlg::~ScriptingSettingsDlg | ( | ) |
Definition at line 68 of file scriptingsettingsdlg.cpp.
void ScriptingSettingsDlg::EndModal | ( | int | retCode | ) |
Definition at line 156 of file scriptingsettingsdlg.cpp.
References _T, ConfigManager::DeleteSubPath(), ScriptBindings::EndModal(), wxString::Format(), Manager::Get(), Manager::GetConfigManager(), m_ScriptsVector, ScriptEntry::SerializeOut(), ConfigManager::Write(), and wxID_OK.
|
protected |
Definition at line 73 of file scriptingsettingsdlg.cpp.
References _(), _T, wxListCtrl::DeleteAllItems(), ScriptEntry::enabled, ConfigManager::EnumerateKeys(), Manager::Get(), Manager::GetConfigManager(), wxArrayString::GetCount(), wxListCtrl::GetItemCount(), wxListCtrl::InsertItem(), wxString::IsEmpty(), m_ScriptsVector, ScriptEntry::menu, ConfigManager::Read(), ScriptEntry::registered, ScriptEntry::script, ScriptEntry::SerializeIn(), wxListCtrl::SetItem(), UpdateState(), and wxEmptyString.
|
protected |
Definition at line 116 of file scriptingsettingsdlg.cpp.
References _(), _T, ScriptingManager::TrustedScriptProps::crc, wxListCtrl::DeleteAllItems(), wxString::Format(), Manager::Get(), Manager::GetConfigManager(), wxListCtrl::GetItemCount(), Manager::GetScriptingManager(), ScriptingManager::GetTrustedScripts(), wxListCtrl::InsertItem(), ScriptingManager::TrustedScriptProps::permanent, ConfigManager::ReadBool(), wxListCtrl::SetItem(), and UpdateTrustsState().
|
protected |
Definition at line 185 of file scriptingsettingsdlg.cpp.
References ScriptEntry::enabled, m_IgnoreTextEvents, m_ScriptsVector, ScriptEntry::menu, ScriptEntry::registered, and ScriptEntry::script.
Referenced by OnListSelection(), and OnRemoveScript().
|
protected |
Definition at line 278 of file scriptingsettingsdlg.cpp.
References _(), _T, ScriptEntry::enabled, wxListCtrl::GetItemCount(), wxListCtrl::InsertItem(), m_ScriptsVector, OnBrowse(), ScriptEntry::registered, ScriptEntry::script, wxListCtrl::SetItem(), wxListCtrl::SetItemState(), wxLIST_STATE_FOCUSED, and wxLIST_STATE_SELECTED.
|
protected |
Definition at line 314 of file scriptingsettingsdlg.cpp.
References _(), _T, FileFilters::GetFilterString(), ConfigManager::GetFolder(), wxFileName::GetFullPath(), wxFileDialog::GetPath(), wxFileName::MakeRelativeTo(), PlaceWindow(), sdScriptsGlobal, sdScriptsUser, wxFileDialog::ShowModal(), wxString::StartsWith(), UnixFilename(), wxFD_OPEN, and wxID_OK.
Referenced by OnAddScript().
|
protected |
Definition at line 346 of file scriptingsettingsdlg.cpp.
References wxListCtrl::DeleteItem(), Manager::Get(), wxListCtrl::GetItemText(), wxListCtrl::GetNextItem(), Manager::GetScriptingManager(), ScriptingManager::RemoveTrust(), UpdateTrustsState(), wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
|
protected |
Definition at line 262 of file scriptingsettingsdlg.cpp.
References wxListCtrl::GetNextItem(), SaveItem(), UpdateState(), wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
|
protected |
Definition at line 231 of file scriptingsettingsdlg.cpp.
References SaveItem(), and UpdateState().
|
protected |
Definition at line 220 of file scriptingsettingsdlg.cpp.
References LoadItem(), and UpdateState().
|
protected |
Definition at line 270 of file scriptingsettingsdlg.cpp.
References wxListCtrl::GetNextItem(), SaveItem(), UpdateState(), wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
|
protected |
Definition at line 298 of file scriptingsettingsdlg.cpp.
References wxListCtrl::DeleteItem(), wxListCtrl::GetItemCount(), wxListCtrl::GetNextItem(), LoadItem(), m_ScriptsVector, wxListCtrl::SetItemState(), UpdateState(), wxLIST_NEXT_ALL, wxLIST_STATE_FOCUSED, and wxLIST_STATE_SELECTED.
|
protected |
Definition at line 242 of file scriptingsettingsdlg.cpp.
References wxListCtrl::GetNextItem(), m_IgnoreTextEvents, SaveItem(), UpdateState(), wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
|
protected |
Definition at line 252 of file scriptingsettingsdlg.cpp.
References wxListCtrl::GetNextItem(), m_IgnoreTextEvents, SaveItem(), UpdateState(), wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
|
protected |
Definition at line 341 of file scriptingsettingsdlg.cpp.
References UpdateTrustsState().
|
protected |
Definition at line 358 of file scriptingsettingsdlg.cpp.
References _(), cbMessageBox(), Manager::Get(), wxListCtrl::GetItemCount(), wxListCtrl::GetItemText(), and wxICON_INFORMATION.
|
protected |
Definition at line 200 of file scriptingsettingsdlg.cpp.
References _(), ScriptEntry::enabled, wxString::IsEmpty(), m_IgnoreTextEvents, m_ScriptsVector, ScriptEntry::menu, ScriptEntry::registered, ScriptEntry::script, wxListCtrl::SetItem(), and wxEmptyString.
Referenced by OnEnable(), OnListDeselection(), OnRegister(), OnScriptChanged(), and OnScriptMenuChanged().
|
protected |
Definition at line 99 of file scriptingsettingsdlg.cpp.
References ScriptEntry::enabled, wxListCtrl::GetNextItem(), m_ScriptsVector, ScriptEntry::registered, wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
Referenced by FillScripts(), OnEnable(), OnListDeselection(), OnListSelection(), OnRegister(), OnRemoveScript(), OnScriptChanged(), and OnScriptMenuChanged().
|
protected |
Definition at line 145 of file scriptingsettingsdlg.cpp.
References wxListCtrl::GetNextItem(), wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
Referenced by FillTrusts(), OnDeleteTrust(), and OnTrustSelection().
|
protected |
Definition at line 70 of file scriptingsettingsdlg.h.
Referenced by LoadItem(), OnScriptChanged(), OnScriptMenuChanged(), and SaveItem().
|
protected |
Definition at line 69 of file scriptingsettingsdlg.h.
Referenced by EndModal(), FillScripts(), LoadItem(), OnAddScript(), OnRemoveScript(), SaveItem(), and UpdateState().