Style changes only
This commit is contained in:
+48
-45
@@ -103,6 +103,7 @@ struct clock_settings {
|
|||||||
bool showTimeZone;
|
bool showTimeZone;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class BFile;
|
class BFile;
|
||||||
class BList;
|
class BList;
|
||||||
class BBitmap;
|
class BBitmap;
|
||||||
@@ -110,66 +111,68 @@ class PreferencesWindow;
|
|||||||
class TBarView;
|
class TBarView;
|
||||||
class TBarWindow;
|
class TBarWindow;
|
||||||
|
|
||||||
|
|
||||||
class BarTeamInfo {
|
class BarTeamInfo {
|
||||||
public:
|
public:
|
||||||
BarTeamInfo(BList* teams, uint32 flags, char* sig, BBitmap* icon,
|
BarTeamInfo(BList* teams, uint32 flags,
|
||||||
char* name);
|
char* sig, BBitmap* icon, char* name);
|
||||||
BarTeamInfo(const BarTeamInfo &info);
|
BarTeamInfo(const BarTeamInfo &info);
|
||||||
~BarTeamInfo();
|
~BarTeamInfo();
|
||||||
|
|
||||||
BList* teams;
|
BList* teams;
|
||||||
uint32 flags;
|
uint32 flags;
|
||||||
char* sig;
|
char* sig;
|
||||||
BBitmap* icon;
|
BBitmap* icon;
|
||||||
char* name;
|
char* name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class TBarApp : public BApplication {
|
class TBarApp : public BApplication {
|
||||||
public:
|
public:
|
||||||
TBarApp();
|
TBarApp();
|
||||||
virtual ~TBarApp();
|
virtual ~TBarApp();
|
||||||
|
|
||||||
virtual bool QuitRequested();
|
virtual bool QuitRequested();
|
||||||
virtual void MessageReceived(BMessage* message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
virtual void RefsReceived(BMessage* refs);
|
virtual void RefsReceived(BMessage* refs);
|
||||||
|
|
||||||
desk_settings* Settings() { return &fSettings; }
|
desk_settings* Settings() { return &fSettings; }
|
||||||
clock_settings* ClockSettings() { return &fClockSettings; }
|
clock_settings* ClockSettings() { return &fClockSettings; }
|
||||||
TBarView* BarView() const { return fBarView; }
|
|
||||||
TBarWindow* BarWindow() const { return fBarWindow; }
|
|
||||||
|
|
||||||
static void Subscribe(const BMessenger &subscriber, BList*);
|
TBarView* BarView() const { return fBarView; }
|
||||||
static void Unsubscribe(const BMessenger &subscriber);
|
TBarWindow* BarWindow() const { return fBarWindow; }
|
||||||
int32 IconSize();
|
|
||||||
|
|
||||||
private:
|
static void Subscribe(const BMessenger &subscriber,
|
||||||
void AddTeam(team_id team, uint32 flags, const char* sig, entry_ref*);
|
BList*);
|
||||||
void RemoveTeam(team_id);
|
static void Unsubscribe(const BMessenger &subscriber);
|
||||||
|
|
||||||
void InitSettings();
|
int32 IconSize();
|
||||||
void SaveSettings();
|
|
||||||
|
|
||||||
void ShowPreferencesWindow();
|
private:
|
||||||
void ResizeTeamIcons();
|
void AddTeam(team_id team, uint32 flags,
|
||||||
void FetchAppIcon(const char* signature, BBitmap* icon);
|
const char* sig, entry_ref*);
|
||||||
BRect IconRect();
|
void RemoveTeam(team_id);
|
||||||
|
|
||||||
TBarWindow* fBarWindow;
|
void InitSettings();
|
||||||
TBarView* fBarView;
|
void SaveSettings();
|
||||||
BMessenger fSwitcherMessenger;
|
|
||||||
BMessenger fStatusViewMessenger;
|
|
||||||
BFile* fSettingsFile;
|
|
||||||
BFile* fClockSettingsFile;
|
|
||||||
desk_settings fSettings;
|
|
||||||
clock_settings fClockSettings;
|
|
||||||
|
|
||||||
PreferencesWindow* fPreferencesWindow;
|
void ShowPreferencesWindow();
|
||||||
|
void ResizeTeamIcons();
|
||||||
|
void FetchAppIcon(const char* signature,
|
||||||
|
BBitmap* icon);
|
||||||
|
|
||||||
static BLocker sSubscriberLock;
|
BRect IconRect();
|
||||||
static BList sBarTeamInfoList;
|
TBarWindow* fBarWindow;
|
||||||
static BList sSubscribers;
|
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user