Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.3 KiB

  1. //
  2. // mxToolKit (c) 1999 by Mete Ciragan
  3. //
  4. // file: mxMenuBar.h
  5. // implementation: all
  6. // last modified: Apr 28 1999, Mete Ciragan
  7. // copyright: The programs and associated files contained in this
  8. // distribution were developed by Mete Ciragan. The programs
  9. // are not in the public domain, but they are freely
  10. // distributable without licensing fees. These programs are
  11. // provided without guarantee or warrantee expressed or
  12. // implied.
  13. //
  14. #ifndef INCLUDED_MXMENUBAR
  15. #define INCLUDED_MXMENUBAR
  16. #ifndef INCLUDED_MXWIDGET
  17. #include "mxtk/mxWidget.h"
  18. #endif
  19. class mxWindow;
  20. class mxMenu;
  21. class mxMenuBar_i;
  22. class mxMenuBar : public mxWidget
  23. {
  24. mxMenuBar_i *d_this;
  25. public:
  26. // CREATORS
  27. mxMenuBar (mxWindow *parent);
  28. virtual ~mxMenuBar ();
  29. // MANIPULATORS
  30. void addMenu (const char *item, mxMenu *menu);
  31. void setEnabled (int id, bool b);
  32. void setChecked (int id, bool b);
  33. void modify (int id, int newId, const char *newItem);
  34. // ACCESSORS
  35. bool isEnabled (int id) const;
  36. bool isChecked (int id) const;
  37. int getHeight () const;
  38. private:
  39. // NOT IMPLEMENTED
  40. mxMenuBar (const mxMenuBar&);
  41. mxMenuBar& operator= (const mxMenuBar&);
  42. };
  43. #endif // INCLUDED_MXMENUBAR