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); }
void eSettings::SetSettingLong(const wxString& name, const wxLongLong& value) { wxJSONValue& settings = m_jsonRoot[wxT("settings")]; settings[name] = value.GetValue(); }