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