wxWidgets/include/wx/motif
Vadim Zeitlin 59b7da02ff Return wxFONTFAMILY_DEFAULT, not UNKNOWN, from wxFont::GetFamily().
Although returning wxFONTFAMILY_UNKNOWN when the font family is not recognized
makes more sense, it breaks a lot of existing code including all the
font-related code generated by DialogBlocks, so prefer to return
wxFONTFAMILY_DEFAULT instead -- which can't be confused for a valid font
family neither but can be passed to wxFont ctor or SetFamily() without
problems.

To ensure that this behaviour is correctly implemented by all ports, rename
the existing wxFont::GetFamily() to DoGetFamily() and call the new method from
wxFontBase::GetFamily() which adjusts the return value if needed.

Closes #12330.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-09-29 13:46:09 +00:00
..
private substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
accel.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
app.h second part of #10320: move wxApp event handling functions to wxEventLoopBase (in particular move Yield() functions); add backward compatible redirections to wxApp; update docs; remove global lists wxPendingEvents and wxPendingEventsLocker 2009-02-15 14:25:08 +00:00
bmpbuttn.h preparation work for implementing images support in wxButton: move wxBitmapButton methods to the base class (enhancing/completing them in the process); there are no functionality changes yet (hopefully) 2009-06-14 22:55:24 +00:00
bmpmotif.h don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither 2009-01-19 13:55:27 +00:00
button.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
checkbox.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
checklst.h many wxItemContainer-related changes: 2007-07-26 13:54:14 +00:00
chkconf.h remove the long deprecated wxTabCtrl class 2008-12-27 14:58:12 +00:00
choice.h use wxArrayString instead of wxStringList 2009-01-07 17:29:38 +00:00
clipbrd.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
colour.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
combobox.h added wxTextEntry::SetHint() (a.k.a. cue banner or placeholder string) 2009-03-02 12:25:01 +00:00
control.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
ctrlsub.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
cursor.h provide backward-compat wxCursor(int) ctor; remove empty stubs of XBM ctor from all ports except gtk,motif; make all ports emit wxLogError on invalid bitmap types; implement wxCursor(const wxString&, ...) ctor on GTK (not tested yet) 2008-09-25 17:56:07 +00:00
dataform.h use wxString, not wxChar*, in wxDataFormat ctor and SetId() method 2007-05-30 22:02:19 +00:00
dataobj2.h
dataobj.h
dc.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
dcclient.h change generic ints to enums in wxDC (closes #9959) 2009-01-08 14:21:53 +00:00
dcmemory.h wxMotif compilation fixes after wxDC changes 2007-12-15 00:06:08 +00:00
dcprint.h Make wxPORTRAIT and wxLANDSCAPE elements of wxPrintOrientation enum. 2009-12-08 16:35:47 +00:00
dcscreen.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
dialog.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
dnd.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
filedlg.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
font.h Return wxFONTFAMILY_DEFAULT, not UNKNOWN, from wxFont::GetFamily(). 2010-09-29 13:46:09 +00:00
frame.h move SendSizeEvent() down to wxWindow from wxFrame; added SendSizeEventToParent() helper 2008-07-29 12:32:47 +00:00
gauge.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
icon.h fix overloaded virtual warning 2009-03-02 13:45:09 +00:00
listbox.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
menu.h Menu label consistency changes 2007-08-11 17:54:59 +00:00
menuitem.h don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither 2009-01-19 13:55:27 +00:00
minifram.h Replace wxTINY_CAPTION_{HORIZ,VERT} with a single wxTINY_CAPTION. 2010-05-10 21:09:57 +00:00
msgdlg.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
popupwin.h
print.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
private.h suppress warning about implicit conversion of literal string XmSTRING_DEFAULT_CHARSET to non-const char * 2009-06-24 14:49:09 +00:00
radiobox.h use wxRA_SPECIFY_COLS/ROWS instead of old, deprecated and confusing wxRA_HORIZONTAL/VERTICAL 2009-06-03 22:33:32 +00:00
radiobut.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
scrolbar.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
setup0.h Merge wxUIActionSimulator fixes from SOC2010_GUI_TEST branch. 2010-08-22 22:15:42 +00:00
slider.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
spinbutt.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
statbmp.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
statbox.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
stattext.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
textctrl.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
textentry.h added wxTextEntry::DoGetValue() to allow returning empty string if the control currently contains hint text 2009-03-02 13:31:29 +00:00
tglbtn.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
toolbar.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
toplevel.h make DoSetSizeHints protected, remove parameter defaults 2007-11-22 06:12:56 +00:00
window.h add virtual DoGetTextExtent() to allow calling the overloaded wxWindowBase::GetTextExtent() on wxWindow objects without any ugly casts/scope resolution operators 2009-06-10 16:41:41 +00:00