summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
471aebd)
Found out how to do wxUSE_XX 0 and 1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1324
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
38 files changed:
#include "wx/object.h"
#include "wx/list.h"
#include "wx/object.h"
#include "wx/list.h"
#include "wx/object.h"
#include "wx/control.h"
#include "wx/object.h"
#include "wx/control.h"
#endif
#include "wx/dc.h"
#endif
#include "wx/dc.h"
+
+#if wxUSE_POSTSCRIPT
+
#include "wx/dialog.h"
#include "wx/module.h"
#include <fstream.h>
#include "wx/dialog.h"
#include "wx/module.h"
#include <fstream.h>
//-----------------------------------------------------------------------------
// classes
//-----------------------------------------------------------------------------
// classes
-#ifdef wxUSE_DRAG_AND_DROP
#include "wx/object.h"
#include "wx/string.h"
#include "wx/object.h"
#include "wx/string.h"
void SetString( int n, const wxString &string );
void SetStringSelection( const wxString &string, bool select = TRUE );
void SetString( int n, const wxString &string );
void SetStringSelection( const wxString &string, bool select = TRUE );
-#ifdef wxUSE_DRAG_AND_DROP
void SetDropTarget( wxDropTarget *dropTarget );
#endif
void SetDropTarget( wxDropTarget *dropTarget );
#endif
class wxClientData;
class wxVoidClientData;
class wxWindow;
class wxClientData;
class wxVoidClientData;
class wxWindow;
-#ifdef wxUSE_WX_RESOURCES
class wxResourceTable;
class wxItemResource;
#endif
class wxResourceTable;
class wxItemResource;
#endif
-#ifdef wxUSE_DRAG_AND_DROP
class wxDropTarget;
#endif
class wxDropTarget;
#endif
virtual bool PopupMenu( wxMenu *menu, int x, int y );
virtual bool PopupMenu( wxMenu *menu, int x, int y );
-#ifdef wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget );
virtual wxDropTarget *GetDropTarget() const;
#endif
virtual void SetDropTarget( wxDropTarget *dropTarget );
virtual wxDropTarget *GetDropTarget() const;
#endif
int m_retCode;
wxEvtHandler *m_eventHandler;
wxValidator *m_windowValidator;
int m_retCode;
wxEvtHandler *m_eventHandler;
wxValidator *m_windowValidator;
-#ifdef wxUSE_DRAG_AND_DROP
wxDropTarget *m_dropTarget;
#endif
wxWindowID m_windowId;
wxDropTarget *m_dropTarget;
#endif
wxWindowID m_windowId;
#include "wx/object.h"
#include "wx/list.h"
#include "wx/object.h"
#include "wx/list.h"
#include "wx/object.h"
#include "wx/control.h"
#include "wx/object.h"
#include "wx/control.h"
#endif
#include "wx/dc.h"
#endif
#include "wx/dc.h"
+
+#if wxUSE_POSTSCRIPT
+
#include "wx/dialog.h"
#include "wx/module.h"
#include <fstream.h>
#include "wx/dialog.h"
#include "wx/module.h"
#include <fstream.h>
//-----------------------------------------------------------------------------
// classes
//-----------------------------------------------------------------------------
// classes
-#ifdef wxUSE_DRAG_AND_DROP
#include "wx/object.h"
#include "wx/string.h"
#include "wx/object.h"
#include "wx/string.h"
void SetString( int n, const wxString &string );
void SetStringSelection( const wxString &string, bool select = TRUE );
void SetString( int n, const wxString &string );
void SetStringSelection( const wxString &string, bool select = TRUE );
-#ifdef wxUSE_DRAG_AND_DROP
void SetDropTarget( wxDropTarget *dropTarget );
#endif
void SetDropTarget( wxDropTarget *dropTarget );
#endif
class wxClientData;
class wxVoidClientData;
class wxWindow;
class wxClientData;
class wxVoidClientData;
class wxWindow;
-#ifdef wxUSE_WX_RESOURCES
class wxResourceTable;
class wxItemResource;
#endif
class wxResourceTable;
class wxItemResource;
#endif
-#ifdef wxUSE_DRAG_AND_DROP
class wxDropTarget;
#endif
class wxDropTarget;
#endif
virtual bool PopupMenu( wxMenu *menu, int x, int y );
virtual bool PopupMenu( wxMenu *menu, int x, int y );
-#ifdef wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget );
virtual wxDropTarget *GetDropTarget() const;
#endif
virtual void SetDropTarget( wxDropTarget *dropTarget );
virtual wxDropTarget *GetDropTarget() const;
#endif
int m_retCode;
wxEvtHandler *m_eventHandler;
wxValidator *m_windowValidator;
int m_retCode;
wxEvtHandler *m_eventHandler;
wxValidator *m_windowValidator;
-#ifdef wxUSE_DRAG_AND_DROP
wxDropTarget *m_dropTarget;
#endif
wxWindowID m_windowId;
wxDropTarget *m_dropTarget;
#endif
wxWindowID m_windowId;
#include <windows.h>
#endif
#include <windows.h>
#endif
#ifdef __WXGTK__
extern "C" {
#ifdef __WXGTK__
extern "C" {
-#include <../iodbc/postgres/isqlext.h>
-#include <../iodbc/postgres/odbc_funcs.h>
-#include <../iodbc/postgres/odbc_types.h>
+#include <../iodbc/isql.h>
+#include <../iodbc/isqlext.h>
+#include <../iodbc/odbc_funcs.h>
+#include <../iodbc/odbc_types.h>
+typedef float SFLOAT;
+typedef double SDOUBLE;
+#define ULONG UDWORD
}
#else
#include <sqlext.h>
}
#else
#include <sqlext.h>
// ----------------------------------------------------------------------------
// Critical section: this is the same as mutex but is only visible to the
// threads of the same process. For the platforms which don't have native
// ----------------------------------------------------------------------------
// Critical section: this is the same as mutex but is only visible to the
// threads of the same process. For the platforms which don't have native
wxCriticalSection *m_critsect;
};
wxCriticalSection *m_critsect;
};
// ----------------------------------------------------------------------------
// Condition handler.
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Condition handler.
// ----------------------------------------------------------------------------
//------------------------------------------------------------------------
//------------------------------------------------------------------------
+// GUI control options (allways enabled in wxGTK)
//------------------------------------------------------------------------
/*
//------------------------------------------------------------------------
/*
/*
* Use time and date classes
*/
/*
* Use time and date classes
*/
+#define wxUSE_TIMEDATE 0
/*
* Use config system
*/
/*
* Use config system
*/
/*
* Use class serialization
*/
/*
* Use class serialization
*/
+#define wxUSE_SERIAL 0
+/*
+ * Use standard C++ streams if 1. If 0, use wxWin
+ * streams implementation.
+ */
+#define wxUSE_STD_IOSTREAM 1
//------------------------------------------------------------------------
// PS options
//------------------------------------------------------------------------
// PS options
* Use font metric files in GetTextExtent for wxPostScriptDC
* Use consistent PostScript fonts for AFM and printing (!)
*/
* Use font metric files in GetTextExtent for wxPostScriptDC
* Use consistent PostScript fonts for AFM and printing (!)
*/
-#undef wxUSE_AFM_FOR_POSTSCRIPT
-#undef WX_NORMALIZED_PS_FONTS
+#define wxUSE_AFM_FOR_POSTSCRIPT 0
+#define WX_NORMALIZED_PS_FONTS 0
/*
* Use PostScript device context
*/
/*
* Use PostScript device context
*/
+#define wxUSE_POSTSCRIPT 0
//------------------------------------------------------------------------
// wxString options
//------------------------------------------------------------------------
// wxString options
/*
* Compile wxString with wide character (Unicode) support?
*/
/*
* Compile wxString with wide character (Unicode) support?
*/
/*
* Work around a bug in GNU libc 5.x wcstombs() implementation.
/*
* Work around a bug in GNU libc 5.x wcstombs() implementation.
* have libc 5 (you should enable this for libc6 where wcsrtombs() is
* thread-safe version of wcstombs()).
*/
* have libc 5 (you should enable this for libc6 where wcsrtombs() is
* thread-safe version of wcstombs()).
*/
+#define wxUSE_WCSRTOMBS 0
//------------------------------------------------------------------------
// misc options
//------------------------------------------------------------------------
// misc options
/*
* Use Interprocess communication
*/
/*
* Use Interprocess communication
*/
/*
* Use wxGetResource & wxWriteResource (change .Xdefaults)
*/
/*
* Use wxGetResource & wxWriteResource (change .Xdefaults)
*/
+#define wxUSE_RESOURCES 0
+#define wxUSE_CLIPBOARD 0
-#undef wxUSE_DRAG_AND_DROP
+#define wxUSE_DRAG_AND_DROP 0
//------------------------------------------------------------------------
// architecture options
//------------------------------------------------------------------------
// architecture options
/*
* Use the mdi architecture
*/
/*
* Use the mdi architecture
*/
-#undef wxUSE_MDI_ARCHITECTURE
+#define wxUSE_MDI_ARCHITECTURE 0
/*
* Use the document/view architecture
*/
/*
* Use the document/view architecture
*/
-#undef wxUSE_DOC_VIEW_ARCHITECTURE
+#define wxUSE_DOC_VIEW_ARCHITECTURE 0
/*
* Use the print/preview architecture
*/
/*
* Use the print/preview architecture
*/
-#undef wxUSE_PRINTING_ARCHITECTURE
+#define wxUSE_PRINTING_ARCHITECTURE 0
//------------------------------------------------------------------------
// Prolog and wxWindows' resource system options
//------------------------------------------------------------------------
// Prolog and wxWindows' resource system options
+#define wxUSE_PROLOGIO 0
/*
* Use Remote Procedure Call (Needs wxUSE_IPC and wxUSE_PROLOGIO)
*/
/*
* Use Remote Procedure Call (Needs wxUSE_IPC and wxUSE_PROLOGIO)
*/
/*
* Use wxWindows resource loading (.wxr-files) (Needs wxUSE_PROLOGIO 1)
*/
/*
* Use wxWindows resource loading (.wxr-files) (Needs wxUSE_PROLOGIO 1)
*/
-#undef wxUSE_WX_RESOURCES
+#define wxUSE_WX_RESOURCES 0
//------------------------------------------------------------------------
// the rest
//------------------------------------------------------------------------
// the rest
/*
* Use wxWindows help facility (needs wxUSE_IPC 1)
*/
/*
* Use wxWindows help facility (needs wxUSE_IPC 1)
*/
/*
* Use iostream.h rather than iostream
*/
/*
* Use iostream.h rather than iostream
*/
+#define wxUSE_IOSTREAMH 0
/*
* Use Apple Ieee-double converter
*/
/*
* Use Apple Ieee-double converter
*/
+#define wxUSE_APPLE_IEEE 0
/* Compatibility with 1.66 API.
Level 0: no backward compatibility, all new features
Level 1: wxDC, OnSize (etc.) compatibility, but
/* Compatibility with 1.66 API.
Level 0: no backward compatibility, all new features
Level 1: wxDC, OnSize (etc.) compatibility, but
/*
* Enables debugging: memory tracing, assert, etc., contains debug level
*/
/*
* Enables debugging: memory tracing, assert, etc., contains debug level
*/
/*
* Enables debugging version of wxObject::new and wxObject::delete (IF WXDEBUG)
* WARNING: this code may not work with all architectures, especially
* if alignment is an issue.
*/
/*
* Enables debugging version of wxObject::new and wxObject::delete (IF WXDEBUG)
* WARNING: this code may not work with all architectures, especially
* if alignment is an issue.
*/
-#undef wxUSE_MEMORY_TRACING
+#define wxUSE_MEMORY_TRACING 0
/*
* Enable debugging version of global memory operators new and delete
* Disable it, If this causes problems (e.g. link errors)
*/
/*
* Enable debugging version of global memory operators new and delete
* Disable it, If this causes problems (e.g. link errors)
*/
-#undef wxUSE_GLOBAL_MEMORY_OPERATORS
+#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
/*
* Matthews garbage collection (used for MrEd?)
*/
/*
* Matthews garbage collection (used for MrEd?)
*/
int height = (int)dbuf[1];
if (width > 32767)
{
int height = (int)dbuf[1];
if (width > 32767)
{
- fprintf(stderr, "IMLIB ERROR: Image width > 32767 pixels for file\n");
+ wxLogError( "Image width > 32767 pixels for file\n" );
fclose(file);
return FALSE;
}
if (height > 32767)
{
fclose(file);
return FALSE;
}
if (height > 32767)
{
- fprintf(stderr, "IMLIB ERROR: Image height > 32767 pixels for file\n");
+ wxLogError( "Image height > 32767 pixels for file\n" );
fclose(file);
return FALSE;
}
fclose(file);
return FALSE;
}
bpp = (int)word;
if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp != 24 && bpp != 32)
{
bpp = (int)word;
if (bpp != 1 && bpp != 4 && bpp != 8 && bpp && 16 && bpp != 24 && bpp != 32)
{
- fprintf(stderr, "IMLIB ERROR: unknown bitdepth in file\n");
+ wxLogError( "unknown bitdepth in file\n" );
fclose(file);
return FALSE;
}
fclose(file);
return FALSE;
}
comp = (int)dbuf[0];
if (comp != BI_RGB && comp != BI_RLE4 && comp != BI_RLE8 && comp != BI_BITFIELDS)
{
comp = (int)dbuf[0];
if (comp != BI_RGB && comp != BI_RLE4 && comp != BI_RLE8 && comp != BI_BITFIELDS)
{
- fprintf(stderr, "IMLIB ERROR: unknown encoding in Windows BMP file\n");
+ wxLogError( "unknown encoding in Windows BMP file\n" );
fclose(file);
return FALSE;
}
fclose(file);
return FALSE;
}
/* some more sanity checks */
if (((comp == BI_RLE4) && (bpp != 4)) || ((comp == BI_RLE8) && (bpp != 8)) || ((comp == BI_BITFIELDS) && (bpp != 16 && bpp != 32)))
{
/* some more sanity checks */
if (((comp == BI_RLE4) && (bpp != 4)) || ((comp == BI_RLE8) && (bpp != 8)) || ((comp == BI_BITFIELDS) && (bpp != 16 && bpp != 32)))
{
- fprintf(stderr, "IMLIB ERROR: encoding of BMP doesn't match bitdepth\n");
+ wxLogError( "encoding of BMP doesn't match bitdepth\n" );
fclose(file);
return FALSE;
}
fclose(file);
return FALSE;
}
- fprintf(stderr, "IMLIB ERROR: Cannot allocate RAM for color map in BMP file\n");
+ wxLogError( "Cannot allocate RAM for color map in BMP file\n" );
fclose(file);
return FALSE;
}
fclose(file);
return FALSE;
}
ptr = image->GetData();
if (!ptr)
{
ptr = image->GetData();
if (!ptr)
{
- fprintf(stderr, "IMLIB ERROR: Cannot allocate RAM for RGB data in file\n");
+ wxLogError( "Cannot allocate RAM for RGB data in file\n" );
fclose(file);
if (cmap)
free(cmap);
fclose(file);
if (cmap)
free(cmap);
- fprintf(stderr, "can't deal with 4bit encoded yet.\n");
+ wxLogError( "can't deal with 4bit encoded yet.\n");
image->Destroy();
free(cmap);
return FALSE;
image->Destroy();
free(cmap);
return FALSE;
GdkVisual *visual = gdk_window_get_visual( bitmap.GetPixmap() );
if (visual == NULL) visual = gdk_window_get_visual( (GdkWindow*) &gdk_root_parent );
int bpp = visual->depth;
GdkVisual *visual = gdk_window_get_visual( bitmap.GetPixmap() );
if (visual == NULL) visual = gdk_window_get_visual( (GdkWindow*) &gdk_root_parent );
int bpp = visual->depth;
+
+ bitmap.SetDepth( bpp );
+
if ((bpp == 16) && (visual->red_mask != 0xf800)) bpp = 15;
if (bpp < 8) bpp = 8;
if ((bpp == 16) && (visual->red_mask != 0xf800)) bpp = 15;
if (bpp < 8) bpp = 8;
#include "wx/intl.h"
#endif
#include "wx/intl.h"
#endif
+#if wxUSE_RADIOBUTTON
+#include "wx/radiobut.h"
+#endif
+
#if wxUSE_SCROLLBAR
#include "wx/scrolbar.h"
#endif
#if wxUSE_SCROLLBAR
#include "wx/scrolbar.h"
#endif
#include "wx/memory.h"
#include "wx/font.h"
#include "wx/settings.h"
#include "wx/memory.h"
#include "wx/font.h"
#include "wx/settings.h"
-#ifdef wxUSE_WX_RESOURCES
#include "wx/resource.h"
#endif
#include "wx/module.h"
#include "wx/image.h"
#include "wx/resource.h"
#endif
#include "wx/module.h"
#include "wx/image.h"
#include "wx/thread.h"
#endif
#include "unistd.h"
#include "wx/thread.h"
#endif
#include "unistd.h"
gint wxapp_idle_callback( gpointer WXUNUSED(data) )
{
if (wxTheApp) while (wxTheApp->ProcessIdle()) {}
gint wxapp_idle_callback( gpointer WXUNUSED(data) )
{
if (wxTheApp) while (wxTheApp->ProcessIdle()) {}
wxMutexGuiLeave();
#endif
usleep(10000);
wxMutexGuiLeave();
#endif
usleep(10000);
wxMutexGuiEnter();
#endif
return TRUE;
wxMutexGuiEnter();
#endif
return TRUE;
wxInitializeStockLists();
wxInitializeStockObjects();
wxInitializeStockLists();
wxInitializeStockObjects();
-#ifdef wxUSE_WX_RESOURCES
wxTheResourceCache = new wxResourceCache(wxKEY_STRING);
wxInitializeResourceSystem();
wxTheResourceCache = new wxResourceCache(wxKEY_STRING);
wxInitializeResourceSystem();
wxDELETE(wxTheFontNameDirectory);
wxDeleteStockObjects();
wxDELETE(wxTheFontNameDirectory);
wxDeleteStockObjects();
-#ifdef wxUSE_WX_RESOURCES
wxFlushResources();
wxDELETE(wxTheResourceCache);
wxFlushResources();
wxDELETE(wxTheResourceCache);
#include "glib.h"
#include "gdk/gdk.h"
#include "glib.h"
#include "gdk/gdk.h"
+
+#include "wx/defs.h"
+
+#if wxUSE_POSTSCRIPT
+
#include "wx/postscrp.h"
#include "wx/dcmemory.h"
#include "wx/utils.h"
#include "wx/postscrp.h"
#include "wx/dcmemory.h"
#include "wx/utils.h"
+#endif
+ // wxUSE_POSTSCRIPT
-#ifdef wxUSE_DRAG_AND_DROP
#include "wx/window.h"
#include "wx/app.h"
#include "wx/window.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/checklst.h"
#include "wx/intl.h"
#include "wx/checklst.h"
+#if wxUSE_DRAG_AND_DROP
+#include "wx/dnd.h"
+#endif
+
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
ConnectWidget( list_item );
ConnectWidget( list_item );
-#ifdef wxUSE_DRAG_AND_DROP
#ifndef NEW_GTK_DND_CODE
if (m_dropTarget) m_dropTarget->RegisterWidget( list_item );
#endif
#ifndef NEW_GTK_DND_CODE
if (m_dropTarget) m_dropTarget->RegisterWidget( list_item );
#endif
-#ifdef wxUSE_DRAG_AND_DROP
void wxListBox::SetDropTarget( wxDropTarget *dropTarget )
{
wxCHECK_RET( m_list != NULL, "invalid listbox" );
void wxListBox::SetDropTarget( wxDropTarget *dropTarget )
{
wxCHECK_RET( m_list != NULL, "invalid listbox" );
#include "wx/menu.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/menu.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
static void gtk_menu_clicked_callback( GtkWidget *widget, wxMenu *menu )
{
static void gtk_menu_clicked_callback( GtkWidget *widget, wxMenu *menu )
{
int id = menu->FindMenuIdByMenuItem(widget);
/* should find it for normal (not popup) menu */
int id = menu->FindMenuIdByMenuItem(widget);
/* should find it for normal (not popup) menu */
-void wxThread::TestDestroy()
+bool wxThread::TestDestroy()
{
if (p_internal->state == STATE_PAUSING)
{
{
if (p_internal->state == STATE_PAUSING)
{
}
}
pthread_testcancel();
}
}
pthread_testcancel();
+
+ return TRUE; /* what is this for? */
}
bool wxThread::IsMain()
}
bool wxThread::IsMain()
// wxThreadModule
//--------------------------------------------------------------------
// wxThreadModule
//--------------------------------------------------------------------
+class wxThreadModule : public wxModule
+{
+public:
+ virtual bool OnInit();
+ virtual void OnExit();
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxThreadModule)
+};
+
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
+class wxThreadModule : public wxModule
+{
+public:
+ virtual bool OnInit();
+ virtual void OnExit();
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxThreadModule)
+};
+
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
-#ifdef wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif
#include "wx/menu.h"
#include "wx/dnd.h"
#endif
#include "wx/menu.h"
m_isShown = FALSE;
m_isEnabled = TRUE;
m_isShown = FALSE;
m_isEnabled = TRUE;
-#ifdef wxUSE_DRAG_AND_DROP
m_dropTarget = (wxDropTarget*) NULL;
#endif
m_resizing = FALSE;
m_dropTarget = (wxDropTarget*) NULL;
#endif
m_resizing = FALSE;
-#ifdef wxUSE_DRAG_AND_DROP
if (m_dropTarget) delete m_dropTarget;
#endif
if (m_dropTarget) delete m_dropTarget;
#endif
m_isShown = FALSE;
m_isEnabled = TRUE;
m_isShown = FALSE;
m_isEnabled = TRUE;
-#ifdef wxUSE_DRAG_AND_DROP
m_dropTarget = (wxDropTarget *) NULL;
#endif
m_resizing = FALSE;
m_dropTarget = (wxDropTarget *) NULL;
#endif
m_resizing = FALSE;
-#ifdef wxUSE_DRAG_AND_DROP
void wxWindow::SetDropTarget( wxDropTarget *dropTarget )
{
void wxWindow::SetDropTarget( wxDropTarget *dropTarget )
{
#include "wx/memory.h"
#include "wx/font.h"
#include "wx/settings.h"
#include "wx/memory.h"
#include "wx/font.h"
#include "wx/settings.h"
-#ifdef wxUSE_WX_RESOURCES
#include "wx/resource.h"
#endif
#include "wx/module.h"
#include "wx/image.h"
#include "wx/resource.h"
#endif
#include "wx/module.h"
#include "wx/image.h"
#include "wx/thread.h"
#endif
#include "unistd.h"
#include "wx/thread.h"
#endif
#include "unistd.h"
gint wxapp_idle_callback( gpointer WXUNUSED(data) )
{
if (wxTheApp) while (wxTheApp->ProcessIdle()) {}
gint wxapp_idle_callback( gpointer WXUNUSED(data) )
{
if (wxTheApp) while (wxTheApp->ProcessIdle()) {}
wxMutexGuiLeave();
#endif
usleep(10000);
wxMutexGuiLeave();
#endif
usleep(10000);
wxMutexGuiEnter();
#endif
return TRUE;
wxMutexGuiEnter();
#endif
return TRUE;
wxInitializeStockLists();
wxInitializeStockObjects();
wxInitializeStockLists();
wxInitializeStockObjects();
-#ifdef wxUSE_WX_RESOURCES
wxTheResourceCache = new wxResourceCache(wxKEY_STRING);
wxInitializeResourceSystem();
wxTheResourceCache = new wxResourceCache(wxKEY_STRING);
wxInitializeResourceSystem();
wxDELETE(wxTheFontNameDirectory);
wxDeleteStockObjects();
wxDELETE(wxTheFontNameDirectory);
wxDeleteStockObjects();
-#ifdef wxUSE_WX_RESOURCES
wxFlushResources();
wxDELETE(wxTheResourceCache);
wxFlushResources();
wxDELETE(wxTheResourceCache);
#include "glib.h"
#include "gdk/gdk.h"
#include "glib.h"
#include "gdk/gdk.h"
+
+#include "wx/defs.h"
+
+#if wxUSE_POSTSCRIPT
+
#include "wx/postscrp.h"
#include "wx/dcmemory.h"
#include "wx/utils.h"
#include "wx/postscrp.h"
#include "wx/dcmemory.h"
#include "wx/utils.h"
+#endif
+ // wxUSE_POSTSCRIPT
-#ifdef wxUSE_DRAG_AND_DROP
#include "wx/window.h"
#include "wx/app.h"
#include "wx/window.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/checklst.h"
#include "wx/intl.h"
#include "wx/checklst.h"
+#if wxUSE_DRAG_AND_DROP
+#include "wx/dnd.h"
+#endif
+
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
ConnectWidget( list_item );
ConnectWidget( list_item );
-#ifdef wxUSE_DRAG_AND_DROP
#ifndef NEW_GTK_DND_CODE
if (m_dropTarget) m_dropTarget->RegisterWidget( list_item );
#endif
#ifndef NEW_GTK_DND_CODE
if (m_dropTarget) m_dropTarget->RegisterWidget( list_item );
#endif
-#ifdef wxUSE_DRAG_AND_DROP
void wxListBox::SetDropTarget( wxDropTarget *dropTarget )
{
wxCHECK_RET( m_list != NULL, "invalid listbox" );
void wxListBox::SetDropTarget( wxDropTarget *dropTarget )
{
wxCHECK_RET( m_list != NULL, "invalid listbox" );
#include "wx/menu.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/menu.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
static void gtk_menu_clicked_callback( GtkWidget *widget, wxMenu *menu )
{
static void gtk_menu_clicked_callback( GtkWidget *widget, wxMenu *menu )
{
int id = menu->FindMenuIdByMenuItem(widget);
/* should find it for normal (not popup) menu */
int id = menu->FindMenuIdByMenuItem(widget);
/* should find it for normal (not popup) menu */
-void wxThread::TestDestroy()
+bool wxThread::TestDestroy()
{
if (p_internal->state == STATE_PAUSING)
{
{
if (p_internal->state == STATE_PAUSING)
{
}
}
pthread_testcancel();
}
}
pthread_testcancel();
+
+ return TRUE; /* what is this for? */
}
bool wxThread::IsMain()
}
bool wxThread::IsMain()
// wxThreadModule
//--------------------------------------------------------------------
// wxThreadModule
//--------------------------------------------------------------------
+class wxThreadModule : public wxModule
+{
+public:
+ virtual bool OnInit();
+ virtual void OnExit();
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxThreadModule)
+};
+
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
+class wxThreadModule : public wxModule
+{
+public:
+ virtual bool OnInit();
+ virtual void OnExit();
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxThreadModule)
+};
+
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/msgdlg.h"
-#ifdef wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif
#include "wx/menu.h"
#include "wx/dnd.h"
#endif
#include "wx/menu.h"
m_isShown = FALSE;
m_isEnabled = TRUE;
m_isShown = FALSE;
m_isEnabled = TRUE;
-#ifdef wxUSE_DRAG_AND_DROP
m_dropTarget = (wxDropTarget*) NULL;
#endif
m_resizing = FALSE;
m_dropTarget = (wxDropTarget*) NULL;
#endif
m_resizing = FALSE;
-#ifdef wxUSE_DRAG_AND_DROP
if (m_dropTarget) delete m_dropTarget;
#endif
if (m_dropTarget) delete m_dropTarget;
#endif
m_isShown = FALSE;
m_isEnabled = TRUE;
m_isShown = FALSE;
m_isEnabled = TRUE;
-#ifdef wxUSE_DRAG_AND_DROP
m_dropTarget = (wxDropTarget *) NULL;
#endif
m_resizing = FALSE;
m_dropTarget = (wxDropTarget *) NULL;
#endif
m_resizing = FALSE;
-#ifdef wxUSE_DRAG_AND_DROP
void wxWindow::SetDropTarget( wxDropTarget *dropTarget )
{
void wxWindow::SetDropTarget( wxDropTarget *dropTarget )
{
// wxThreadModule
//--------------------------------------------------------------------
// wxThreadModule
//--------------------------------------------------------------------
+class wxThreadModule : public wxModule
+{
+public:
+ virtual bool OnInit();
+ virtual void OnExit();
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxThreadModule)
+};
+
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
bool wxThreadModule::OnInit()