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


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

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


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

示例4: 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


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