コード例 #1
0
ファイル: codestat.cpp プロジェクト: DowerChest/codeblocks
CodeStat::CodeStat()
{
    if(!Manager::LoadResource(_T("codestat.zip")))
    {
        NotifyMissingFile(_T("codestat.zip"));
    }
}
コード例 #2
0
ファイル: Navigation.cpp プロジェクト: stahta01/EmBlocks_old
// 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;
}
コード例 #3
0
ファイル: envvars.cpp プロジェクト: stahta01/EmBlocks_old
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
コード例 #4
0
// 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"));
    }
}
コード例 #5
0
// 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"));
    }
}
コード例 #6
0
ファイル: classwizard.cpp プロジェクト: Distrotech/codeblocks
ClassWizard::ClassWizard()
{
    if(!Manager::LoadResource(_T("classwizard.zip")))
    {
        NotifyMissingFile(_T("classwizard.zip"));
    }
}
コード例 #7
0
// constructor
KeyRepeatReplace::KeyRepeatReplace():
m_pConfig(NULL)
{
    if(!Manager::LoadResource(_T("KeyRepeatReplace.zip")))
        NotifyMissingFile(_T("KeyRepeatReplace.zip"));

}
コード例 #8
0
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
}
コード例 #9
0
HeaderFixup::HeaderFixup()
{
  if ( !Manager::LoadResource(_T("headerfixup.zip")) )
  {
    NotifyMissingFile(_T("headerfixup.zip"));
  }
}// HeaderFixup
コード例 #10
0
ファイル: FileManager.cpp プロジェクト: Distrotech/codeblocks
// constructor
FileManagerPlugin::FileManagerPlugin()
{
    if(!Manager::LoadResource(_T("FileManager.zip")))
    {
        NotifyMissingFile(_T("FileManager.zip"));
    }
    m_fe=0;
}
コード例 #11
0
DefaultMimeHandler::DefaultMimeHandler()
{
    //ctor
    if(!Manager::LoadResource(_T("defaultmimehandler.zip")))
    {
        NotifyMissingFile(_T("defaultmimehandler.zip"));
    }
}
コード例 #12
0
ファイル: ToolsPlus.cpp プロジェクト: stahta01/EmBlocks
// 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"));
}
コード例 #13
0
// 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"));
}
コード例 #14
0
ファイル: devpakupdater.cpp プロジェクト: 469306621/Languages
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"));
}
コード例 #15
0
ファイル: Cccc.cpp プロジェクト: stahta01/codeblocks_r7456
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
コード例 #16
0
ファイル: CppCheck.cpp プロジェクト: wiesyk/wiesyk
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"));
}
コード例 #17
0
// 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"));
}
コード例 #18
0
ファイル: todolist.cpp プロジェクト: DowerChest/codeblocks
ToDoList::ToDoList() :
    m_InitDone(false),
    m_ParsePending(false),
    m_StandAlone(true)
{
    //ctor
    if (!Manager::LoadResource(_T("todo.zip")))
    {
        NotifyMissingFile(_T("todo.zip"));
    }
}
コード例 #19
0
ファイル: Valgrind.cpp プロジェクト: stahta01/EmBlocks
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
コード例 #20
0
ファイル: clangplugin.cpp プロジェクト: Vaniax/ClangLib
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"));
}
コード例 #21
0
ファイル: CscopePlugin.cpp プロジェクト: jenslody/codeblocks
// 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();
}
コード例 #22
0
ファイル: autosave.cpp プロジェクト: Distrotech/codeblocks
void Autosave::OnAttach()
{
    if(!Manager::LoadResource(_T("autosave.zip")))
    {
        NotifyMissingFile(_T("autosave.zip"));
    }

    timer1 = new wxTimer(this, 10000);
    timer2 = new wxTimer(this, 20000);

    Start();
}
コード例 #23
0
// 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;

}
コード例 #24
0
ファイル: clangplugin.cpp プロジェクト: progmboy/ClangLib
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());
}
コード例 #25
0
// 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);
}
コード例 #26
0
ファイル: envvars.cpp プロジェクト: stahta01/EmBlocks_old
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
コード例 #27
0
ファイル: manager.cpp プロジェクト: stahta01/EmBlocks_old
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();
}
コード例 #28
0
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"));
    }
}