]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/toolbar.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxToolBar interface declaration
4 // Author: Vadim Zeitlin
7 // Copyright: (c) Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_TOOLBAR_H_BASE_
12 #define _WX_TOOLBAR_H_BASE_
16 // ----------------------------------------------------------------------------
17 // wxToolBar style flags
18 // ----------------------------------------------------------------------------
22 // lay out the toolbar horizontally
23 wxTB_HORIZONTAL
= wxHORIZONTAL
, // == 0x0004
24 wxTB_TOP
= wxTB_HORIZONTAL
,
26 // lay out the toolbar vertically
27 wxTB_VERTICAL
= wxVERTICAL
, // == 0x0008
28 wxTB_LEFT
= wxTB_VERTICAL
,
30 // show 3D buttons (wxToolBarSimple only)
31 wxTB_3DBUTTONS
= 0x0010,
33 // "flat" buttons (Win32/GTK only)
36 // dockable toolbar (GTK only)
37 wxTB_DOCKABLE
= 0x0040,
39 // don't show the icons (they're shown by default)
40 wxTB_NOICONS
= 0x0080,
42 // show the text (not shown by default)
45 // don't show the divider between toolbar and the window (Win32 only)
46 wxTB_NODIVIDER
= 0x0200,
48 // no automatic alignment (Win32 only, useless)
49 wxTB_NOALIGN
= 0x0400,
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
,
55 // don't show the toolbar short help tooltips
56 wxTB_NO_TOOLTIPS
= 0x1000,
58 // lay out toolbar at the bottom of the window
61 // lay out toolbar at the right edge of the window
64 wxTB_DEFAULT_STYLE
= wxTB_HORIZONTAL
| wxTB_FLAT
68 #include "wx/tbarbase.h" // the base class for all toolbars
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"
89 #endif // wxUSE_TOOLBAR
92 // _WX_TOOLBAR_H_BASE_