Ejemplo n.º 1
0
void ppReporter::ReportHeader()
{
    m_dataStr.clear();
    memset(m_pDataStr, 0, m_DataStrSize);

    ConstructHeader();

    m_reportFile.write(m_dataStr.c_str(), m_dataStr.length());

    ReportProfiledCounterDesc();

    return;
} // ReportHeader
Ejemplo n.º 2
0
ExtensionsManagerView* ExtensionsPanel::ConstructExtensionsList(
		QuickWidget** widget, QuickLabel** counter_label, 
			Str::LocaleString button_str, OpInputAction::Action action, 
			const char* button_skin)
{
	*widget = NULL;
	*counter_label = NULL;

	QuickLabel* tmp_label = NULL;
	QuickStackLayout* tmp_stack = NULL;
	QuickButton* button = NULL;
	OpInputAction input_action(action);
	RETURN_VALUE_IF_ERROR(
			ConstructHeader(&tmp_stack, &tmp_label, &button,
				Str::D_EXTENSION_PANEL_COUNTER,
				button_str, 
				&input_action), NULL);
	OpAutoPtr<QuickStackLayout> widget_aptr(tmp_stack);	

	OpAutoPtr<T> extensions_list_aptr(OP_NEW(T, ()));
	RETURN_VALUE_IF_NULL(extensions_list_aptr.get(), NULL);

	ExtensionsManagerView* view_tmp = extensions_list_aptr.get();

	OpAutoPtr<QuickSkinElement> skinned_list_aptr(
			QuickSkinWrap(extensions_list_aptr.release(), 
				"Extensions Panel List Skin"));
	RETURN_VALUE_IF_NULL(skinned_list_aptr.get(), NULL);

	RETURN_VALUE_IF_ERROR(
			widget_aptr->InsertWidget(skinned_list_aptr.release()), NULL);
	
	*widget = widget_aptr.release();
	*counter_label = tmp_label;

	button->SetImage(button_skin);
	button->GetOpWidget()->SetFixedImage(TRUE);
#ifndef _MACINTOSH_	
	button->GetOpWidget()->SetTabStop(g_op_ui_info->IsFullKeyboardAccessActive());
#endif // !_MACINTOSH_

	return view_tmp;
}