Author: pulkomandy Date: 2010-07-08 13:05:31 +0200 (Thu, 08 Jul 2010) New Revision: 37428 Changeset: http://dev.haiku-os.org/changeset/37428/haiku Modified: haiku/trunk/src/preferences/locale/TimeFormatSettingsView.cpp Log: Style fixes. Modified: haiku/trunk/src/preferences/locale/TimeFormatSettingsView.cpp =================================================================== --- haiku/trunk/src/preferences/locale/TimeFormatSettingsView.cpp 2010-07-08 09:14:09 UTC (rev 37427) +++ haiku/trunk/src/preferences/locale/TimeFormatSettingsView.cpp 2010-07-08 11:05:31 UTC (rev 37428) @@ -92,9 +92,9 @@ */ dayMenu->AddItem(new DateMenuItem( B_TRANSLATE("Day of week"), "e", *field)); - //dayMenu->AddItem(new DateMenuItem("Day of week (short text)", "eee", + // dayMenu->AddItem(new DateMenuItem("Day of week (short text)", "eee", // *field)); - //dayMenu->AddItem(new DateMenuItem("Day of week (full text)", "eeee", + // dayMenu->AddItem(new DateMenuItem("Day of week (full text)", "eeee", // *field)); dayMenu->AddItem(new DateMenuItem( B_TRANSLATE("Day of week (short name)"), "E", *field)); @@ -102,9 +102,9 @@ B_TRANSLATE("Day of week (name)"), "EEEE", *field)); dayMenu->AddItem(new DateMenuItem( B_TRANSLATE("Day of week in month"), "F", *field)); - //dayMenu->AddItem(new DateMenuItem( + // dayMenu->AddItem(new DateMenuItem( // B_TRANSLATE("julian day"), "g", *field)); - //dayMenu->AddItem(new BMenuItem("c", msg)); + // dayMenu->AddItem(new BMenuItem("c", msg)); BPopUpMenu* monthMenu = new BPopUpMenu(B_TRANSLATE("Month")); menu->AddItem(monthMenu); monthMenu->AddItem(new DateMenuItem( @@ -113,7 +113,7 @@ B_TRANSLATE("Month number (2 digits)"), "MM", *field)); monthMenu->AddItem(new DateMenuItem( B_TRANSLATE("Month name"), "MMMM", *field)); - //monthMenu->AddItem(new DateMenuItem("L", "L", *field)); + // monthMenu->AddItem(new DateMenuItem("L", "L", *field)); BPopUpMenu* yearMenu = new BPopUpMenu(B_TRANSLATE("Year")); menu->AddItem(yearMenu); // And here is some ICU kludge... sorry about that. @@ -126,8 +126,8 @@ } yearMenu->AddItem(new DateMenuItem( B_TRANSLATE("Year (2 digits)"), "yy", *field)); - //yearMenu->AddItem(new DateMenuItem("Y", "Y", *field)); - //yearMenu->AddItem(new DateMenuItem("u", "u", *field)); + // yearMenu->AddItem(new DateMenuItem("Y", "Y", *field)); + // yearMenu->AddItem(new DateMenuItem("u", "u", *field)); } @@ -217,7 +217,7 @@ BCheckBox* numberLeadingZero = new BCheckBox("", B_TRANSLATE("Leading 0"), new BMessage(kSettingsContentsModified)); BTextControl* numberList = new BTextControl("", - B_TRANSLATE("List separator: "),"", + B_TRANSLATE("List separator: "), "", new BMessage(kSettingsContentsModified)); // Unit system (US/Metric) (radio) @@ -407,7 +407,7 @@ } } - message->FindPointer("source",&pointerFromMessage); + message->FindPointer("source", &pointerFromMessage); BMenuItem* menuItem = static_cast<BMenuItem*>(pointerFromMessage); menuField->MenuItem()->SetLabel(menuItem->Label()); @@ -422,7 +422,7 @@ if (item) { separator = fSeparatorMenuField->Menu()->IndexOf(item); if (separator >= 0) - //settings.SetTimeFormatSeparator( + // settings.SetTimeFormatSeparator( // (FormatSeparator)separator); ; } @@ -450,12 +450,12 @@ BString timeFormat; fCountry->TimeFormat(timeFormat, false); if (f24HrRadioButton->Value() == 1) { - timeFormat.ReplaceAll("k","h"); - timeFormat.ReplaceAll("K","H"); + timeFormat.ReplaceAll("k", "h"); + timeFormat.ReplaceAll("K", "H"); timeFormat.RemoveAll(" a"); } else { - timeFormat.ReplaceAll("h","k"); - timeFormat.ReplaceAll("H","K"); + timeFormat.ReplaceAll("h", "k"); + timeFormat.ReplaceAll("H", "K"); timeFormat.Append(" a"); f12HrRadioButton->SetValue(true); } @@ -466,12 +466,12 @@ fCountry->TimeFormat(timeFormat, true); if (f24HrRadioButton->Value() == 1) { - timeFormat.ReplaceAll("k","h"); - timeFormat.ReplaceAll("K","H"); + timeFormat.ReplaceAll("k", "h"); + timeFormat.ReplaceAll("K", "H"); timeFormat.RemoveAll(" a"); } else { - timeFormat.ReplaceAll("h","k"); - timeFormat.ReplaceAll("H","K"); + timeFormat.ReplaceAll("h", "k"); + timeFormat.ReplaceAll("H", "K"); timeFormat.Append(" a"); } fCountry->SetTimeFormat(timeFormat.String(), true); @@ -529,7 +529,7 @@ settings.SetClockTo24Hr(f24HrClock); */ - //ShowCurrentSettings(); + // ShowCurrentSettings(); _SendNotices(); } @@ -584,7 +584,7 @@ // TODO generate ICU string and compare to the initial one BString dateFormat ; - //fYMDRadioButton->Value() ? kYMDFormat : + // fYMDRadioButton->Value() ? kYMDFormat : //(fDMYRadioButton->Value() ? kDMYFormat : kMDYFormat); return f24HrClock != (f24HrRadioButton->Value() > 0) @@ -625,8 +625,10 @@ // Make the notification message and send it to the tracker: /* BMessage notificationMessage; - notificationMessage.AddInt32("TimeFormatSeparator", (int32)settings.TimeFormatSeparator()); - notificationMessage.AddInt32("DateOrderFormat", (int32)settings.DateOrderFormat()); + notificationMessage.AddInt32("TimeFormatSeparator", + (int32)settings.TimeFormatSeparator()); + notificationMessage.AddInt32("DateOrderFormat", + (int32)settings.DateOrderFormat()); notificationMessage.AddBool("24HrClock", settings.ClockIs24Hr()); tracker->SendNotices(kDateFormatChanged, ¬ificationMessage); */