示例#1
0
文件: misc.cpp 项目: swflb/pgadmin3
wxString NumToStr(wxLongLong value)
{
	wxString str;
#if wxCHECK_VERSION(2, 9, 0)
	str.Printf("%" wxLongLongFmtSpec "d", value.GetValue());
#else
	str.Printf(wxT("%") wxLongLongFmtSpec wxT("d"), value.GetValue());
#endif
	return str;
}
wxString COptionsPageSizeFormatting::FormatSize(const wxLongLong& size)
{
	const CSizeFormat::_format format = GetFormat();
	const bool thousands_separator = GetCheck(XRCID("ID_SIZEFORMAT_SEPARATE_THOUTHANDS"));
	const int num_decimal_places = XRCCTRL(*this, "ID_SIZEFORMAT_DECIMALPLACES", wxSpinCtrl)->GetValue();

	return CSizeFormat::Format(size.GetValue(), false, format, thousands_separator, num_decimal_places);
}
示例#3
0
文件: eSettings.cpp 项目: boulerne/e
void eSettings::SetSettingLong(const wxString& name, const wxLongLong& value) {
	wxJSONValue& settings = m_jsonRoot[wxT("settings")];
	settings[name] = value.GetValue();
}