Chat-O-Matic/application/views/StatusMenuItem.h

35 lines
657 B
C
Raw Normal View History

/*
* Copyright 2009, Pier Luigi Fiorini. All rights reserved.
* 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"
class BBitmap;
const int32 kSetStatus = 'SEST';
class StatusMenuItem : public BitmapMenuItem {
public:
2021-06-20 12:44:20 -05:00
StatusMenuItem(const char* label, UserStatus status,
bool custom = false, char shortcut = 0,
uint32 modifiers = 0);
2021-06-20 12:44:20 -05:00
UserStatus Status() const;
bool IsCustom() const;
private:
2021-06-20 12:44:20 -05:00
UserStatus fStatus;
bool fCustom;
void SetIcon();
};
#endif // _STATUS_MENU_ITEM_H