CodeStat::CodeStat() { if(!Manager::LoadResource(_T("codestat.zip"))) { NotifyMissingFile(_T("codestat.zip")); } }
// constructor // ---------------------------------------------------------------------------- Navigator::Navigator() // ---------------------------------------------------------------------------- { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) // if(!Manager::LoadResource(_T("Navigator.zip"))) // { // NotifyMissingFile(_T("Navigator.zip")); // } m_FilenameLast = wxEmptyString; m_PosnLast = 0; m_Cursor = POS_BUFFER_SIZE-1; m_Tail = POS_BUFFER_SIZE-1; m_Head = POS_BUFFER_SIZE-1; // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if(!Manager::LoadResource(wxT("Navigation.zip"))){ NotifyMissingFile(wxT("Navigation.zip")); } m_IsAttached = false; }
void EnvVars::OnAttach() { #if TRACE_ENVVARS Manager::Get()->GetLogManager()->DebugLog(F(_T("OnAttach"))); #endif if (!Manager::LoadResource(_T("envvars.zip"))) NotifyMissingFile(_T("envvars.zip")); // load and apply configuration (to application only) ConfigManager *cfg = Manager::Get()->GetConfigManager(_T("envvars")); if (!cfg) return; // will apply the currently active envvar set nsEnvVars::EnvvarSetApply(wxEmptyString, true); // register event sink Manager::Get()->RegisterEventSink(cbEVT_PROJECT_ACTIVATE, new cbEventFunctor<EnvVars, CodeBlocksEvent>(this, &EnvVars::OnProjectActivated)); Manager::Get()->RegisterEventSink(cbEVT_PROJECT_CLOSE, new cbEventFunctor<EnvVars, CodeBlocksEvent>(this, &EnvVars::OnProjectClosed)); // Register scripting Manager::Get()->GetScriptingManager(); // make sure the VM is initialised if (SquirrelVM::GetVMPtr()) { SqPlus::RegisterGlobal(&nsEnvVars::GetEnvvarSetNames, "EnvvarGetEnvvarSetNames" ); SqPlus::RegisterGlobal(&nsEnvVars::GetEnvvarSetNames, "EnvvarGetActiveSetName" ); SqPlus::RegisterGlobal(&nsEnvVars::GetEnvvarsBySetPath, "EnvVarGetEnvvarsBySetPath"); SqPlus::RegisterGlobal(&nsEnvVars::EnvvarSetExists, "EnvvarSetExists" ); SqPlus::RegisterGlobal(&nsEnvVars::EnvvarSetApply, "EnvvarSetApply" ); SqPlus::RegisterGlobal(&nsEnvVars::EnvvarSetDiscard, "EnvvarSetDiscard" ); SqPlus::RegisterGlobal(&nsEnvVars::EnvvarApply, "EnvvarApply" ); SqPlus::RegisterGlobal(&nsEnvVars::EnvvarDiscard, "EnvvarDiscard" ); } }// OnAttach
// constructor ThreadSearch::ThreadSearch() :m_SearchedWord(wxEmptyString), m_pThreadSearchView(NULL), m_pViewManager(NULL), m_pToolbar(NULL), m_CtxMenuIntegration(true), m_UseDefValsForThreadSearch(true), m_ShowSearchControls(true), m_ShowDirControls(false), m_ShowCodePreview(true), m_DeletePreviousResults(true), m_LoggerType(ThreadSearchLoggerBase::TypeList), m_DisplayLogHeaders(true), m_DrawLogLines(false), m_AutosizeLogColumns(false), m_pCboSearchExpr(0), m_SplitterMode(wxSPLIT_VERTICAL), m_FileSorting(InsertIndexManager::SortByFilePath) { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) // ThreadSearch plugin has no resources in zip if(!Manager::LoadResource(_T("ThreadSearch.zip"))) { NotifyMissingFile(_T("ThreadSearch.zip")); } }
// constructor IncrementalSearch::IncrementalSearch(): m_SearchText(wxEmptyString), m_textCtrlBG_Default( wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW) ), m_pToolbar(0l), m_pTextCtrl(0l), m_pEditor(0l), m_NewPos(-1), m_OldPos(-1), m_SelStart(-1), m_SelEnd(-1), m_MinPos(-1), m_MaxPos(-1), m_flags(0), m_Highlight(false), m_SelectedOnly(false), m_IndicFound(20), m_IndicHighlight(21), m_LengthFound(0), m_LastInsertionPoint(0) { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if (!Manager::LoadResource(_T("IncrementalSearch.zip"))) { NotifyMissingFile(_T("IncrementalSearch.zip")); } }
ClassWizard::ClassWizard() { if(!Manager::LoadResource(_T("classwizard.zip"))) { NotifyMissingFile(_T("classwizard.zip")); } }
// constructor KeyRepeatReplace::KeyRepeatReplace(): m_pConfig(NULL) { if(!Manager::LoadResource(_T("KeyRepeatReplace.zip"))) NotifyMissingFile(_T("KeyRepeatReplace.zip")); }
HelpPlugin::HelpPlugin() : m_pMenuBar(0), m_LastId(0), m_manFrame(0) { //ctor if(!Manager::LoadResource(_T("help_plugin.zip"))) { NotifyMissingFile(_T("help_plugin.zip")); } // initialize IDs for Help and popup menu for (int i = 0; i < MAX_HELP_ITEMS; ++i) { idHelpMenus[i] = wxNewId(); // dynamically connect the events Connect(idHelpMenus[i], -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) &HelpPlugin::OnFindItem); } m_LastId = idHelpMenus[0]; #ifdef __WXMSW__ ocx_module = LoadLibrary(_T("HHCTRL.OCX")); if (ocx_module) { fp_htmlHelp = (HTMLHELP)GetProcAddress(ocx_module, HTMLHELP_NAME); } #endif }
HeaderFixup::HeaderFixup() { if ( !Manager::LoadResource(_T("headerfixup.zip")) ) { NotifyMissingFile(_T("headerfixup.zip")); } }// HeaderFixup
// constructor FileManagerPlugin::FileManagerPlugin() { if(!Manager::LoadResource(_T("FileManager.zip"))) { NotifyMissingFile(_T("FileManager.zip")); } m_fe=0; }
DefaultMimeHandler::DefaultMimeHandler() { //ctor if(!Manager::LoadResource(_T("defaultmimehandler.zip"))) { NotifyMissingFile(_T("defaultmimehandler.zip")); } }
// constructor ToolsPlus::ToolsPlus() { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if (!Manager::LoadResource(_T("ToolsPlus.zip"))) NotifyMissingFile(_T("ToolsPlus.zip")); }
// constructor EditorTweaks::EditorTweaks() : m_scrollTimer(this, id_et_ScrollTimer) { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if (!Manager::LoadResource(_T("EditorTweaks.zip"))) NotifyMissingFile(_T("EditorTweaks.zip")); }
DevPakUpdater::DevPakUpdater() { //ctor if(!Manager::LoadResource(_T("devpakupdater.zip"))) { NotifyMissingFile(_T("devpakupdater.zip")); } g_MasterPath = Manager::Get()->GetConfigManager(_T("devpak_plugin"))->Read(_T("/master_path")); }
Cccc::Cccc() { if(!Manager::LoadResource(_T("Cccc.zip"))) { NotifyMissingFile(_T("Cccc.zip")); } m_CcccLog = 0; m_LogPageIndex = 0; // good init value ??? m_CcccApp = _T("cccc"); } // end of constructor
CppCheck::CppCheck() : m_CppCheckLog(0), m_ListLog(0), m_LogPageIndex(0), // good init value ??? m_ListLogPageIndex(0), m_PATH(wxEmptyString) { if (!Manager::LoadResource(_T("CppCheck.zip"))) NotifyMissingFile(_T("CppCheck.zip")); }
// constructor EditorTweaks::EditorTweaks() : AlignerLastUsedIdx(0), AlignerLastUsedAuto(false), AlignerLastUsed(false) { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if (!Manager::LoadResource(_T("EditorTweaks.zip"))) NotifyMissingFile(_T("EditorTweaks.zip")); }
ToDoList::ToDoList() : m_InitDone(false), m_ParsePending(false), m_StandAlone(true) { //ctor if (!Manager::LoadResource(_T("todo.zip"))) { NotifyMissingFile(_T("todo.zip")); } }
Valgrind::Valgrind() { if(!Manager::LoadResource(_T("Valgrind.zip"))) { NotifyMissingFile(_T("Valgrind.zip")); } m_LogPageIndex = 0; // good init value ??? m_ValgrindLog = 0; m_ListLog = 0; m_ListLogPageIndex = 0; } // end of constructor
ClangPlugin::ClangPlugin() : m_Proxy(m_Database, m_CppKeywords), m_ImageList(16, 16), m_EdOpenTimer(this, idEdOpenTimer), m_ReparseTimer(this, idReparseTimer), m_DiagnosticTimer(this, idDiagnosticTimer), m_pLastEditor(nullptr), m_TranslUnitId(wxNOT_FOUND) { if (!Manager::LoadResource(_T("clanglib.zip"))) NotifyMissingFile(_T("clanglib.zip")); }
// constructor CscopePlugin::CscopePlugin() :m_cfg(0), m_pProcess(0), m_thrd(0) { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if(!Manager::LoadResource(_T("Cscope.zip"))) NotifyMissingFile(_T("Cscope.zip")); m_cfg = new CscopeConfig(); }
void Autosave::OnAttach() { if(!Manager::LoadResource(_T("autosave.zip"))) { NotifyMissingFile(_T("autosave.zip")); } timer1 = new wxTimer(this, 10000); timer2 = new wxTimer(this, 20000); Start(); }
// constructor PythonDebugger::PythonDebugger() : cbDebuggerPlugin(_T("PythonDebugger"),_T("py_debugger")) { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if(!Manager::LoadResource(_T("PythonDebugger.zip"))) { NotifyMissingFile(_T("PythonDebugger.zip")); } m_DebuggerActive=false; m_RunTargetSelected=false; }
ClangPlugin::ClangPlugin() : m_Proxy(this, m_Database, m_CppKeywords), m_ImageList(16, 16), m_ReparseTimer(this, idReparseTimer), m_pLastEditor(nullptr), m_TranslUnitId(wxNOT_FOUND), m_UpdateCompileCommand(0), m_ReparseNeeded(0), m_LastModifyLine(-1) { if (!Manager::LoadResource(_T("clanglib.zip"))) NotifyMissingFile(_T("clanglib.zip")); m_ComponentList.push_back(new ClangCodeCompletion()); m_ComponentList.push_back(new ClangDiagnostics()); }
// constructor OccurrencesHighlighting::OccurrencesHighlighting(): m_pHighlighter(NULL), m_pPanel(NULL), m_pViewMenu(NULL) { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if (!Manager::LoadResource(_T("occurrenceshighlighting.zip"))) NotifyMissingFile(_T("occurrenceshighlighting.zip")); ColourManager* cm = Manager::Get()->GetColourManager(); cm->RegisterColour(_("Editor"), _("Highlight occurrence"), wxT("editor_highlight_occurrence"), *wxRED ); cm->RegisterColour(_("Editor"), _("Permanently highlighted occurrences"), wxT("editor_highlight_occurrence_permanently"), *wxGREEN); }
EnvVars::EnvVars() { // hook to project loading procedure ProjectLoaderHooks::HookFunctorBase* envvar_hook = new ProjectLoaderHooks::HookFunctor<EnvVars>(this, &EnvVars::OnProjectLoadingHook); m_EnvVarHookID = ProjectLoaderHooks::RegisterHook(envvar_hook); // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if(!Manager::LoadResource(wxT("envvars.zip"))){ NotifyMissingFile(wxT("envvars.zip")); } }// EnvVars
Manager* Manager::Get(wxFrame *appWindow) { if (appWindow) { if (Get()->m_pAppWindow) cbThrow(_T("Illegal argument to Manager::Get()")); else { Get()->m_pAppWindow = appWindow; if (!LoadResource(_T("manager_resources.zip"))) NotifyMissingFile(_T("manager_resources.zip")); else Get()->GetLogManager()->Log(_("Manager initialized")); } } return Get(); }
SpellCheckerPlugin::SpellCheckerPlugin(): m_pSpellChecker(NULL), m_pSpellingDialog(NULL), m_pSpellHelper(NULL), m_pOnlineChecker(NULL), m_pThesaurus(NULL), m_sccfg(NULL) #ifdef wxUSE_STATUSBAR ,m_fld(NULL) #endif { // Make sure our resources are available. // In the generated boilerplate code we have no resources but when // we add some, it will be nice that this code is in place already ;) if(!Manager::LoadResource(_T("SpellChecker.zip"))) { NotifyMissingFile(_T("SpellChecker.zip")); } }