6 #ifndef PLUGINMANAGER_H 7 #define PLUGINMANAGER_H 92 int ScanForPlugins(
const wxString& path);
93 bool LoadPlugin(
const wxString& pluginName);
94 void LoadAllPlugins();
95 void UnloadAllPlugins();
99 bool AttachPlugin(
cbPlugin* plugin,
bool ignoreSafeMode =
false);
100 bool DetachPlugin(
cbPlugin* plugin);
102 bool InstallPlugin(
const wxString& pluginName,
bool forAllUsers =
true,
bool askForConfirmation =
true);
103 bool UninstallPlugin(
cbPlugin* plugin,
bool removeFiles =
true);
109 const PluginElementsArray&
GetPlugins()
const {
return m_Plugins; }
118 PluginsArray GetToolOffers();
119 PluginsArray GetMimeOffers();
120 PluginsArray GetDebuggerOffers();
121 PluginsArray GetCodeCompletionOffers();
122 PluginsArray GetSmartIndentOffers();
128 void ResetModuleMenu();
136 void RegisterFindMenuItems(
bool before,
int count);
138 int GetFindMenuItemCount()
const;
140 int GetFindMenuItemFirst()
const;
143 void RegisterLastNonPluginMenuItem(
int id);
151 int FindSortedMenuItemPosition(
wxMenu &popup,
const wxString& label)
const;
154 void GetConfigurationPanels(
int group,
wxWindow* parent, ConfigurationPanelsArray& arrayToFill);
155 void GetProjectConfigurationPanels(
wxWindow* parent,
cbProject* project, ConfigurationPanelsArray& arrayToFill);
157 void SetupLocaleDomain(
const wxString& DomainName);
173 bool ReadManifestFile(
const wxString& pluginFilename,
176 void ReadExtraFilesFromManifestFile(
const wxString& pluginFilename,
178 bool ExtractFile(
const wxString& bundlename,
181 bool isMandatory =
true);
201 createProc(rhs.createProc),
202 freeProc(rhs.freeProc),
203 versionProc(rhs.versionProc),
215 int m_FindMenuItemCount = 0;
216 int m_FindMenuItemFirst = 0;
217 int m_LastNonPluginMenuId = 0;
221 DECLARE_EVENT_TABLE()
227 #endif // PLUGINMANAGER_H CreatePluginProc createProc
static bool GetSafeMode()
WX_DEFINE_ARRAY(PluginElement *, PluginElementsArray)
static void SetSafeMode(bool on)
Information about the plugin.
const PluginElementsArray & GetPlugins() const
Event used to request from the main app to add a window to the docking system.
wxString m_CurrentlyLoadingFilename
bool InstallPlugin(const wxString &pluginName, bool allUsers, bool confirm)
Base class for mime plugins.
std::vector< cbCompilerPlugin * > CompilerPlugins
A generic Code::Blocks event.
Base class for compiler plugins.
PluginSDKVersionProc versionProc
CompilerPlugins m_CompilerPlugins
DLLIMPORT bool cbHasRunningCompilers(const PluginManager *manager)
PluginManager manages plugins.
PluginType
Known plugin types.
Represents a Code::Blocks project.
const CompilerPlugins & GetCompilerPlugins() const
ModuleType
The type of module offering a context menu.
void(* FreePluginProc)(cbPlugin *)
wxDynamicLibrary * m_pCurrentlyLoadingLib
cbPlugin *(* CreatePluginProc)()
wxDynamicLibrary * library
Base class for plugin configuration panels.
TiXmlDocument * m_pCurrentlyLoadingManifestDoc
int ExecutePlugin(const wxString &pluginName)
PluginElementsArray m_Plugins
void(* PluginSDKVersionProc)(int *, int *, int *)
SQInteger RegisterPlugin(HSQUIRRELVM v)
std::vector< PluginRegistration > m_RegisteredPlugins
DLLIMPORT void cbStopRunningCompilers(PluginManager *manager)
Event used to request from the main app to manage the view layouts.
PluginRegistration(const PluginRegistration &rhs)