| 3181 | } |
| 3182 | |
| 3183 | wxString 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 | } |