toolbar.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/toolbar.h
  3. // Purpose: wxToolBar interface declaration
  4. // Author: Vadim Zeitlin
  5. // Modified by:
  6. // Created: 20.11.99
  7. // Copyright: (c) Vadim Zeitlin
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_TOOLBAR_H_BASE_
  11. #define _WX_TOOLBAR_H_BASE_
  12. #include "wx/defs.h"
  13. // ----------------------------------------------------------------------------
  14. // wxToolBar style flags
  15. // ----------------------------------------------------------------------------
  16. enum
  17. {
  18. // lay out the toolbar horizontally
  19. wxTB_HORIZONTAL = wxHORIZONTAL, // == 0x0004
  20. wxTB_TOP = wxTB_HORIZONTAL,
  21. // lay out the toolbar vertically
  22. wxTB_VERTICAL = wxVERTICAL, // == 0x0008
  23. wxTB_LEFT = wxTB_VERTICAL,
  24. // show 3D buttons (wxToolBarSimple only)
  25. wxTB_3DBUTTONS = 0x0010,
  26. // "flat" buttons (Win32/GTK only)
  27. wxTB_FLAT = 0x0020,
  28. // dockable toolbar (GTK only)
  29. wxTB_DOCKABLE = 0x0040,
  30. // don't show the icons (they're shown by default)
  31. wxTB_NOICONS = 0x0080,
  32. // show the text (not shown by default)
  33. wxTB_TEXT = 0x0100,
  34. // don't show the divider between toolbar and the window (Win32 only)
  35. wxTB_NODIVIDER = 0x0200,
  36. // no automatic alignment (Win32 only, useless)
  37. wxTB_NOALIGN = 0x0400,
  38. // show the text and the icons alongside, not vertically stacked (Win32/GTK)
  39. wxTB_HORZ_LAYOUT = 0x0800,
  40. wxTB_HORZ_TEXT = wxTB_HORZ_LAYOUT | wxTB_TEXT,
  41. // don't show the toolbar short help tooltips
  42. wxTB_NO_TOOLTIPS = 0x1000,
  43. // lay out toolbar at the bottom of the window
  44. wxTB_BOTTOM = 0x2000,
  45. // lay out toolbar at the right edge of the window
  46. wxTB_RIGHT = 0x4000,
  47. wxTB_DEFAULT_STYLE = wxTB_HORIZONTAL | wxTB_FLAT
  48. };
  49. #if wxUSE_TOOLBAR
  50. #include "wx/tbarbase.h" // the base class for all toolbars
  51. #if defined(__WXUNIVERSAL__)
  52. #include "wx/univ/toolbar.h"
  53. #elif defined(__WXMSW__) && (!defined(_WIN32_WCE) || (_WIN32_WCE >= 400 && !defined(__POCKETPC__) && !defined(__SMARTPHONE__)))
  54. #include "wx/msw/toolbar.h"
  55. #elif defined(__WXWINCE__)
  56. #include "wx/msw/wince/tbarwce.h"
  57. #elif defined(__WXMOTIF__)
  58. #include "wx/motif/toolbar.h"
  59. #elif defined(__WXGTK20__)
  60. #include "wx/gtk/toolbar.h"
  61. #elif defined(__WXGTK__)
  62. #include "wx/gtk1/toolbar.h"
  63. #elif defined(__WXMAC__)
  64. #include "wx/osx/toolbar.h"
  65. #elif defined(__WXCOCOA__)
  66. #include "wx/cocoa/toolbar.h"
  67. #elif defined(__WXPM__)
  68. #include "wx/os2/toolbar.h"
  69. #endif
  70. #endif // wxUSE_TOOLBAR
  71. #endif
  72. // _WX_TOOLBAR_H_BASE_