本文整理汇总了C++中Bar::Separator方法的典型用法代码示例。如果您正苦于以下问题:C++ Bar::Separator方法的具体用法?C++ Bar::Separator怎么用?C++ Bar::Separator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bar
的用法示例。
在下文中一共展示了Bar::Separator方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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) {
}
}
示例2: THISBACK
void GUISample1::InitToolbar(Bar& bar)
{
bar.Separator();
bar.Add(Imgs::Mimg1(), THISBACK(ToolbarClicked));
bar.Separator();
bar.Add(Imgs::Mimg1(), THISBACK(ToolbarClicked));
}
示例3: GroupMenu
void DockBase::GroupMenu(Bar& bar)
{
TreeCtrl& tree = grouptab.grouptree;
int id = tree.GetCursor();
if(id < 0) return;
id = tree.GetParent(id);
activegroup = (String) tree.GetValue(tree.GetCursor());
if(id >= 0)
{
if(id == 0 && tree.GetChildCount(id))
{
bar.Add(Format(t_("Dock Group '%s'"), activegroup), THISBACK1(GroupDockMenu, 0));
bar.Add(Format(t_("AutoHide Group '%s'"), activegroup), THISBACK1(GroupDockMenu, 1));
bar.Add(Format(t_("Float Group '%s'"), activegroup), THISBACK3(GroupMenuAction, activegroup, 2, -1));
bar.Separator();
bar.Add(tree.GetChildCount(tree.GetCursor()) > 1, Format(t_("Tabify Group '%s' and..."), activegroup), THISBACK1(GroupTabifyMenu, 3));
bar.Separator();
bar.Add(activegroup != t_("Default"), Format(t_("Delete Group '%s'"), activegroup), THISBACK1(DeleteWidgetGroup, activegroup));
bar.Separator();
bar.Add(Format(t_("Close Group '%s'"), activegroup), DockCtrlImages::CClose(), THISBACK3(GroupMenuAction, activegroup, -1, -1));
}
if(id > 0)
{
Vector<int> sel = tree.GetSel();
for(int i = 0; i < sel.GetCount(); i++) id = tree.Get(sel[i]);
CtrlRecord* record = GetCtrlRecordFromId(id);
ASSERT(record);
record->ctrl->Menu();
}
}
else bar.Add(t_("Add New Group..."), THISBACK(OnAddNewGroup));
}
示例4: 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));
}
示例5: MainTool
void Ide::MainTool(Bar& bar)
{
if(!IsEditorMode()) {
BrowseMenu(bar);
if(!toolbar_in_row)
bar.Separator();
}
Edit(bar);
if(debugger) {
if(!designer)
bar.Separator();
DebugMenu(bar);
}
if(!designer)
bar.Separator();
Project(bar);
BuildMenu(bar);
if(!debugger) {
bar.Separator();
DebugMenu(bar);
}
Setup(bar);
bar.Separator();
HelpMenu(bar);
}
示例6: treeContextCb
// barTree context menu
void XMLBarEditor::treeContextCb(Bar &b)
{
// if no toolbar selected in, no menu
if(!bar)
return;
int i = barTree.GetCursor();
if(i < 0)
return;
if(i > 0)
{
b.Add(t_("Insert new item before current"), THISBACK1(treeContextAddCb, 1));
b.Add(t_("Insert new item after current"), THISBACK1(treeContextAddCb, 2));
b.Separator();
b.Add(t_("Insert new separator before current item"), THISBACK1(treeContextAddCb, 5));
b.Add(t_("Insert new separator after current item"), THISBACK1(treeContextAddCb, 6));
}
if(barTree.GetChildCount(i))
{
b.Separator();
b.Add(t_("Insert new child item at top"), THISBACK1(treeContextAddCb, 3));
b.Add(t_("Append new child item at bottom"), THISBACK1(treeContextAddCb, 4));
}
else
{
b.Separator();
b.Add(t_("Insert new child item"), THISBACK1(treeContextAddCb, 4));
}
if(i > 0)
{
b.Separator();
b.Add(t_("Remove item"), THISBACK(treeContextRemoveCb));
}
}
示例7: 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));
}
示例8: FileMenu
void AddressBook::FileMenu(Bar& bar)
{
bar.Add("Open..", CtrlImg::open(), THISBACK(Open));
bar.Add("Save", CtrlImg::save(), THISBACK(Save));
bar.Add("Save as..", CtrlImg::save_as(), THISBACK(SaveAs));
bar.Separator();
bar.Add("Print", CtrlImg::print(), THISBACK(Print));
bar.Separator();
bar.Add("Quit", THISBACK(Quit));
}
示例9: PopupListMenuBar
void Player::PopupListMenuBar(Bar &bar)
{
AddPlaylistBar(bar);
bar.Separator();
list.RemovingMenu(bar);
bar.Add(t_("Change playlist name"), THISBACK(ChangePlaylistName)).Key(K_ENTER);
bar.Separator();
list.MovingMenu(bar);
bar.Separator();
list.SelectMenu(bar);
//list.ColumnsMenu(bar);
}
示例10: MainToolBar
void IconDes::MainToolBar(Bar& bar)
{
EditBar(bar);
bar.Separator();
SelectBar(bar);
bar.Separator();
ImageBar(bar);
bar.Break();
DrawBar(bar);
ToolEx(bar);
bar.Separator();
SettingBar(bar);
}
示例11: FileMenu
//меню файл
void AnimeList::FileMenu(Bar& bar)
{
bar.Add("Open", CtrlImg::open(), THISBACK(Open));
bar.Add("Save", CtrlImg::save(), THISBACK(Save));
bar.Add("Save As...", CtrlImg::save_as(), THISBACK(SaveAs));
bar.Separator();
bar.Add("Close File", THISBACK(CloseFile));
bar.Separator();
bar.Add("Last File", THISBACK(OpenLastFile));
bar.Separator();
bar.Add("Print to File", CtrlImg::print(), THISBACK(PrintFile));
bar.Separator();
bar.Add("Exit", THISBACK(Quit));
}
示例12: WatchesMenu
void Pdb::WatchesMenu(Bar& bar)
{
String exp = watches.GetKey();
if(!IsNull(exp))
exp = "(" + exp + ")";
DataMenu(watches, bar, exp);
bar.Separator();
bar.Add(AK_ADDWATCH, THISBACK(AddWatch));
bool b = watches.IsCursor();
bar.Add(b, "Edit watch..", THISBACK(EditWatch));
bar.Add(b, "Remove watch..", THISBACK(RemoveWatch));
bar.Separator();
watches.StdBar(bar);
}
示例13: DockWindowMenu
void DockWindow::DockWindowMenu(Bar &bar)
{
if (IsGrouping())
menu.GroupListMenu(bar);
else
menu.WindowListMenu(bar, t_("All"));
if (dockers.GetCount())
bar.Separator();
if (layouts.GetCount()) {
bar.Add(t_("Layouts"), callback(&menu, &DockMenu::LayoutListMenu));
bar.Separator();
}
bar.Add(t_("Manage Windows..."), THISBACK(DockManager));
}
示例14: PopupMenuBar
void Player::PopupMenuBar(Bar &bar)
{
GridCtrl &pl = GetPlaylist();
if(!IsCDPlaylist(pl))
{
AddMusicBar(bar);
bar.Separator();
pl.RemovingMenu(bar);
bar.Separator();
}
pl.MovingMenu(bar);
bar.Separator();
pl.SelectMenu(bar);
pl.ColumnsMenu(bar);
}
示例15: AddObjectMenu
void FormView::AddObjectMenu(Bar& bar, Point p)
{
bar.Add(t_("Button"), THISBACK2(CreateObject, p, "Button"));
bar.Add(t_("EditField"), THISBACK2(CreateObject, p, "EditField"));
bar.Add(t_("EditInt"), THISBACK2(CreateObject, p, "EditInt"));
bar.Add(t_("DropDate"), THISBACK2(CreateObject, p, "DropDate"));
bar.Separator();
bar.Add(t_("ProgressBar"), THISBACK2(CreateObject, p, "ProgressBar"));
bar.Add(t_("Label"), THISBACK2(CreateObject, p, "Label"));
bar.Separator();
bar.Add(t_("TabCtrl"), THISBACK2(CreateObject, p, "TabCtrl"));
bar.Add(t_("GridCtrl"), THISBACK2(CreateObject, p, "GridCtrl"));
bar.Separator();
bar.Add(t_("Form"), THISBACK2(CreateObject, p, "Form"));
}