wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
#include "wx/app.h"
|
||||
#include "wx/apptrait.h"
|
||||
#include "wx/defs.h"
|
||||
#include "wx/object.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/timer.h"
|
||||
@@ -2301,4 +2300,3 @@ IMPLEMENT_DYNAMIC_CLASS(wxSocketModule, wxModule)
|
||||
|
||||
#endif
|
||||
// wxUSE_SOCKETS
|
||||
|
||||
|
@@ -1,21 +1,20 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: generic/imaglist.cpp
|
||||
// Name: src/mac/carbon/imaglist.cpp
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $id$
|
||||
// RCS_ID: $Id$
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#if wxUSE_IMAGLIST
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
#if wxUSE_IMAGLIST
|
||||
|
||||
#include "wx/imaglist.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/image.h"
|
||||
@@ -262,4 +261,3 @@ bool wxImageList::Draw(
|
||||
}
|
||||
|
||||
#endif // wxUSE_IMAGLIST
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: app.cpp
|
||||
// Name: src/mac/classic/app.cpp
|
||||
// Purpose: wxApp
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/frame.h"
|
||||
@@ -72,10 +76,10 @@ extern size_t g_numberOfThreads;
|
||||
|
||||
// statics for implementation
|
||||
|
||||
static bool s_inYield = FALSE;
|
||||
static bool s_inYield = false;
|
||||
|
||||
#if TARGET_CARBON
|
||||
static bool s_inReceiveEvent = FALSE ;
|
||||
static bool s_inReceiveEvent = false ;
|
||||
static EventTime sleepTime = kEventDurationNoWait ;
|
||||
#else
|
||||
static long sleepTime = 0 ;
|
||||
@@ -229,7 +233,7 @@ short wxApp::MacHandleAEQuit(const WXEVENTREF WXUNUSED(event) , WXEVENTREF WXUNU
|
||||
{
|
||||
wxCommandEvent exitEvent(wxEVT_COMMAND_MENU_SELECTED, s_macExitMenuItemId);
|
||||
if (!win->ProcessEvent(exitEvent))
|
||||
win->Close(TRUE ) ;
|
||||
win->Close(true) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -273,7 +277,7 @@ void wxApp::MacPrintFile(const wxString & fileName )
|
||||
if (printout)
|
||||
{
|
||||
wxPrinter printer;
|
||||
printer.Print(view->GetFrame(), printout, TRUE);
|
||||
printer.Print(view->GetFrame(), printout, true);
|
||||
delete printout;
|
||||
}
|
||||
}
|
||||
@@ -629,7 +633,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
|
||||
UMAShowArrowCursor() ;
|
||||
ParamText("\pFatal Error", message, (ConstStr255Param)"\p", (ConstStr255Param)"\p");
|
||||
itemHit = Alert(128, nil);
|
||||
return FALSE ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
#ifndef __DARWIN__
|
||||
@@ -735,7 +739,7 @@ bool wxApp::OnInitGui()
|
||||
#endif
|
||||
}
|
||||
|
||||
return TRUE ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
void wxApp::CleanUp()
|
||||
@@ -1070,7 +1074,7 @@ pascal OSStatus wxMacApplicationEventHandler( EventHandlerCallRef handler , Even
|
||||
wxApp::wxApp()
|
||||
{
|
||||
m_printMode = wxPRINT_WINDOWS;
|
||||
m_auto3D = TRUE;
|
||||
m_auto3D = true;
|
||||
|
||||
m_macCurrentEvent = NULL ;
|
||||
#if TARGET_CARBON
|
||||
@@ -1080,7 +1084,7 @@ wxApp::wxApp()
|
||||
|
||||
int wxApp::MainLoop()
|
||||
{
|
||||
m_keepGoing = TRUE;
|
||||
m_keepGoing = true;
|
||||
|
||||
while (m_keepGoing)
|
||||
{
|
||||
@@ -1092,7 +1096,7 @@ int wxApp::MainLoop()
|
||||
|
||||
void wxApp::ExitMainLoop()
|
||||
{
|
||||
m_keepGoing = FALSE;
|
||||
m_keepGoing = false;
|
||||
}
|
||||
|
||||
// Is a message/event pending?
|
||||
@@ -1145,7 +1149,7 @@ void wxApp::Exit()
|
||||
void wxApp::OnEndSession(wxCloseEvent& WXUNUSED(event))
|
||||
{
|
||||
if (GetTopWindow())
|
||||
GetTopWindow()->Close(TRUE);
|
||||
GetTopWindow()->Close(true);
|
||||
}
|
||||
|
||||
// Default behaviour: close the application with prompts. The
|
||||
@@ -1155,7 +1159,7 @@ void wxApp::OnQueryEndSession(wxCloseEvent& event)
|
||||
if (GetTopWindow())
|
||||
{
|
||||
if (!GetTopWindow()->Close(!event.CanVeto()))
|
||||
event.Veto(TRUE);
|
||||
event.Veto(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1176,10 +1180,10 @@ bool wxApp::Yield(bool onlyIfNeeded)
|
||||
wxFAIL_MSG( wxT("wxYield called recursively" ) );
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
s_inYield = TRUE;
|
||||
s_inYield = true;
|
||||
|
||||
#if wxUSE_THREADS
|
||||
YieldToAnyThread() ;
|
||||
@@ -1230,9 +1234,9 @@ bool wxApp::Yield(bool onlyIfNeeded)
|
||||
#endif
|
||||
|
||||
wxMacProcessNotifierAndPendingEvents() ;
|
||||
s_inYield = FALSE;
|
||||
s_inYield = false;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// platform specifics
|
||||
@@ -1508,7 +1512,7 @@ void wxApp::MacHandleHighLevelEvent( WXEVENTREF evr )
|
||||
{
|
||||
// we must avoid reentrancy problems when processing high level events eg printing
|
||||
bool former = s_inYield ;
|
||||
s_inYield = TRUE ;
|
||||
s_inYield = true ;
|
||||
EventRecord* ev = (EventRecord*) evr ;
|
||||
::AEProcessAppleEvent( ev ) ;
|
||||
s_inYield = former ;
|
||||
@@ -1973,7 +1977,7 @@ bool wxApp::MacSendKeyDownEvent( wxWindow* focus , long keymessage , long modifi
|
||||
}
|
||||
if (!handled)
|
||||
{
|
||||
event.Skip( FALSE ) ;
|
||||
event.Skip( false ) ;
|
||||
event.SetEventType( wxEVT_CHAR ) ;
|
||||
// raw value again
|
||||
event.m_keyCode = realkeyval ;
|
||||
@@ -2202,7 +2206,7 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
|
||||
bool controlDown = ev->modifiers & controlKey ; // for simulating right mouse
|
||||
|
||||
event.m_leftDown = isDown && !controlDown;
|
||||
event.m_middleDown = FALSE;
|
||||
event.m_middleDown = false;
|
||||
event.m_rightDown = isDown && controlDown;
|
||||
event.m_shiftDown = ev->modifiers & shiftKey;
|
||||
event.m_controlDown = ev->modifiers & controlKey;
|
||||
@@ -2303,7 +2307,7 @@ void wxApp::MacHandleMouseMovedEvent(wxInt32 x , wxInt32 y ,wxUint32 modifiers ,
|
||||
|
||||
event.m_leftDown = isDown && !controlDown;
|
||||
|
||||
event.m_middleDown = FALSE;
|
||||
event.m_middleDown = false;
|
||||
event.m_rightDown = isDown && controlDown;
|
||||
|
||||
event.m_shiftDown = modifiers & shiftKey;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: bitmap.cpp
|
||||
// Name: src/mac/classic/bitmap.cpp
|
||||
// Purpose: wxBitmap
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/icon.h"
|
||||
@@ -353,7 +357,7 @@ wxBitmapRefData::wxBitmapRefData()
|
||||
: m_width(0)
|
||||
, m_height(0)
|
||||
, m_depth(0)
|
||||
, m_ok(FALSE)
|
||||
, m_ok(false)
|
||||
, m_numColors(0)
|
||||
, m_quality(0)
|
||||
{
|
||||
@@ -508,12 +512,12 @@ wxBitmap::wxBitmap(const wxString& filename, wxBitmapType type)
|
||||
|
||||
bool wxBitmap::CreateFromXpm(const char **bits)
|
||||
{
|
||||
wxCHECK_MSG( bits != NULL, FALSE, wxT("invalid bitmap data") );
|
||||
wxCHECK_MSG( bits != NULL, false, wxT("invalid bitmap data") );
|
||||
wxXPMDecoder decoder;
|
||||
wxImage img = decoder.ReadData(bits);
|
||||
wxCHECK_MSG( img.Ok(), FALSE, wxT("invalid bitmap data") );
|
||||
wxCHECK_MSG( img.Ok(), false, wxT("invalid bitmap data") );
|
||||
*this = wxBitmap(img);
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxBitmap::wxBitmap(const char **bits)
|
||||
@@ -710,7 +714,7 @@ bool wxBitmap::Create(void *data, wxBitmapType type, int width, int height, int
|
||||
if ( handler == NULL ) {
|
||||
wxLogWarning(wxT("no bitmap handler for type %d defined."), type);
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
return handler->Create(this, data, type, width, height, depth);
|
||||
@@ -1162,7 +1166,7 @@ bool wxMask::Create(const wxBitmap& bitmap)
|
||||
UnlockPixels( GetGWorldPixMap( (GWorldPtr) m_maskBitmap) );
|
||||
UnlockPixels( GetGWorldPixMap( (GWorldPtr) bitmap.GetHBITMAP()) );
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Create a mask from a bitmap and a palette index indicating
|
||||
@@ -1171,7 +1175,7 @@ bool wxMask::Create(const wxBitmap& bitmap, int paletteIndex)
|
||||
{
|
||||
// TODO
|
||||
wxCHECK_MSG( 0, false, wxT("wxMask::Create not yet implemented"));
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Create a mask from a bitmap and a colour indicating
|
||||
@@ -1226,7 +1230,7 @@ bool wxMask::Create(const wxBitmap& bitmap, const wxColour& colour)
|
||||
UnlockPixels( GetGWorldPixMap( (GWorldPtr) bitmap.GetHBITMAP() ) ) ;
|
||||
SetGWorld( origPort , origDevice ) ;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxMask::PointMasked(int x, int y)
|
||||
@@ -1260,18 +1264,18 @@ wxBitmapHandler::~wxBitmapHandler()
|
||||
|
||||
bool wxBitmapHandler::Create(wxBitmap *bitmap, void *data, long type, int width, int height, int depth)
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxBitmapHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
|
||||
int desiredWidth, int desiredHeight)
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxBitmapHandler::SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette)
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1317,9 +1321,9 @@ bool wxPICTResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo
|
||||
M_BITMAPHANDLERDATA->m_numColors = theInfo.uniqueColors ;
|
||||
// M_BITMAPHANDLERDATA->m_bitmapPalette;
|
||||
// M_BITMAPHANDLERDATA->m_quality;
|
||||
return TRUE ;
|
||||
return true ;
|
||||
}
|
||||
return FALSE ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
void wxBitmap::InitStandardHandlers()
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: button.cpp
|
||||
// Name: src/mac/classic/button.cpp
|
||||
// Purpose: wxButton
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/button.h"
|
||||
#include "wx/panel.h"
|
||||
@@ -53,7 +57,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& lbl,
|
||||
|
||||
MacPostControlCreate() ;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxButton::SetDefault()
|
||||
@@ -128,4 +132,3 @@ void wxButton::MacHandleControlClick( WXWidget WXUNUSED(control) , wxInt16 contr
|
||||
ProcessCommand(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: checkbox.cpp
|
||||
// Name: src/mac/classic/checkbox.cpp
|
||||
// Purpose: wxCheckBox
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/checkbox.h"
|
||||
|
||||
@@ -44,7 +48,7 @@ bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
|
||||
MacPostControlCreate() ;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxCheckBox::SetValue(bool val)
|
||||
@@ -143,7 +147,7 @@ bool wxBitmapCheckBox::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
// TODO: Create the bitmap checkbox
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap)
|
||||
@@ -167,7 +171,5 @@ bool wxBitmapCheckBox::GetValue() const
|
||||
{
|
||||
// TODO
|
||||
wxFAIL_MSG(wxT("wxBitmapCheckBox::GetValue() not yet implemented"));
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: control.cpp
|
||||
// Name: src/mac/classic/control.cpp
|
||||
// Purpose: wxControl class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/control.h"
|
||||
#include "wx/panel.h"
|
||||
@@ -178,7 +182,7 @@ bool wxControl::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
wxControl::~wxControl()
|
||||
{
|
||||
m_isBeingDeleted = TRUE;
|
||||
m_isBeingDeleted = true;
|
||||
wxRemoveMacControlAssociation( this ) ;
|
||||
// If we delete an item, we should initialize the parent panel,
|
||||
// because it could now be invalid.
|
||||
@@ -512,7 +516,7 @@ void wxControl::MacSuperChangedPosition()
|
||||
|
||||
void wxControl::MacSuperEnabled( bool enabled )
|
||||
{
|
||||
Refresh(FALSE) ;
|
||||
Refresh(false) ;
|
||||
wxWindow::MacSuperEnabled( enabled ) ;
|
||||
}
|
||||
|
||||
@@ -569,7 +573,7 @@ void wxControl::DoSetSize(int x, int y,
|
||||
bool wxControl::Show(bool show)
|
||||
{
|
||||
if ( !wxWindow::Show( show ) )
|
||||
return FALSE ;
|
||||
return false ;
|
||||
|
||||
if ( (ControlHandle) m_macControl )
|
||||
{
|
||||
@@ -590,13 +594,13 @@ bool wxControl::Show(bool show)
|
||||
}
|
||||
}
|
||||
}
|
||||
return TRUE ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
bool wxControl::Enable(bool enable)
|
||||
{
|
||||
if ( !wxWindow::Enable(enable) )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if ( (ControlHandle) m_macControl )
|
||||
{
|
||||
@@ -605,7 +609,7 @@ bool wxControl::Enable(bool enable)
|
||||
else
|
||||
UMADeactivateControl( (ControlHandle) m_macControl ) ;
|
||||
}
|
||||
return TRUE ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
void wxControl::Refresh(bool eraseBack, const wxRect *rect)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: cursor.cpp
|
||||
// Name: src/mac/classic/cursor.cpp
|
||||
// Purpose: wxCursor class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/app.h"
|
||||
#include "wx/cursor.h"
|
||||
@@ -94,12 +98,12 @@ wxCursor::wxCursor(char **bits)
|
||||
|
||||
bool wxCursor::CreateFromXpm(const char **bits)
|
||||
{
|
||||
wxCHECK_MSG( bits != NULL, FALSE, wxT("invalid cursor data") );
|
||||
wxCHECK_MSG( bits != NULL, false, wxT("invalid cursor data") );
|
||||
wxXPMDecoder decoder;
|
||||
wxImage img = decoder.ReadData(bits);
|
||||
wxCHECK_MSG( img.Ok(), FALSE, wxT("invalid cursor data") );
|
||||
wxCHECK_MSG( img.Ok(), false, wxT("invalid cursor data") );
|
||||
CreateFromImage( img ) ;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
short GetCTabIndex( CTabHandle colors , RGBColor *col )
|
||||
@@ -514,5 +518,3 @@ void wxSetCursor(const wxCursor& cursor)
|
||||
{
|
||||
cursor.MacInstall() ;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: mac/dataobj.cpp
|
||||
// Name: src/mac/classic/dataobj.cpp
|
||||
// Purpose: implementation of wxDataObject class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,6 +9,12 @@
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
// ============================================================================
|
||||
// declarations
|
||||
// ============================================================================
|
||||
@@ -17,13 +23,9 @@
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
#include "wx/defs.h"
|
||||
|
||||
#include "wx/log.h"
|
||||
#include "wx/dataobj.h"
|
||||
@@ -166,9 +168,7 @@ bool wxDataObject::IsSupportedFormat(
|
||||
// wxFileDataObject
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxFileDataObject::GetDataHere(
|
||||
void* pBuf
|
||||
) const
|
||||
bool wxFileDataObject::GetDataHere( void* pBuf ) const
|
||||
{
|
||||
wxString sFilenames;
|
||||
|
||||
@@ -179,7 +179,7 @@ bool wxFileDataObject::GetDataHere(
|
||||
}
|
||||
|
||||
memcpy(pBuf, sFilenames.mbc_str(), sFilenames.Len() + 1);
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
size_t wxFileDataObject::GetDataSize() const
|
||||
@@ -204,7 +204,7 @@ bool wxFileDataObject::SetData(
|
||||
|
||||
AddFile(wxString::FromAscii((char*)pBuf));
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxFileDataObject::AddFile(
|
||||
@@ -267,17 +267,15 @@ void wxBitmapDataObject::Clear()
|
||||
m_pictHandle = NULL ;
|
||||
}
|
||||
|
||||
bool wxBitmapDataObject::GetDataHere(
|
||||
void* pBuf
|
||||
) const
|
||||
bool wxBitmapDataObject::GetDataHere( void* pBuf ) const
|
||||
{
|
||||
if (!m_pictHandle)
|
||||
{
|
||||
wxFAIL_MSG(wxT("attempt to copy empty bitmap failed"));
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
memcpy(pBuf, *(Handle)m_pictHandle, GetHandleSize((Handle)m_pictHandle));
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
size_t wxBitmapDataObject::GetDataSize() const
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dirdlg.cpp
|
||||
// Name: src/mac/classic/dirdlg.cpp
|
||||
// Purpose: wxDirDialog
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,12 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/dirdlg.h"
|
||||
@@ -86,7 +91,7 @@ int wxDirDialog::ShowModal()
|
||||
0L); // User Data
|
||||
|
||||
if ( (err != noErr) && (err != userCanceledErr) ) {
|
||||
m_path = wxT("") ;
|
||||
m_path = wxEmptyString ;
|
||||
return wxID_CANCEL ;
|
||||
}
|
||||
|
||||
@@ -98,7 +103,7 @@ int wxDirDialog::ShowModal()
|
||||
|
||||
OSErr err = ::AECoerceDesc( &mNavReply.selection , typeFSS, &specDesc);
|
||||
if ( err != noErr ) {
|
||||
m_path = wxT("") ;
|
||||
m_path = wxEmptyString ;
|
||||
return wxID_CANCEL ;
|
||||
}
|
||||
folderInfo = **(FSSpec**) specDesc.dataHandle;
|
||||
@@ -124,7 +129,7 @@ int wxDirDialog::ShowModal()
|
||||
|
||||
err = ::PBGetCatInfoSync(&thePB);
|
||||
if ( err != noErr ) {
|
||||
m_path = wxT("") ;
|
||||
m_path = wxEmptyString;
|
||||
return wxID_CANCEL ;
|
||||
}
|
||||
// Create cannonical FSSpec
|
||||
@@ -137,4 +142,3 @@ int wxDirDialog::ShowModal()
|
||||
}
|
||||
return wxID_CANCEL;
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dnd.cpp
|
||||
// Name: src/mac/classic/dnd.cpp
|
||||
// Purpose: wxDropTarget, wxDropSource, wxDataObject implementation
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
|
||||
@@ -56,7 +60,7 @@ wxDragResult wxDropTarget::OnDragOver( wxCoord WXUNUSED(x),
|
||||
bool wxDropTarget::OnDrop( wxCoord WXUNUSED(x), wxCoord WXUNUSED(y) )
|
||||
{
|
||||
if (!m_dataObject)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
return CurrentDragHasSupportedFormat() ;
|
||||
}
|
||||
@@ -126,10 +130,10 @@ bool wxDropTarget::CurrentDragHasSupportedFormat()
|
||||
bool wxDropTarget::GetData()
|
||||
{
|
||||
if (!m_dataObject)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if ( !CurrentDragHasSupportedFormat() )
|
||||
return FALSE ;
|
||||
return false ;
|
||||
|
||||
bool transferred = false ;
|
||||
if ( gTrackingGlobals.m_currentSource != NULL )
|
||||
@@ -228,7 +232,7 @@ bool wxDropTarget::GetData()
|
||||
}
|
||||
}
|
||||
}
|
||||
return TRUE ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@@ -388,11 +392,11 @@ bool wxDropSource::MacInstallDefaultCursor(wxDragResult effect)
|
||||
{
|
||||
cursor.MacInstall() ;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: filedlg.cpp
|
||||
// Name: src/mac/classic/filedlg.cpp
|
||||
// Purpose: wxFileDialog
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,12 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
@@ -183,7 +188,7 @@ void MakeUserDataRec(OpenUserDataRec *myData , const wxString& filter )
|
||||
// an explanatory text, in that case the first part is name and extension at the same time
|
||||
|
||||
wxASSERT_MSG( filterIndex == 0 || !isName , wxT("incorrect format of format string") ) ;
|
||||
if ( current.IsEmpty() )
|
||||
if ( current.empty() )
|
||||
myData->extensions.Add( myData->name[filterIndex] ) ;
|
||||
else
|
||||
myData->extensions.Add( current.MakeUpper() ) ;
|
||||
@@ -615,7 +620,7 @@ int wxFileDialog::ShowModal()
|
||||
OSErr err = ::AEGetNthDesc( &mNavReply.selection , i , typeFSS, &keyWord , &specDesc);
|
||||
if ( err != noErr )
|
||||
{
|
||||
m_path = wxT("") ;
|
||||
m_path = wxEmptyString ;
|
||||
return wxID_CANCEL ;
|
||||
}
|
||||
outFileSpec = **(FSSpec**) specDesc.dataHandle;
|
||||
@@ -638,4 +643,3 @@ int wxFileDialog::ShowModal()
|
||||
return wxID_CANCEL;
|
||||
#endif // TARGET_CARBON
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: font.cpp
|
||||
// Name: src/mac/classic/font.cpp
|
||||
// Purpose: wxFont class
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,12 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/string.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/fontutil.h"
|
||||
@@ -33,7 +38,7 @@ public:
|
||||
, m_family(wxDEFAULT)
|
||||
, m_style(wxNORMAL)
|
||||
, m_weight(wxNORMAL)
|
||||
, m_underlined(FALSE)
|
||||
, m_underlined(false)
|
||||
, m_faceName(wxT("Geneva"))
|
||||
, m_encoding(wxFONTENCODING_DEFAULT)
|
||||
, m_macFontNum(0)
|
||||
@@ -41,7 +46,7 @@ public:
|
||||
, m_macFontStyle(0)
|
||||
, m_macATSUFontID()
|
||||
{
|
||||
Init(10, wxDEFAULT, wxNORMAL, wxNORMAL, FALSE,
|
||||
Init(10, wxDEFAULT, wxNORMAL, wxNORMAL, false,
|
||||
wxT("Geneva"), wxFONTENCODING_DEFAULT);
|
||||
}
|
||||
|
||||
@@ -88,7 +93,7 @@ public:
|
||||
}
|
||||
|
||||
virtual ~wxFontRefData();
|
||||
void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; }
|
||||
void SetNoAntiAliasing( bool no = true ) { m_noAA = no; }
|
||||
bool GetNoAntiAliasing() const { return m_noAA; }
|
||||
|
||||
protected:
|
||||
@@ -152,7 +157,7 @@ void wxFontRefData::Init(int pointSize,
|
||||
m_macFontSize = 0;
|
||||
m_macFontStyle = 0;
|
||||
m_fontId = 0;
|
||||
m_noAA = FALSE;
|
||||
m_noAA = false;
|
||||
}
|
||||
|
||||
wxFontRefData::~wxFontRefData()
|
||||
@@ -257,7 +262,7 @@ bool wxFont::Create(int pointSize,
|
||||
|
||||
RealizeResource();
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxFont::~wxFont()
|
||||
@@ -267,7 +272,7 @@ wxFont::~wxFont()
|
||||
bool wxFont::RealizeResource()
|
||||
{
|
||||
M_FONTDATA->MacFindFont() ;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxFont::SetEncoding(wxFontEncoding encoding)
|
||||
@@ -434,4 +439,3 @@ const wxNativeFontInfo *wxFont::GetNativeFontInfo() const
|
||||
|
||||
return &(M_FONTDATA->m_info);
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: mac/mimetype.cpp
|
||||
// Name: src/mac/classic/mimetype.cpp
|
||||
// Purpose: classes and functions to manage MIME types
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
@@ -16,10 +16,6 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/defs.h"
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/string.h"
|
||||
#if wxUSE_GUI
|
||||
|
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_PALETTE
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: printwin.cpp
|
||||
// Name: src/mac/classic/printwin.cpp
|
||||
// Purpose: wxMacPrinter framework
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -13,16 +13,14 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
@@ -479,7 +477,7 @@ int wxMacClassicPrintData::ShowPrintDialog()
|
||||
else
|
||||
{
|
||||
message.Printf( wxT("Print Error %d"), err ) ;
|
||||
wxMessageDialog dialog( NULL , message , wxT(""), wxICON_HAND | wxOK) ;
|
||||
wxMessageDialog dialog( NULL , message , wxEmptyString, wxICON_HAND | wxOK) ;
|
||||
dialog.ShowModal();
|
||||
}
|
||||
::UMAPrClose() ;
|
||||
@@ -529,13 +527,13 @@ wxMacPrinter::~wxMacPrinter(void)
|
||||
|
||||
bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
||||
{
|
||||
sm_abortIt = FALSE;
|
||||
sm_abortIt = false;
|
||||
sm_abortWindow = NULL;
|
||||
|
||||
if (!printout)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
printout->SetIsPreview(FALSE);
|
||||
printout->SetIsPreview(false);
|
||||
if (m_printDialogData.GetMinPage() < 1)
|
||||
m_printDialogData.SetMinPage(1);
|
||||
if (m_printDialogData.GetMaxPage() < 1)
|
||||
@@ -562,7 +560,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
||||
if (!dc || !dc->Ok())
|
||||
{
|
||||
if (dc) delete dc;
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// on the mac we have always pixels as addressing mode with 72 dpi
|
||||
@@ -593,7 +591,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
||||
if (maxPage == 0)
|
||||
{
|
||||
wxEndBusyCursor();
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Only set min and max, because from and to have been
|
||||
@@ -609,15 +607,15 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
||||
wxEndBusyCursor();
|
||||
wxMessageBox(wxT("Sorry, could not create an abort dialog."), wxT("Print Error"), wxOK, parent);
|
||||
delete dc;
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
sm_abortWindow = win;
|
||||
sm_abortWindow->Show(TRUE);
|
||||
sm_abortWindow->Show(true);
|
||||
wxSafeYield(win,true);
|
||||
|
||||
printout->OnBeginPrinting();
|
||||
|
||||
bool keepGoing = TRUE;
|
||||
bool keepGoing = true;
|
||||
|
||||
int copyCount;
|
||||
for (copyCount = 1; copyCount <= m_printDialogData.GetNoCopies(); copyCount ++)
|
||||
@@ -637,7 +635,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
||||
{
|
||||
if (sm_abortIt)
|
||||
{
|
||||
keepGoing = FALSE;
|
||||
keepGoing = false;
|
||||
break;
|
||||
}
|
||||
else
|
||||
@@ -663,7 +661,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
||||
|
||||
if (sm_abortWindow)
|
||||
{
|
||||
sm_abortWindow->Show(FALSE);
|
||||
sm_abortWindow->Show(false);
|
||||
delete sm_abortWindow;
|
||||
sm_abortWindow = NULL;
|
||||
}
|
||||
@@ -672,7 +670,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
||||
|
||||
delete dc;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxDC* wxMacPrinter::PrintDialog(wxWindow *parent)
|
||||
@@ -695,7 +693,7 @@ bool wxMacPrinter::Setup(wxWindow *parent)
|
||||
{
|
||||
#if 0
|
||||
wxPrintDialog dialog(parent, & m_printDialogData);
|
||||
dialog.GetPrintDialogData().SetSetupDialog(TRUE);
|
||||
dialog.GetPrintDialogData().SetSetupDialog(true);
|
||||
|
||||
int ret = dialog.ShowModal();
|
||||
|
||||
@@ -734,7 +732,7 @@ wxMacPrintPreview::~wxMacPrintPreview(void)
|
||||
bool wxMacPrintPreview::Print(bool interactive)
|
||||
{
|
||||
if (!m_printPrintout)
|
||||
return FALSE;
|
||||
return false;
|
||||
wxMacPrinter printer(&m_printDialogData);
|
||||
return printer.Print(m_previewFrame, m_printPrintout, interactive);
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: radiobut.cpp
|
||||
// Name: src/mac/classic/radiobut.cpp
|
||||
// Purpose: wxRadioButton
|
||||
// Author: AUTHOR
|
||||
// Modified by: JS Lair (99/11/15) adding the cyclic groupe notion for radiobox
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/radiobut.h"
|
||||
|
||||
@@ -60,7 +64,7 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
|
||||
}
|
||||
AddInCycle( chief ) ;
|
||||
}
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxRadioButton::SetValue(bool val)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: scrolbar.cpp
|
||||
// Name: src/mac/classic/scrolbar.cpp
|
||||
// Purpose: wxScrollBar
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
@@ -34,7 +38,7 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxString& name)
|
||||
{
|
||||
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
Rect bounds ;
|
||||
Str255 title ;
|
||||
@@ -51,7 +55,7 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
MacPostControlCreate() ;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxScrollBar::~wxScrollBar()
|
||||
@@ -174,4 +178,3 @@ void wxScrollBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart
|
||||
else
|
||||
GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: slider.cpp
|
||||
// Name: src/mac/classic/slider.cpp
|
||||
// Purpose: wxSlider
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_SLIDER
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: spinbutt.cpp
|
||||
// Name: src/mac/classic/spinbutt.cpp
|
||||
// Purpose: wxSpinButton
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_SPINBTN
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: spinbutt.cpp
|
||||
// Name: src/mac/classic/spinbutt.cpp
|
||||
// Purpose: wxSpinCtrl
|
||||
// Author: Robert
|
||||
// Modified by: Mark Newsam (Based on GTK file)
|
||||
@@ -8,14 +8,18 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/textctrl.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
#include "wx/spinbutt.h"
|
||||
#include "wx/spinctrl.h"
|
||||
|
||||
@@ -58,7 +62,7 @@ protected:
|
||||
{
|
||||
// Hand button down events to wxSpinCtrl. Doesn't work.
|
||||
if (event.GetEventType() == wxEVT_LEFT_DOWN && m_spin->ProcessEvent( event ))
|
||||
return TRUE;
|
||||
return true;
|
||||
|
||||
return wxTextCtrl::ProcessEvent( event );
|
||||
}
|
||||
@@ -145,7 +149,7 @@ bool wxSpinCtrl::Create(wxWindow *parent,
|
||||
if ( !wxControl::Create(parent, id, wxDefaultPosition, wxDefaultSize, style,
|
||||
wxDefaultValidator, name) )
|
||||
{
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// the string value overrides the numeric one (for backwards compatibility
|
||||
@@ -171,7 +175,7 @@ bool wxSpinCtrl::Create(wxWindow *parent,
|
||||
}
|
||||
DoSetSize(pos.x , pos.y , csize.x, csize.y);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxSpinCtrl::~wxSpinCtrl()
|
||||
@@ -216,15 +220,15 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height)
|
||||
bool wxSpinCtrl::Enable(bool enable)
|
||||
{
|
||||
if ( !wxControl::Enable(enable) )
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxSpinCtrl::Show(bool show)
|
||||
{
|
||||
if ( !wxControl::Show(show) )
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -237,18 +241,18 @@ bool wxSpinCtrl::GetTextValue(int *val) const
|
||||
if ( !m_text->GetValue().ToLong(&l) )
|
||||
{
|
||||
// not a number at all
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( l < GetMin() || l > GetMax() )
|
||||
{
|
||||
// out of range
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
*val = l;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxSpinCtrl::GetValue() const
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: statbmp.cpp
|
||||
// Name: src/mac/classic/statbmp.cpp
|
||||
// Purpose: wxStaticBitmap
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/statbmp.h"
|
||||
#include "wx/dcclient.h"
|
||||
@@ -71,11 +75,10 @@ void wxStaticBitmap::OnPaint( wxPaintEvent& WXUNUSED(event) )
|
||||
wxPaintDC dc(this);
|
||||
PrepareDC(dc);
|
||||
|
||||
dc.DrawBitmap( m_bitmap , 0 , 0 , TRUE ) ;
|
||||
dc.DrawBitmap( m_bitmap , 0 , 0 , true ) ;
|
||||
}
|
||||
|
||||
wxSize wxStaticBitmap::DoGetBestSize() const
|
||||
{
|
||||
return wxWindow::DoGetBestSize() ;
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: statbox.cpp
|
||||
// Name: src/mac/classic/statbox.cpp
|
||||
// Purpose: wxStaticBox
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/statbox.h"
|
||||
#include "wx/mac/uma.h"
|
||||
@@ -45,5 +49,5 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
MacPostControlCreate() ;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: tabctrl.cpp
|
||||
// Name: src/mac/classic/tabctrl.cpp
|
||||
// Purpose: wxTabCtrl
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_TAB_DIALOG
|
||||
|
||||
@@ -45,7 +49,7 @@ bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, cons
|
||||
kControlTabSmallProc , (long) this ) ;
|
||||
|
||||
MacPostControlCreate() ;
|
||||
return TRUE ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
wxTabCtrl::~wxTabCtrl()
|
||||
@@ -60,14 +64,14 @@ void wxTabCtrl::Command(wxCommandEvent& event)
|
||||
bool wxTabCtrl::DeleteAllItems()
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Delete an item
|
||||
bool wxTabCtrl::DeleteItem(int item)
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the selection
|
||||
@@ -101,7 +105,7 @@ int wxTabCtrl::GetItemCount() const
|
||||
bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the number of rows
|
||||
@@ -143,7 +147,7 @@ int wxTabCtrl::HitTest(const wxPoint& pt, long& flags)
|
||||
bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data)
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set the selection
|
||||
@@ -163,21 +167,21 @@ void wxTabCtrl::SetImageList(wxImageList* imageList)
|
||||
bool wxTabCtrl::SetItemText(int item, const wxString& text)
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set the image for an item
|
||||
bool wxTabCtrl::SetItemImage(int item, int image)
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set the data for an item
|
||||
bool wxTabCtrl::SetItemData(int item, void* data)
|
||||
{
|
||||
// TODO
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set the size for a fixed-width tab control
|
||||
|
@@ -9,7 +9,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_TEXTCTRL
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: src/mac/tglbtn.cpp
|
||||
// Name: src/mac/classic/tglbtn.cpp
|
||||
// Purpose: Definition of the wxToggleButton class, which implements a
|
||||
// toggle button under wxMac.
|
||||
// Author: Stefan Csomor
|
||||
@@ -10,6 +10,12 @@
|
||||
// License: Rocketeer license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
// ============================================================================
|
||||
// declatations
|
||||
// ============================================================================
|
||||
@@ -18,7 +24,6 @@
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/tglbtn.h"
|
||||
|
||||
#if wxUSE_TOGGLEBTN
|
||||
@@ -72,7 +77,7 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
MacPostControlCreate() ;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxSize wxToggleButton::DoGetBestSize() const
|
||||
@@ -120,4 +125,3 @@ void wxToggleButton::MacHandleControlClick( WXWidget WXUNUSED(control) , wxInt16
|
||||
}
|
||||
|
||||
#endif // wxUSE_TOGGLEBTN
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: tooltip.cpp
|
||||
// Name: src/mac/classic/tooltip.cpp
|
||||
// Purpose: wxToolTip implementation
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -7,7 +7,11 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
|
||||
@@ -401,4 +405,3 @@ void wxMacToolTip::Clear()
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -9,7 +9,11 @@
|
||||
// Licence: The wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_GUI
|
||||
|
||||
|
Reference in New Issue
Block a user