1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _richtext.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13class wxSymbolPickerDialog : wxDialog 14{ 15 %Docstring 16 SymbolPickerDialog() 17 SymbolPickerDialog(symbol, initialFont, normalTextFont, parent, id=wx.ID_ANY, title=_("Symbols"), pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.CLOSE_BOX) 18 19 wxSymbolPickerDialog presents the user with a choice of fonts and a 20 grid of available characters. 21 %End 22 %TypeHeaderCode 23 #include <wx/richtext/richtextsymboldlg.h> 24 %End 25 26public: 27 wxSymbolPickerDialog(); 28 %PreMethodCode 29 if (!wxPyCheckForApp()) return NULL; 30 %End 31 32 wxSymbolPickerDialog( 33 const wxString & symbol, 34 const wxString & initialFont, 35 const wxString & normalTextFont, 36 wxWindow * parent, 37 wxWindowID id = wxID_ANY, 38 const wxString & title = _("Symbols"), 39 const wxPoint & pos = wxDefaultPosition, 40 const wxSize & size = wxDefaultSize, 41 long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxCLOSE_BOX 42 ) /Transfer/; 43 %PreMethodCode 44 if (!wxPyCheckForApp()) return NULL; 45 %End 46 47 bool Create( 48 const wxString & symbol, 49 const wxString & initialFont, 50 const wxString & normalTextFont, 51 wxWindow * parent, 52 wxWindowID id = wxID_ANY, 53 const wxString & caption = wxGetTranslation("Symbols"), 54 const wxPoint & pos = wxDefaultPosition, 55 const wxSize & size = wxSize(400, 300), 56 long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxCLOSE_BOX 57 ) /TransferThis/; 58 %Docstring 59 Create(symbol, initialFont, normalTextFont, parent, id=wx.ID_ANY, caption=wx.GetTranslation("Symbols"), pos=wx.DefaultPosition, size=wx.Size(400,300), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.CLOSE_BOX) -> bool 60 61 Creation: see the constructor for details about the parameters. 62 %End 63 64 wxString GetFontName() const; 65 %Docstring 66 GetFontName() -> String 67 68 Returns the font name (the font reflected in the font list). 69 %End 70 71 bool GetFromUnicode() const; 72 %Docstring 73 GetFromUnicode() -> bool 74 75 Returns true if the dialog is showing the full range of Unicode 76 characters. 77 %End 78 79 wxString GetNormalTextFontName() const; 80 %Docstring 81 GetNormalTextFontName() -> String 82 83 Gets the font name used for displaying symbols in the absence of a 84 selected font. 85 %End 86 87 wxString GetSymbol() const; 88 %Docstring 89 GetSymbol() -> String 90 91 Gets the current or initial symbol as a string. 92 %End 93 94 int GetSymbolChar() const; 95 %Docstring 96 GetSymbolChar() -> int 97 98 Gets the selected symbol character as an integer. 99 %End 100 101 bool HasSelection() const; 102 %Docstring 103 HasSelection() -> bool 104 105 Returns true if a symbol is selected. 106 %End 107 108 void SetFontName( 109 wxString value 110 ); 111 %Docstring 112 SetFontName(value) 113 114 Sets the initial/selected font name. 115 %End 116 117 void SetFromUnicode( 118 bool value 119 ); 120 %Docstring 121 SetFromUnicode(value) 122 123 Sets the internal flag indicating that the full Unicode range should 124 be displayed. 125 %End 126 127 void SetNormalTextFontName( 128 wxString value 129 ); 130 %Docstring 131 SetNormalTextFontName(value) 132 133 Sets the name of the font to be used in the absence of a selected 134 font. 135 %End 136 137 void SetSymbol( 138 wxString value 139 ); 140 %Docstring 141 SetSymbol(value) 142 143 Sets the symbol as a one or zero character string. 144 %End 145 146 void SetUnicodeMode( 147 bool unicodeMode 148 ); 149 %Docstring 150 SetUnicodeMode(unicodeMode) 151 152 Sets Unicode display mode. 153 %End 154 155 bool UseNormalFont() const; 156 %Docstring 157 UseNormalFont() -> bool 158 159 Returns true if the has specified normal text - that is, there is no 160 selected font. 161 %End 162 163 public: 164 virtual wxPoint GetClientAreaOrigin() const; 165 virtual bool Validate(); 166 virtual bool TransferDataToWindow(); 167 virtual bool TransferDataFromWindow(); 168 virtual void InitDialog(); 169 virtual bool AcceptsFocus() const; 170 virtual bool AcceptsFocusRecursively() const; 171 virtual bool AcceptsFocusFromKeyboard() const; 172 virtual void AddChild( wxWindowBase *child ); 173 virtual void RemoveChild( wxWindowBase *child ); 174 virtual void InheritAttributes(); 175 virtual bool ShouldInheritColours() const; 176 virtual void OnInternalIdle(); 177 virtual wxWindow *GetMainWindowOfCompositeControl(); 178 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 179 virtual void SetCanFocus(bool canFocus); 180 virtual bool Destroy(); 181 virtual void SetValidator( const wxValidator &validator ); 182 virtual wxValidator* GetValidator(); 183 184 185 protected: 186 virtual bool ProcessEvent(wxEvent & event); 187 virtual void DoEnable(bool enable); 188 virtual void DoGetPosition(int *x, int *y) const; 189 virtual void DoGetSize(int *width, int *height) const; 190 virtual void DoGetClientSize(int *width, int *height) const; 191 virtual wxSize DoGetBestSize() const; 192 virtual wxSize DoGetBestClientSize() const; 193 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 194 virtual void DoSetClientSize(int width, int height); 195 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 196 virtual wxSize DoGetBorderSize() const; 197 virtual void DoMoveWindow(int x, int y, int width, int height); 198 virtual void DoSetWindowVariant( wxWindowVariant variant); 199 virtual wxBorder GetDefaultBorder() const; 200 virtual wxBorder GetDefaultBorderForControl() const; 201 virtual void DoFreeze(); 202 virtual void DoThaw(); 203 virtual bool HasTransparentBackground(); 204 virtual bool TryBefore(wxEvent& event); 205 virtual bool TryAfter(wxEvent& event); 206 207 208 public: 209 210 211 static 212 wxVisualAttributes GetClassDefaultAttributes( 213 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 214 ); 215 %Docstring 216 GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes 217 %End 218 %PreMethodCode 219 if (!wxPyCheckForApp()) return NULL; 220 %End 221 222 public: 223 224 225 %Property(name=FontName, get=GetFontName, set=SetFontName) 226 %Property(name=FromUnicode, get=GetFromUnicode, set=SetFromUnicode) 227 %Property(name=NormalTextFontName, get=GetNormalTextFontName, set=SetNormalTextFontName) 228 %Property(name=Symbol, get=GetSymbol, set=SetSymbol) 229 %Property(name=SymbolChar, get=GetSymbolChar) 230}; // end of class wxSymbolPickerDialog 231 232 233 234//--------------------------------------------------------------------------- 235 236