projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add GTK3-specific code for DrawItemSelectionRect(), fixes drawing selected tree contr...
[wxWidgets.git]
/
include
/
wx
/
univ
/
menu.h
diff --git
a/include/wx/univ/menu.h
b/include/wx/univ/menu.h
index ba7d0418b769f0c9c824c1f74bc526d696132cfd..b964b7e86956e56924ccebe8b0becaca309cc490 100644
(file)
--- a/
include/wx/univ/menu.h
+++ b/
include/wx/univ/menu.h
@@
-12,10
+12,6
@@
#ifndef _WX_UNIV_MENU_H_
#define _WX_UNIV_MENU_H_
#ifndef _WX_UNIV_MENU_H_
#define _WX_UNIV_MENU_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "univmenu.h"
-#endif
-
#if wxUSE_ACCEL
#include "wx/accel.h"
#endif // wxUSE_ACCEL
#if wxUSE_ACCEL
#include "wx/accel.h"
#endif // wxUSE_ACCEL
@@
-23,18
+19,18
@@
#include "wx/dynarray.h"
// fwd declarations
#include "wx/dynarray.h"
// fwd declarations
-class WXDLL
EXPORT
wxMenuInfo;
+class WXDLL
IMPEXP_FWD_CORE
wxMenuInfo;
WX_DECLARE_EXPORTED_OBJARRAY(wxMenuInfo, wxMenuInfoArray);
WX_DECLARE_EXPORTED_OBJARRAY(wxMenuInfo, wxMenuInfoArray);
-class WXDLL
EXPORT
wxMenuGeometryInfo;
-class WXDLL
EXPORT
wxPopupMenuWindow;
-class WXDLL
EXPORT
wxRenderer;
+class WXDLL
IMPEXP_FWD_CORE
wxMenuGeometryInfo;
+class WXDLL
IMPEXP_FWD_CORE
wxPopupMenuWindow;
+class WXDLL
IMPEXP_FWD_CORE
wxRenderer;
// ----------------------------------------------------------------------------
// wxMenu
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxMenu
// ----------------------------------------------------------------------------
-class WXDLL
EXPORT
wxMenu : public wxMenuBase
+class WXDLL
IMPEXP_CORE
wxMenu : public wxMenuBase
{
public:
// ctors and dtor
{
public:
// ctors and dtor
@@
-142,12
+138,12
@@
private:
// wxMenuBar
// ----------------------------------------------------------------------------
// wxMenuBar
// ----------------------------------------------------------------------------
-class WXDLL
EXPORT
wxMenuBar : public wxMenuBarBase
+class WXDLL
IMPEXP_CORE
wxMenuBar : public wxMenuBarBase
{
public:
// ctors and dtor
wxMenuBar(long WXUNUSED(style) = 0) { Init(); }
{
public:
// ctors and dtor
wxMenuBar(long WXUNUSED(style) = 0) { Init(); }
- wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0)
+ wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0)
;
virtual ~wxMenuBar();
// implement base class virtuals
virtual ~wxMenuBar();
// implement base class virtuals
@@
-159,8
+155,8
@@
public:
virtual void EnableTop(size_t pos, bool enable);
virtual bool IsEnabledTop(size_t pos) const;
virtual void EnableTop(size_t pos, bool enable);
virtual bool IsEnabledTop(size_t pos) const;
- virtual void Set
LabelTop
(size_t pos, const wxString& label);
- virtual wxString Get
LabelTop
(size_t pos) const;
+ virtual void Set
MenuLabel
(size_t pos, const wxString& label);
+ virtual wxString Get
MenuLabel
(size_t pos) const;
virtual void Attach(wxFrame *frame);
virtual void Detach();
virtual void Attach(wxFrame *frame);
virtual void Detach();
@@
-248,6
+244,9
@@
protected:
// we don't want to have focus except while selecting from menu
void GiveAwayFocus();
// we don't want to have focus except while selecting from menu
void GiveAwayFocus();
+ // Release the mouse capture if we have it
+ bool ReleaseMouseCapture();
+
// the array containing extra menu info we need
wxMenuInfoArray m_menuInfos;
// the array containing extra menu info we need
wxMenuInfoArray m_menuInfos;