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


C++ Bar::Add方法代码示例

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


在下文中一共展示了Bar::Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: sigBar

void TestApp::sigBar(Bar& bar)
{
	bar.Add(b1, 60, 27);
//	bar.Gap(INT_MAX);
	bar.GapRight();
	bar.Add(b2, 60, 27);
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:7,代码来源:main.cpp

示例2: THISBACK

void GUISample1::InitToolbar(Bar& bar)
{
	bar.Separator();
	bar.Add(Imgs::Mimg1(), THISBACK(ToolbarClicked));
	bar.Separator();
	bar.Add(Imgs::Mimg1(), THISBACK(ToolbarClicked));
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:7,代码来源:main.cpp

示例3: GroupDockMenu

void DockBase::GroupDockMenu(Bar& bar, int command)
{
	if(IsSideAllowed(DockableCtrl::DOCK_TOP)) bar.Add(t_("Top"), THISBACK3(GroupMenuAction, activegroup, (int) command, (int)DockableCtrl::DOCK_TOP));
	if(IsSideAllowed(DockableCtrl::DOCK_LEFT)) bar.Add(t_("Left"), THISBACK3(GroupMenuAction, activegroup, (int) command, (int)DockableCtrl::DOCK_LEFT));
	if(IsSideAllowed(DockableCtrl::DOCK_RIGHT)) bar.Add(t_("Right"), THISBACK3(GroupMenuAction, activegroup, (int) command, (int)DockableCtrl::DOCK_RIGHT));
	if(IsSideAllowed(DockableCtrl::DOCK_BOTTOM)) bar.Add(t_("Bottom"), THISBACK3(GroupMenuAction, activegroup, (int) command, (int)DockableCtrl::DOCK_BOTTOM));
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:7,代码来源:DockCtrl.cpp

示例4: AlignObjectMenu

void FormView::AlignObjectMenu(Bar& bar)
{
	bar.Add(t_("Top "), THISBACK(AlignTopSelection));
	bar.Add(t_("Left"), THISBACK(AlignLeftSelection));
	bar.Add(t_("Right"), THISBACK(AlignRightSelection));
	bar.Add(t_("Bottom "), THISBACK(AlignBottomSelection));
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:7,代码来源:FormViewBar.cpp

示例5: MemMenu

void Pdb::MemMenu(ArrayCtrl& array, Bar& bar, const String& exp)
{
	if(bar.IsScanKeys())
		return;
	CParser p(exp);
	try {
		Val v = Exp(p);
		bool sep = true;
		if(v.ref > 0) {
			if(sep)
				bar.Separator();
			sep = false;
			bar.Add("Memory at " + exp, THISBACK1(MemoryGoto, exp));
		}
		else
		if(v.rvalue) {
			if(sep)
				bar.Separator();
			sep = false;
			bar.Add("Memory at 0x" + FormatIntHex((dword)GetInt(v)), THISBACK1(MemoryGoto, "&" + exp));
		}
		if(!v.rvalue) {
			if(sep)
				bar.Separator();
			sep = false;
			bar.Add("Memory at &&" + exp, THISBACK1(MemoryGoto, "&" + exp));
		}
	}
	catch(CParser::Error e) {
	}
}
开发者ID:guowei8412,项目名称:upp-mirror,代码行数:31,代码来源:Data.cpp

示例6: SpringsBar

void LayoutDesigner::SpringsBar(Bar& bar) {
	bool m = !itemi.IsEmpty();
	int im = GetItemPosMask();
	bar.Add(m, "Left", TB_SPRINGLEFT(), THISBACK1(ItemPos, MAKELONG(POS_LEFT, POS_NONE)))
		.Check(im & MAKELONG(1 << POS_LEFT, 0));
	bar.Add(m, "Right", TB_SPRINGRIGHT(), THISBACK1(ItemPos, MAKELONG(POS_RIGHT, POS_NONE)))
		.Check(im & MAKELONG(1 << POS_RIGHT, 0));
	bar.Add(m, "Horz size", TB_SPRINGHSIZE(), THISBACK1(ItemPos, MAKELONG(POS_SIZE, POS_NONE)))
		.Check(im & MAKELONG(1 << POS_SIZE, 0));
	bar.Add(m, "Horz center", TB_SPRINGHCENTER(), THISBACK1(ItemPos, MAKELONG(POS_CENTER, POS_NONE)))
		.Check(im & MAKELONG(1 << POS_CENTER, 0));
	bar.Separator();
	bar.Add(m, "Top", TB_SPRINGTOP(), THISBACK1(ItemPos, MAKELONG(POS_NONE, POS_TOP)))
		.Check(im & MAKELONG(0, 1 << POS_TOP));
	bar.Add(m, "Bottom", TB_SPRINGBOTTOM(), THISBACK1(ItemPos, MAKELONG(POS_NONE, POS_BOTTOM)))
		.Check(im & MAKELONG(0, 1 << POS_BOTTOM));
	bar.Add(m, "Vert size", TB_SPRINGVSIZE(), THISBACK1(ItemPos, MAKELONG(POS_NONE, POS_SIZE)))
		.Check(im & MAKELONG(0, 1 << POS_SIZE));
	bar.Add(m, "Vert center", TB_SPRINGVCENTER(), THISBACK1(ItemPos, MAKELONG(POS_NONE, POS_CENTER)))
		.Check(im & MAKELONG(0, 1 << POS_CENTER));
	bar.Separator();
	bar.Add(m, "Auto springs", TB_SPRINGAUTO(), THISBACK1(ItemPos, MAKELONG(POS_AUTO, POS_AUTO)))
		.Key(K_CTRL_R);
	bar.Add(m, "Topleft springs", TB_SPRINGTOPLEFT(), THISBACK1(ItemPos, MAKELONG(POS_LEFT, POS_TOP)))
		.Key(im == MAKELONG(1 << POS_LEFT, 1 << POS_TOP));
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:26,代码来源:DesignerWin.cpp

示例7: CreateMenuBar

void FormEdit::CreateMenuBar(Bar& bar)
{
	bar.Add(t_("File"), THISBACK(FileBar));
	bar.Add(t_("Item"), THISBACK(ItemBar));
	bar.Add(t_("Form"), THISBACK(FormBar));
	bar.Add(t_("View"), THISBACK(ViewBar));
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:7,代码来源:FormEdit.cpp

示例8: ProjectSvn

void Ide::ProjectSvn(Bar& menu)
{
	Vector<String> w = SvnDirs(true);
	for(int i = 0; i < w.GetCount(); i++)
		menu.Add("Synchronize " + w[i], IdeImg::svn_dir(), THISBACK1(SyncSvnDir, w[i]));
	menu.Add("Synchronize everything..", IdeImg::svn(), THISBACK(SyncSvn));
}
开发者ID:guowei8412,项目名称:upp-mirror,代码行数:7,代码来源:idebar.cpp

示例9: GameMenu

void Puzzle::GameMenu(Bar& bar)
{
    bar.Add(t_("New game"), THISBACK(New));
    bar.Add(t_("Setup.."), THISBACK(Setup));
    bar.Add(t_("Best scores.."), THISBACK(Scores));
    bar.Separator();
    bar.Add(t_("Exit"), Breaker());
}
开发者ID:kolyden,项目名称:mirror,代码行数:8,代码来源:Puzzle.cpp

示例10: 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));
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:8,代码来源:help.cpp

示例11: MainBar

void LayoutDesigner::MainBar(Bar& bar) {
	bar.Add("File", THISBACK(FileBar));
	bar.Add("Edit", THISBACK(EditBar));
	bar.Add("Layout", THISBACK(LayoutBar));
	bar.Add("Language", THISBACK(LangBar));
	bar.Add("Item", THISBACK(ItemBar));
	bar.Add("Options", THISBACK(OptionsBar));
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:8,代码来源:DesignerWin.cpp

示例12: PackageMenu

void SelectPackageDlg::PackageMenu(Bar& menu)
{
	bool b = GetCurrentName().GetCount();
	menu.Add("New package..", THISBACK(OnNew));
	menu.Separator();
	menu.Add(b, "Rename package..", THISBACK(RenamePackage));
	menu.Add(b, "Delete package", THISBACK(DeletePackage));
}
开发者ID:ultimatepp,项目名称:mirror,代码行数:8,代码来源:SelectPkg.cpp

示例13: CommMenu

void App::CommMenu(Bar& bar) {
    bar.Add(t_("On-line"), THISBACK(GoOnline)).Check(port.IsOpen());
    bar.Add(port.IsOpen(), t_("Animation"), THISBACK(Animation));
    bar.Separator();
    bar.Add(port.IsOpen(), t_("Download"), AppImg::download_16(), THISBACK(DownloadMap));
    bar.Add(port.IsOpen(), t_("Upload"), AppImg::upload_16(), THISBACK(UploadMap));
    bar.Separator();
    bar.Add(port.IsOpen(), t_("Verify"), AppImg::verify_16(), THISBACK(VerifyMap));
}
开发者ID:kolyden,项目名称:mirror,代码行数:9,代码来源:menu.cpp

示例14: FormBar

void FormEdit::FormBar(Bar& bar)
{
	bar.Add(t_("Change form settings..."), FormViewImg::LayoutProperties(), THISBACK(OpenLayoutProperties))
		.Enable(_View.IsLayout())
		.Tip(t_("Change form settings..."));
	bar.Add(t_("Preview"), FormViewImg::Layout(), THISBACK(TestLayout))
		.Enable(_View.IsLayout())
		.Tip(t_("Preview"));
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:9,代码来源:FormEdit.cpp

示例15: Menu

void StyleManager::Menu(Bar& bar)
{
	bar.Add(t_("Create new style.."), THISBACK(Create))
	   .Key(K_INSERT);
	bar.Add(t_("Remove style"), THISBACK(Remove))
	   .Key(K_DELETE);
	bar.Add(t_("Rename.."), callback(&list, &ArrayCtrl::DoEdit))
	   .Key(K_CTRL_ENTER);
}
开发者ID:AbdelghaniDr,项目名称:mirror,代码行数:9,代码来源:FormatDlg.cpp


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