本文整理汇总了C++中Bar::Gap方法的典型用法代码示例。如果您正苦于以下问题:C++ Bar::Gap方法的具体用法?C++ Bar::Gap怎么用?C++ Bar::Gap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bar
的用法示例。
在下文中一共展示了Bar::Gap方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Tools
void HelpWin::Tools(Bar& bar) {
bar.Add(back.GetCount(), AK_BACK, back_1_16(), THISBACK(Back));
bar.Add(forward.GetCount(), AK_FORWARD, forward_1_16(), THISBACK(Forward));
bar.Gap();
bar.Add(AK_FONTSIZE, font_size_1_16(), THISBACK(FontSize));
bar.Gap();
bar.Add(AK_PRINT, commonImg::print_1_16(), THISBACK(Print));
}
示例2: MainTool
void TopicEditor::MainTool(Bar& bar)
{
editor.StyleTool(bar);
bar.Gap();
editor.FontTools(bar);
bar.Gap();
editor.InkTool(bar);
editor.PaperTool(bar);
bar.Gap();
editor.LanguageTool(bar);
editor.SpellCheckTool(bar);
bar.Gap();
editor.IndexEntryTool(bar);
bar.Break();
editor.HyperlinkTool(bar, 300, K_CTRL_H);
bar.Gap();
editor.ParaTools(bar);
bar.Gap();
editor.EditTools(bar);
bar.Gap();
bar.Add("Print", CtrlImg::print(), THISBACK(Print))
.Key(K_CTRL_P);
bar.GapRight();
bar.Break();
editor.LabelTool(bar, 500, K_CTRL_M, "Code reference");
bar.Gap();
Tools(bar);
bar.Gap();
editor.TableTools(bar);
}
示例3: Tools
void HelpWindow::Tools(Bar& bar)
{
bar.Add(back.GetCount(), t_("Go Back"), CtrlImg::go_back(), THISBACK(Back))
.Key(K_ALT_LEFT);
bar.Add(forward.GetCount(), t_("Go Forward"), CtrlImg::go_forward(), THISBACK(Forward))
.Key(K_ALT_RIGHT);
bar.Gap();
bar.Add(t_("Font size"), CtrlImg::font_size(), THISBACK(FontSize));
bar.Gap();
#ifndef PLATFORM_PDA
bar.Add(t_("Print"), CtrlImg::print(), THISBACK(Print));
#endif
BarEx(bar);
}
示例4: Tool
void LayoutDesigner::Tool(Bar& bar) {
EditBar(bar);
// bar.Separator();
ItemBar(bar);
bar.Separator();
OptionsBar(bar);
bar.Break();
bar.Add(layoutlist, 200);
bar.Gap();
bar.Add(langlist, 100);
}
示例5: Project
void Ide::Project(Bar& menu)
{
if(menu.IsToolBar() && !debugger && !IsEditorMode())
{
mainconfiglist.Enable(idestate == EDITING);
buildmode.Enable(idestate == EDITING);
menu.Add(mainconfiglist, HorzLayoutZoom(180));
menu.Gap(4);
menu.Add(buildmode, HorzLayoutZoom(180));
menu.Separator();
}
if(!IsEditorMode()) {
WorkspaceWork::PackageMenu(menu);
menu.MenuSeparator();
menu.Add(AK_ORGANIZER, IdeImg::package_organizer(), THISBACK(EditWorkspace))
.Help("Package dependencies, compiler & linker options, output path override");
menu.Add(AK_CUSTOM, THISBACK(CustomSteps))
.Help("Building intermediate files using custom commands / applications");
if(menu.IsMenuBar())
menu.Add(AK_MAINCONFIG, IdeImg::main_package(), THISBACK(MainConfig))
.Help("Configuring compiler, operating system, output application parameters, custom flags");
menu.Separator();
menu.Add(AK_SYNCT, IdeImg::Language(), THISBACK1(SyncT, 0))
.Help("Synchronize all language translation files of current workspace");
menu.AddMenu(AK_TRIMPORT, IdeImg::Language(), THISBACK1(SyncT, 1))
.Help("Import runtime translation file");
menu.AddMenu(AK_TREXPORT, IdeImg::Language(), THISBACK1(SyncT, 2))
.Help("Export runtime translation file");
if(OldLang())
menu.Add("Convert s_ -> t_", THISBACK(ConvertST));
}
FilePropertiesMenu(menu);
if(!IsEditorMode()) {
if(svn_dirs) {
if(menu.IsMenuBar())
menu.Add("SVN", THISBACK(ProjectSvn));
else
menu.Add("SVN Synchronize everything..", IdeImg::svn(), THISBACK(SyncSvn));
}
}
}
示例6: TheBar
void RichEditHdrFtr::TheBar(Bar& bar)
{
EditTools(bar);
bar.Gap();
FontTools(bar);
bar.Gap();
InkTool(bar);
PaperTool(bar);
bar.Gap();
LanguageTool(bar);
SpellCheckTool(bar);
bar.Break();
StyleTool(bar);
bar.Gap();
ParaTools(bar);
bar.Gap();
TableTools(bar);
bar.Gap();
bar.Add(!IsReadOnly(), t_("Insert page number"), RichEditImg::PageNumber(), THISBACK(PageNumber));
bar.Add(!IsReadOnly(), t_("Insert page count"), RichEditImg::PageCount(), THISBACK(PageCount));
}