MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / getSettingsLabel

Method getSettingsLabel

src/AppFrame.cpp:3183–3202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3181}
3182
3183wxString AppFrame::getSettingsLabel(const std::string& settingsName,
3184 const std::string& settingsValue,
3185 const std::string& settingsSuffix) {
3186
3187 size_t itemStringSize = 40;
3188 int justifValueSize = itemStringSize - settingsName.length() - 1;
3189
3190 std::stringstream full_label;
3191
3192 full_label << settingsName + " : ";
3193 full_label << std::right << std::setw(justifValueSize);
3194
3195 if (settingsSuffix.empty()) {
3196 full_label << settingsValue;
3197 } else {
3198 full_label << settingsValue + " " + settingsSuffix;
3199 }
3200
3201 return wxString(full_label.str());
3202}

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected