当前位置: 首页>>代码示例>>C++>>正文


C++ wxConfigBase::SetPath方法代码示例

本文整理汇总了C++中wxConfigBase::SetPath方法的典型用法代码示例。如果您正苦于以下问题:C++ wxConfigBase::SetPath方法的具体用法?C++ wxConfigBase::SetPath怎么用?C++ wxConfigBase::SetPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wxConfigBase的用法示例。


在下文中一共展示了wxConfigBase::SetPath方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Save

void FileHistory::Save(wxConfigBase& config)
{
	wxString old = config.GetPath();
	config.SetPath(m_configSubdir);
	wxFileHistory::Save(config);
	config.SetPath(old);
}
开发者ID:Marlinc,项目名称:0ad,代码行数:7,代码来源:FileHistory.cpp

示例2: LoadFromSubDir

void FileHistory::LoadFromSubDir(wxConfigBase& config)
{
	wxString old = config.GetPath();
	config.SetPath(m_configSubdir);
	Load(config);
	config.SetPath(old);
}
开发者ID:Valvador,项目名称:PyroSpaceFork,代码行数:7,代码来源:FileHistory.cpp

示例3: Save

void FileHistory::Save(wxConfigBase & config, const wxString & group)
{
   config.DeleteGroup(group);
   config.SetPath(group);

   // Stored in reverse order
   int n = mHistory.GetCount() - 1;
   for (size_t i = 1; i <= mHistory.GetCount(); i++) {
      config.Write(wxString::Format(wxT("file%02d"), (int)i), mHistory[n--]);
   }

   config.SetPath(wxT(".."));
}
开发者ID:LBoggino,项目名称:audacity,代码行数:13,代码来源:FileHistory.cpp

示例4: SaveFileConfig

void wxSTEditorOptions::SaveFileConfig(wxConfigBase &config)
{
    const wxString oldpath = config.GetPath();
    wxFileHistory *fileHistory = GetFileHistory();
    if (!fileHistory)
        return;

    wxString configPath = FixConfigPath(GetConfigPath(STE_OPTION_CFGPATH_FILEHISTORY), false);
    config.Write(configPath+wxT("/LastDir"), GetDefaultFilePath());

    config.SetPath(configPath);
    fileHistory->Save(config);
    config.SetPath(oldpath);
}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:14,代码来源:steopts.cpp

示例5: LoadFileConfig

void wxSTEditorOptions::LoadFileConfig( wxConfigBase &config)
{
    const wxString oldpath = config.GetPath();
    wxFileHistory *fileHistory = GetFileHistory();
    if (!fileHistory)
        return;

    wxString configPath = FixConfigPath(GetConfigPath(STE_OPTION_CFGPATH_FILEHISTORY), false);
    wxString value, key = configPath+wxT("/LastDir");
    if (config.Read(key, &value) && wxDirExists(value))
        SetDefaultFilePath(value);

    config.SetPath(configPath);
    fileHistory->Load(config);
    config.SetPath(oldpath);
}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:16,代码来源:steopts.cpp

示例6: Load

void ButcherOptions::Load(wxConfigBase &config)
{
    long rlong;

    config.SetPath(wxT("/options"));
    config.Read(wxT("editmode"), &rlong, EM_ADVANCED);
    editmode_=static_cast<editmode_t>(rlong);
}
开发者ID:RangelReale,项目名称:htmlbutcher,代码行数:8,代码来源:BUtil.cpp

示例7: Load

void FileHistory::Load(wxConfigBase & config, const wxString & group)
{
   mHistory.Clear();

   config.SetPath(group);

   wxString file;
   long ndx;
   bool got = config.GetFirstEntry(file, ndx);
   while (got) {
      AddFileToHistory(config.Read(file), false);
      got = config.GetNextEntry(file, ndx);
   }

   config.SetPath(wxT(".."));

   AddFilesToMenu();
}
开发者ID:LBoggino,项目名称:audacity,代码行数:18,代码来源:FileHistory.cpp

示例8: Save

void ButcherOptions::Save(wxConfigBase &config)
{
    config.SetPath(wxT("/options"));
    config.Write(wxT("editmode"), static_cast<int>(editmode_));
}
开发者ID:RangelReale,项目名称:htmlbutcher,代码行数:5,代码来源:BUtil.cpp


注:本文中的wxConfigBase::SetPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。