本文整理汇总了C++中PluginInfo::GetAuthor方法的典型用法代码示例。如果您正苦于以下问题:C++ PluginInfo::GetAuthor方法的具体用法?C++ PluginInfo::GetAuthor怎么用?C++ PluginInfo::GetAuthor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginInfo
的用法示例。
在下文中一共展示了PluginInfo::GetAuthor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CreateInfoPage
void PluginMgrDlg::CreateInfoPage(unsigned int index)
{
clConfig conf("plugins.conf");
PluginInfoArray plugins;
conf.ReadItem(&plugins);
// get the plugin name
wxString pluginName = m_checkListPluginsList->GetString(index);
PluginInfo::PluginMap_t::const_iterator iter = plugins.GetPlugins().find(pluginName);
if(iter != plugins.GetPlugins().end()) {
PluginInfo info = iter->second;
wxString content;
content << wxT("<html><body>");
content << wxT("<table border=0 width=\"100%\" >");
// create line with the plugin name
content << wxT("<tr bgcolor=\"LIGHT GREY\">");
content << wxT("<td ALIGN=\"LEFT\" WIDTH=30%><font size=\"2\" "
"face=\"Verdana\"><strong>$(PluginName)</strong></font></td>");
content << wxT("<td ALIGN=\"LEFT\" ><font size=\"2\" face=\"Verdana\">") << info.GetName()
<< wxT("</font></td>");
content << wxT("</tr>");
// plugin author
content << wxT("<tr bgcolor=\"WHITE\">");
content << wxT(
"<td ALIGN=\"LEFT\" WIDTH=30%><font size=\"2\" face=\"Verdana\"><strong>$(Author)</strong></font></td>");
content << wxT("<td ALIGN=\"LEFT\" ><font size=\"2\" face=\"Verdana\">") << info.GetAuthor()
<< wxT("</font></td>");
content << wxT("</tr>");
// plugin version
content << wxT("<tr bgcolor=\"LIGHT GREY\">");
content << wxT(
"<td ALIGN=\"LEFT\" WIDTH=30%><font size=\"2\" face=\"Verdana\"><strong>$(Version)</strong></font></td>");
content << wxT("<td ALIGN=\"LEFT\" ><font size=\"2\" face=\"Verdana\">") << info.GetVersion()
<< wxT("</font></td>");
content << wxT("</tr>");
// plugin description
content << wxT("<tr bgcolor=\"WHITE\">");
content << wxT("<td ALIGN=\"LEFT\" WIDTH=30%><font size=\"2\" "
"face=\"Verdana\"><strong>$(Description)</strong></font></td>");
content << wxT("<td ALIGN=\"LEFT\" ><font size=\"2\" face=\"Verdana\">") << info.GetDescription()
<< wxT("</font></td>");
content << wxT("</tr>");
content << wxT("<tr bgcolor=\"LIGHT GREY\">");
content << wxT(
"<td ALIGN=\"LEFT\" WIDTH=30%><font size=\"2\" face=\"Verdana\"><strong>$(Status)</strong></font></td>");
content.Replace(wxT("$(PluginName)"), _("Plugin Name:"));
content.Replace(wxT("$(Author)"), _("Author:"));
content.Replace(wxT("$(Version)"), _("Version:"));
content.Replace(wxT("$(Description)"), _("Description:"));
content.Replace(wxT("$(Status)"), _("Status:"));
wxString status;
if(plugins.CanLoad(info.GetName())) {
status = wxT("<img src=\"$(InstallPath)/images/plugin_ok.png\" ></img>");
} else {
status = wxT("<img src=\"$(InstallPath)/images/plugin_not_ok.png\" > </img>");
}
status.Replace(wxT("$(InstallPath)"), ManagerST::Get()->GetStartupDirectory());
content << wxT("<td ALIGN=\"LEFT\" ><font size=\"2\" face=\"Verdana\">") << status << wxT("</font></td>");
content << wxT("</tr>");
content << wxT("</table><html><body>");
m_htmlWinDesc->SetPage(content);
}
}