void CppLayoutPreviewer::CreatePreviewRibbonTools(wxRibbonButtonBar & buttonBar)
{
    bool hideLabels = false;
    wxConfigBase::Get()->Read( _T( "/Skin/HideLabels" ), &hideLabels );

    buttonBar.AddButton(idRibbonPlay, !hideLabels ? _("Play") : gd::String(), gd::SkinHelper::GetRibbonIcon("start"), _("Start the preview"));
    buttonBar.AddButton(idRibbonPlayWin, !hideLabels ? _("Play in a window") : gd::String(), gd::SkinHelper::GetRibbonIcon("startwindow"), _("Start the preview in an external window"));
    buttonBar.AddButton(idRibbonPause, !hideLabels ? _("Pause") : gd::String(), gd::SkinHelper::GetRibbonIcon("pause"), _("Pause the preview"));
    buttonBar.AddButton(idRibbonDebugger, !hideLabels ? _("Debugger") : gd::String(), gd::SkinHelper::GetRibbonIcon("bug"), _("Show the debugger to view the state of the game"));
    buttonBar.AddButton(idRibbonProfiler, !hideLabels ? _("Profiling") : gd::String(), gd::SkinHelper::GetRibbonIcon("profiler"), _("Show the profiler to monitor performances"));
}
Exemple #2
0
bool ICtl_ribbon_buttonbar::AddCtrlItem(EvtGroup* pevt)
{
	const BitmapBundle& bundle(pevt->GetBundle(16, 1));
	wxRibbonButtonBarButtonBase* item = m_p_wx_impl->AddButton(pevt->m_nId, str2wx(pevt->MakeLabel()),bundle.bmp_normal,"",   wxRIBBON_BUTTON_DROPDOWN);
	InitToolItem(pevt, item);
	return true;
}
Exemple #3
0
bool ICtl_ribbon_buttonbar::AddCtrlItem(EvtCommand* pevt)
{
	if (pevt->flags.get(EvtCommand::FLAG_SEPARATOR))
	{
		return true;
	}

	wxRibbonButtonKind kind = wxRIBBON_BUTTON_NORMAL;
	if (pevt->flags.get(EvtCommand::FLAG_CHECK)) kind = wxRIBBON_BUTTON_TOGGLE;

	const BitmapBundle& bundle(pevt->GetBundle(16, 1));
	wxRibbonButtonBarButtonBase* item = m_p_wx_impl->AddButton(pevt->m_nId,  str2wx(pevt->MakeLabel()),bundle.bmp_normal,"", kind);

	InitToolItem(pevt, item);
	return true;
}