moved wxapp_install_idle_handler and g_isIdle from many cpp files into gtk/private.h (patch 1435529)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,6 +53,17 @@ void gtk_window_set_policy (GtkWindow *window,
|
|||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// idle system
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
extern void wxapp_install_idle_handler();
|
||||||
|
extern bool g_isIdle;
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// GTK+ scroll types -> wxEventType
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
// translate a GTK+ scroll type to a wxEventType
|
// translate a GTK+ scroll type to a wxEventType
|
||||||
inline wxEventType GtkScrollTypeToWx(guint scrollType)
|
inline wxEventType GtkScrollTypeToWx(guint scrollType)
|
||||||
{
|
{
|
||||||
@@ -89,6 +100,11 @@ inline wxEventType GtkScrollWinTypeToWx(guint scrollType)
|
|||||||
wxEVT_SCROLLWIN_TOP - wxEVT_SCROLL_TOP;
|
wxEVT_SCROLLWIN_TOP - wxEVT_SCROLL_TOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Misc. functions
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
// Needed for implementing e.g. combobox on wxGTK within a modal dialog.
|
// Needed for implementing e.g. combobox on wxGTK within a modal dialog.
|
||||||
void wxAddGrab(wxWindow* window);
|
void wxAddGrab(wxWindow* window);
|
||||||
void wxRemoveGrab(wxWindow* window);
|
void wxRemoveGrab(wxWindow* window);
|
||||||
|
@@ -74,6 +74,7 @@
|
|||||||
|
|
||||||
#include "wx/unix/private.h"
|
#include "wx/unix/private.h"
|
||||||
#include "wx/gtk/win_gtk.h"
|
#include "wx/gtk/win_gtk.h"
|
||||||
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
@@ -90,8 +91,6 @@ static GtkWidget *gs_RootWindow = (GtkWidget*) NULL;
|
|||||||
// idle system
|
// idle system
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
void wxapp_install_idle_handler();
|
void wxapp_install_idle_handler();
|
||||||
|
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
|
@@ -24,13 +24,6 @@
|
|||||||
|
|
||||||
class wxBitmapButton;
|
class wxBitmapButton;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -26,13 +26,6 @@
|
|||||||
|
|
||||||
class wxButton;
|
class wxButton;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -18,13 +18,6 @@
|
|||||||
|
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -24,13 +24,6 @@
|
|||||||
|
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -28,13 +28,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -14,16 +14,11 @@
|
|||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
|
|
||||||
|
#include "wx/gtk/private.h" //for idle stuff
|
||||||
|
|
||||||
#include <gdk/gdk.h>
|
#include <gdk/gdk.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// wxCursor
|
// wxCursor
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -37,13 +37,6 @@
|
|||||||
|
|
||||||
class wxDataViewCtrl;
|
class wxDataViewCtrl;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -29,13 +29,6 @@
|
|||||||
#include <gtk/gtkdnd.h>
|
#include <gtk/gtkdnd.h>
|
||||||
#include <gtk/gtkselection.h>
|
#include <gtk/gtkselection.h>
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// global data
|
// global data
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
@@ -25,13 +25,6 @@
|
|||||||
|
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// "delete_event"
|
// "delete_event"
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -48,13 +48,6 @@
|
|||||||
const int wxSTATUS_HEIGHT = 25;
|
const int wxSTATUS_HEIGHT = 25;
|
||||||
const int wxPLACE_HOLDER = 0;
|
const int wxPLACE_HOLDER = 0;
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// event tables
|
// event tables
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -45,12 +45,6 @@ int wxGLCanvas::m_glxVersion = 0;
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
XVisualInfo *g_vi = (XVisualInfo*) NULL;
|
XVisualInfo *g_vi = (XVisualInfo*) NULL;
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// wxGLContext
|
// wxGLContext
|
||||||
|
@@ -43,12 +43,6 @@ extern bool g_blockEventsOnScroll;
|
|||||||
extern wxCursor g_globalCursor;
|
extern wxCursor g_globalCursor;
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Macro to tell which row the strings are in (1 if native checklist, 0 if not)
|
// Macro to tell which row the strings are in (1 if native checklist, 0 if not)
|
||||||
|
@@ -31,13 +31,6 @@
|
|||||||
|
|
||||||
const int wxMENU_HEIGHT = 27;
|
const int wxMENU_HEIGHT = 27;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// globals
|
// globals
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -48,9 +48,6 @@ static const int wxGTK_TITLE_ID = -3;
|
|||||||
// idle system
|
// idle system
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
#if wxUSE_ACCEL
|
#if wxUSE_ACCEL
|
||||||
static wxString GetGtkHotKey( const wxMenuItem& item );
|
static wxString GetGtkHotKey( const wxMenuItem& item );
|
||||||
#endif
|
#endif
|
||||||
|
@@ -24,13 +24,6 @@
|
|||||||
#include <gdk/gdkprivate.h>
|
#include <gdk/gdkprivate.h>
|
||||||
#include <gdk/gdkx.h>
|
#include <gdk/gdkx.h>
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -42,13 +42,6 @@
|
|||||||
DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)
|
DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)
|
||||||
DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)
|
DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -21,15 +21,9 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <gdk/gdkkeysyms.h>
|
#include <gdk/gdkkeysyms.h>
|
||||||
|
|
||||||
|
#include "wx/gtk/private.h" //for idle stuff
|
||||||
#include "wx/gtk/win_gtk.h"
|
#include "wx/gtk/win_gtk.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// "button_press"
|
// "button_press"
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -23,13 +23,6 @@
|
|||||||
|
|
||||||
#include "wx/gtk/win_gtk.h"
|
#include "wx/gtk/win_gtk.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -16,13 +16,6 @@
|
|||||||
|
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -18,13 +18,6 @@
|
|||||||
#include "wx/math.h"
|
#include "wx/math.h"
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -18,13 +18,6 @@
|
|||||||
#include "wx/math.h"
|
#include "wx/math.h"
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -19,13 +19,6 @@
|
|||||||
#include "wx/math.h"
|
#include "wx/math.h"
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -25,9 +25,6 @@
|
|||||||
// idle system
|
// idle system
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
static const float sensitivity = 0.02;
|
static const float sensitivity = 0.02;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -38,10 +38,6 @@
|
|||||||
// globals
|
// globals
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// idle system
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
// data
|
// data
|
||||||
extern bool g_blockEventsOnDrag;
|
extern bool g_blockEventsOnDrag;
|
||||||
extern wxCursor g_globalCursor;
|
extern wxCursor g_globalCursor;
|
||||||
|
@@ -28,13 +28,6 @@
|
|||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
#include <gdk/gdkkeysyms.h>
|
#include <gdk/gdkkeysyms.h>
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
extern bool g_blockEventsOnDrag;
|
extern bool g_blockEventsOnDrag;
|
||||||
extern wxCursor g_globalCursor;
|
extern wxCursor g_globalCursor;
|
||||||
|
|
||||||
|
@@ -48,13 +48,6 @@
|
|||||||
// XA_CARDINAL
|
// XA_CARDINAL
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// data
|
// data
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -282,13 +282,6 @@ gdk_window_warp_pointer (GdkWindow *window,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// idle system
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
extern void wxapp_install_idle_handler();
|
|
||||||
extern bool g_isIdle;
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// local code (see below)
|
// local code (see below)
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user