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)); }
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); }
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); }
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); }
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)); } } }
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)); }