mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 20:11:51 +00:00
65 lines
1.8 KiB
C
65 lines
1.8 KiB
C
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// Name: wx/qt/menu.h
|
||
|
// Author: Peter Most, Mariano Reingart
|
||
|
// Copyright: (c) 2010 wxWidgets dev team
|
||
|
// Licence: wxWindows licence
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#ifndef _WX_QT_MENU_H_
|
||
|
#define _WX_QT_MENU_H_
|
||
|
|
||
|
class QMenu;
|
||
|
class QMenuBar;
|
||
|
|
||
|
class WXDLLIMPEXP_CORE wxMenu : public wxMenuBase
|
||
|
{
|
||
|
public:
|
||
|
wxMenu(long style = 0);
|
||
|
wxMenu(const wxString& title, long style = 0);
|
||
|
|
||
|
virtual QMenu *GetHandle() const;
|
||
|
|
||
|
protected:
|
||
|
virtual wxMenuItem *DoAppend(wxMenuItem *item) wxOVERRIDE;
|
||
|
virtual wxMenuItem *DoInsert(size_t pos, wxMenuItem *item) wxOVERRIDE;
|
||
|
virtual wxMenuItem *DoRemove(wxMenuItem *item) wxOVERRIDE;
|
||
|
|
||
|
private:
|
||
|
QMenu *m_qtMenu;
|
||
|
|
||
|
wxDECLARE_DYNAMIC_CLASS(wxMenu);
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
class WXDLLIMPEXP_CORE wxMenuBar : public wxMenuBarBase
|
||
|
{
|
||
|
public:
|
||
|
wxMenuBar();
|
||
|
wxMenuBar(long style);
|
||
|
wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0);
|
||
|
|
||
|
virtual bool Append(wxMenu *menu, const wxString& title) wxOVERRIDE;
|
||
|
virtual bool Insert(size_t pos, wxMenu *menu, const wxString& title) wxOVERRIDE;
|
||
|
virtual wxMenu *Remove(size_t pos) wxOVERRIDE;
|
||
|
|
||
|
virtual void EnableTop(size_t pos, bool enable) wxOVERRIDE;
|
||
|
virtual bool IsEnabledTop(size_t pos) const wxOVERRIDE;
|
||
|
|
||
|
virtual void SetMenuLabel(size_t pos, const wxString& label) wxOVERRIDE;
|
||
|
virtual wxString GetMenuLabel(size_t pos) const wxOVERRIDE;
|
||
|
|
||
|
QMenuBar *GetQMenuBar() const { return m_qtMenuBar; }
|
||
|
virtual QWidget *GetHandle() const wxOVERRIDE;
|
||
|
|
||
|
virtual void Attach(wxFrame *frame) wxOVERRIDE;
|
||
|
virtual void Detach() wxOVERRIDE;
|
||
|
|
||
|
private:
|
||
|
QMenuBar *m_qtMenuBar;
|
||
|
|
||
|
wxDECLARE_DYNAMIC_CLASS(wxMenuBar);
|
||
|
};
|
||
|
|
||
|
#endif // _WX_QT_MENU_H_
|