本文整理汇总了C++中GList::GetAll方法的典型用法代码示例。如果您正苦于以下问题:C++ GList::GetAll方法的具体用法?C++ GList::GetAll怎么用?C++ GList::GetAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GList
的用法示例。
在下文中一共展示了GList::GetAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnNotify
int OnNotify(GViewI *c, int f)
{
switch (c->GetId())
{
case IDC_CMD_LINE:
{
LgiMsg( this,
"These are the command line options you can use with LrStrip. If you specify these\n"
"then no window will be shown and the application will exit after it's completed\n"
"it's work.\n"
"\n"
"Required options:\n"
"\n"
" -in \'<FileName>\'\n"
" -out \'<FileName>\'\n"
" -langs \'<LangId>[, <LangId>]\'\n"
"\n"
"Where 'LangId' is a standard language code (like 'en' for english).",
AppName);
break;
}
case IDC_LOAD_FILE:
{
GFileSelect s;
s.Parent(this);
s.Type("Lgi Resource", "*.lr*");
if (s.Open())
{
Load(s.Name());
}
break;
}
case IDOK:
{
GFileSelect s;
s.Parent(this);
s.Type("Lgi Resource", "*.lr*");
if (s.Save())
{
// put together the list of langs
Langs.Empty();
List<LangInc> LangLst;
Inc->GetAll(LangLst);
for (LangInc *i = LangLst.First(); i; i = LangLst.Next())
{
if (i->Value())
{
Langs.Add(i->GetText(1), i);
}
}
// overwrite check
if (FileExists(s.Name()))
{
if (LgiMsg(this, "Overwrite '%s'?", AppName, MB_YESNO, s.Name()) == IDNO)
{
return 0;
}
}
// save the file...
if (Save(s.Name()))
{
LgiMsg(this, "Striped resource file written ok.", AppName);
}
}
break;
}
case IDCANCEL:
{
EndModal(c->GetId());
break;
}
}
return 0;
}