]> git.saurik.com Git - wxWidgets.git/blob - include/wx/toolbar.h
Make default keyboard handling available in wxVarScrollHelperEvtHandler too.
[wxWidgets.git] / include / wx / toolbar.h
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
11 #ifndef _WX_TOOLBAR_H_BASE_
12 #define _WX_TOOLBAR_H_BASE_
13
14 #include "wx/defs.h"
15
16 // ----------------------------------------------------------------------------
17 // wxToolBar style flags
18 // ----------------------------------------------------------------------------
19
20 enum
21 {
22 // lay out the toolbar horizontally
23 wxTB_HORIZONTAL = wxHORIZONTAL, // == 0x0004
24 wxTB_TOP = wxTB_HORIZONTAL,
25
26 // lay out the toolbar vertically
27 wxTB_VERTICAL = wxVERTICAL, // == 0x0008
28 wxTB_LEFT = wxTB_VERTICAL,
29
30 // show 3D buttons (wxToolBarSimple only)
31 wxTB_3DBUTTONS = 0x0010,
32
33 // "flat" buttons (Win32/GTK only)
34 wxTB_FLAT = 0x0020,
35
36 // dockable toolbar (GTK only)
37 wxTB_DOCKABLE = 0x0040,
38
39 // don't show the icons (they're shown by default)
40 wxTB_NOICONS = 0x0080,
41
42 // show the text (not shown by default)
43 wxTB_TEXT = 0x0100,
44
45 // don't show the divider between toolbar and the window (Win32 only)
46 wxTB_NODIVIDER = 0x0200,
47
48 // no automatic alignment (Win32 only, useless)
49 wxTB_NOALIGN = 0x0400,
50
51 // show the text and the icons alongside, not vertically stacked (Win32/GTK)
52 wxTB_HORZ_LAYOUT = 0x0800,
53 wxTB_HORZ_TEXT = wxTB_HORZ_LAYOUT | wxTB_TEXT,
54
55 // don't show the toolbar short help tooltips
56 wxTB_NO_TOOLTIPS = 0x1000,
57
58 // lay out toolbar at the bottom of the window
59 wxTB_BOTTOM = 0x2000,
60
61 // lay out toolbar at the right edge of the window
62 wxTB_RIGHT = 0x4000,
63
64 wxTB_DEFAULT_STYLE = wxTB_HORIZONTAL | wxTB_FLAT
65 };
66
67 #if wxUSE_TOOLBAR
68 #include "wx/tbarbase.h" // the base class for all toolbars
69
70 #if defined(__WXUNIVERSAL__)
71 #include "wx/univ/toolbar.h"
72 #elif defined(__WXMSW__) && (!defined(_WIN32_WCE) || (_WIN32_WCE >= 400 && !defined(__POCKETPC__) && !defined(__SMARTPHONE__)))
73 #include "wx/msw/toolbar.h"
74 #elif defined(__WXWINCE__)
75 #include "wx/msw/wince/tbarwce.h"
76 #elif defined(__WXMOTIF__)
77 #include "wx/motif/toolbar.h"
78 #elif defined(__WXGTK20__)
79 #include "wx/gtk/toolbar.h"
80 #elif defined(__WXGTK__)
81 #include "wx/gtk1/toolbar.h"
82 #elif defined(__WXMAC__)
83 #include "wx/osx/toolbar.h"
84 #elif defined(__WXCOCOA__)
85 #include "wx/cocoa/toolbar.h"
86 #elif defined(__WXPM__)
87 #include "wx/os2/toolbar.h"
88 #endif
89 #endif // wxUSE_TOOLBAR
90
91 #endif
92 // _WX_TOOLBAR_H_BASE_