#include "wx/wxprec.h"
+#include "wx/settings.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#endif
-#include "wx/settings.h"
#include "wx/gdicmn.h"
#include "wx/cocoa/autorelease.h"
#ifndef WX_PRECOMP
#include "wx/dcmemory.h"
#include "wx/pen.h"
+ #include "wx/settings.h"
#endif //WX_PRECOMP
#include "wx/gdicmn.h"
-#include "wx/settings.h"
/*
* wxEffects: various 3D effects
#include "wx/palette.h"
#include "wx/icon.h"
#include "wx/cursor.h"
+ #include "wx/settings.h"
#endif
#include "wx/bitmap.h"
#include "wx/font.h"
-#include "wx/settings.h"
#include "wx/hashmap.h"
#include <string.h>
#pragma hdrstop
#endif
+#include "wx/settings.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
- #include "wx/settings.h"
#endif //WX_PRECOMP
// ----------------------------------------------------------------------------
#include "wx/intl.h"
#include "wx/math.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/sizer.h"
#include "wx/statbox.h"
-#include "wx/settings.h"
#include "wx/listimpl.cpp"
#if WXWIN_COMPATIBILITY_2_4
#ifndef WX_PRECOMP
#include "wx/control.h"
#include "wx/frame.h"
+ #include "wx/settings.h"
#endif
#if wxUSE_IMAGE
#include "wx/image.h"
- #include "wx/settings.h"
#endif // wxUSE_IMAGE
// ----------------------------------------------------------------------------
#include "wx/log.h"
#include "wx/frame.h"
#include "wx/dcclient.h"
+ #include "wx/settings.h"
#endif
#include "wx/image.h"
-#include "wx/settings.h"
// ----------------------------------------------------------------------------
// wxButtonToolBarTool: our implementation of wxToolBarToolBase
#if wxUSE_CHOICEBOOK
-#include "wx/choice.h"
#include "wx/choicebk.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/settings.h"
+#endif
+
+#include "wx/choice.h"
#include "wx/imaglist.h"
-#include "wx/settings.h"
#include "wx/sizer.h"
// ----------------------------------------------------------------------------
#include "wx/log.h"
#include "wx/dcclient.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif
#include "wx/stockitem.h"
#include "wx/calctrl.h"
#include "wx/popupwin.h"
#include "wx/renderer.h"
-#include "wx/settings.h"
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#include "wx/utils.h"
#include "wx/button.h"
#include "wx/icon.h"
+ #include "wx/settings.h"
#endif
#include "wx/module.h"
#include "wx/sizer.h"
#include "wx/tokenzr.h"
#include "wx/dir.h"
-#include "wx/settings.h"
#include "wx/artprov.h"
#include "wx/mimetype.h"
#include "wx/image.h"
#include "wx/radiobox.h"
#include "wx/stattext.h"
#include "wx/textctrl.h"
+ #include "wx/settings.h"
#endif
#include "wx/fdrepdlg.h"
-#include "wx/settings.h"
// ----------------------------------------------------------------------------
// constants
#ifndef WX_PRECOMP
#include "wx/hash.h"
#include "wx/intl.h"
+ #include "wx/settings.h"
#endif
#include "wx/checkbox.h"
#include "wx/imaglist.h"
#include "wx/dir.h"
#include "wx/artprov.h"
-#include "wx/settings.h"
#include "wx/filefn.h"
#include "wx/file.h" // for wxS_IXXX constants only
#include "wx/filedlg.h" // wxOPEN, wxSAVE...
#include "wx/choice.h"
#include "wx/checkbox.h"
#include "wx/intl.h"
+ #include "wx/settings.h"
#endif
#include <string.h>
#include "wx/sizer.h"
#include "wx/fontdlg.h"
#include "wx/generic/fontdlgg.h"
-#include "wx/settings.h"
#if USE_SPINCTRL_FOR_POINT_SIZE
#include "wx/spinctrl.h"
#if wxUSE_LISTBOOK
+#include "wx/listbook.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/settings.h"
+#endif
+
#include "wx/listctrl.h"
#include "wx/statline.h"
-#include "wx/listbook.h"
#include "wx/imaglist.h"
-#include "wx/settings.h"
// ----------------------------------------------------------------------------
// various wxWidgets macros
InvalidateBestSize();
// GetListView()->InvalidateBestSize();
GetListView()->Arrange();
-
+
if (GetPageCount() == 1)
{
wxSizeEvent sz(GetSize(), GetId());
GetListView()->DeleteAllItems();
if (!wxBookCtrlBase::DeleteAllPages())
return false;
-
+
m_selection = -1;
wxSizeEvent sz(GetSize(), GetId());
ProcessEvent(sz);
-
+
return true;
}
#include "wx/icon.h"
#include "wx/sizer.h"
#include "wx/app.h"
+ #include "wx/settings.h"
#endif
#include <stdio.h>
#define __WX_COMPILING_MSGDLGG_CPP__ 1
#include "wx/msgdlg.h"
#include "wx/artprov.h"
-#include "wx/settings.h"
#if wxUSE_STATLINE
- #include "wx/statline.h"
+ #include "wx/statline.h"
#endif
// ----------------------------------------------------------------------------
}
#endif // wxUSE_MSGDLG && !defined(__WXGTK20__)
-
#include "wx/string.h"
#include "wx/log.h"
#include "wx/dcclient.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/generic/imaglist.h"
#include "wx/generic/tabg.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: progdlgg.h
+// Name: src/generic/progdlgg.cpp
// Purpose: wxProgressDialog class
// Author: Karsten Ballüder
// Modified by:
#include "wx/intl.h"
#include "wx/dcclient.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif
#include "wx/generic/progdlgg.h"
-#include "wx/settings.h"
// ---------------------------------------------------------------------------
// macros
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/dc.h"
+ #include "wx/settings.h"
#endif //WX_PRECOMP
#include "wx/gdicmn.h"
-#include "wx/settings.h"
#include "wx/splitter.h"
#include "wx/dcmirror.h"
#include "wx/module.h"
#include "wx/statbmp.h"
#include "wx/stattext.h"
#include "wx/sizer.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/statline.h"
#include "wx/artprov.h"
-#include "wx/settings.h"
#include "wx/tipdlg.h"
#ifndef WX_PRECOMP
#include "wx/dcclient.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
#ifdef __WXGTK__
#include <gtk/gtk.h>
#endif
-#include "wx/settings.h"
-
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
#if wxUSE_TREEBOOK
#include "wx/treebook.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/settings.h"
+#endif
+
#include "wx/imaglist.h"
-#include "wx/settings.h"
// ----------------------------------------------------------------------------
// various wxWidgets macros
#ifndef WX_PRECOMP
#include "wx/dcclient.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif
#include "wx/generic/treectlg.h"
#include "wx/textctrl.h"
#include "wx/imaglist.h"
-#include "wx/settings.h"
#include "wx/renderer.h"
#include "wx/intl.h"
#include "wx/statbmp.h"
#include "wx/button.h"
+ #include "wx/settings.h"
#endif //WX_PRECOMP
#include "wx/statline.h"
#include "wx/sizer.h"
-#include "wx/settings.h"
#include "wx/wizard.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif
#include "wx/gdicmn.h"
#include "wx/memory.h"
#include "wx/font.h"
-#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/file.h"
#include "wx/filename.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/arrstr.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/settings.h"
#endif
#include "wx/fontutil.h"
-#include "wx/settings.h"
#include "wx/gtk/private.h"
// ============================================================================
wxControl::wxControl()
{
- m_needParent = TRUE;
+ m_needParent = true;
}
bool wxControl::Create( wxWindow *parent,
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
#include "wx/fontutil.h"
#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#include "wx/tokenzr.h"
-#include "wx/settings.h"
#include <strings.h>
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
#include "wx/arrstr.h"
#include "wx/checklst.h"
-#include "wx/settings.h"
#include "wx/gtk/private.h"
#include "wx/gtk/treeentry_gtk.h"
#include "wx/window.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/settings.h"
#endif
#include <gtk/gtk.h>
#include "wx/gtk/win_gtk.h"
-#include "wx/settings.h"
-
// RR: After a correction to the orientation of the sash
// this doesn't seem to be required anymore and it
// seems to confuse some themes so USE_ERASE_RECT=0
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/panel.h"
+ #include "wx/settings.h"
#endif
#include "wx/math.h"
-#include "wx/settings.h"
#include "wx/strconv.h"
#include "wx/fontutil.h" // for wxNativeFontInfo (GetNativeFontInfo())
// common part of the event handlers below
static void
handle_text_clipboard_callback( GtkWidget *widget, wxTextCtrl *win,
- wxEventType eventType, const gchar * signal_name)
+ wxEventType eventType, const gchar * signal_name)
{
wxClipboardTextEvent event( eventType, win->GetId() );
event.SetEventObject( win );
{
// don't let the default processing to take place if we did something
// ourselves in the event handler
- g_signal_stop_emission_by_name (widget, signal_name);
+ g_signal_stop_emission_by_name (widget, signal_name);
}
}
static void
gtk_copy_clipboard_callback( GtkWidget *widget, wxTextCtrl *win )
{
- handle_text_clipboard_callback(
- widget, win, wxEVT_COMMAND_TEXT_COPY, "copy-clipboard" );
+ handle_text_clipboard_callback(
+ widget, win, wxEVT_COMMAND_TEXT_COPY, "copy-clipboard" );
}
static void
gtk_cut_clipboard_callback( GtkWidget *widget, wxTextCtrl *win )
{
- handle_text_clipboard_callback(
- widget, win, wxEVT_COMMAND_TEXT_CUT, "cut-clipboard" );
+ handle_text_clipboard_callback(
+ widget, win, wxEVT_COMMAND_TEXT_CUT, "cut-clipboard" );
}
static void
gtk_paste_clipboard_callback( GtkWidget *widget, wxTextCtrl *win )
{
- handle_text_clipboard_callback(
- widget, win, wxEVT_COMMAND_TEXT_PASTE, "paste-clipboard" );
+ handle_text_clipboard_callback(
+ widget, win, wxEVT_COMMAND_TEXT_PASTE, "paste-clipboard" );
}
}
#include "wx/dcclient.h"
#include "wx/dialog.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif
#include "wx/control.h"
#include "wx/gtk/private.h"
-#include "wx/settings.h"
#include "wx/evtloop.h"
#include <glib.h>
#include "wx/dcclient.h"
#include "wx/menu.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif
#include "wx/layout.h"
#include "wx/msgdlg.h"
#include "wx/module.h"
#include "wx/combobox.h"
+
#if wxUSE_TOOLBAR_NATIVE
-#include "wx/toolbar.h"
+ #include "wx/toolbar.h"
#endif
#if wxUSE_DRAG_AND_DROP
#endif
#include "wx/statusbr.h"
-#include "wx/settings.h"
#include "wx/fontutil.h"
#ifdef __WXDEBUG__
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif
#include "wx/gdicmn.h"
#include "wx/memory.h"
#include "wx/font.h"
-#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/file.h"
#include "wx/filename.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/arrstr.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/settings.h"
#endif
#include "wx/fontutil.h"
-#include "wx/settings.h"
#include "wx/gtk1/private.h"
// ============================================================================
wxControl::wxControl()
{
- m_needParent = TRUE;
+ m_needParent = true;
}
bool wxControl::Create( wxWindow *parent,
#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/settings.h"
#endif
#include "wx/fontutil.h"
#include "wx/utils.h"
#include "wx/gdicmn.h"
#include "wx/tokenzr.h"
-#include "wx/settings.h"
#include <strings.h>
int family = wxFONTFAMILY_DEFAULT,
int style = wxFONTSTYLE_NORMAL,
int weight = wxFONTWEIGHT_NORMAL,
- bool underlined = FALSE,
+ bool underlined = false,
const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
void SetFaceName(const wxString& facename);
void SetEncoding(wxFontEncoding encoding);
- void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; }
+ void SetNoAntiAliasing( bool no = true ) { m_noAA = no; }
bool GetNoAntiAliasing() const { return m_noAA; }
// and this one also modifies all the other font data fields
m_underlined = underlined;
m_encoding = encoding;
- m_noAA = FALSE;
+ m_noAA = false;
}
void wxFontRefData::InitFromNative()
{
- m_noAA = FALSE;
+ m_noAA = false;
// get the font parameters from the XLFD
// -------------------------------------
}
// X fonts are never underlined...
- m_underlined = FALSE;
+ m_underlined = false;
// deal with font encoding
wxString
m_refData = new wxFontRefData(pointSize, family, style, weight,
underlined, face, encoding);
- return TRUE;
+ return true;
}
bool wxFont::Create(const wxString& fontname)
{
*this = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
- return TRUE;
+ return true;
}
m_refData = new wxFontRefData(fontname);
- return TRUE;
+ return true;
}
void wxFont::Unshare()
bool wxFont::GetUnderlined() const
{
- wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
+ wxCHECK_MSG( Ok(), false, wxT("invalid font") );
return M_FONTDATA->m_underlined;
}
bool wxFont::IsFixedWidth() const
{
- wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
+ wxCHECK_MSG( Ok(), false, wxT("invalid font") );
if ( M_FONTDATA->HasNativeFont() )
{
#include "wx/dynarray.h"
#include "wx/intl.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
#include "wx/arrstr.h"
#include "wx/checklst.h"
-#include "wx/settings.h"
#include "wx/gtk1/private.h"
#if wxUSE_TOOLTIPS
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/panel.h"
+ #include "wx/settings.h"
#endif
#include "wx/math.h"
-#include "wx/settings.h"
#include "wx/strconv.h"
#include "wx/fontutil.h" // for wxNativeFontInfo (GetNativeFontInfo())
#include "wx/dcclient.h"
#include "wx/dialog.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif
#include "wx/control.h"
#include "wx/gtk1/private.h"
-#include "wx/settings.h"
#include "wx/evtloop.h"
#include <glib.h>
#include "wx/dcclient.h"
#include "wx/menu.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif
#include "wx/layout.h"
#endif
#include "wx/statusbr.h"
-#include "wx/settings.h"
#include "wx/fontutil.h"
#ifdef __WXDEBUG__
#include "wx/statbox.h"
#include "wx/radiobox.h"
#include "wx/menu.h"
+ #include "wx/settings.h"
#endif // WXPRECOMP
#ifdef __WXMAC__
#include "wx/artprov.h"
#include "wx/spinctrl.h"
#include "wx/choicdlg.h"
-#include "wx/settings.h"
IMPLEMENT_DYNAMIC_CLASS(wxHtmlHelpFrame, wxFrame)
#include "wx/statbox.h"
#include "wx/radiobox.h"
#include "wx/menu.h"
+ #include "wx/settings.h"
#endif // WXPRECOMP
#ifdef __WXMAC__
#include "wx/artprov.h"
#include "wx/spinctrl.h"
#include "wx/choicdlg.h"
-#include "wx/settings.h"
// what is considered "small index"?
#define INDEX_IS_SMALL 100
#include "wx/brush.h"
#include "wx/colour.h"
#include "wx/dc.h"
+ #include "wx/settings.h"
#endif
#include "wx/html/htmlcell.h"
#include "wx/html/htmlwin.h"
-#include "wx/settings.h"
#include "wx/module.h"
#include <stdlib.h>
#include "wx/frame.h"
#include "wx/dcmemory.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif
#include "wx/html/htmlwin.h"
#include "wx/html/htmlproc.h"
#include "wx/clipbrd.h"
#include "wx/dataobj.h"
-#include "wx/settings.h"
#include "wx/arrimpl.cpp"
#include "wx/listimpl.cpp"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/dc.h"
+ #include "wx/settings.h"
#endif
#include "wx/print.h"
#include "wx/wxhtml.h"
#include "wx/wfstream.h"
#include "wx/module.h"
-#include "wx/settings.h"
//--------------------------------------------------------------------------------
#include "wx/intl.h"
#include "wx/dc.h"
#include "wx/log.h"
+ #include "wx/settings.h"
#endif
#include "wx/html/htmldefs.h"
#include "wx/html/winpars.h"
#include "wx/html/htmlwin.h"
#include "wx/fontmap.h"
-#include "wx/settings.h"
#include "wx/uri.h"
#include "wx/log.h"
#include "wx/window.h"
#include "wx/dcmemory.h"
+ #include "wx/settings.h"
#endif
#include "wx/region.h"
#include "wx/toplevel.h"
-#include "wx/settings.h"
#include "wx/math.h"
#include "wx/mac/private.h"
if ( parent->IsKindOf( CLASSINFO( wxNotebook ) )
#if wxUSE_TAB_DIALOG
|| parent->IsKindOf( CLASSINFO( wxTabCtrl ) )
-#endif // wxUSE_TAB_DIALOG
+#endif // wxUSE_TAB_DIALOG
)
{
Rect extent = { 0 , 0 , 0 , 0 } ;
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/frame.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
-#include "wx/settings.h"
-
#include "wx/mac/uma.h"
#include "wx/dcclient.h"
#include "wx/menu.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/statusbr.h"
#include "wx/toolbar.h"
#include "wx/menuitem.h"
-#include "wx/settings.h"
#include "wx/mac/uma.h"
#ifndef WX_PRECOMP
#include "wx/frame.h"
#include "wx/log.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#include "wx/mac/uma.h"
// DLL options compatibility check:
bool wxGLCanvas::Show(bool show)
{
if ( !wxWindow::Show( show ) )
- return FALSE ;
+ return false ;
/*
if ( !show )
{
}
}
*/
- return TRUE ;
+ return true ;
}
void wxGLCanvas::MacVisibilityChanged()
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/button.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/toplevel.h"
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/scrolbar.h"
#include "wx/mac/uma.h"
wxSize best(w, h);
CacheBestSize(best);
- return best;
+ return best;
}
#include "wx/utils.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/tabctrl.h"
-#include "wx/settings.h"
#include "wx/mac/uma.h"
#include "wx/dc.h"
#include "wx/button.h"
#include "wx/menu.h"
+ #include "wx/settings.h"
#endif
#ifdef __DARWIN__
#endif
#include "wx/toplevel.h"
-#include "wx/settings.h"
#include "wx/filefn.h"
#include "wx/sysopt.h"
virtual bool SetupCursor( const wxPoint& pt )
{ return false ; }
-
+
virtual void Clear() ;
virtual bool CanUndo() const;
virtual void Undo() ;
const wxPoint& pos,
const wxSize& size, long style ) ;
~wxMacMLTEHIViewControl() ;
-
+
virtual OSStatus SetFocus( ControlFocusPart focusPart ) ;
virtual bool HasFocus() const ;
virtual void SetBackground( const wxBrush &brush) ;
OSStatus result = eventNotHandledErr ;
wxMacUnicodeTextControl* focus = (wxMacUnicodeTextControl*) data ;
wxMacCarbonEvent cEvent( event ) ;
-
+
switch ( GetEventKind( event ) )
{
case kEventControlSetFocusPart :
default:
break ;
}
-
+
return result ;
}
static pascal OSStatus wxMacUnicodeTextControlEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
{
OSStatus result = eventNotHandledErr ;
-
+
switch ( GetEventClass( event ) )
{
case kEventClassControl :
result = wxMacUnicodeTextControlControlEventHandler( handler , event , data ) ;
break ;
-
+
default :
break ;
}
verify_noerr( GetData<ControlEditTextSelectionRec>( 0, kControlEditTextSelectionTag, &sel ) ) ;
else
sel = m_selection ;
-
+
if ( from )
*from = sel.selStart ;
if ( to )
if ((from == -1) && (to == -1))
{
from = 0 ;
- to = textLength ;
+ to = textLength ;
}
else
{
| kTXNSupportSpellCheckCommandUpdating
| kTXNSupportFontCommandProcessing
| kTXNSupportFontCommandUpdating;
-
+
TXNSetCommandEventSupport( m_txn , options ) ;
}
}
if ( style.HasFont() )
{
const wxFont &font = style.GetFont() ;
-
+
#if 0 // old version
Str255 fontName = "\pMonaco" ;
SInt16 fontSize = 12 ;
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2
// tiger multi-line textcontrols with no CR in the entire content
-// don't scroll automatically, so we need a hack.
+// don't scroll automatically, so we need a hack.
// This attempt only works 'before' the key (ie before CallNextEventHandler)
// is processed, thus the scrolling always occurs one character too late, but
// better than nothing ...
{
{ kEventClassTextInput, kEventTextInputUnicodeForKeyEvent } ,
} ;
-
+
static pascal OSStatus wxMacUnicodeTextEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
{
OSStatus result = eventNotHandledErr ;
wxMacMLTEHIViewControl* focus = (wxMacMLTEHIViewControl*) data ;
-
+
switch ( GetEventKind( event ) )
{
case kEventTextInputUnicodeForKeyEvent :
default:
break ;
}
-
+
return result ;
}
static pascal OSStatus wxMacTextControlEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
{
OSStatus result = eventNotHandledErr ;
-
+
switch ( GetEventClass( event ) )
{
case kEventClassTextInput :
result = wxMacUnicodeTextEventHandler( handler , event , data ) ;
break ;
-
+
default :
break ;
}
#include "wx/button.h"
#include "wx/menu.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif
#include "wx/layout.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h"
-#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/tooltip.h"
#include "wx/statusbr.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/frame.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
-#include "wx/settings.h"
-
#include "wx/mac/uma.h"
// Lists to keep track of windows, so we can disable/enable them
#include "wx/dcclient.h"
#include "wx/menu.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/statusbr.h"
#include "wx/toolbar.h"
#include "wx/menuitem.h"
-#include "wx/settings.h"
#include "wx/mac/uma.h"
#ifndef WX_PRECOMP
#include "wx/frame.h"
#include "wx/log.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#include "wx/mac/uma.h"
// DLL options compatibility check:
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/button.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/toplevel.h"
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/menu.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#include "wx/mac/private.h"
#include "wx/mac/uma.h"
#include "wx/utils.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/settings.h"
#endif
#include "wx/notebook.h"
#include "wx/tabctrl.h"
-#include "wx/settings.h"
#include <stdio.h>
#include "wx/utils.h"
#include "wx/dc.h"
#include "wx/button.h"
+ #include "wx/settings.h"
#endif
#ifdef __DARWIN__
#include "wx/toplevel.h"
#include "wx/notebook.h"
#include "wx/tabctrl.h"
-#include "wx/settings.h"
#include "wx/filefn.h"
#if defined(__BORLANDC__) && !defined(__WIN32__)
#include "wx/button.h"
#include "wx/menu.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif
#include "wx/layout.h"
#include "wx/listbox.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h"
-#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
#include "wx/fontutil.h"
#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#include "wx/tokenzr.h"
-#include "wx/settings.h"
#include "wx/mgl/private.h"
// ----------------------------------------------------------------------------
#ifndef WX_PRECOMP
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
if (height) (*height) = 0;
};
}
-
-
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/evtloop.h"
#ifdef __VMS__
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/tokenzr.h"
#include "wx/stockitem.h"
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/utils.h" // for wxGetDisplay()
+ #include "wx/settings.h"
#endif
#include "wx/gdicmn.h"
#include "wx/fontutil.h" // for wxNativeFontInfo
#include "wx/tokenzr.h"
-#include "wx/settings.h"
#include "wx/motif/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
#include "wx/utils.h"
#include "wx/menu.h"
#include "wx/icon.h"
+ #include "wx/settings.h"
#endif
#include "wx/statusbr.h"
#include "wx/toolbar.h"
-#include "wx/settings.h"
#ifdef __VMS__
#pragma message disable nosimpint
#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
#ifdef __VMS
#define XtDisplay XTDISPLAY
#endif
-#include "wx/settings.h"
#include "wx/arrstr.h"
#ifdef __VMS__
#ifndef WX_PRECOMP
#include "wx/menu.h"
#include "wx/icon.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/frame.h"
+ #include "wx/settings.h"
#endif
#include "wx/menuitem.h"
-#include "wx/settings.h"
#ifdef __VMS__
#pragma message disable nosimpint
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/app.h"
+ #include "wx/settings.h"
#endif
#include "wx/motif/private.h"
-#include "wx/settings.h"
// ----------------------------------------------------------------------------
// macros
#ifndef WX_PRECOMP
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/filefn.h"
#ifdef __VMS__
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#include "wx/dcclient.h"
#include "wx/button.h"
#include "wx/menu.h"
+ #include "wx/settings.h"
#endif
#include "wx/layout.h"
-#include "wx/settings.h"
#include "wx/scrolwin.h"
#include "wx/module.h"
#include "wx/menuitem.h"
#include "wx/dcmemory.h"
#include "wx/menu.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/ownerdrw.h"
#include "wx/menuitem.h"
#include "wx/fontutil.h"
#include "wx/string.h"
#include "wx/window.h"
#include "wx/dc.h"
+ #include "wx/settings.h"
#endif //WX_PRECOMP
#include "wx/splitter.h"
#include "wx/renderer.h"
-#include "wx/settings.h"
#include "wx/msw/uxtheme.h"
#include "wx/msw/private.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
#include "wx/scrolbar.h"
#include "wx/msw/private.h"
-#include "wx/settings.h"
#if wxUSE_EXTENDED_RTTI
WX_DEFINE_FLAGS( wxScrollBarStyle )
#pragma hdrstop
#endif
+#include "wx/settings.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#endif
-#include "wx/settings.h"
-
#include "wx/msw/private.h"
#ifndef SPI_GETFLATMENU
SM_CXBORDER,
SM_CYBORDER,
#ifdef SM_CXCURSOR
- SM_CXCURSOR,
+ SM_CXCURSOR,
SM_CYCURSOR,
#else
- -1, -1,
+ -1, -1,
#endif
SM_CXDOUBLECLK,
SM_CYDOUBLECLK,
#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/settings.h"
#endif
#include "wx/msw/private.h"
#define wxUSE_COMCTL32_SAFELY 0
#include "wx/imaglist.h"
-#include "wx/settings.h"
#include "wx/msw/dragimag.h"
// macros to hide the cast ugliness
#include "wx/window.h"
#include "wx/dcmemory.h"
#include "wx/dcscreen.h"
+ #include "wx/settings.h"
#endif
#include "wx/colour.h"
#include "wx/bitmap.h"
#include "wx/listbox.h"
#include "wx/ownerdrw.h"
-#include "wx/settings.h"
#define INCL_PM
#include <os2.h>
#include "wx/dcmemory.h"
#include "wx/menu.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/ownerdrw.h"
#include "wx/menuitem.h"
: m_strName(rsStr)
{
m_bCheckable = bCheckable;
- m_bOwnerDrawn = FALSE;
+ m_bOwnerDrawn = false;
m_nHeight = 0;
m_nMarginWidth = ms_nLastMarginWidth;
if (wxNORMAL_FONT)
#include "wx/brush.h"
#include "wx/gdicmn.h"
#include "wx/window.h"
+ #include "wx/settings.h"
#endif
#include "wx/module.h"
-#include "wx/settings.h"
#include "wx/os2/private.h"
// the module which is used to clean up wxSystemSettings data (this is a
#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/settings.h"
#endif
#include "wx/os2/private.h"
#include "wx/imaglist.h"
-#include "wx/settings.h"
// a macro to hide the ugliness of nested casts
#define HITEM(item) (HTREEITEM)(WXHTREEITEM)(item)
#include "wx/dcmemory.h"
#include "wx/menu.h"
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/ownerdrw.h"
#include "wx/menuitem.h"
#include "wx/fontutil.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
#include "wx/scrolbar.h"
#include "wx/palmos/private.h"
-#include "wx/settings.h"
#if wxUSE_EXTENDED_RTTI
WX_DEFINE_FLAGS( wxScrollBarStyle )
#pragma hdrstop
#endif
+#include "wx/settings.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/gdicmn.h"
#endif
-#include "wx/settings.h"
#include "wx/module.h"
#include "wx/fontutil.h"
#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/settings.h"
#endif
#include "wx/palmos/private.h"
#include "wx/imaglist.h"
-#include "wx/settings.h"
// macros to hide the cast ugliness
// --------------------------------
#include "wx/wxprec.h"
#ifdef __BORLANDC__
- #pragma hdrstop
+ #pragma hdrstop
#endif
#if wxUSE_RICHTEXT
#include "wx/richtext/richtextctrl.h"
#ifndef WX_PRECOMP
- #include "wx/wx.h"
+ #include "wx/wx.h"
+ #include "wx/settings.h"
#endif
#include "wx/textfile.h"
#include "wx/ffile.h"
-#include "wx/settings.h"
#include "wx/filename.h"
#include "wx/dcbuffer.h"
#include "wx/arrimpl.cpp"
///////////////////////////////////////////////////////////////////////////////
-// Name: univ/colschem.cpp
+// Name: src/univ/colschem.cpp
// Purpose: (trivial) wxColourScheme implementation
// Author: Vadim Zeitlin
// Modified by:
#endif
#ifndef WX_PRECOMP
+ #include "wx/settings.h"
#endif // WX_PRECOMP
-#include "wx/settings.h"
-
#include "wx/univ/colschem.h"
#include "wx/univ/theme.h"
return wxTheme::Get()->GetColourScheme()->Get(col);
}
-
#include "wx/msw/private.h"
#endif
#include "wx/menu.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/spinbutt.h"
-#include "wx/settings.h"
#include "wx/artprov.h"
#include "wx/toplevel.h"
#include "wx/msw/private.h"
#endif
#include "wx/menu.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/spinbutt.h"
-#include "wx/settings.h"
#include "wx/artprov.h"
#include "wx/toplevel.h"
#include "wx/image.h"
} else
#endif // wxUSE_BMPBUTTON
#if wxUSE_BUTTON || wxUSE_TOGGLEBTN
- if ( 0
+ if ( 0
# if wxUSE_BUTTON
- || wxDynamicCast(window, wxButton)
+ || wxDynamicCast(window, wxButton)
# endif // wxUSE_BUTTON
# if wxUSE_TOGGLEBTN
- || wxDynamicCast(window, wxToggleButton)
+ || wxDynamicCast(window, wxToggleButton)
# endif // wxUSE_TOGGLEBTN
)
{
#ifndef WX_PRECOMP
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#include "wx/x11/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/utils.h" // for wxGetDisplay()
+ #include "wx/settings.h"
#endif
#include "wx/gdicmn.h"
#include "wx/fontutil.h" // for wxNativeFontInfo
#include "wx/tokenzr.h"
-#include "wx/settings.h"
#include "wx/x11/private.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#include "wx/x11/private.h"
#include "X11/Xatom.h"
#include "X11/Xutil.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: settings.cpp
+// Name: src/x11/settings.cpp
// Purpose: wxSettings
// Author: Julian Smart
// Modified by:
// Created: 17/09/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+// for compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
// TODO: these settings should probably be configurable from some central or
// per-user file, which can be edited using a Windows-control-panel clone.
// Also they should be documented better. Some are very MS Windows-ish.
#include "wx/settings.h"
+
#include "wx/gdicmn.h"
#include "wx/x11/private.h"
{
case wxSYS_COLOUR_APPWORKSPACE:
return wxColour( 0xc0c0c0 );
-
+
default:
break;
}
-
+
// Overridden mostly by wxSystemSettings::GetColour in wxUniversal
return *wxWHITE;
}
// Get a system metric, e.g. scrollbar size
int wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(win))
{
- switch ( index)
- {
+ switch ( index)
+ {
// TODO case wxSYS_MOUSE_BUTTONS:
// TODO case wxSYS_BORDER_X:
// TODO case wxSYS_BORDER_Y:
// TODO case wxSYS_ICONSPACING_Y:
// TODO case wxSYS_WINDOWMIN_X:
// TODO case wxSYS_WINDOWMIN_Y:
-
+
case wxSYS_SCREEN_X:
return DisplayWidth( wxGlobalDisplay(), 0 );
-
+
case wxSYS_SCREEN_Y:
return DisplayHeight( wxGlobalDisplay(), 0 );
-
+
// TODO case wxSYS_FRAMESIZE_X:
// TODO case wxSYS_FRAMESIZE_Y:
// TODO case wxSYS_SMALLICON_X:
// TODO case wxSYS_PENWINDOWS_PRESENT:
// TODO case wxSYS_SHOW_SOUNDS:
// TODO case wxSYS_SWAP_BUTTONS:
-
+
default:
return -1; // unsupported metric
}
{
switch (index)
{
- case wxSYS_CAN_ICONIZE_FRAME:
+ case wxSYS_CAN_ICONIZE_FRAME:
case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
- return TRUE;
-
+ return true;
+
default:
- return FALSE;
+ return false;
}
}
#include "wx/utils.h"
#include "wx/panel.h"
#include "wx/dcclient.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
#include "wx/clipbrd.h"
#include "wx/tokenzr.h"
#include "wx/frame.h"
#include "wx/menu.h"
#include "wx/statusbr.h"
+ #include "wx/settings.h"
#endif //WX_PRECOMP
-#include "wx/settings.h"
#include "wx/x11/private.h"
#include "X11/Xutil.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: src/x11/windows.cpp
+// Name: src/x11/window.cpp
// Purpose: wxWindow
// Author: Julian Smart
// Modified by:
#include "wx/menu.h"
#include "wx/dialog.h"
#include "wx/timer.h"
+ #include "wx/settings.h"
#endif
#include "wx/layout.h"
#include "wx/listbox.h"
-#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/scrolwin.h"
#include "wx/scrolbar.h"
#include "wx/panel.h"
#include "wx/frame.h"
#include "wx/dialog.h"
+ #include "wx/settings.h"
#endif
#ifndef __WXWINCE__
#include "wx/image.h"
#include "wx/fontmap.h"
#include "wx/artprov.h"
-#include "wx/settings.h"
#include "wx/xml/xml.h"