Include wx/utils.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/hash.h"
|
||||
#include "wx/utils.h"
|
||||
#endif // PCH
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
@@ -162,7 +163,6 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding,
|
||||
#pragma message enable nosimpint
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h" // for wxGetDisplay()
|
||||
#elif defined(__WXGTK__)
|
||||
// we have to declare struct tm to avoid problems with first forward
|
||||
// declaring it in C code (glib.h included from gdk.h does it) and then
|
||||
|
@@ -10,12 +10,13 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/settings.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "wx/cocoa/autorelease.h"
|
||||
|
||||
|
@@ -12,15 +12,15 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#endif
|
||||
#include "wx/unix/execute.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/unix/execute.h"
|
||||
|
||||
#if 0
|
||||
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "wx/process.h"
|
||||
#include "wx/stream.h"
|
||||
|
||||
@@ -187,4 +187,3 @@ long wxExecute(const wxString& command,
|
||||
}
|
||||
}
|
||||
#endif //0
|
||||
|
||||
|
@@ -29,9 +29,9 @@
|
||||
#include "wx/app.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/apptrait.h"
|
||||
#include "wx/cmdline.h"
|
||||
#include "wx/confbase.h"
|
||||
|
@@ -33,6 +33,7 @@
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/confbase.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/apptrait.h"
|
||||
@@ -40,7 +41,6 @@
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/msgout.h"
|
||||
#include "wx/thread.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/ptr_scpd.h"
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
|
@@ -25,9 +25,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/palette.h"
|
||||
#include "wx/icon.h"
|
||||
#include "wx/image.h"
|
||||
|
@@ -30,6 +30,7 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/arrstr.h"
|
||||
@@ -37,7 +38,6 @@
|
||||
#if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || wxUSE_CONFIG_NATIVE)
|
||||
|
||||
#include "wx/file.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/math.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@@ -35,10 +35,10 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/filename.h" // for SplitPath()
|
||||
#include "wx/apptrait.h"
|
||||
|
||||
|
@@ -29,10 +29,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/list.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#if wxUSE_GUI
|
||||
#include "wx/control.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/textctrl.h"
|
||||
#endif // wxUSE_GUI
|
||||
|
@@ -29,6 +29,7 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h" // for wxGetHomeDir
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/file.h"
|
||||
@@ -42,7 +43,6 @@
|
||||
#include "wx/stream.h"
|
||||
#endif // wxUSE_STREAMS
|
||||
|
||||
#include "wx/utils.h" // for wxGetHomeDir
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
#include "wx/mac/private.h" // includes mac headers
|
||||
|
@@ -27,9 +27,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/file.h" // This does include filefn.h
|
||||
#include "wx/filename.h"
|
||||
#include "wx/dir.h"
|
||||
|
@@ -72,12 +72,12 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/file.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/filename.h"
|
||||
#include "wx/tokenzr.h"
|
||||
#include "wx/config.h" // for wxExpandEnvVars
|
||||
#include "wx/utils.h"
|
||||
#include "wx/file.h"
|
||||
#include "wx/dynlib.h"
|
||||
|
||||
|
@@ -26,6 +26,7 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/brush.h"
|
||||
@@ -36,7 +37,6 @@
|
||||
#include "wx/font.h"
|
||||
#include "wx/palette.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/hashmap.h"
|
||||
|
||||
|
@@ -20,6 +20,7 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/hash.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
@@ -29,7 +30,6 @@
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/math.h"
|
||||
|
||||
#if wxUSE_XPM
|
||||
|
@@ -74,11 +74,11 @@ license is as follows:
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/imagxpm.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/xpmdecod.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxXPMHandler,wxImageHandler)
|
||||
|
@@ -33,6 +33,7 @@
|
||||
#include "wx/arrstr.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/utils.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#include "wx/apptrait.h"
|
||||
@@ -40,7 +41,6 @@
|
||||
#include "wx/msgout.h"
|
||||
#include "wx/textfile.h"
|
||||
#include "wx/thread.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/wxchar.h"
|
||||
|
||||
// other standard headers
|
||||
|
@@ -21,10 +21,10 @@
|
||||
#include "wx/string.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/math.h"
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/sizer.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/statbox.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/listimpl.cpp"
|
||||
|
@@ -31,11 +31,11 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/apptrait.h"
|
||||
#include "wx/timer.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
#include "wx/sckaddr.h"
|
||||
|
@@ -28,9 +28,8 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h" // for wxStripMenuCodes()
|
||||
#endif
|
||||
|
||||
bool wxIsStockID(wxWindowID id)
|
||||
{
|
||||
|
@@ -18,6 +18,7 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/strconv.h"
|
||||
@@ -52,7 +53,6 @@
|
||||
|
||||
#include "wx/encconv.h"
|
||||
#include "wx/fontmap.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#ifdef __WXMAC__
|
||||
#ifndef __DARWIN__
|
||||
|
@@ -23,9 +23,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/list.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
#include <string.h>
|
||||
|
@@ -102,11 +102,11 @@ license is as follows:
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/stream.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/hashmap.h"
|
||||
#include <string.h>
|
||||
|
||||
|
@@ -19,13 +19,13 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/zipstrm.h"
|
||||
#include "wx/datstrm.h"
|
||||
#include "wx/zstream.h"
|
||||
#include "wx/mstream.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/buffer.h"
|
||||
#include "wx/ptr_scpd.h"
|
||||
#include "wx/wfstream.h"
|
||||
|
@@ -23,9 +23,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
|
||||
// normally, the compiler options should contain -I../zlib, but it is
|
||||
// apparently not the case for all MSW makefiles and so, unless we use
|
||||
|
@@ -23,10 +23,10 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/prntbase.h"
|
||||
#include "wx/generic/prntdlgg.h"
|
||||
|
@@ -24,10 +24,10 @@
|
||||
#include "wx/hash.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/module.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/msgdlg.h"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: generic/region.cpp
|
||||
// Name: src/generic/region.cpp
|
||||
// Purpose: generic wxRegion class
|
||||
// Author: David Elliott
|
||||
// Modified by:
|
||||
@@ -9,8 +9,19 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/generic/region.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
// ========================================================================
|
||||
// Classes to interface with X.org code
|
||||
@@ -1953,4 +1964,3 @@ XRectInRegion(
|
||||
return(partIn ? ((ry < prect->y2) ? wxPartRegion : wxInRegion) :
|
||||
wxOutRegion);
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: generic/scrolwin.cpp
|
||||
// Name: src/generic/scrolwin.cpp
|
||||
// Purpose: wxScrolledWindow implementation
|
||||
// Author: Julian Smart
|
||||
// Modified by: Vadim Zeitlin on 31.08.00: wxScrollHelper allows to implement.
|
||||
@@ -29,10 +29,14 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/scrolwin.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcclient.h"
|
||||
|
||||
#include "wx/scrolwin.h"
|
||||
#include "wx/panel.h"
|
||||
#if wxUSE_TIMER
|
||||
#include "wx/timer.h"
|
||||
@@ -1339,4 +1343,3 @@ WXLRESULT wxScrolledWindow::MSWWindowProc(WXUINT nMsg,
|
||||
}
|
||||
|
||||
#endif // __WXMSW__
|
||||
|
||||
|
@@ -21,10 +21,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/memory.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/settings.h"
|
||||
@@ -95,7 +95,7 @@ FORCE_LINK(gnome_vfs)
|
||||
// global data
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
bool g_mainThreadLocked = FALSE;
|
||||
bool g_mainThreadLocked = false;
|
||||
gint g_pendingTag = 0;
|
||||
|
||||
static GtkWidget *gs_RootWindow = (GtkWidget*) NULL;
|
||||
@@ -355,7 +355,7 @@ static gint wxapp_poll_func( GPollFD *ufds, guint nfds, gint timeout )
|
||||
gint res = wxPoll( (wxPollFd *) ufds, nfds, timeout );
|
||||
|
||||
wxMutexGuiEnter();
|
||||
g_mainThreadLocked = FALSE;
|
||||
g_mainThreadLocked = false;
|
||||
|
||||
gdk_threads_leave();
|
||||
|
||||
@@ -384,7 +384,7 @@ void wxapp_install_idle_handler()
|
||||
|
||||
wxASSERT_MSG( wxTheApp->m_idleTag == 0, wxT("attempt to install idle handler twice") );
|
||||
|
||||
g_isIdle = FALSE;
|
||||
g_isIdle = false;
|
||||
|
||||
if (g_pendingTag == 0)
|
||||
g_pendingTag = g_idle_add_full( 900, wxapp_pending_callback, NULL, NULL );
|
||||
@@ -424,7 +424,7 @@ END_EVENT_TABLE()
|
||||
wxApp::wxApp()
|
||||
{
|
||||
#ifdef __WXDEBUG__
|
||||
m_isInAssert = FALSE;
|
||||
m_isInAssert = false;
|
||||
#endif // __WXDEBUG__
|
||||
|
||||
m_idleTag = 0;
|
||||
@@ -454,7 +454,7 @@ wxApp::~wxApp()
|
||||
bool wxApp::OnInitGui()
|
||||
{
|
||||
if ( !wxAppBase::OnInitGui() )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
GdkVisual *visual = gdk_visual_get_system();
|
||||
|
||||
@@ -688,7 +688,7 @@ void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxC
|
||||
|
||||
wxAppBase::OnAssert(file, line, cond, msg);
|
||||
|
||||
m_isInAssert = FALSE;
|
||||
m_isInAssert = false;
|
||||
}
|
||||
|
||||
#endif // __WXDEBUG__
|
||||
|
@@ -16,10 +16,10 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dataobj.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
@@ -87,7 +87,7 @@ targets_selection_received( GtkWidget *WXUNUSED(widget),
|
||||
wxLogTrace( TRACE_CLIPBOARD,
|
||||
_T("got unsupported clipboard target") );
|
||||
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -123,7 +123,7 @@ targets_selection_received( GtkWidget *WXUNUSED(widget),
|
||||
}
|
||||
}
|
||||
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
{
|
||||
if (!wxTheClipboard)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -148,13 +148,13 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
|
||||
if (!data_object)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (selection_data->length <= 0)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
// make sure we got the data in the correct format
|
||||
if (!data_object->IsSupportedFormat( format ) )
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
// if so, copy data to target object
|
||||
if (selection_data->type != GDK_SELECTION_TYPE_STRING)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
@@ -181,7 +181,7 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
data_object->SetData( format, (size_t) selection_data->length, (const char*) selection_data->data );
|
||||
|
||||
wxTheClipboard->m_formatSupported = true;
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,11 +320,11 @@ IMPLEMENT_DYNAMIC_CLASS(wxClipboard,wxObject)
|
||||
|
||||
wxClipboard::wxClipboard()
|
||||
{
|
||||
m_open = FALSE;
|
||||
m_waiting = FALSE;
|
||||
m_open = false;
|
||||
m_waiting = false;
|
||||
|
||||
m_ownsClipboard = FALSE;
|
||||
m_ownsPrimarySelection = FALSE;
|
||||
m_ownsClipboard = false;
|
||||
m_ownsPrimarySelection = false;
|
||||
|
||||
m_data = (wxDataObject*) NULL;
|
||||
m_receivedData = (wxDataObject*) NULL;
|
||||
@@ -352,10 +352,10 @@ wxClipboard::wxClipboard()
|
||||
if (!g_targetsAtom) g_targetsAtom = gdk_atom_intern ("TARGETS", FALSE);
|
||||
if (!g_timestampAtom) g_timestampAtom = gdk_atom_intern ("TIMESTAMP", FALSE);
|
||||
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
m_targetRequested = 0;
|
||||
|
||||
m_usePrimary = FALSE;
|
||||
m_usePrimary = false;
|
||||
}
|
||||
|
||||
wxClipboard::~wxClipboard()
|
||||
@@ -388,7 +388,7 @@ void wxClipboard::Clear()
|
||||
|
||||
if (gdk_selection_owner_get( GDK_SELECTION_PRIMARY ) == m_clipboardWidget->window)
|
||||
{
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
gtk_selection_owner_set( (GtkWidget*) NULL, GDK_SELECTION_PRIMARY,
|
||||
(guint32) GDK_CURRENT_TIME );
|
||||
@@ -408,23 +408,23 @@ void wxClipboard::Clear()
|
||||
}
|
||||
|
||||
m_targetRequested = 0;
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
}
|
||||
|
||||
bool wxClipboard::Open()
|
||||
{
|
||||
wxCHECK_MSG( !m_open, FALSE, wxT("clipboard already open") );
|
||||
wxCHECK_MSG( !m_open, false, wxT("clipboard already open") );
|
||||
|
||||
m_open = TRUE;
|
||||
m_open = true;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxClipboard::SetData( wxDataObject *data )
|
||||
{
|
||||
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
|
||||
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
|
||||
|
||||
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
|
||||
wxCHECK_MSG( data, false, wxT("data is invalid") );
|
||||
|
||||
Clear();
|
||||
|
||||
@@ -433,9 +433,9 @@ bool wxClipboard::SetData( wxDataObject *data )
|
||||
|
||||
bool wxClipboard::AddData( wxDataObject *data )
|
||||
{
|
||||
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
|
||||
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
|
||||
|
||||
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
|
||||
wxCHECK_MSG( data, false, wxT("data is invalid") );
|
||||
|
||||
// we can only store one wxDataObject
|
||||
Clear();
|
||||
@@ -502,7 +502,7 @@ void wxClipboard::Close()
|
||||
{
|
||||
wxCHECK_RET( m_open, wxT("clipboard not open") );
|
||||
|
||||
m_open = FALSE;
|
||||
m_open = false;
|
||||
}
|
||||
|
||||
bool wxClipboard::IsOpened() const
|
||||
@@ -513,7 +513,7 @@ bool wxClipboard::IsOpened() const
|
||||
bool wxClipboard::IsSupported( const wxDataFormat& format )
|
||||
{
|
||||
/* reentrance problems */
|
||||
if (m_waiting) return FALSE;
|
||||
if (m_waiting) return false;
|
||||
|
||||
/* store requested format to be asked for by callbacks */
|
||||
m_targetRequested = format;
|
||||
@@ -522,19 +522,19 @@ bool wxClipboard::IsSupported( const wxDataFormat& format )
|
||||
wxT("wxClipboard:IsSupported: requested format: %s"),
|
||||
format.GetId().c_str() );
|
||||
|
||||
wxCHECK_MSG( m_targetRequested, FALSE, wxT("invalid clipboard format") );
|
||||
wxCHECK_MSG( m_targetRequested, false, wxT("invalid clipboard format") );
|
||||
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
|
||||
/* perform query. this will set m_formatSupported to
|
||||
TRUE if m_targetRequested is supported.
|
||||
true if m_targetRequested is supported.
|
||||
also, we have to wait for the "answer" from the
|
||||
clipboard owner which is an asynchronous process.
|
||||
therefore we set m_waiting = TRUE here and wait
|
||||
therefore we set m_waiting = true here and wait
|
||||
until the callback "targets_selection_received"
|
||||
sets it to FALSE */
|
||||
sets it to false */
|
||||
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
gtk_selection_convert( m_targetsWidget,
|
||||
m_usePrimary ? (GdkAtom)GDK_SELECTION_PRIMARY
|
||||
@@ -558,7 +558,7 @@ bool wxClipboard::IsSupported( const wxDataFormat& format )
|
||||
|
||||
bool wxClipboard::GetData( wxDataObject& data )
|
||||
{
|
||||
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
|
||||
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
|
||||
|
||||
/* get formats from wxDataObjects */
|
||||
wxDataFormat *array = new wxDataFormat[ data.GetFormatCount() ];
|
||||
@@ -577,19 +577,19 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
/* store requested format to be asked for by callbacks */
|
||||
m_targetRequested = format;
|
||||
|
||||
wxCHECK_MSG( m_targetRequested, FALSE, wxT("invalid clipboard format") );
|
||||
wxCHECK_MSG( m_targetRequested, false, wxT("invalid clipboard format") );
|
||||
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
|
||||
/* perform query. this will set m_formatSupported to
|
||||
TRUE if m_targetRequested is supported.
|
||||
true if m_targetRequested is supported.
|
||||
also, we have to wait for the "answer" from the
|
||||
clipboard owner which is an asynchronous process.
|
||||
therefore we set m_waiting = TRUE here and wait
|
||||
therefore we set m_waiting = true here and wait
|
||||
until the callback "targets_selection_received"
|
||||
sets it to FALSE */
|
||||
sets it to false */
|
||||
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
gtk_selection_convert( m_targetsWidget,
|
||||
m_usePrimary ? (GdkAtom)GDK_SELECTION_PRIMARY
|
||||
@@ -607,21 +607,21 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
/* store requested format to be asked for by callbacks */
|
||||
m_targetRequested = format;
|
||||
|
||||
wxCHECK_MSG( m_targetRequested, FALSE, wxT("invalid clipboard format") );
|
||||
wxCHECK_MSG( m_targetRequested, false, wxT("invalid clipboard format") );
|
||||
|
||||
/* start query */
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
|
||||
/* ask for clipboard contents. this will set
|
||||
m_formatSupported to TRUE if m_targetRequested
|
||||
m_formatSupported to true if m_targetRequested
|
||||
is supported.
|
||||
also, we have to wait for the "answer" from the
|
||||
clipboard owner which is an asynchronous process.
|
||||
therefore we set m_waiting = TRUE here and wait
|
||||
therefore we set m_waiting = true here and wait
|
||||
until the callback "targets_selection_received"
|
||||
sets it to FALSE */
|
||||
sets it to false */
|
||||
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
wxLogTrace( TRACE_CLIPBOARD,
|
||||
wxT("wxClipboard::GetData: format found, start convert") );
|
||||
@@ -635,11 +635,11 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
while (m_waiting) gtk_main_iteration();
|
||||
|
||||
/* this is a true error as we checked for the presence of such data before */
|
||||
wxCHECK_MSG( m_formatSupported, FALSE, wxT("error retrieving data from clipboard") );
|
||||
wxCHECK_MSG( m_formatSupported, false, wxT("error retrieving data from clipboard") );
|
||||
|
||||
/* return success */
|
||||
delete[] array;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxLogTrace( TRACE_CLIPBOARD,
|
||||
@@ -647,7 +647,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
|
||||
/* return failure */
|
||||
delete[] array;
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -14,9 +14,8 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/gtk/private.h" //for idle stuff
|
||||
|
||||
|
@@ -18,11 +18,11 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
|
@@ -22,11 +22,11 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/cmndata.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/tokenzr.h"
|
||||
#include "wx/settings.h"
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
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);
|
||||
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
bool HasNativeFont() const
|
||||
{
|
||||
// we always have a Pango font description
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// setters: all of them also take care to modify m_nativeFontInfo if we
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
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
|
||||
@@ -159,7 +159,7 @@ void wxFontRefData::Init(int pointSize,
|
||||
m_underlined = underlined;
|
||||
m_encoding = encoding;
|
||||
|
||||
m_noAA = FALSE;
|
||||
m_noAA = false;
|
||||
|
||||
// Create native font info
|
||||
m_nativeFontInfo.description = pango_font_description_new();
|
||||
@@ -196,7 +196,7 @@ void wxFontRefData::Init(int pointSize,
|
||||
|
||||
void wxFontRefData::InitFromNative()
|
||||
{
|
||||
m_noAA = FALSE;
|
||||
m_noAA = false;
|
||||
|
||||
// Get native info
|
||||
PangoFontDescription *desc = m_nativeFontInfo.description;
|
||||
@@ -231,7 +231,7 @@ void wxFontRefData::InitFromNative()
|
||||
}
|
||||
|
||||
// Pango description are never underlined (?)
|
||||
m_underlined = FALSE;
|
||||
m_underlined = false;
|
||||
|
||||
// always with GTK+ 2
|
||||
m_encoding = wxFONTENCODING_UTF8;
|
||||
@@ -374,7 +374,7 @@ bool wxFont::Create( int pointSize,
|
||||
m_refData = new wxFontRefData(pointSize, family, style, weight,
|
||||
underlined, face, encoding);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxFont::Create(const wxString& fontname)
|
||||
@@ -384,12 +384,12 @@ 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()
|
||||
@@ -483,7 +483,7 @@ int wxFont::GetWeight() const
|
||||
|
||||
bool wxFont::GetUnderlined() const
|
||||
{
|
||||
wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
|
||||
wxCHECK_MSG( Ok(), false, wxT("invalid font") );
|
||||
|
||||
return M_FONTDATA->m_underlined;
|
||||
}
|
||||
@@ -511,7 +511,7 @@ const wxNativeFontInfo *wxFont::GetNativeFontInfo() const
|
||||
|
||||
bool wxFont::IsFixedWidth() const
|
||||
{
|
||||
wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
|
||||
wxCHECK_MSG( Ok(), false, wxT("invalid font") );
|
||||
|
||||
return wxFontBase::IsFixedWidth();
|
||||
}
|
||||
|
@@ -16,10 +16,10 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/debug.h"
|
||||
#include "wx/msgdlg.h"
|
||||
|
||||
|
@@ -19,10 +19,10 @@
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/arrstr.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/checklst.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
@@ -17,10 +17,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/panel.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/imaglist.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/fontutil.h"
|
||||
@@ -99,7 +99,7 @@ static void gtk_notebook_page_change_callback(GtkNotebook *WXUNUSED(widget),
|
||||
wxCHECK_RET( !notebook->m_inSwitchPage,
|
||||
_T("gtk_notebook_page_change_callback reentered") );
|
||||
|
||||
notebook->m_inSwitchPage = TRUE;
|
||||
notebook->m_inSwitchPage = true;
|
||||
if (g_isIdle)
|
||||
wxapp_install_idle_handler();
|
||||
|
||||
@@ -129,7 +129,7 @@ static void gtk_notebook_page_change_callback(GtkNotebook *WXUNUSED(widget),
|
||||
notebook->GetEventHandler()->ProcessEvent( eventChanged );
|
||||
}
|
||||
|
||||
notebook->m_inSwitchPage = FALSE;
|
||||
notebook->m_inSwitchPage = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -292,11 +292,11 @@ END_EVENT_TABLE()
|
||||
void wxNotebook::Init()
|
||||
{
|
||||
m_padding = 0;
|
||||
m_inSwitchPage = FALSE;
|
||||
m_inSwitchPage = false;
|
||||
|
||||
m_imageList = (wxImageList *) NULL;
|
||||
m_selection = -1;
|
||||
m_themeEnabled = TRUE;
|
||||
m_themeEnabled = true;
|
||||
}
|
||||
|
||||
wxNotebook::wxNotebook()
|
||||
@@ -321,15 +321,15 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
long style, const wxString& name )
|
||||
{
|
||||
m_needParent = TRUE;
|
||||
m_acceptsFocus = TRUE;
|
||||
m_needParent = true;
|
||||
m_acceptsFocus = true;
|
||||
m_insertCallback = (wxInsertChildFunction)wxInsertChildInNotebook;
|
||||
|
||||
if (!PreCreation( parent, pos, size ) ||
|
||||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxNoteBook creation failed") );
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -357,7 +357,7 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id,
|
||||
g_signal_connect (m_widget, "realize",
|
||||
G_CALLBACK (gtk_notebook_realized_callback), this);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxNotebook::GetSelection() const
|
||||
@@ -436,17 +436,17 @@ int wxNotebook::SetSelection( size_t page )
|
||||
|
||||
bool wxNotebook::SetPageText( size_t page, const wxString &text )
|
||||
{
|
||||
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") );
|
||||
wxCHECK_MSG( m_widget != NULL, false, wxT("invalid notebook") );
|
||||
|
||||
wxGtkNotebookPage* nb_page = GetNotebookPage(page);
|
||||
|
||||
wxCHECK_MSG( nb_page, FALSE, wxT("SetPageText: invalid page index") );
|
||||
wxCHECK_MSG( nb_page, false, wxT("SetPageText: invalid page index") );
|
||||
|
||||
nb_page->m_text = text;
|
||||
|
||||
gtk_label_set_text( nb_page->m_label, wxGTK_CONV( nb_page->m_text ) );
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
@@ -455,13 +455,13 @@ bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
|
||||
wxGtkNotebookPage* nb_page = GetNotebookPage(page);
|
||||
|
||||
if (!nb_page) return FALSE;
|
||||
if (!nb_page) return false;
|
||||
|
||||
/* Optimization posibility: return immediately if image unchanged.
|
||||
* Not enabled because it may break existing (stupid) code that
|
||||
* manipulates the imagelist to cycle images */
|
||||
|
||||
/* if (image == nb_page->m_image) return TRUE; */
|
||||
/* if (image == nb_page->m_image) return true; */
|
||||
|
||||
/* For different cases:
|
||||
1) no image -> no image
|
||||
@@ -470,7 +470,7 @@ bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
4) image -> image */
|
||||
|
||||
if (image == -1 && nb_page->m_image == -1)
|
||||
return TRUE; /* Case 1): Nothing to do. */
|
||||
return true; /* Case 1): Nothing to do. */
|
||||
|
||||
GtkWidget *pixmapwid = (GtkWidget*) NULL;
|
||||
|
||||
@@ -498,7 +498,7 @@ bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
gtk_container_remove(GTK_CONTAINER(nb_page->m_box), pixmapwid);
|
||||
nb_page->m_image = -1;
|
||||
|
||||
return TRUE; /* Case 2) */
|
||||
return true; /* Case 2) */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -531,7 +531,7 @@ bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
|
||||
nb_page->m_image = image;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxNotebook::SetPageSize( const wxSize &WXUNUSED(size) )
|
||||
@@ -573,7 +573,7 @@ void wxNotebook::SetTabSize(const wxSize& WXUNUSED(sz))
|
||||
|
||||
bool wxNotebook::DeleteAllPages()
|
||||
{
|
||||
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") );
|
||||
wxCHECK_MSG( m_widget != NULL, false, wxT("invalid notebook") );
|
||||
|
||||
while (m_pagesData.GetCount() > 0)
|
||||
DeletePage( m_pagesData.GetCount()-1 );
|
||||
@@ -625,12 +625,12 @@ bool wxNotebook::InsertPage( size_t position,
|
||||
bool select,
|
||||
int imageId )
|
||||
{
|
||||
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid notebook") );
|
||||
wxCHECK_MSG( m_widget != NULL, false, wxT("invalid notebook") );
|
||||
|
||||
wxCHECK_MSG( win->GetParent() == this, FALSE,
|
||||
wxCHECK_MSG( win->GetParent() == this, false,
|
||||
wxT("Can't add a page whose parent is not the notebook!") );
|
||||
|
||||
wxCHECK_MSG( position <= GetPageCount(), FALSE,
|
||||
wxCHECK_MSG( position <= GetPageCount(), false,
|
||||
_T("invalid page index in wxNotebookPage::InsertPage()") );
|
||||
|
||||
// Hack Alert! (Part II): See above in wxInsertChildInNotebook callback
|
||||
@@ -646,7 +646,7 @@ bool wxNotebook::InsertPage( size_t position,
|
||||
this);
|
||||
|
||||
if (m_themeEnabled)
|
||||
win->SetThemeEnabled(TRUE);
|
||||
win->SetThemeEnabled(true);
|
||||
|
||||
GtkNotebook *notebook = GTK_NOTEBOOK(m_widget);
|
||||
|
||||
@@ -718,7 +718,7 @@ bool wxNotebook::InsertPage( size_t position,
|
||||
G_CALLBACK (gtk_notebook_page_change_callback), this);
|
||||
|
||||
InvalidateBestSize();
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// helper for HitTest(): check if the point lies inside the given widget which
|
||||
@@ -812,12 +812,12 @@ void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
|
||||
void wxNotebook::SetConstraintSizes( bool WXUNUSED(recurse) )
|
||||
{
|
||||
// don't set the sizes of the pages - their correct size is not yet known
|
||||
wxControl::SetConstraintSizes(FALSE);
|
||||
wxControl::SetConstraintSizes(false);
|
||||
}
|
||||
|
||||
bool wxNotebook::DoPhase( int WXUNUSED(nPhase) )
|
||||
{
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -14,7 +14,10 @@
|
||||
|
||||
#include "wx/scrolbar.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/math.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
@@ -344,4 +347,4 @@ wxScrollBar::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_vscrollbar_new);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // wxUSE_SCROLLBAR
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: gtk/slider.cpp
|
||||
// Name: src/gtk/slider.cpp
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -10,11 +10,14 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/slider.h"
|
||||
|
||||
#if wxUSE_SLIDER
|
||||
|
||||
#include "wx/slider.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/math.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
@@ -153,14 +156,14 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
long style, const wxValidator& validator, const wxString& name )
|
||||
{
|
||||
m_acceptsFocus = TRUE;
|
||||
m_needParent = TRUE;
|
||||
m_acceptsFocus = true;
|
||||
m_needParent = true;
|
||||
|
||||
if (!PreCreation( parent, pos, size ) ||
|
||||
!CreateBase( parent, id, pos, size, style, validator, name ))
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxSlider creation failed") );
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
m_oldPos = 0.0;
|
||||
@@ -219,7 +222,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
PostCreation(size);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxSlider::GetValue() const
|
||||
@@ -351,4 +354,4 @@ wxSlider::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_vscale_new);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // wxUSE_SLIDER
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: spinbutt.cpp
|
||||
// Name: src/gtk/spinbutt.cpp
|
||||
// Purpose: wxSpinButton
|
||||
// Author: Robert
|
||||
// Modified by:
|
||||
@@ -11,11 +11,14 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/spinbutt.h"
|
||||
|
||||
#if wxUSE_SPINBTN
|
||||
|
||||
#include "wx/spinbutt.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/math.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
@@ -105,7 +108,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
long style,
|
||||
const wxString& name)
|
||||
{
|
||||
m_needParent = TRUE;
|
||||
m_needParent = true;
|
||||
|
||||
wxSize new_size = size,
|
||||
sizeBest = DoGetBestSize();
|
||||
@@ -117,7 +120,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
!CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name ))
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxXX creation failed") );
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
m_oldPos = 0.0;
|
||||
@@ -136,7 +139,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
|
||||
PostCreation(new_size);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxSpinButton::GetMin() const
|
||||
|
@@ -11,11 +11,13 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/spinctrl.h"
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
#include "wx/spinctrl.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
|
||||
#include "wx/math.h"
|
||||
|
@@ -15,9 +15,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/math.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/panel.h"
|
||||
|
@@ -16,6 +16,7 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -25,7 +26,6 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/prctl.h>
|
||||
#include "wx/module.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
@@ -261,7 +261,7 @@ bool wxThreadModule::OnInit()
|
||||
wxThreadGuiInit();
|
||||
p_mainid = (int)getpid();
|
||||
wxMainMutex->Lock();
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxThreadModule::OnExit()
|
||||
|
@@ -20,12 +20,12 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/module.h"
|
||||
|
@@ -21,10 +21,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/memory.h"
|
||||
#include "wx/font.h"
|
||||
#include "wx/settings.h"
|
||||
@@ -85,7 +85,7 @@
|
||||
// global data
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
bool g_mainThreadLocked = FALSE;
|
||||
bool g_mainThreadLocked = false;
|
||||
gint g_pendingTag = 0;
|
||||
|
||||
static GtkWidget *gs_RootWindow = (GtkWidget*) NULL;
|
||||
@@ -109,7 +109,7 @@ static wxMutex gs_idleTagsMutex;
|
||||
// not static because used by textctrl.cpp
|
||||
//
|
||||
// MT-FIXME
|
||||
bool wxIsInsideYield = FALSE;
|
||||
bool wxIsInsideYield = false;
|
||||
|
||||
bool wxApp::Yield(bool onlyIfNeeded)
|
||||
{
|
||||
@@ -120,18 +120,18 @@ bool wxApp::Yield(bool onlyIfNeeded)
|
||||
wxFAIL_MSG( wxT("wxYield called recursively" ) );
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#if wxUSE_THREADS
|
||||
if ( !wxThread::IsMain() )
|
||||
{
|
||||
// can't call gtk_main_iteration() from other threads like this
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
#endif // wxUSE_THREADS
|
||||
|
||||
wxIsInsideYield = TRUE;
|
||||
wxIsInsideYield = true;
|
||||
|
||||
// We need to remove idle callbacks or the loop will
|
||||
// never finish.
|
||||
@@ -159,9 +159,9 @@ bool wxApp::Yield(bool onlyIfNeeded)
|
||||
wxLog::Resume();
|
||||
#endif
|
||||
|
||||
wxIsInsideYield = FALSE;
|
||||
wxIsInsideYield = false;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -353,14 +353,14 @@ static gint wxapp_poll_func( GPollFD *ufds, guint nfds, gint timeout )
|
||||
gdk_threads_enter();
|
||||
|
||||
wxMutexGuiLeave();
|
||||
g_mainThreadLocked = TRUE;
|
||||
g_mainThreadLocked = true;
|
||||
|
||||
// we rely on the fact that glib GPollFD struct is really just pollfd but
|
||||
// I wonder how wise is this in the long term (VZ)
|
||||
gint res = wxPoll( (wxPollFd *) ufds, nfds, timeout );
|
||||
|
||||
wxMutexGuiEnter();
|
||||
g_mainThreadLocked = FALSE;
|
||||
g_mainThreadLocked = false;
|
||||
|
||||
gdk_threads_leave();
|
||||
|
||||
@@ -389,7 +389,7 @@ void wxapp_install_idle_handler()
|
||||
|
||||
wxASSERT_MSG( wxTheApp->m_idleTag == 0, wxT("attempt to install idle handler twice") );
|
||||
|
||||
g_isIdle = FALSE;
|
||||
g_isIdle = false;
|
||||
|
||||
if (g_pendingTag == 0)
|
||||
g_pendingTag = gtk_idle_add_priority( 900, wxapp_pending_callback, (gpointer) NULL );
|
||||
@@ -429,7 +429,7 @@ END_EVENT_TABLE()
|
||||
wxApp::wxApp()
|
||||
{
|
||||
#ifdef __WXDEBUG__
|
||||
m_isInAssert = FALSE;
|
||||
m_isInAssert = false;
|
||||
#endif // __WXDEBUG__
|
||||
|
||||
m_idleTag = 0;
|
||||
@@ -457,7 +457,7 @@ wxApp::~wxApp()
|
||||
bool wxApp::OnInitGui()
|
||||
{
|
||||
if ( !wxAppBase::OnInitGui() )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
GdkVisual *visual = gdk_visual_get_system();
|
||||
|
||||
@@ -541,7 +541,7 @@ bool wxApp::OnInitGui()
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
GdkVisual *wxApp::GetGdkVisual()
|
||||
@@ -671,11 +671,11 @@ void wxApp::CleanUp()
|
||||
|
||||
void wxApp::OnAssert(const wxChar *file, int line, const wxChar* cond, const wxChar *msg)
|
||||
{
|
||||
m_isInAssert = TRUE;
|
||||
m_isInAssert = true;
|
||||
|
||||
wxAppBase::OnAssert(file, line, cond, msg);
|
||||
|
||||
m_isInAssert = FALSE;
|
||||
m_isInAssert = false;
|
||||
}
|
||||
|
||||
#endif // __WXDEBUG__
|
||||
@@ -689,6 +689,6 @@ void wxApp::RemoveIdleTag()
|
||||
{
|
||||
gtk_idle_remove( wxTheApp->m_idleTag );
|
||||
wxTheApp->m_idleTag = 0;
|
||||
g_isIdle = TRUE;
|
||||
g_isIdle = true;
|
||||
}
|
||||
}
|
||||
|
@@ -16,10 +16,10 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dataobj.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <gdk/gdk.h>
|
||||
@@ -86,7 +86,7 @@ targets_selection_received( GtkWidget *WXUNUSED(widget),
|
||||
wxLogTrace( TRACE_CLIPBOARD,
|
||||
_T("got unsupported clipboard target") );
|
||||
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
g_free(atom_name);
|
||||
return;
|
||||
}
|
||||
@@ -117,14 +117,14 @@ targets_selection_received( GtkWidget *WXUNUSED(widget),
|
||||
|
||||
if (format == clipboard->m_targetRequested)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_formatSupported = TRUE;
|
||||
clipboard->m_waiting = false;
|
||||
clipboard->m_formatSupported = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
{
|
||||
if (!wxTheClipboard)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -149,13 +149,13 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
|
||||
if (!data_object)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (selection_data->length <= 0)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
// make sure we got the data in the correct format
|
||||
if (!data_object->IsSupportedFormat( format ) )
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -174,15 +174,15 @@ selection_received( GtkWidget *WXUNUSED(widget),
|
||||
// if so, copy data to target object
|
||||
if (selection_data->type != GDK_SELECTION_TYPE_STRING)
|
||||
{
|
||||
clipboard->m_waiting = FALSE;
|
||||
clipboard->m_waiting = false;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
data_object->SetData( format, (size_t) selection_data->length, (const char*) selection_data->data );
|
||||
|
||||
wxTheClipboard->m_formatSupported = TRUE;
|
||||
clipboard->m_waiting = FALSE;
|
||||
wxTheClipboard->m_formatSupported = true;
|
||||
clipboard->m_waiting = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,16 +198,16 @@ selection_clear_clip( GtkWidget *WXUNUSED(widget), GdkEventSelection *event )
|
||||
|
||||
if (event->selection == GDK_SELECTION_PRIMARY)
|
||||
{
|
||||
wxTheClipboard->m_ownsPrimarySelection = FALSE;
|
||||
wxTheClipboard->m_ownsPrimarySelection = false;
|
||||
}
|
||||
else
|
||||
if (event->selection == g_clipboardAtom)
|
||||
{
|
||||
wxTheClipboard->m_ownsClipboard = FALSE;
|
||||
wxTheClipboard->m_ownsClipboard = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
wxTheClipboard->m_waiting = FALSE;
|
||||
wxTheClipboard->m_waiting = false;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ selection_clear_clip( GtkWidget *WXUNUSED(widget), GdkEventSelection *event )
|
||||
}
|
||||
}
|
||||
|
||||
wxTheClipboard->m_waiting = FALSE;
|
||||
wxTheClipboard->m_waiting = false;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
@@ -308,11 +308,11 @@ IMPLEMENT_DYNAMIC_CLASS(wxClipboard,wxObject)
|
||||
|
||||
wxClipboard::wxClipboard()
|
||||
{
|
||||
m_open = FALSE;
|
||||
m_waiting = FALSE;
|
||||
m_open = false;
|
||||
m_waiting = false;
|
||||
|
||||
m_ownsClipboard = FALSE;
|
||||
m_ownsPrimarySelection = FALSE;
|
||||
m_ownsClipboard = false;
|
||||
m_ownsPrimarySelection = false;
|
||||
|
||||
m_data = (wxDataObject*) NULL;
|
||||
m_receivedData = (wxDataObject*) NULL;
|
||||
@@ -346,10 +346,10 @@ wxClipboard::wxClipboard()
|
||||
if (!g_targetsAtom) g_targetsAtom = gdk_atom_intern ("TARGETS", FALSE);
|
||||
if (!g_timestampAtom) g_timestampAtom = gdk_atom_intern ("TIMESTAMP", FALSE);
|
||||
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
m_targetRequested = 0;
|
||||
|
||||
m_usePrimary = FALSE;
|
||||
m_usePrimary = false;
|
||||
}
|
||||
|
||||
wxClipboard::~wxClipboard()
|
||||
@@ -372,7 +372,7 @@ void wxClipboard::Clear()
|
||||
// it, clear_selection is called which will set m_data to zero
|
||||
if (gdk_selection_owner_get( g_clipboardAtom ) == m_clipboardWidget->window)
|
||||
{
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
gtk_selection_owner_set( (GtkWidget*) NULL, g_clipboardAtom,
|
||||
(guint32) GDK_CURRENT_TIME );
|
||||
@@ -382,7 +382,7 @@ void wxClipboard::Clear()
|
||||
|
||||
if (gdk_selection_owner_get( GDK_SELECTION_PRIMARY ) == m_clipboardWidget->window)
|
||||
{
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
gtk_selection_owner_set( (GtkWidget*) NULL, GDK_SELECTION_PRIMARY,
|
||||
(guint32) GDK_CURRENT_TIME );
|
||||
@@ -402,23 +402,23 @@ void wxClipboard::Clear()
|
||||
}
|
||||
|
||||
m_targetRequested = 0;
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
}
|
||||
|
||||
bool wxClipboard::Open()
|
||||
{
|
||||
wxCHECK_MSG( !m_open, FALSE, wxT("clipboard already open") );
|
||||
wxCHECK_MSG( !m_open, false, wxT("clipboard already open") );
|
||||
|
||||
m_open = TRUE;
|
||||
m_open = true;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxClipboard::SetData( wxDataObject *data )
|
||||
{
|
||||
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
|
||||
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
|
||||
|
||||
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
|
||||
wxCHECK_MSG( data, false, wxT("data is invalid") );
|
||||
|
||||
Clear();
|
||||
|
||||
@@ -427,9 +427,9 @@ bool wxClipboard::SetData( wxDataObject *data )
|
||||
|
||||
bool wxClipboard::AddData( wxDataObject *data )
|
||||
{
|
||||
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
|
||||
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
|
||||
|
||||
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
|
||||
wxCHECK_MSG( data, false, wxT("data is invalid") );
|
||||
|
||||
// we can only store one wxDataObject
|
||||
Clear();
|
||||
@@ -497,7 +497,7 @@ void wxClipboard::Close()
|
||||
{
|
||||
wxCHECK_RET( m_open, wxT("clipboard not open") );
|
||||
|
||||
m_open = FALSE;
|
||||
m_open = false;
|
||||
}
|
||||
|
||||
bool wxClipboard::IsOpened() const
|
||||
@@ -508,7 +508,7 @@ bool wxClipboard::IsOpened() const
|
||||
bool wxClipboard::IsSupported( const wxDataFormat& format )
|
||||
{
|
||||
/* reentrance problems */
|
||||
if (m_waiting) return FALSE;
|
||||
if (m_waiting) return false;
|
||||
|
||||
/* store requested format to be asked for by callbacks */
|
||||
m_targetRequested = format;
|
||||
@@ -517,19 +517,19 @@ bool wxClipboard::IsSupported( const wxDataFormat& format )
|
||||
wxT("wxClipboard:IsSupported: requested format: %s"),
|
||||
format.GetId().c_str() );
|
||||
|
||||
wxCHECK_MSG( m_targetRequested, FALSE, wxT("invalid clipboard format") );
|
||||
wxCHECK_MSG( m_targetRequested, false, wxT("invalid clipboard format") );
|
||||
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
|
||||
/* perform query. this will set m_formatSupported to
|
||||
TRUE if m_targetRequested is supported.
|
||||
true if m_targetRequested is supported.
|
||||
also, we have to wait for the "answer" from the
|
||||
clipboard owner which is an asynchronous process.
|
||||
therefore we set m_waiting = TRUE here and wait
|
||||
therefore we set m_waiting = true here and wait
|
||||
until the callback "targets_selection_received"
|
||||
sets it to FALSE */
|
||||
sets it to false */
|
||||
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
gtk_selection_convert( m_targetsWidget,
|
||||
m_usePrimary ? (GdkAtom)GDK_SELECTION_PRIMARY
|
||||
@@ -544,7 +544,7 @@ bool wxClipboard::IsSupported( const wxDataFormat& format )
|
||||
|
||||
bool wxClipboard::GetData( wxDataObject& data )
|
||||
{
|
||||
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
|
||||
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
|
||||
|
||||
/* get formats from wxDataObjects */
|
||||
wxDataFormat *array = new wxDataFormat[ data.GetFormatCount() ];
|
||||
@@ -563,19 +563,19 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
/* store requested format to be asked for by callbacks */
|
||||
m_targetRequested = format;
|
||||
|
||||
wxCHECK_MSG( m_targetRequested, FALSE, wxT("invalid clipboard format") );
|
||||
wxCHECK_MSG( m_targetRequested, false, wxT("invalid clipboard format") );
|
||||
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
|
||||
/* perform query. this will set m_formatSupported to
|
||||
TRUE if m_targetRequested is supported.
|
||||
true if m_targetRequested is supported.
|
||||
also, we have to wait for the "answer" from the
|
||||
clipboard owner which is an asynchronous process.
|
||||
therefore we set m_waiting = TRUE here and wait
|
||||
therefore we set m_waiting = true here and wait
|
||||
until the callback "targets_selection_received"
|
||||
sets it to FALSE */
|
||||
sets it to false */
|
||||
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
gtk_selection_convert( m_targetsWidget,
|
||||
m_usePrimary ? (GdkAtom)GDK_SELECTION_PRIMARY
|
||||
@@ -593,21 +593,21 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
/* store requested format to be asked for by callbacks */
|
||||
m_targetRequested = format;
|
||||
|
||||
wxCHECK_MSG( m_targetRequested, FALSE, wxT("invalid clipboard format") );
|
||||
wxCHECK_MSG( m_targetRequested, false, wxT("invalid clipboard format") );
|
||||
|
||||
/* start query */
|
||||
m_formatSupported = FALSE;
|
||||
m_formatSupported = false;
|
||||
|
||||
/* ask for clipboard contents. this will set
|
||||
m_formatSupported to TRUE if m_targetRequested
|
||||
m_formatSupported to true if m_targetRequested
|
||||
is supported.
|
||||
also, we have to wait for the "answer" from the
|
||||
clipboard owner which is an asynchronous process.
|
||||
therefore we set m_waiting = TRUE here and wait
|
||||
therefore we set m_waiting = true here and wait
|
||||
until the callback "targets_selection_received"
|
||||
sets it to FALSE */
|
||||
sets it to false */
|
||||
|
||||
m_waiting = TRUE;
|
||||
m_waiting = true;
|
||||
|
||||
wxLogTrace( TRACE_CLIPBOARD,
|
||||
wxT("wxClipboard::GetData: format found, start convert") );
|
||||
@@ -621,11 +621,11 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
while (m_waiting) gtk_main_iteration();
|
||||
|
||||
/* this is a true error as we checked for the presence of such data before */
|
||||
wxCHECK_MSG( m_formatSupported, FALSE, wxT("error retrieving data from clipboard") );
|
||||
wxCHECK_MSG( m_formatSupported, false, wxT("error retrieving data from clipboard") );
|
||||
|
||||
/* return success */
|
||||
delete[] array;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
wxLogTrace( TRACE_CLIPBOARD,
|
||||
@@ -633,7 +633,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
|
||||
/* return failure */
|
||||
delete[] array;
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -14,9 +14,8 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
@@ -18,11 +18,11 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "wx/gtk1/private.h"
|
||||
|
||||
|
@@ -16,10 +16,10 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/debug.h"
|
||||
#include "wx/msgdlg.h"
|
||||
|
||||
|
@@ -17,10 +17,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/arrstr.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/checklst.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/gtk1/private.h"
|
||||
|
@@ -17,10 +17,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/panel.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/imaglist.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/fontutil.h"
|
||||
@@ -100,7 +100,7 @@ static void gtk_notebook_page_change_callback(GtkNotebook *WXUNUSED(widget),
|
||||
wxCHECK_RET( !notebook->m_inSwitchPage,
|
||||
_T("gtk_notebook_page_change_callback reentered") );
|
||||
|
||||
notebook->m_inSwitchPage = TRUE;
|
||||
notebook->m_inSwitchPage = true;
|
||||
if (g_isIdle)
|
||||
wxapp_install_idle_handler();
|
||||
|
||||
@@ -292,11 +292,11 @@ END_EVENT_TABLE()
|
||||
void wxNotebook::Init()
|
||||
{
|
||||
m_padding = 0;
|
||||
m_inSwitchPage = FALSE;
|
||||
m_inSwitchPage = false;
|
||||
|
||||
m_imageList = (wxImageList *) NULL;
|
||||
m_selection = -1;
|
||||
m_themeEnabled = TRUE;
|
||||
m_themeEnabled = true;
|
||||
}
|
||||
|
||||
wxNotebook::wxNotebook()
|
||||
@@ -321,15 +321,15 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
long style, const wxString& name )
|
||||
{
|
||||
m_needParent = TRUE;
|
||||
m_acceptsFocus = TRUE;
|
||||
m_needParent = true;
|
||||
m_acceptsFocus = true;
|
||||
m_insertCallback = (wxInsertChildFunction)wxInsertChildInNotebook;
|
||||
|
||||
if (!PreCreation( parent, pos, size ) ||
|
||||
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxNoteBook creation failed") );
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -357,7 +357,7 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id,
|
||||
gtk_signal_connect( GTK_OBJECT(m_widget), "realize",
|
||||
GTK_SIGNAL_FUNC(gtk_notebook_realized_callback), (gpointer) this );
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxNotebook::GetSelection() const
|
||||
@@ -446,7 +446,7 @@ bool wxNotebook::SetPageText( size_t page, const wxString &text )
|
||||
|
||||
gtk_label_set( nb_page->m_label, wxGTK_CONV( nb_page->m_text ) );
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
@@ -461,7 +461,7 @@ bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
* Not enabled because it may break existing (stupid) code that
|
||||
* manipulates the imagelist to cycle images */
|
||||
|
||||
/* if (image == nb_page->m_image) return TRUE; */
|
||||
/* if (image == nb_page->m_image) return true; */
|
||||
|
||||
/* For different cases:
|
||||
1) no image -> no image
|
||||
@@ -470,7 +470,7 @@ bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
4) image -> image */
|
||||
|
||||
if (image == -1 && nb_page->m_image == -1)
|
||||
return TRUE; /* Case 1): Nothing to do. */
|
||||
return true; /* Case 1): Nothing to do. */
|
||||
|
||||
GtkWidget *pixmapwid = (GtkWidget*) NULL;
|
||||
|
||||
@@ -498,7 +498,7 @@ bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
gtk_container_remove(GTK_CONTAINER(nb_page->m_box), pixmapwid);
|
||||
nb_page->m_image = -1;
|
||||
|
||||
return TRUE; /* Case 2) */
|
||||
return true; /* Case 2) */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -531,7 +531,7 @@ bool wxNotebook::SetPageImage( size_t page, int image )
|
||||
|
||||
nb_page->m_image = image;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxNotebook::SetPageSize( const wxSize &WXUNUSED(size) )
|
||||
@@ -644,7 +644,7 @@ bool wxNotebook::InsertPage( size_t position,
|
||||
GTK_SIGNAL_FUNC(gtk_notebook_page_change_callback), (gpointer) this );
|
||||
|
||||
if (m_themeEnabled)
|
||||
win->SetThemeEnabled(TRUE);
|
||||
win->SetThemeEnabled(true);
|
||||
|
||||
GtkNotebook *notebook = GTK_NOTEBOOK(m_widget);
|
||||
|
||||
@@ -716,7 +716,7 @@ bool wxNotebook::InsertPage( size_t position,
|
||||
GTK_SIGNAL_FUNC(gtk_notebook_page_change_callback), (gpointer)this );
|
||||
|
||||
InvalidateBestSize();
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// helper for HitTest(): check if the point lies inside the given widget which
|
||||
@@ -819,7 +819,7 @@ void wxNotebook::SetConstraintSizes( bool WXUNUSED(recurse) )
|
||||
|
||||
bool wxNotebook::DoPhase( int WXUNUSED(nPhase) )
|
||||
{
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -14,7 +14,10 @@
|
||||
|
||||
#include "wx/scrolbar.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/math.h"
|
||||
#include "wx/gtk1/private.h"
|
||||
|
||||
@@ -362,4 +365,4 @@ wxScrollBar::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_vscrollbar_new);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // wxUSE_SCROLLBAR
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: gtk/slider.cpp
|
||||
// Name: src/gtk1/slider.cpp
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id$
|
||||
@@ -10,11 +10,14 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/slider.h"
|
||||
|
||||
#if wxUSE_SLIDER
|
||||
|
||||
#include "wx/slider.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/math.h"
|
||||
#include "wx/gtk1/private.h"
|
||||
|
||||
@@ -136,14 +139,14 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
long style, const wxValidator& validator, const wxString& name )
|
||||
{
|
||||
m_acceptsFocus = TRUE;
|
||||
m_needParent = TRUE;
|
||||
m_acceptsFocus = true;
|
||||
m_needParent = true;
|
||||
|
||||
if (!PreCreation( parent, pos, size ) ||
|
||||
!CreateBase( parent, id, pos, size, style, validator, name ))
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxSlider creation failed") );
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
m_oldPos = 0.0;
|
||||
@@ -201,7 +204,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
PostCreation(size);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxSlider::GetValue() const
|
||||
@@ -339,4 +342,4 @@ wxSlider::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_vscale_new);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // wxUSE_SLIDER
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: spinbutt.cpp
|
||||
// Name: src/gtk1/spinbutt.cpp
|
||||
// Purpose: wxSpinButton
|
||||
// Author: Robert
|
||||
// Modified by:
|
||||
@@ -11,11 +11,14 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/spinbutt.h"
|
||||
|
||||
#if wxUSE_SPINBTN
|
||||
|
||||
#include "wx/spinbutt.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/math.h"
|
||||
#include "wx/gtk1/private.h"
|
||||
|
||||
@@ -114,7 +117,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
long style,
|
||||
const wxString& name)
|
||||
{
|
||||
m_needParent = TRUE;
|
||||
m_needParent = true;
|
||||
|
||||
wxSize new_size = size,
|
||||
sizeBest = DoGetBestSize();
|
||||
@@ -126,7 +129,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
!CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name ))
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxXX creation failed") );
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
m_oldPos = 0.0;
|
||||
@@ -147,7 +150,7 @@ bool wxSpinButton::Create(wxWindow *parent,
|
||||
|
||||
PostCreation(new_size);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxSpinButton::GetMin() const
|
||||
@@ -236,4 +239,4 @@ wxSpinButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_button_new);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // wxUSE_SPINBTN
|
||||
|
@@ -11,11 +11,13 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/spinctrl.h"
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
#include "wx/spinctrl.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
|
||||
#include "wx/math.h"
|
||||
|
@@ -15,9 +15,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/math.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/panel.h"
|
||||
|
@@ -16,6 +16,7 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -25,7 +26,6 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/prctl.h>
|
||||
#include "wx/module.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
@@ -261,7 +261,7 @@ bool wxThreadModule::OnInit()
|
||||
wxThreadGuiInit();
|
||||
p_mainid = (int)getpid();
|
||||
wxMainMutex->Lock();
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxThreadModule::OnExit()
|
||||
@@ -270,4 +270,3 @@ void wxThreadModule::OnExit()
|
||||
wxThreadGuiExit();
|
||||
delete wxMainMutex;
|
||||
}
|
||||
|
||||
|
@@ -20,12 +20,12 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/module.h"
|
||||
@@ -1352,7 +1352,7 @@ template<typename T> void InitMouseEvent(wxWindowGTK *win,
|
||||
static void AdjustEventButtonState(wxMouseEvent& event)
|
||||
{
|
||||
// GDK reports the old state of the button for a button press event, but
|
||||
// for compatibility with MSW and common sense we want m_leftDown be TRUE
|
||||
// for compatibility with MSW and common sense we want m_leftDown be true
|
||||
// for a LEFT_DOWN event, not FALSE, so we will invert
|
||||
// left/right/middleDown for the corresponding click events
|
||||
|
||||
|
@@ -16,12 +16,12 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
|
@@ -11,9 +11,12 @@
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/brush.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mac/private.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject)
|
||||
@@ -230,4 +233,3 @@ wxMacBrushKind wxBrush::MacGetBrushKind() const
|
||||
{
|
||||
return (M_BRUSHDATA ? M_BRUSHDATA->m_macBrushKind : kwxMacBrushColour);
|
||||
}
|
||||
|
||||
|
@@ -26,11 +26,11 @@
|
||||
#include "wx/log.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/apptrait.h"
|
||||
#include "wx/timer.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
#include "wx/sckaddr.h"
|
||||
|
@@ -20,11 +20,11 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/frame.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/metafile.h"
|
||||
|
||||
#ifndef __DARWIN__
|
||||
|
@@ -15,9 +15,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/settings.h"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dirdlg.cpp
|
||||
// Name: src/mac/carbon/dirdlg.cpp
|
||||
// Purpose: wxDirDialog
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -13,10 +13,14 @@
|
||||
|
||||
#if wxUSE_DIRDLG
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/dirdlg.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/dialog.h"
|
||||
|
||||
#include "wx/cmndata.h"
|
||||
#include "wx/filename.h"
|
||||
|
||||
@@ -45,7 +49,7 @@ static pascal void NavEventProc(
|
||||
wxDirDialog * data = ( wxDirDialog *) ioUserData ;
|
||||
if ( inSelector == kNavCBStart )
|
||||
{
|
||||
if (data && !data->GetPath().IsEmpty() )
|
||||
if (data && !data->GetPath().empty() )
|
||||
{
|
||||
// Set default location for the modern Navigation APIs
|
||||
// Apple Technical Q&A 1151
|
||||
|
@@ -16,9 +16,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/tokenzr.h"
|
||||
#include "wx/filename.h"
|
||||
@@ -74,7 +74,7 @@ static pascal void NavEventProc(
|
||||
}
|
||||
else if ( inSelector == kNavCBStart )
|
||||
{
|
||||
if (data && !(data->defaultLocation).IsEmpty())
|
||||
if (data && !(data->defaultLocation).empty())
|
||||
{
|
||||
// Set default location for the modern Navigation APIs
|
||||
// Apple Technical Q&A 1151
|
||||
|
@@ -15,11 +15,11 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/string.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/fontutil.h"
|
||||
|
||||
#include "wx/mac/private.h"
|
||||
|
@@ -19,14 +19,13 @@
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/button.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/toplevel.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
|
||||
BEGIN_EVENT_TABLE(wxListBox, wxControl)
|
||||
|
@@ -23,12 +23,12 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/menuitem.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/frame.h"
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
|
@@ -11,9 +11,12 @@
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/pen.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxPen, wxGDIObject)
|
||||
|
||||
wxPenRefData::wxPenRefData()
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: settings.cpp
|
||||
// Name: src/mac/carbon/settings.cpp
|
||||
// Purpose: wxSettings
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -12,8 +12,12 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/settings.h"
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
|
||||
|
@@ -17,13 +17,13 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/notebook.h"
|
||||
#include "wx/tabctrl.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/settings.h"
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
|
@@ -18,6 +18,7 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#ifdef __DARWIN__
|
||||
@@ -42,7 +43,6 @@
|
||||
#include "wx/toplevel.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/sysopt.h"
|
||||
#include "wx/menu.h"
|
||||
|
||||
|
@@ -16,12 +16,12 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/menu.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/dialog.h"
|
||||
|
@@ -20,12 +20,12 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/window.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/pen.h"
|
||||
#include "wx/brush.h"
|
||||
|
@@ -11,9 +11,12 @@
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/brush.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mac/private.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject)
|
||||
|
@@ -17,11 +17,11 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/frame.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/metafile.h"
|
||||
|
||||
#ifndef __DARWIN__
|
||||
|
@@ -15,9 +15,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/settings.h"
|
||||
|
||||
|
@@ -15,10 +15,14 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/dirdlg.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif // WX_PRECOMP
|
||||
|
||||
#include "wx/dialog.h"
|
||||
|
||||
#include "wx/cmndata.h"
|
||||
|
||||
#include "wx/mac/private.h"
|
||||
|
@@ -20,9 +20,9 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/tokenzr.h"
|
||||
#include "wx/filename.h"
|
||||
@@ -98,7 +98,7 @@ NavEventProc(
|
||||
else if ( inSelector == kNavCBStart )
|
||||
{
|
||||
#if TARGET_CARBON
|
||||
if (data && !(data->defaultLocation).IsEmpty())
|
||||
if (data && !(data->defaultLocation).empty())
|
||||
{
|
||||
// Set default location for the modern Navigation APIs
|
||||
// Apple Technical Q&A 1151
|
||||
|
@@ -19,11 +19,11 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/string.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
|
||||
|
@@ -19,14 +19,13 @@
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/button.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/toplevel.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
|
||||
|
||||
BEGIN_EVENT_TABLE(wxListBox, wxControl)
|
||||
|
@@ -23,11 +23,11 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/menuitem.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/frame.h"
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
|
@@ -11,9 +11,12 @@
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/pen.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxPen, wxGDIObject)
|
||||
|
||||
wxPenRefData::wxPenRefData()
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: settings.cpp
|
||||
// Name: src/mac/classic/settings.cpp
|
||||
// Purpose: wxSettings
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
@@ -9,9 +9,15 @@
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/settings.h"
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#include "wx/mac/uma.h"
|
||||
|
||||
@@ -138,7 +144,6 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
|
||||
return *wxNORMAL_FONT ;
|
||||
} ;
|
||||
break ;
|
||||
|
||||
}
|
||||
return *wxNORMAL_FONT;
|
||||
}
|
||||
@@ -230,9 +235,9 @@ bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
|
||||
{
|
||||
case wxSYS_CAN_ICONIZE_FRAME:
|
||||
case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
|
||||
return TRUE;
|
||||
return true;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@@ -15,13 +15,13 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/notebook.h"
|
||||
#include "wx/tabctrl.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/settings.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
@@ -21,6 +21,7 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#ifdef __DARWIN__
|
||||
@@ -47,7 +48,6 @@
|
||||
#include "wx/tabctrl.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#if defined(__BORLANDC__) && !defined(__WIN32__)
|
||||
#include <alloc.h>
|
||||
|
@@ -16,12 +16,12 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/menu.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/panel.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/dialog.h"
|
||||
|
@@ -33,11 +33,11 @@
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/mac/corefoundation/cfstring.h"
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
// ============================================================================
|
||||
|
@@ -18,13 +18,13 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/icon.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/xpmdecod.h"
|
||||
|
||||
|
@@ -19,10 +19,10 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/module.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/hashmap.h"
|
||||
|
||||
#include "wx/mgl/private.h"
|
||||
|
@@ -25,11 +25,11 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/cmndata.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/tokenzr.h"
|
||||
#include "wx/settings.h"
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
int family = wxDEFAULT,
|
||||
int style = wxDEFAULT,
|
||||
int weight = wxDEFAULT,
|
||||
bool underlined = FALSE,
|
||||
bool underlined = false,
|
||||
const wxString& faceName = wxEmptyString,
|
||||
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
|
||||
wxFontRefData(const wxFontRefData& data);
|
||||
@@ -121,7 +121,7 @@ void wxFontRefData::Init(int pointSize,
|
||||
m_encoding = encoding;
|
||||
|
||||
m_library = NULL;
|
||||
m_valid = FALSE;
|
||||
m_valid = false;
|
||||
}
|
||||
|
||||
wxFontRefData::wxFontRefData(const wxFontRefData& data)
|
||||
@@ -174,7 +174,7 @@ bool wxFont::Create(int pointSize,
|
||||
{
|
||||
m_refData = new wxFontRefData(pointSize, family, style, weight,
|
||||
underlined, face, encoding);
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
struct font_t *wxFont::GetMGLfont_t(float scale, bool antialiased)
|
||||
@@ -246,7 +246,7 @@ int wxFont::GetWeight() const
|
||||
|
||||
bool wxFont::GetUnderlined() const
|
||||
{
|
||||
wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
|
||||
wxCHECK_MSG( Ok(), false, wxT("invalid font") );
|
||||
|
||||
return M_FONTDATA->m_underlined;
|
||||
}
|
||||
@@ -261,7 +261,7 @@ wxFontEncoding wxFont::GetEncoding() const
|
||||
|
||||
bool wxFont::IsFixedWidth() const
|
||||
{
|
||||
wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
|
||||
wxCHECK_MSG( Ok(), false, wxT("invalid font") );
|
||||
|
||||
return (bool)(M_FONTDATA->m_library->GetFamily()->GetInfo()->isFixed);
|
||||
}
|
||||
@@ -284,7 +284,7 @@ void wxFont::SetPointSize(int pointSize)
|
||||
AllocExclusive();
|
||||
|
||||
M_FONTDATA->m_pointSize = pointSize;
|
||||
M_FONTDATA->m_valid = FALSE;
|
||||
M_FONTDATA->m_valid = false;
|
||||
}
|
||||
|
||||
void wxFont::SetFamily(int family)
|
||||
@@ -292,7 +292,7 @@ void wxFont::SetFamily(int family)
|
||||
AllocExclusive();
|
||||
|
||||
M_FONTDATA->m_family = family;
|
||||
M_FONTDATA->m_valid = FALSE;
|
||||
M_FONTDATA->m_valid = false;
|
||||
}
|
||||
|
||||
void wxFont::SetStyle(int style)
|
||||
@@ -300,7 +300,7 @@ void wxFont::SetStyle(int style)
|
||||
AllocExclusive();
|
||||
|
||||
M_FONTDATA->m_style = style;
|
||||
M_FONTDATA->m_valid = FALSE;
|
||||
M_FONTDATA->m_valid = false;
|
||||
}
|
||||
|
||||
void wxFont::SetWeight(int weight)
|
||||
@@ -308,7 +308,7 @@ void wxFont::SetWeight(int weight)
|
||||
AllocExclusive();
|
||||
|
||||
M_FONTDATA->m_weight = weight;
|
||||
M_FONTDATA->m_valid = FALSE;
|
||||
M_FONTDATA->m_valid = false;
|
||||
}
|
||||
|
||||
void wxFont::SetFaceName(const wxString& faceName)
|
||||
@@ -316,7 +316,7 @@ void wxFont::SetFaceName(const wxString& faceName)
|
||||
AllocExclusive();
|
||||
|
||||
M_FONTDATA->m_faceName = faceName;
|
||||
M_FONTDATA->m_valid = FALSE;
|
||||
M_FONTDATA->m_valid = false;
|
||||
}
|
||||
|
||||
void wxFont::SetUnderlined(bool underlined)
|
||||
@@ -331,5 +331,5 @@ void wxFont::SetEncoding(wxFontEncoding encoding)
|
||||
AllocExclusive();
|
||||
|
||||
M_FONTDATA->m_encoding = encoding;
|
||||
M_FONTDATA->m_valid = FALSE;
|
||||
M_FONTDATA->m_valid = false;
|
||||
}
|
||||
|
@@ -27,9 +27,8 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/dynarray.h"
|
||||
#include "wx/string.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/encinfo.h"
|
||||
#include "wx/fontutil.h"
|
||||
|
@@ -16,9 +16,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/string.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include <ctype.h>
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
|
||||
|
@@ -23,9 +23,9 @@
|
||||
#include "wx/hash.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/memory.h"
|
||||
#include "wx/evtloop.h"
|
||||
|
@@ -17,8 +17,12 @@
|
||||
#endif
|
||||
|
||||
#include "wx/checkbox.h"
|
||||
#include "wx/tglbtn.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/tglbtn.h"
|
||||
|
||||
#ifdef __VMS__
|
||||
#pragma message disable nosimpint
|
||||
|
@@ -20,7 +20,11 @@
|
||||
#endif
|
||||
|
||||
#include "wx/choice.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/arrstr.h"
|
||||
|
||||
#ifdef __VMS__
|
||||
|
@@ -27,10 +27,10 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dataobj.h"
|
||||
#include "wx/ptr_scpd.h"
|
||||
|
||||
|
@@ -13,8 +13,12 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/control.h"
|
||||
#include "wx/panel.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/panel.h"
|
||||
|
||||
#ifdef __VMS__
|
||||
#pragma message disable nosimpint
|
||||
|
@@ -20,9 +20,9 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/window.h"
|
||||
|
||||
#if wxUSE_IMAGE
|
||||
|
@@ -16,9 +16,8 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#ifdef __VMS__
|
||||
#pragma message disable nosimpint
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dcmemory.cpp
|
||||
// Name: src/motif/dcmemory.cpp
|
||||
// Purpose: wxMemoryDC class
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
@@ -13,8 +13,12 @@
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/settings.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/settings.h"
|
||||
|
||||
#ifdef __VMS__
|
||||
#pragma message disable nosimpint
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user