From c5d129a27ae16c605e089a23158207d1f8532f00 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 14 Jan 2013 15:16:22 -0500 Subject: [PATCH] Style changes only --- src/apps/deskbar/BarApp.h | 93 ++++++++++++++++++++------------------- 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/src/apps/deskbar/BarApp.h b/src/apps/deskbar/BarApp.h index 0427150583..86535daa73 100644 --- a/src/apps/deskbar/BarApp.h +++ b/src/apps/deskbar/BarApp.h @@ -103,6 +103,7 @@ struct clock_settings { bool showTimeZone; }; + class BFile; class BList; class BBitmap; @@ -110,66 +111,68 @@ class PreferencesWindow; class TBarView; class TBarWindow; - class BarTeamInfo { public: - BarTeamInfo(BList* teams, uint32 flags, char* sig, BBitmap* icon, - char* name); - BarTeamInfo(const BarTeamInfo &info); - ~BarTeamInfo(); + BarTeamInfo(BList* teams, uint32 flags, + char* sig, BBitmap* icon, char* name); + BarTeamInfo(const BarTeamInfo &info); + ~BarTeamInfo(); - BList* teams; - uint32 flags; - char* sig; - BBitmap* icon; - char* name; + BList* teams; + uint32 flags; + char* sig; + BBitmap* icon; + char* name; }; - class TBarApp : public BApplication { - public: - TBarApp(); - virtual ~TBarApp(); +public: + TBarApp(); + virtual ~TBarApp(); - virtual bool QuitRequested(); - virtual void MessageReceived(BMessage* message); - virtual void RefsReceived(BMessage* refs); + virtual bool QuitRequested(); + virtual void MessageReceived(BMessage* message); + virtual void RefsReceived(BMessage* refs); - desk_settings* Settings() { return &fSettings; } - clock_settings* ClockSettings() { return &fClockSettings; } - TBarView* BarView() const { return fBarView; } - TBarWindow* BarWindow() const { return fBarWindow; } + desk_settings* Settings() { return &fSettings; } + clock_settings* ClockSettings() { return &fClockSettings; } - static void Subscribe(const BMessenger &subscriber, BList*); - static void Unsubscribe(const BMessenger &subscriber); - int32 IconSize(); + TBarView* BarView() const { return fBarView; } + TBarWindow* BarWindow() const { return fBarWindow; } - private: - void AddTeam(team_id team, uint32 flags, const char* sig, entry_ref*); - void RemoveTeam(team_id); + static void Subscribe(const BMessenger &subscriber, + BList*); + static void Unsubscribe(const BMessenger &subscriber); - void InitSettings(); - void SaveSettings(); + int32 IconSize(); - void ShowPreferencesWindow(); - void ResizeTeamIcons(); - void FetchAppIcon(const char* signature, BBitmap* icon); - BRect IconRect(); +private: + void AddTeam(team_id team, uint32 flags, + const char* sig, entry_ref*); + void RemoveTeam(team_id); - TBarWindow* fBarWindow; - TBarView* fBarView; - BMessenger fSwitcherMessenger; - BMessenger fStatusViewMessenger; - BFile* fSettingsFile; - BFile* fClockSettingsFile; - desk_settings fSettings; - clock_settings fClockSettings; + void InitSettings(); + void SaveSettings(); - PreferencesWindow* fPreferencesWindow; + void ShowPreferencesWindow(); + void ResizeTeamIcons(); + void FetchAppIcon(const char* signature, + BBitmap* icon); - static BLocker sSubscriberLock; - static BList sBarTeamInfoList; - static BList sSubscribers; + BRect IconRect(); + TBarWindow* fBarWindow; + TBarView* fBarView; + BMessenger fSwitcherMessenger; + BMessenger fStatusViewMessenger; + BFile* fSettingsFile; + BFile* fClockSettingsFile; + desk_settings fSettings; + clock_settings fClockSettings; + PreferencesWindow* fPreferencesWindow; + + static BLocker sSubscriberLock; + static BList sBarTeamInfoList; + static BList sSubscribers; };