From e55f3b531d7eafd172ea200680a5ec6694638475 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 20 Jun 2014 19:22:48 -0400 Subject: [PATCH] Tracker: style fixes to TrackerSettingsWindow --- src/kits/tracker/TrackerSettingsWindow.cpp | 22 +++++++----- src/kits/tracker/TrackerSettingsWindow.h | 41 +++++++++++----------- 2 files changed, 34 insertions(+), 29 deletions(-) diff --git a/src/kits/tracker/TrackerSettingsWindow.cpp b/src/kits/tracker/TrackerSettingsWindow.cpp index 043a1cb912..d9a26fa670 100644 --- a/src/kits/tracker/TrackerSettingsWindow.cpp +++ b/src/kits/tracker/TrackerSettingsWindow.cpp @@ -48,15 +48,15 @@ All rights reserved. namespace BPrivate { class SettingsItem : public BStringItem { - public: - SettingsItem(const char* label, SettingsView* view); +public: + SettingsItem(const char* label, SettingsView* view); - void DrawItem(BView* owner, BRect rect, bool drawEverything); + void DrawItem(BView* owner, BRect rect, bool drawEverything); - SettingsView* View(); + SettingsView* View(); - private: - SettingsView* fSettingsView; +private: + SettingsView* fSettingsView; }; } // namespace BPrivate @@ -71,12 +71,15 @@ const uint32 kRevertButtonPressed = 'Rebp'; #define B_TRANSLATION_CONTEXT "TrackerSettingsWindow" +// #pragma mark - TrackerSettingsWindow + + TrackerSettingsWindow::TrackerSettingsWindow() : BWindow(BRect(80, 80, 450, 350), B_TRANSLATE("Tracker preferences"), B_TITLED_WINDOW, B_NOT_MINIMIZABLE | B_NOT_RESIZABLE - | B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE - | B_AUTO_UPDATE_SIZE_LIMITS) + | B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE + | B_AUTO_UPDATE_SIZE_LIMITS) { fSettingsTypeListView = new BListView("List View", B_SINGLE_SELECTION_LIST); @@ -163,6 +166,7 @@ TrackerSettingsWindow::MessageReceived(BMessage* message) default: _inherited::MessageReceived(message); + break; } } @@ -294,7 +298,7 @@ TrackerSettingsWindow::_HandleChangedSettingsView() } -// #pragma mark - +// #pragma mark - SettingsItem SettingsItem::SettingsItem(const char* label, SettingsView* view) diff --git a/src/kits/tracker/TrackerSettingsWindow.h b/src/kits/tracker/TrackerSettingsWindow.h index 45600cdd3b..522817d480 100644 --- a/src/kits/tracker/TrackerSettingsWindow.h +++ b/src/kits/tracker/TrackerSettingsWindow.h @@ -31,8 +31,8 @@ of Be Incorporated in the United States and other countries. Other brand product names are registered trademarks or trademarks of their respective holders. All rights reserved. */ -#ifndef TRACKER_SETTINGS_WINDOW_H -#define TRACKER_SETTINGS_WINDOW_H +#ifndef _TRACKER_SETTINGS_WINDOW_H +#define _TRACKER_SETTINGS_WINDOW_H #include @@ -47,32 +47,33 @@ All rights reserved. namespace BPrivate { class TrackerSettingsWindow : public BWindow { - public: - TrackerSettingsWindow(); +public: + TrackerSettingsWindow(); - bool QuitRequested(); - void MessageReceived(BMessage* message); - void Show(); + bool QuitRequested(); + void MessageReceived(BMessage* message); + void Show(); - private: - SettingsView* _ViewAt(int32 i); +private: + SettingsView* _ViewAt(int32 i); - void _HandleChangedContents(); - void _HandlePressedDefaultsButton(); - void _HandlePressedRevertButton(); - void _HandleChangedSettingsView(); - void _UpdateButtons(); + void _HandleChangedContents(); + void _HandlePressedDefaultsButton(); + void _HandlePressedRevertButton(); + void _HandleChangedSettingsView(); + void _UpdateButtons(); - BListView* fSettingsTypeListView; - BBox* fSettingsContainerBox; - BButton* fDefaultsButton; - BButton* fRevertButton; + BListView* fSettingsTypeListView; + BBox* fSettingsContainerBox; + BButton* fDefaultsButton; + BButton* fRevertButton; - typedef BWindow _inherited; + typedef BWindow _inherited; }; } // namespace BPrivate using namespace BPrivate; -#endif // TRACKER_SETTINGS_WINDOW_H + +#endif // _TRACKER_SETTINGS_WINDOW_H