From 579be822bbbbec746f58f1c3ed254dc14ca0c881 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 25 Dec 2009 12:40:53 +0000 Subject: [PATCH] Applied patch by Humdinger (#5169): Changed GUI strings to sentence case. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34771 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debuganalyzer/gui/main_window/GeneralPage.cpp | 6 +++--- .../debuganalyzer/gui/main_window/SchedulingPage.cpp | 8 ++++---- src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp | 10 +++++----- .../debuganalyzer/gui/thread_window/ActivityPage.cpp | 8 ++++---- .../debuganalyzer/gui/thread_window/GeneralPage.cpp | 6 +++--- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/apps/debuganalyzer/gui/main_window/GeneralPage.cpp b/src/apps/debuganalyzer/gui/main_window/GeneralPage.cpp index d862a1c640..b1df7de5d9 100644 --- a/src/apps/debuganalyzer/gui/main_window/GeneralPage.cpp +++ b/src/apps/debuganalyzer/gui/main_window/GeneralPage.cpp @@ -21,10 +21,10 @@ MainWindow::GeneralPage::GeneralPage() fTeamCountView(NULL), fThreadCountView(NULL) { - fDataSourceView = AddDataView("Data Source:"); + fDataSourceView = AddDataView("Data source:"); fCPUCountView = AddDataView("Number of CPUs:"); - fRunTimeView = AddDataView("Total Time:"); - fIdleTimeView = AddDataView("Idle Time:"); + fRunTimeView = AddDataView("Total time:"); + fIdleTimeView = AddDataView("Idle time:"); fTeamCountView = AddDataView("Teams:"); fThreadCountView = AddDataView("Threads:"); } diff --git a/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp b/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp index 4d8a6502a6..ea8a4aaf9e 100644 --- a/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp +++ b/src/apps/debuganalyzer/gui/main_window/SchedulingPage.cpp @@ -478,21 +478,21 @@ public: int32 filteredCount = fFilterModel->CountSelectedItems(); int32 selectedCount = fSelectionModel->CountSelectedItems(); - BMenuItem* item = new BMenuItem("Hide Selected Threads", + BMenuItem* item = new BMenuItem("Hide selected threads", new BMessage(MSG_SCHEDULING_FILTER_HIDE_SELECTED)); contextMenu->AddItem(item); item->SetTarget(this); if (selectedCount == 0 || selectedCount == filteredCount) item->SetEnabled(false); - item = new BMenuItem("Hide Unselected Threads", + item = new BMenuItem("Hide unselected threads", new BMessage(MSG_SCHEDULING_FILTER_HIDE_UNSELECTED)); contextMenu->AddItem(item); item->SetTarget(this); if (selectedCount == 0 || selectedCount == filteredCount) item->SetEnabled(false); - item = new BMenuItem("Show All Threads", + item = new BMenuItem("Show all threads", new BMessage(MSG_SCHEDULING_FILTER_SHOW_ALL)); contextMenu->AddItem(item); item->SetTarget(this); @@ -899,7 +899,7 @@ public: } text << "\n\n"; - text << "Running Threads:"; + text << "Running threads:"; for (int32 i = 0; i < cpuCount; i++) { text << "\n " << i << ": "; if (Model::Thread* thread = runningThreads[i]) diff --git a/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp b/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp index d0f2a25d9b..88e9965fb5 100644 --- a/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp +++ b/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp @@ -133,21 +133,21 @@ MainWindow::ThreadsPage::ThreadsPage(MainWindow* parent) 1000, false, B_TRUNCATE_MIDDLE, B_ALIGN_RIGHT)); fThreadsTable->AddColumn(new Int64TableColumn(5, "Runs", 80, 20, 1000, B_TRUNCATE_END, B_ALIGN_RIGHT)); - fThreadsTable->AddColumn(new NanotimeTableColumn(6, "Run Time", 80, 20, + fThreadsTable->AddColumn(new NanotimeTableColumn(6, "Run time", 80, 20, 1000, false, B_TRUNCATE_END, B_ALIGN_RIGHT)); fThreadsTable->AddColumn(new Int64TableColumn(7, "Latencies", 80, 20, 1000, B_TRUNCATE_END, B_ALIGN_RIGHT)); - fThreadsTable->AddColumn(new NanotimeTableColumn(8, "Latency Time", 80, 20, + fThreadsTable->AddColumn(new NanotimeTableColumn(8, "Latency time", 80, 20, 1000, B_TRUNCATE_END, B_ALIGN_RIGHT)); fThreadsTable->AddColumn(new Int64TableColumn(9, "Preemptions", 80, 20, 1000, B_TRUNCATE_END, B_ALIGN_RIGHT)); - fThreadsTable->AddColumn(new NanotimeTableColumn(10, "Preemption Time", 80, + fThreadsTable->AddColumn(new NanotimeTableColumn(10, "Preemption time", 80, 20, 1000, false, B_TRUNCATE_END, B_ALIGN_RIGHT)); fThreadsTable->AddColumn(new Int64TableColumn(11, "Waits", 80, 20, 1000, B_TRUNCATE_END, B_ALIGN_RIGHT)); - fThreadsTable->AddColumn(new NanotimeTableColumn(12, "Wait Time", 80, + fThreadsTable->AddColumn(new NanotimeTableColumn(12, "Wait time", 80, 20, 1000, false, B_TRUNCATE_END, B_ALIGN_RIGHT)); - fThreadsTable->AddColumn(new NanotimeTableColumn(13, "Unspecified Time", 80, + fThreadsTable->AddColumn(new NanotimeTableColumn(13, "Unspecified time", 80, 20, 1000, false, B_TRUNCATE_END, B_ALIGN_RIGHT)); fThreadsTable->AddColumn(new Int64TableColumn(14, "I/O Count", 80, 20, 1000, B_TRUNCATE_END, B_ALIGN_RIGHT)); diff --git a/src/apps/debuganalyzer/gui/thread_window/ActivityPage.cpp b/src/apps/debuganalyzer/gui/thread_window/ActivityPage.cpp index 3fbd869a97..079caccc84 100644 --- a/src/apps/debuganalyzer/gui/thread_window/ActivityPage.cpp +++ b/src/apps/debuganalyzer/gui/thread_window/ActivityPage.cpp @@ -352,17 +352,17 @@ ThreadWindow::ActivityPage::ActivityPage() .Add(new BScrollView("activity scroll", fActivityChart, 0, true, false)) .AddStrut(20) .Add(BGridLayoutBuilder() - .Add(fRunTimeCheckBox = new ColorCheckBox("Run Time", kRunTimeColor, + .Add(fRunTimeCheckBox = new ColorCheckBox("Run time", kRunTimeColor, new BMessage(MSG_CHECK_BOX_RUN_TIME)), 0, 0) - .Add(fWaitTimeCheckBox = new ColorCheckBox("Wait Time", + .Add(fWaitTimeCheckBox = new ColorCheckBox("Wait time", kWaitTimeColor, new BMessage(MSG_CHECK_BOX_WAIT_TIME)), 1, 0) - .Add(fPreemptionTimeCheckBox = new ColorCheckBox("Preemption Time", + .Add(fPreemptionTimeCheckBox = new ColorCheckBox("Preemption time", kPreemptionTimeColor, new BMessage(MSG_CHECK_BOX_PREEMPTION_TIME)), 0, 1) - .Add(fLatencyTimeCheckBox = new ColorCheckBox("Latency Time", + .Add(fLatencyTimeCheckBox = new ColorCheckBox("Latency time", kLatencyTimeColor, new BMessage(MSG_CHECK_BOX_LATENCY_TIME)), 1, 1) diff --git a/src/apps/debuganalyzer/gui/thread_window/GeneralPage.cpp b/src/apps/debuganalyzer/gui/thread_window/GeneralPage.cpp index 45f3f700d7..a0d17eb5bf 100644 --- a/src/apps/debuganalyzer/gui/thread_window/GeneralPage.cpp +++ b/src/apps/debuganalyzer/gui/thread_window/GeneralPage.cpp @@ -27,11 +27,11 @@ ThreadWindow::GeneralPage::GeneralPage() fThreadNameView = AddDataView("Name:"); fThreadIDView = AddDataView("ID:"); fTeamView = AddDataView("Team:"); - fRunTimeView = AddDataView("Run Time:"); - fWaitTimeView = AddDataView("Wait Time:"); + fRunTimeView = AddDataView("Run time:"); + fWaitTimeView = AddDataView("Wait time:"); fLatencyView = AddDataView("Latencies:"); fPreemptionView = AddDataView("Preemptions:"); - fUnspecifiedTimeView = AddDataView("Unspecified Time:"); + fUnspecifiedTimeView = AddDataView("Unspecified time:"); }