2008-03-03 22:52:07 +00:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
// Blabber [CustomStatusWindow.h]
|
|
|
|
// Give a custom status message and status.
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef CUSTOM_STATUS_WINDOW_H
|
|
|
|
#define CUSTOM_STATUS_WINDOW_H
|
|
|
|
|
|
|
|
#include <InterfaceKit.h>
|
|
|
|
|
|
|
|
#ifndef _RADIO_BUTTON_H
|
|
|
|
#include <interface/RadioButton.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _TEXT_CONTROL_H
|
|
|
|
#include <interface/TextControl.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WINDOW_H
|
|
|
|
#include <interface/Window.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class CustomStatusWindow : public BWindow {
|
|
|
|
public:
|
|
|
|
static CustomStatusWindow *Instance();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
2021-05-21 20:56:13 +00:00
|
|
|
CustomStatusWindow(BRect frame);
|
2008-03-03 22:52:07 +00:00
|
|
|
~CustomStatusWindow();
|
|
|
|
|
|
|
|
void MessageReceived(BMessage *msg);
|
2021-05-21 20:56:13 +00:00
|
|
|
|
2008-03-03 22:52:07 +00:00
|
|
|
private:
|
2021-12-31 12:17:27 +00:00
|
|
|
static CustomStatusWindow *fInstance;
|
2021-05-21 20:56:13 +00:00
|
|
|
|
2008-03-03 22:52:07 +00:00
|
|
|
private:
|
2021-12-31 12:17:27 +00:00
|
|
|
BTextControl *fStatus;
|
|
|
|
|
|
|
|
BRadioButton *fChatRadio;
|
|
|
|
BRadioButton *fAwayRadio;
|
|
|
|
BRadioButton *fExtendedAwayRadio;
|
|
|
|
BRadioButton *fDoNotDisturbRadio;
|
2008-03-03 22:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|