2 * Copyright 2008-2009, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef ACTIVITY_WINDOW_H
6 #define ACTIVITY_WINDOW_H
18 class ActivityWindow
: public BWindow
{
21 virtual ~ActivityWindow();
23 virtual void MessageReceived(BMessage
* message
);
24 virtual bool QuitRequested();
26 int32
ActivityViewCount() const;
27 ActivityView
* ActivityViewAt(int32 index
) const;
28 void BroadcastToActivityViews(BMessage
* message
,
29 BView
* exceptToView
= NULL
);
31 bigtime_t
RefreshInterval() const;
32 bool IsAlwaysOnTop() const;
35 status_t
_OpenSettings(BFile
& file
, uint32 mode
);
36 status_t
_LoadSettings(BMessage
& settings
);
37 status_t
_SaveSettings();
39 void _AddDefaultView();
40 void _MessageDropped(BMessage
*message
);
41 void _SetAlwaysOnTop(bool alwaysOnTop
);
43 BMenuItem
* fAlwaysOnTop
;
45 BGroupLayout
* fLayout
;
47 BMessenger fSettingsWindow
;
51 static const uint32 kMsgRemoveView
= 'rmvw';
53 #endif // ACTIVITY_WINDOW_H