mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Import r67258 of the wxWidgets trunk, which I expect will before
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
172
Externals/wxWidgets3/include/wx/osx/fontdlg.h
vendored
Normal file
172
Externals/wxWidgets3/include/wx/osx/fontdlg.h
vendored
Normal file
@ -0,0 +1,172 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/osx/fontdlg.h
|
||||
// Purpose: wxFontDialog class using fonts window services (10.2+).
|
||||
// Author: Ryan Norton
|
||||
// Modified by:
|
||||
// Created: 2004-09-25
|
||||
// RCS-ID: $Id: fontdlg.h 66615 2011-01-07 05:26:57Z PC $
|
||||
// Copyright: (c) Ryan Norton
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_FONTDLG_H_
|
||||
#define _WX_FONTDLG_H_
|
||||
|
||||
#include "wx/dialog.h"
|
||||
|
||||
/*
|
||||
* Font dialog
|
||||
*/
|
||||
|
||||
/*
|
||||
* support old notation
|
||||
*/
|
||||
#ifdef wxMAC_USE_EXPERIMENTAL_FONTDIALOG
|
||||
#define wxOSX_USE_EXPERIMENTAL_FONTDIALOG wxMAC_USE_EXPERIMENTAL_FONTDIALOG
|
||||
#endif
|
||||
|
||||
#ifndef wxOSX_USE_EXPERIMENTAL_FONTDIALOG
|
||||
#define wxOSX_USE_EXPERIMENTAL_FONTDIALOG 1
|
||||
#endif
|
||||
|
||||
#if wxOSX_USE_EXPERIMENTAL_FONTDIALOG
|
||||
|
||||
class WXDLLIMPEXP_CORE wxFontDialog : public wxDialog
|
||||
{
|
||||
public:
|
||||
wxFontDialog();
|
||||
wxFontDialog(wxWindow *parent, const wxFontData& data);
|
||||
virtual ~wxFontDialog();
|
||||
|
||||
bool Create(wxWindow *parent, const wxFontData& data);
|
||||
|
||||
int ShowModal();
|
||||
wxFontData& GetFontData() { return m_fontData; }
|
||||
|
||||
protected:
|
||||
wxFontData m_fontData;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxFontDialog)
|
||||
};
|
||||
|
||||
extern "C" int RunMixedFontDialog(wxFontDialog* dialog) ;
|
||||
|
||||
#else // wxOSX_USE_EXPERIMENTAL_FONTDIALOG
|
||||
|
||||
#if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
|
||||
|
||||
/*!
|
||||
* Forward declarations
|
||||
*/
|
||||
|
||||
class wxFontColourSwatchCtrl;
|
||||
class wxFontPreviewCtrl;
|
||||
class WXDLLIMPEXP_FWD_CORE wxSpinCtrl;
|
||||
class WXDLLIMPEXP_FWD_CORE wxSpinEvent;
|
||||
class WXDLLIMPEXP_FWD_CORE wxListBox;
|
||||
class WXDLLIMPEXP_FWD_CORE wxChoice;
|
||||
class WXDLLIMPEXP_FWD_CORE wxButton;
|
||||
class WXDLLIMPEXP_FWD_CORE wxStaticText;
|
||||
class WXDLLIMPEXP_FWD_CORE wxCheckBox;
|
||||
|
||||
/*!
|
||||
* Control identifiers
|
||||
*/
|
||||
|
||||
#define wxID_FONTDIALOG_FACENAME 20001
|
||||
#define wxID_FONTDIALOG_FONTSIZE 20002
|
||||
#define wxID_FONTDIALOG_BOLD 20003
|
||||
#define wxID_FONTDIALOG_ITALIC 20004
|
||||
#define wxID_FONTDIALOG_UNDERLINED 20005
|
||||
#define wxID_FONTDIALOG_COLOUR 20006
|
||||
#define wxID_FONTDIALOG_PREVIEW 20007
|
||||
|
||||
#endif
|
||||
// !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
|
||||
|
||||
class WXDLLIMPEXP_CORE wxFontDialog: public wxDialog
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxFontDialog)
|
||||
|
||||
#if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
|
||||
DECLARE_EVENT_TABLE()
|
||||
#endif
|
||||
|
||||
public:
|
||||
wxFontDialog();
|
||||
wxFontDialog(wxWindow *parent, const wxFontData& data);
|
||||
virtual ~wxFontDialog();
|
||||
|
||||
bool Create(wxWindow *parent, const wxFontData& data);
|
||||
|
||||
int ShowModal();
|
||||
wxFontData& GetFontData() { return m_fontData; }
|
||||
bool IsShown() const;
|
||||
void OnPanelClose();
|
||||
void SetData(const wxFontData& data);
|
||||
|
||||
#if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
|
||||
|
||||
/// Creates the controls and sizers
|
||||
void CreateControls();
|
||||
|
||||
/// Initialize font
|
||||
void InitializeFont();
|
||||
|
||||
/// Set controls according to current font
|
||||
void InitializeControls();
|
||||
|
||||
/// Respond to font change
|
||||
void ChangeFont();
|
||||
|
||||
/// Respond to colour change
|
||||
void OnColourChanged(wxCommandEvent& event);
|
||||
|
||||
/// wxEVT_COMMAND_LISTBOX_SELECTED event handler for wxID_FONTDIALOG_FACENAME
|
||||
void OnFontdialogFacenameSelected( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_SPINCTRL_UPDATED event handler for wxID_FONTDIALOG_FONTSIZE
|
||||
void OnFontdialogFontsizeUpdated( wxSpinEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_TEXT_UPDATED event handler for wxID_FONTDIALOG_FONTSIZE
|
||||
void OnFontdialogFontsizeTextUpdated( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for wxID_FONTDIALOG_BOLD
|
||||
void OnFontdialogBoldClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for wxID_FONTDIALOG_ITALIC
|
||||
void OnFontdialogItalicClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for wxID_FONTDIALOG_UNDERLINED
|
||||
void OnFontdialogUnderlinedClick( wxCommandEvent& event );
|
||||
|
||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
||||
void OnOkClick( wxCommandEvent& event );
|
||||
|
||||
/// Should we show tooltips?
|
||||
static bool ShowToolTips();
|
||||
|
||||
wxListBox* m_facenameCtrl;
|
||||
wxSpinCtrl* m_sizeCtrl;
|
||||
wxCheckBox* m_boldCtrl;
|
||||
wxCheckBox* m_italicCtrl;
|
||||
wxCheckBox* m_underlinedCtrl;
|
||||
wxFontColourSwatchCtrl* m_colourCtrl;
|
||||
wxFontPreviewCtrl* m_previewCtrl;
|
||||
|
||||
wxFont m_dialogFont;
|
||||
bool m_suppressUpdates;
|
||||
|
||||
#endif
|
||||
// !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
|
||||
|
||||
protected:
|
||||
wxWindow* m_dialogParent;
|
||||
wxFontData m_fontData;
|
||||
void* m_pEventHandlerRef;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
// _WX_FONTDLG_H_
|
Reference in New Issue
Block a user