ReplicantMenuItem.h 726 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
  3. * Copyright 2011-2012, Dario Casalinuovo. All rights reserved.
  4. * Distributed under the terms of the MIT License.
  5. */
  6. #ifndef _STATUS_MENU_ITEM_H
  7. #define _STATUS_MENU_ITEM_H
  8. #include <MenuItem.h>
  9. #include <libinterface/BitmapMenuItem.h>
  10. #include "AppConstants.h"
  11. class BBitmap;
  12. const int32 kSetStatus = 'SEST';
  13. class ReplicantMenuItem : public BitmapMenuItem {
  14. public:
  15. ReplicantMenuItem(const char* label, UserStatus status,
  16. bool custom = false, char shortcut = 0, uint32 modifiers = 0);
  17. UserStatus Status() const;
  18. bool IsCustom() const;
  19. private:
  20. UserStatus fStatus;
  21. bool fCustom;
  22. void SetIcon();
  23. };
  24. #endif // _STATUS_MENU_ITEM_H