]> git.saurik.com Git - wxWidgets.git/blame - include/wx/toolbar.h
Applied #15226 wxRichTextCtrl: Implement setting properties with undo for objects...
[wxWidgets.git] / include / wx / toolbar.h
CommitLineData
6d167489
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/toolbar.h
3// Purpose: wxToolBar interface declaration
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 20.11.99
99d80019 7// Copyright: (c) Vadim Zeitlin
65571936 8// Licence: wxWindows licence
6d167489
VZ
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_TOOLBAR_H_BASE_
12#define _WX_TOOLBAR_H_BASE_
13
f9dae779
VZ
14#include "wx/defs.h"
15
16// ----------------------------------------------------------------------------
17// wxToolBar style flags
18// ----------------------------------------------------------------------------
19
20enum
21{
22 // lay out the toolbar horizontally
23 wxTB_HORIZONTAL = wxHORIZONTAL, // == 0x0004
7a976304 24 wxTB_TOP = wxTB_HORIZONTAL,
f9dae779
VZ
25
26 // lay out the toolbar vertically
27 wxTB_VERTICAL = wxVERTICAL, // == 0x0008
7a976304 28 wxTB_LEFT = wxTB_VERTICAL,
f9dae779
VZ
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,
6a1b3ead
VZ
53 wxTB_HORZ_TEXT = wxTB_HORZ_LAYOUT | wxTB_TEXT,
54
55 // don't show the toolbar short help tooltips
5b2acc3a
RR
56 wxTB_NO_TOOLTIPS = 0x1000,
57
58 // lay out toolbar at the bottom of the window
7a976304
VZ
59 wxTB_BOTTOM = 0x2000,
60
61 // lay out toolbar at the right edge of the window
f75b1bd3
VZ
62 wxTB_RIGHT = 0x4000,
63
64 wxTB_DEFAULT_STYLE = wxTB_HORIZONTAL | wxTB_FLAT
f9dae779 65};
6d167489 66
8a0681f9 67#if wxUSE_TOOLBAR
f9dae779
VZ
68 #include "wx/tbarbase.h" // the base class for all toolbars
69
ac1f013c
JS
70 #if defined(__WXUNIVERSAL__)
71 #include "wx/univ/toolbar.h"
ac1f013c 72 #elif defined(__WXMSW__) && (!defined(_WIN32_WCE) || (_WIN32_WCE >= 400 && !defined(__POCKETPC__) && !defined(__SMARTPHONE__)))
936f6353 73 #include "wx/msw/toolbar.h"
ac1f013c
JS
74 #elif defined(__WXWINCE__)
75 #include "wx/msw/wince/tbarwce.h"
ac1f013c
JS
76 #elif defined(__WXMOTIF__)
77 #include "wx/motif/toolbar.h"
1be7a35c 78 #elif defined(__WXGTK20__)
0b83552a 79 #include "wx/gtk/toolbar.h"
1be7a35c 80 #elif defined(__WXGTK__)
0b83552a 81 #include "wx/gtk1/toolbar.h"
ac1f013c 82 #elif defined(__WXMAC__)
ef0e9220 83 #include "wx/osx/toolbar.h"
ac1f013c
JS
84 #elif defined(__WXCOCOA__)
85 #include "wx/cocoa/toolbar.h"
86 #elif defined(__WXPM__)
87 #include "wx/os2/toolbar.h"
88 #endif
8a0681f9 89#endif // wxUSE_TOOLBAR
c801d85f
KB
90
91#endif
6d167489 92 // _WX_TOOLBAR_H_BASE_