2011-12-14 17:36:27 -06:00
|
|
|
/*
|
2012-09-25 16:45:29 -05:00
|
|
|
* Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
|
|
|
|
* Copyright 2011-2012, Dario Casalinuovo. All rights reserved.
|
2011-12-14 17:36:27 -06:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _STATUS_MENU_ITEM_H
|
|
|
|
#define _STATUS_MENU_ITEM_H
|
|
|
|
|
|
|
|
#include <MenuItem.h>
|
|
|
|
|
|
|
|
#include <libinterface/BitmapMenuItem.h>
|
|
|
|
|
2021-06-20 12:44:20 -05:00
|
|
|
#include "AppConstants.h"
|
2011-12-14 17:36:27 -06:00
|
|
|
|
|
|
|
class BBitmap;
|
|
|
|
|
|
|
|
const int32 kSetStatus = 'SEST';
|
|
|
|
|
|
|
|
class ReplicantMenuItem : public BitmapMenuItem {
|
|
|
|
public:
|
2021-06-20 12:44:20 -05:00
|
|
|
ReplicantMenuItem(const char* label, UserStatus status,
|
2011-12-14 17:36:27 -06:00
|
|
|
bool custom = false, char shortcut = 0, uint32 modifiers = 0);
|
|
|
|
|
2021-06-20 12:44:20 -05:00
|
|
|
UserStatus Status() const;
|
2011-12-14 17:36:27 -06:00
|
|
|
bool IsCustom() const;
|
|
|
|
|
|
|
|
private:
|
2021-06-20 12:44:20 -05:00
|
|
|
UserStatus fStatus;
|
2011-12-14 17:36:27 -06:00
|
|
|
bool fCustom;
|
|
|
|
|
|
|
|
void SetIcon();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _STATUS_MENU_ITEM_H
|