mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Upgrade WX to r74856, mainly to support @2x.
This commit is contained in:
1
Externals/wxWidgets3/include/wx/gtk/accel.h
vendored
1
Externals/wxWidgets3/include/wx/gtk/accel.h
vendored
@ -5,7 +5,6 @@
|
||||
// Modified by:
|
||||
// Created:
|
||||
// Copyright: (c) Julian Smart
|
||||
// RCS-ID: $Id: accel.h 33948 2005-05-04 18:57:50Z JS $
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Julian Smart and Guillermo Rodriguez Garcia
|
||||
// Modified by: Francesco Montorsi
|
||||
// Created: 13/8/99
|
||||
// RCS-ID: $Id: animate.h 70520 2012-02-05 22:53:39Z SN $
|
||||
// Copyright: (c) Julian Smart and Guillermo Rodriguez Garcia
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -95,8 +94,6 @@ public:
|
||||
Create(parent, id, anim, pos, size, style, name);
|
||||
}
|
||||
|
||||
void Init();
|
||||
|
||||
bool Create(wxWindow *parent, wxWindowID id,
|
||||
const wxAnimation& anim = wxNullAnimation,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
@ -146,6 +143,9 @@ protected: // internal vars
|
||||
|
||||
private:
|
||||
typedef wxAnimationCtrlBase base_type;
|
||||
|
||||
void Init();
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxAnimationCtrl)
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxGTK wxAnyButton class declaration
|
||||
// Author: Robert Roebling
|
||||
// Created: 1998-05-20 (extracted from button.h)
|
||||
// Id: $Id: anybutton.h 67931 2011-06-14 13:00:42Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
8
Externals/wxWidgets3/include/wx/gtk/app.h
vendored
8
Externals/wxWidgets3/include/wx/gtk/app.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/app.h
|
||||
// Purpose: wxApp definition for wxGTK
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: app.h 69020 2011-09-07 16:56:50Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -56,6 +55,13 @@ public:
|
||||
// must return XVisualInfo pointer (it is not freed by caller)
|
||||
virtual void *GetXVisualInfo() { return NULL; }
|
||||
|
||||
// Check if we're using a global menu. Currently this is only true when
|
||||
// running under Ubuntu Unity and global menu is not disabled.
|
||||
//
|
||||
// This is mostly used in the implementation in order to work around
|
||||
// various bugs arising due to this.
|
||||
static bool GTKIsUsingGlobalMenu();
|
||||
|
||||
#if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
|
||||
// Maemo-specific method: get the main program object
|
||||
HildonProgram *GetHildonProgram();
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/assertdlg_gtk.h
|
||||
// Purpose: GtkAssertDialog
|
||||
// Author: Francesco Montorsi
|
||||
// Id: $Id: assertdlg_gtk.h 67338 2011-03-30 05:35:24Z PC $
|
||||
// Copyright: (c) 2006 Francesco Montorsi
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////// */
|
||||
@ -72,7 +71,6 @@ void gtk_assert_dialog_set_backtrace_callback(GtkAssertDialog *assertdlg,
|
||||
/* appends a stack frame to the dialog */
|
||||
void gtk_assert_dialog_append_stack_frame(GtkAssertDialog *dlg,
|
||||
const gchar *function,
|
||||
const gchar *arguments,
|
||||
const gchar *sourcefile,
|
||||
guint line_number);
|
||||
|
||||
|
43
Externals/wxWidgets3/include/wx/gtk/bitmap.h
vendored
43
Externals/wxWidgets3/include/wx/gtk/bitmap.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/bitmap.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id: bitmap.h 70165 2011-12-29 14:42:13Z SN $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -10,6 +9,10 @@
|
||||
#ifndef _WX_GTK_BITMAP_H_
|
||||
#define _WX_GTK_BITMAP_H_
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
typedef struct _cairo cairo_t;
|
||||
typedef struct _cairo_surface cairo_surface_t;
|
||||
#endif
|
||||
typedef struct _GdkPixbuf GdkPixbuf;
|
||||
class WXDLLIMPEXP_FWD_CORE wxPixelDataBase;
|
||||
|
||||
@ -28,16 +31,29 @@ public:
|
||||
#endif // wxUSE_PALETTE
|
||||
wxMask( const wxBitmap& bitmap );
|
||||
virtual ~wxMask();
|
||||
wxBitmap GetBitmap() const;
|
||||
|
||||
// implementation
|
||||
GdkPixmap* m_bitmap;
|
||||
GdkPixmap* GetBitmap() const;
|
||||
#ifdef __WXGTK3__
|
||||
wxMask(cairo_surface_t*);
|
||||
operator cairo_surface_t*() const;
|
||||
#else
|
||||
wxMask(GdkPixmap*);
|
||||
operator GdkPixmap*() const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual void FreeData();
|
||||
virtual bool InitFromColour(const wxBitmap& bitmap, const wxColour& colour);
|
||||
virtual bool InitFromMonoBitmap(const wxBitmap& bitmap);
|
||||
|
||||
private:
|
||||
#ifdef __WXGTK3__
|
||||
cairo_surface_t* m_bitmap;
|
||||
#else
|
||||
GdkPixmap* m_bitmap;
|
||||
#endif
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMask)
|
||||
};
|
||||
|
||||
@ -62,14 +78,17 @@ public:
|
||||
#endif
|
||||
wxBitmap( const wxString &filename, wxBitmapType type = wxBITMAP_DEFAULT_TYPE );
|
||||
#if wxUSE_IMAGE
|
||||
wxBitmap( const wxImage& image, int depth = wxBITMAP_SCREEN_DEPTH )
|
||||
{ (void)CreateFromImage(image, depth); }
|
||||
wxBitmap(const wxImage& image, int depth = wxBITMAP_SCREEN_DEPTH);
|
||||
#endif // wxUSE_IMAGE
|
||||
wxBitmap(GdkPixbuf* pixbuf, int depth = 0);
|
||||
virtual ~wxBitmap();
|
||||
|
||||
bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH);
|
||||
bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH)
|
||||
{ return Create(sz.GetWidth(), sz.GetHeight(), depth); }
|
||||
bool Create(int width, int height, const wxDC& WXUNUSED(dc))
|
||||
{ return Create(width,height); }
|
||||
|
||||
|
||||
virtual int GetHeight() const;
|
||||
virtual int GetWidth() const;
|
||||
@ -84,6 +103,7 @@ public:
|
||||
|
||||
wxMask *GetMask() const;
|
||||
void SetMask( wxMask *mask );
|
||||
wxBitmap GetMaskBitmap() const;
|
||||
|
||||
wxBitmap GetSubBitmap( const wxRect& rect ) const;
|
||||
|
||||
@ -105,11 +125,18 @@ public:
|
||||
void SetHeight( int height );
|
||||
void SetWidth( int width );
|
||||
void SetDepth( int depth );
|
||||
void SetPixbuf(GdkPixbuf* pixbuf);
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
GdkPixbuf* GetPixbufNoMask() const;
|
||||
cairo_t* CairoCreate() const;
|
||||
void Draw(cairo_t* cr, int x, int y, bool useMask = true, const wxColour* fg = NULL, const wxColour* bg = NULL) const;
|
||||
void SetSourceSurface(cairo_t* cr, int x, int y, const wxColour* fg = NULL, const wxColour* bg = NULL) const;
|
||||
#else
|
||||
GdkPixmap *GetPixmap() const;
|
||||
bool HasPixmap() const;
|
||||
bool HasPixbuf() const;
|
||||
wxBitmap(GdkPixmap* pixmap);
|
||||
#endif
|
||||
GdkPixbuf *GetPixbuf() const;
|
||||
|
||||
// raw bitmap access support functions
|
||||
@ -119,14 +146,17 @@ public:
|
||||
bool HasAlpha() const;
|
||||
|
||||
protected:
|
||||
#ifndef __WXGTK3__
|
||||
#if wxUSE_IMAGE
|
||||
bool CreateFromImage(const wxImage& image, int depth);
|
||||
#endif // wxUSE_IMAGE
|
||||
#endif
|
||||
|
||||
virtual wxGDIRefData* CreateGDIRefData() const;
|
||||
virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;
|
||||
|
||||
private:
|
||||
#ifndef __WXGTK3__
|
||||
void SetPixmap(GdkPixmap* pixmap);
|
||||
#if wxUSE_IMAGE
|
||||
// to be called from CreateFromImage only!
|
||||
@ -144,6 +174,7 @@ public:
|
||||
// removes other representations from memory, keeping only 'keep'
|
||||
// (wxBitmap may keep same bitmap e.g. as both pixmap and pixbuf):
|
||||
void PurgeOtherRepresentations(Representation keep);
|
||||
#endif
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxBitmap)
|
||||
};
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/bmpbutton.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: bmpbuttn.h 61221 2009-06-27 22:22:48Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxBitmapComboBox
|
||||
// Author: Jaakko Salli
|
||||
// Created: 2008-05-19
|
||||
// RCS-ID: $Id: bmpcbox.h 61448 2009-07-18 08:33:55Z JMS $
|
||||
// Copyright: (c) 2008 Jaakko Salli
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
1
Externals/wxWidgets3/include/wx/gtk/brush.h
vendored
1
Externals/wxWidgets3/include/wx/gtk/brush.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/brush.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: brush.h 54273 2008-06-17 17:28:26Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
1
Externals/wxWidgets3/include/wx/gtk/button.h
vendored
1
Externals/wxWidgets3/include/wx/gtk/button.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/button.h
|
||||
// Purpose: wxGTK wxButton class declaration
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: button.h 67931 2011-06-14 13:00:42Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/calctrl.h
|
||||
// Purpose: wxGtkCalendarCtrl control
|
||||
// Author: Marcin Wojdyr
|
||||
// RCS-ID: $Id: calctrl.h 67987 2011-06-19 22:46:36Z VZ $
|
||||
// Copyright: (C) 2008 Marcin Wojdyr
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/checkbox.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: checkbox.h 62786 2009-12-05 19:26:39Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -18,6 +17,7 @@ class WXDLLIMPEXP_CORE wxCheckBox : public wxCheckBoxBase
|
||||
{
|
||||
public:
|
||||
wxCheckBox();
|
||||
~wxCheckBox();
|
||||
wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize, long style = 0,
|
||||
|
28
Externals/wxWidgets3/include/wx/gtk/checklst.h
vendored
28
Externals/wxWidgets3/include/wx/gtk/checklst.h
vendored
@ -3,32 +3,18 @@
|
||||
// Purpose: wxCheckListBox class
|
||||
// Author: Robert Roebling
|
||||
// Modified by:
|
||||
// RCS-ID: $Id: checklst.h 61508 2009-07-23 20:30:22Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __GTKCHECKLISTH__
|
||||
#define __GTKCHECKLISTH__
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// macros
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// there is no "right" choice of the checkbox indicators, so allow the user to
|
||||
// define them himself if he wants
|
||||
#ifndef wxCHECKLBOX_CHECKED
|
||||
#define wxCHECKLBOX_CHECKED wxT('x')
|
||||
#define wxCHECKLBOX_UNCHECKED wxT(' ')
|
||||
|
||||
#define wxCHECKLBOX_STRING wxT("[ ] ")
|
||||
#endif
|
||||
#ifndef _WX_GTKCHECKLIST_H_
|
||||
#define _WX_GTKCHECKLIST_H_
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxCheckListBox
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxCheckListBox : public wxListBox
|
||||
class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase
|
||||
{
|
||||
public:
|
||||
wxCheckListBox();
|
||||
@ -36,7 +22,7 @@ public:
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
int nStrings = 0,
|
||||
const wxString *choices = (const wxString *)NULL,
|
||||
const wxString *choices = NULL,
|
||||
long style = 0,
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxListBoxNameStr);
|
||||
@ -48,8 +34,8 @@ public:
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxListBoxNameStr);
|
||||
|
||||
bool IsChecked(unsigned int index) const;
|
||||
void Check(unsigned int index, bool check = true);
|
||||
virtual bool IsChecked(unsigned int index) const;
|
||||
virtual void Check(unsigned int index, bool check = true);
|
||||
|
||||
int GetItemHeight() const;
|
||||
|
||||
@ -59,4 +45,4 @@ private:
|
||||
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
||||
};
|
||||
|
||||
#endif //__GTKCHECKLISTH__
|
||||
#endif // _WX_GTKCHECKLIST_H_
|
||||
|
69
Externals/wxWidgets3/include/wx/gtk/chkconf.h
vendored
69
Externals/wxWidgets3/include/wx/gtk/chkconf.h
vendored
@ -3,7 +3,6 @@
|
||||
* Purpose: wxGTK-specific settings consistency checks
|
||||
* Author: Vadim Zeitlin
|
||||
* Created: 2007-07-19 (extracted from wx/chkconf.h)
|
||||
* RCS-ID: $Id: chkconf.h 47564 2007-07-19 15:47:11Z VZ $
|
||||
* Copyright: (c) 2000-2007 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
* Licence: wxWindows licence
|
||||
*/
|
||||
@ -29,3 +28,71 @@
|
||||
# endif
|
||||
# endif
|
||||
#endif /* wxUSE_JOYSTICK */
|
||||
|
||||
#if wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
|
||||
# undef wxUSE_POSTSCRIPT
|
||||
# define wxUSE_POSTSCRIPT 1
|
||||
#endif
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
# undef wxUSE_OWNER_DRAWN
|
||||
# define wxUSE_OWNER_DRAWN 0
|
||||
#endif
|
||||
|
||||
#if wxUSE_METAFILE
|
||||
# undef wxUSE_METAFILE
|
||||
# define wxUSE_METAFILE 0
|
||||
#endif
|
||||
|
||||
#if wxUSE_ENH_METAFILE
|
||||
# undef wxUSE_ENH_METAFILE
|
||||
# define wxUSE_ENH_METAFILE 0
|
||||
#endif
|
||||
|
||||
#ifndef __UNIX__
|
||||
|
||||
# undef wxUSE_WEBVIEW
|
||||
# define wxUSE_WEBVIEW 0
|
||||
# undef wxUSE_WEBVIEW_WEBKIT
|
||||
# define wxUSE_WEBVIEW_WEBKIT 0
|
||||
|
||||
# undef wxUSE_MEDIACTRL
|
||||
# define wxUSE_MEDIACTRL 0
|
||||
|
||||
/*
|
||||
We could use GDK_WINDOWING_X11 for those but this would require
|
||||
including gdk/gdk.h and we don't want to do it from here, so assume
|
||||
we're not using X11 if we're not under Unix.
|
||||
*/
|
||||
|
||||
# undef wxUSE_UIACTIONSIMULATOR
|
||||
# define wxUSE_UIACTIONSIMULATOR 0
|
||||
|
||||
# undef wxUSE_GLCANVAS
|
||||
# define wxUSE_GLCANVAS 0
|
||||
|
||||
#endif /* __UNIX__ */
|
||||
|
||||
/*
|
||||
We always need Cairo with wxGTK, enable it if necessary (this can only
|
||||
happen under Windows).
|
||||
*/
|
||||
#ifdef __WINDOWS__
|
||||
|
||||
#if !wxUSE_CAIRO
|
||||
# undef wxUSE_CAIRO
|
||||
# define wxUSE_CAIRO 1
|
||||
#endif
|
||||
|
||||
#endif /* __WINDOWS__ */
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
#if !wxUSE_GRAPHICS_CONTEXT
|
||||
#ifdef wxABORT_ON_CONFIG_ERROR
|
||||
#error "GTK+ 3 support requires wxGraphicsContext"
|
||||
#else
|
||||
#undef wxUSE_GRAPHICS_CONTEXT
|
||||
#define wxUSE_GRAPHICS_CONTEXT 1
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
4
Externals/wxWidgets3/include/wx/gtk/choice.h
vendored
4
Externals/wxWidgets3/include/wx/gtk/choice.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/choice.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: choice.h 65818 2010-10-15 23:46:32Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -64,8 +63,6 @@ public:
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxChoiceNameStr );
|
||||
|
||||
void SendSelectionChangedEvent(wxEventType evt_type);
|
||||
|
||||
int GetSelection() const;
|
||||
void SetSelection(int n);
|
||||
|
||||
@ -95,6 +92,7 @@ protected:
|
||||
int m_stringCellIndex;
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
|
||||
virtual int DoInsertItems(const wxArrayStringsAdapter& items,
|
||||
unsigned int pos,
|
||||
void **clientData, wxClientDataType type);
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/clipbrd.h
|
||||
// Purpose: wxClipboard for wxGTK
|
||||
// Author: Robert Roebling, Vadim Zeitlin
|
||||
// Id: $Id: clipbrd.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// (c) 2007 Vadim Zeitlin
|
||||
// Licence: wxWindows licence
|
||||
@ -118,6 +117,9 @@ private:
|
||||
GtkWidget *m_clipboardWidget; // for getting and offering data
|
||||
GtkWidget *m_targetsWidget; // for getting list of supported formats
|
||||
|
||||
// ID of the connection to "selection_get" signal, initially 0.
|
||||
unsigned long m_idSelectionGetHandler;
|
||||
|
||||
bool m_open;
|
||||
bool m_formatSupported;
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
// Modified by:
|
||||
// Created: 14/4/2006
|
||||
// Copyright: (c) Francesco Montorsi
|
||||
// RCS-ID: $Id: clrpicker.h 49668 2007-11-06 00:32:34Z MR $
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -52,8 +51,8 @@ protected:
|
||||
|
||||
public: // used by the GTK callback only
|
||||
|
||||
void SetGdkColor(const GdkColor& gdkColor)
|
||||
{ m_colour = wxColor(gdkColor); }
|
||||
void GTKSetColour(const wxColour& colour)
|
||||
{ m_colour = colour; }
|
||||
|
||||
wxWindow *m_topParent;
|
||||
|
||||
|
11
Externals/wxWidgets3/include/wx/gtk/collpane.h
vendored
11
Externals/wxWidgets3/include/wx/gtk/collpane.h
vendored
@ -4,7 +4,6 @@
|
||||
// Author: Francesco Montorsi
|
||||
// Modified by:
|
||||
// Created: 8/10/2006
|
||||
// RCS-ID: $Id: collpane.h 58632 2009-02-03 09:53:33Z RR $
|
||||
// Copyright: (c) Francesco Montorsi
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -35,11 +34,6 @@ public:
|
||||
Create(parent, winid, label, pos, size, style, val, name);
|
||||
}
|
||||
|
||||
void Init()
|
||||
{
|
||||
m_bIgnoreNextChange = false;
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID winid,
|
||||
const wxString& label,
|
||||
@ -69,6 +63,11 @@ public: // used by GTK callbacks
|
||||
wxString m_strLabel;
|
||||
|
||||
private:
|
||||
void Init()
|
||||
{
|
||||
m_bIgnoreNextChange = false;
|
||||
}
|
||||
|
||||
void OnSize(wxSizeEvent&);
|
||||
virtual void AddChildGTK(wxWindowGTK* child);
|
||||
GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Vaclav Slavik
|
||||
// Modified by:
|
||||
// Created: 2004/06/04
|
||||
// RCS-ID: $Id: colordlg.h 66615 2011-01-07 05:26:57Z PC $
|
||||
// Copyright: (c) Vaclav Slavik, 2004
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
13
Externals/wxWidgets3/include/wx/gtk/colour.h
vendored
13
Externals/wxWidgets3/include/wx/gtk/colour.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/colour.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: colour.h 50897 2007-12-22 15:03:58Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -10,6 +9,10 @@
|
||||
#ifndef _WX_GTK_COLOUR_H_
|
||||
#define _WX_GTK_COLOUR_H_
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
typedef struct _GdkRGBA GdkRGBA;
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxColour
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -21,6 +24,9 @@ public:
|
||||
// ------------
|
||||
DEFINE_STD_WXCOLOUR_CONSTRUCTORS
|
||||
wxColour(const GdkColor& gdkColor);
|
||||
#ifdef __WXGTK3__
|
||||
wxColour(const GdkRGBA& gdkRGBA);
|
||||
#endif
|
||||
|
||||
virtual ~wxColour();
|
||||
|
||||
@ -33,8 +39,12 @@ public:
|
||||
unsigned char Alpha() const;
|
||||
|
||||
// Implementation part
|
||||
#ifdef __WXGTK3__
|
||||
operator const GdkRGBA*() const;
|
||||
#else
|
||||
void CalcPixel( GdkColormap *cmap );
|
||||
int GetPixel() const;
|
||||
#endif
|
||||
const GdkColor *GetColor() const;
|
||||
|
||||
protected:
|
||||
@ -43,7 +53,6 @@ protected:
|
||||
|
||||
virtual bool FromString(const wxString& str);
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxColour)
|
||||
};
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created: 01/02/97
|
||||
// Id: $Id: combobox.h 70880 2012-03-11 23:55:19Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -56,6 +55,7 @@ public:
|
||||
Init();
|
||||
Create(parent, id, value, pos, size, choices, style, validator, name);
|
||||
}
|
||||
~wxComboBox();
|
||||
|
||||
bool Create(wxWindow *parent, wxWindowID id,
|
||||
const wxString& value = wxEmptyString,
|
||||
@ -144,6 +144,8 @@ protected:
|
||||
// custom list stores.
|
||||
virtual void GTKCreateComboBoxWidget();
|
||||
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
|
||||
|
||||
virtual GtkEntry *GetEntry() const
|
||||
{ return m_entry; }
|
||||
|
||||
|
33
Externals/wxWidgets3/include/wx/gtk/control.h
vendored
33
Externals/wxWidgets3/include/wx/gtk/control.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/control.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: control.h 70714 2012-02-27 17:49:33Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -12,20 +11,15 @@
|
||||
|
||||
typedef struct _GtkLabel GtkLabel;
|
||||
typedef struct _GtkFrame GtkFrame;
|
||||
typedef struct _GtkEntry GtkEntry;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxControl
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// C-linkage function pointer types for GetDefaultAttributesFromGTKWidget
|
||||
extern "C" {
|
||||
typedef GtkWidget* (*wxGtkWidgetNew_t)(void);
|
||||
typedef GtkWidget* (*wxGtkWidgetNewFromStr_t)(const char*);
|
||||
typedef GtkWidget* (*wxGtkWidgetNewFromAdj_t)(GtkAdjustment*);
|
||||
}
|
||||
|
||||
class WXDLLIMPEXP_CORE wxControl : public wxControlBase
|
||||
{
|
||||
typedef wxControlBase base_type;
|
||||
public:
|
||||
wxControl();
|
||||
wxControl(wxWindow *parent, wxWindowID id,
|
||||
@ -43,8 +37,10 @@ public:
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxControlNameStr);
|
||||
|
||||
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const;
|
||||
#ifdef __WXGTK3__
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
@ -76,19 +72,6 @@ protected:
|
||||
GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
|
||||
bool useBase = false,
|
||||
int state = 0);
|
||||
static wxVisualAttributes
|
||||
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNew_t,
|
||||
bool useBase = false,
|
||||
int state = 0);
|
||||
static wxVisualAttributes
|
||||
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromStr_t,
|
||||
bool useBase = false,
|
||||
int state = 0);
|
||||
|
||||
static wxVisualAttributes
|
||||
GetDefaultAttributesFromGTKWidget(wxGtkWidgetNewFromAdj_t,
|
||||
bool useBase = false,
|
||||
int state = 0);
|
||||
|
||||
// Widgets that use the style->base colour for the BG colour should
|
||||
// override this and return true.
|
||||
@ -97,6 +80,12 @@ protected:
|
||||
// Fix sensitivity due to bug in GTK+ < 2.14
|
||||
void GTKFixSensitivity(bool onlyIfUnderMouse = true);
|
||||
|
||||
// Ask GTK+ for preferred size. Use it after setting the font.
|
||||
wxSize GTKGetPreferredSize(GtkWidget* widget) const;
|
||||
|
||||
// Inner margins in a GtkEntry
|
||||
wxPoint GTKGetEntryMargins(GtkEntry* entry) const;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxControl)
|
||||
};
|
||||
|
1
Externals/wxWidgets3/include/wx/gtk/cursor.h
vendored
1
Externals/wxWidgets3/include/wx/gtk/cursor.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/cursor.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: cursor.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 19.10.99 (extracted from gtk/dataobj.h)
|
||||
// RCS-ID: $Id: dataform.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/dataobj.h
|
||||
// Purpose: declaration of the wxDataObject
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id: dataobj.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
34
Externals/wxWidgets3/include/wx/gtk/dataobj2.h
vendored
34
Externals/wxWidgets3/include/wx/gtk/dataobj2.h
vendored
@ -3,7 +3,6 @@
|
||||
// Purpose: declaration of standard wxDataObjectSimple-derived classes
|
||||
// Author: Robert Roebling
|
||||
// Created: 19.10.99 (extracted from gtk/dataobj.h)
|
||||
// RCS-ID: $Id: dataobj2.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -49,7 +48,6 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
void Init() { m_pngData = NULL; m_pngSize = 0; }
|
||||
void Clear() { free(m_pngData); }
|
||||
void ClearAll() { Clear(); Init(); }
|
||||
|
||||
@ -57,6 +55,9 @@ protected:
|
||||
void *m_pngData;
|
||||
|
||||
void DoConvertToPng();
|
||||
|
||||
private:
|
||||
void Init() { m_pngData = NULL; m_pngSize = 0; }
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -93,34 +94,19 @@ public:
|
||||
// wxURLDataObject is a specialization of wxDataObject for URLs
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxURLDataObject : public wxDataObjectSimple
|
||||
class WXDLLIMPEXP_CORE wxURLDataObject : public wxDataObjectComposite
|
||||
{
|
||||
public:
|
||||
wxURLDataObject(const wxString& url = wxEmptyString);
|
||||
|
||||
wxString GetURL() const { return m_url; }
|
||||
void SetURL(const wxString& url) { m_url = url; }
|
||||
|
||||
virtual size_t GetDataSize() const;
|
||||
virtual bool GetDataHere(void *buf) const;
|
||||
virtual bool SetData(size_t len, const void *buf);
|
||||
|
||||
// Must provide overloads to avoid hiding them (and warnings about it)
|
||||
virtual size_t GetDataSize(const wxDataFormat&) const
|
||||
{
|
||||
return GetDataSize();
|
||||
}
|
||||
virtual bool GetDataHere(const wxDataFormat&, void *buf) const
|
||||
{
|
||||
return GetDataHere(buf);
|
||||
}
|
||||
virtual bool SetData(const wxDataFormat&, size_t len, const void *buf)
|
||||
{
|
||||
return SetData(len, buf);
|
||||
}
|
||||
wxString GetURL() const;
|
||||
void SetURL(const wxString& url);
|
||||
|
||||
private:
|
||||
wxString m_url;
|
||||
class wxTextURIListDataObject* const m_dobjURIList;
|
||||
wxTextDataObject* const m_dobjText;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxURLDataObject);
|
||||
};
|
||||
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/dataview.h
|
||||
// Purpose: wxDataViewCtrl GTK+2 implementation header
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: dataview.h 70377 2012-01-17 14:05:17Z VS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
106
Externals/wxWidgets3/include/wx/gtk/dc.h
vendored
106
Externals/wxWidgets3/include/wx/gtk/dc.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/dc.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: dc.h 70165 2011-12-29 14:42:13Z SN $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -10,6 +9,107 @@
|
||||
#ifndef _WX_GTKDC_H_
|
||||
#define _WX_GTKDC_H_
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
|
||||
#include "wx/dcgraph.h"
|
||||
|
||||
class wxGTKCairoDCImpl: public wxGCDCImpl
|
||||
{
|
||||
typedef wxGCDCImpl base_type;
|
||||
public:
|
||||
wxGTKCairoDCImpl(wxDC* owner);
|
||||
wxGTKCairoDCImpl(wxDC* owner, int);
|
||||
wxGTKCairoDCImpl(wxDC* owner, wxWindow* window);
|
||||
|
||||
virtual void DoDrawBitmap(const wxBitmap& bitmap, int x, int y, bool useMask);
|
||||
virtual void DoDrawIcon(const wxIcon& icon, int x, int y);
|
||||
#if wxUSE_IMAGE
|
||||
virtual bool DoFloodFill(int x, int y, const wxColour& col, wxFloodFillStyle style);
|
||||
#endif
|
||||
virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const;
|
||||
virtual bool DoGetPixel(int x, int y, wxColour* col) const;
|
||||
virtual void DoGetSize(int* width, int* height) const;
|
||||
virtual bool DoStretchBlit(int xdest, int ydest, int dstWidth, int dstHeight, wxDC* source, int xsrc, int ysrc, int srcWidth, int srcHeight, wxRasterOperationMode rop, bool useMask, int xsrcMask, int ysrcMask);
|
||||
virtual void* GetCairoContext() const;
|
||||
|
||||
protected:
|
||||
int m_width, m_height;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGTKCairoDCImpl);
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxWindowDCImpl: public wxGTKCairoDCImpl
|
||||
{
|
||||
typedef wxGTKCairoDCImpl base_type;
|
||||
public:
|
||||
wxWindowDCImpl(wxWindowDC* owner, wxWindow* window);
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxWindowDCImpl);
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxClientDCImpl: public wxGTKCairoDCImpl
|
||||
{
|
||||
typedef wxGTKCairoDCImpl base_type;
|
||||
public:
|
||||
wxClientDCImpl(wxClientDC* owner, wxWindow* window);
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxClientDCImpl);
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxPaintDCImpl: public wxGTKCairoDCImpl
|
||||
{
|
||||
typedef wxGTKCairoDCImpl base_type;
|
||||
public:
|
||||
wxPaintDCImpl(wxPaintDC* owner, wxWindow* window);
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxPaintDCImpl);
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxScreenDCImpl: public wxGTKCairoDCImpl
|
||||
{
|
||||
typedef wxGTKCairoDCImpl base_type;
|
||||
public:
|
||||
wxScreenDCImpl(wxScreenDC* owner);
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxScreenDCImpl);
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class wxMemoryDCImpl: public wxGTKCairoDCImpl
|
||||
{
|
||||
typedef wxGTKCairoDCImpl base_type;
|
||||
public:
|
||||
wxMemoryDCImpl(wxMemoryDC* owner);
|
||||
wxMemoryDCImpl(wxMemoryDC* owner, wxBitmap& bitmap);
|
||||
wxMemoryDCImpl(wxMemoryDC* owner, wxDC* dc);
|
||||
virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const;
|
||||
virtual void DoSelect(const wxBitmap& bitmap);
|
||||
virtual const wxBitmap& GetSelectedBitmap() const;
|
||||
virtual wxBitmap& GetSelectedBitmap();
|
||||
|
||||
private:
|
||||
void Setup();
|
||||
wxBitmap m_bitmap;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxMemoryDCImpl);
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxGTKCairoDC: public wxDC
|
||||
{
|
||||
typedef wxDC base_type;
|
||||
public:
|
||||
wxGTKCairoDC(cairo_t* cr);
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGTKCairoDC);
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
#include "wx/dc.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -35,7 +135,8 @@ public:
|
||||
virtual void EndPage() { }
|
||||
|
||||
virtual GdkWindow* GetGDKWindow() const { return NULL; }
|
||||
|
||||
virtual void* GetHandle() const { return GetGDKWindow(); }
|
||||
|
||||
// base class pure virtuals implemented here
|
||||
virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
virtual void DoGetSizeMM(int* width, int* height) const;
|
||||
@ -50,4 +151,5 @@ public:
|
||||
#define wxHAS_WORKING_GTK_DC_BLIT
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // _WX_GTKDC_H_
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/dcclient.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: dcclient.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -11,10 +10,6 @@
|
||||
#define _WX_GTKDCCLIENT_H_
|
||||
|
||||
#include "wx/gtk/dc.h"
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/region.h"
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxWindowDCImpl
|
||||
@ -44,9 +39,9 @@ public:
|
||||
double sa, double ea );
|
||||
virtual void DoDrawPoint( wxCoord x, wxCoord y );
|
||||
|
||||
virtual void DoDrawLines(int n, wxPoint points[],
|
||||
virtual void DoDrawLines(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset);
|
||||
virtual void DoDrawPolygon(int n, wxPoint points[],
|
||||
virtual void DoDrawPolygon(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/dcmemory.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id: dcmemory.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -39,7 +38,8 @@ public:
|
||||
// overridden from wxDCImpl
|
||||
virtual void DoGetSize( int *width, int *height ) const;
|
||||
virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
|
||||
|
||||
virtual void* GetHandle() const;
|
||||
|
||||
// overridden for wxMemoryDC Impl
|
||||
virtual void DoSelect(const wxBitmap& bitmap);
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/dcscreen.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: dcscreen.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -25,7 +24,7 @@ public:
|
||||
|
||||
virtual void DoGetSize(int *width, int *height) const;
|
||||
|
||||
protected:
|
||||
private:
|
||||
void Init();
|
||||
|
||||
DECLARE_ABSTRACT_CLASS(wxScreenDCImpl)
|
||||
|
2
Externals/wxWidgets3/include/wx/gtk/dialog.h
vendored
2
Externals/wxWidgets3/include/wx/gtk/dialog.h
vendored
@ -3,7 +3,6 @@
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created:
|
||||
// Id: $Id: dialog.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -39,7 +38,6 @@ public:
|
||||
virtual int ShowModal();
|
||||
virtual void EndModal( int retCode );
|
||||
virtual bool IsModal() const;
|
||||
void SetModal( bool modal );
|
||||
|
||||
// implementation
|
||||
// --------------
|
||||
|
9
Externals/wxWidgets3/include/wx/gtk/dirdlg.h
vendored
9
Externals/wxWidgets3/include/wx/gtk/dirdlg.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/dirdlg.h
|
||||
// Purpose: wxDirDialog
|
||||
// Author: Francesco Montorsi
|
||||
// Id: $Id: dirdlg.h 70898 2012-03-14 12:32:27Z VZ $
|
||||
// Copyright: (c) 2006 Francesco Montorsi
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -42,6 +41,11 @@ public: // overrides from wxGenericDirDialog
|
||||
void SetPath(const wxString& path);
|
||||
|
||||
|
||||
// Implementation only.
|
||||
|
||||
void GTKOnAccept();
|
||||
void GTKOnCancel();
|
||||
|
||||
protected:
|
||||
// override this from wxTLW since the native
|
||||
// form doesn't have any m_wxwindow
|
||||
@ -51,10 +55,9 @@ protected:
|
||||
|
||||
|
||||
private:
|
||||
void OnFakeOk( wxCommandEvent &event );
|
||||
wxString m_selectedDirectory;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxDirDialog)
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif // __GTKDIRDLGH__
|
||||
|
12
Externals/wxWidgets3/include/wx/gtk/dnd.h
vendored
12
Externals/wxWidgets3/include/wx/gtk/dnd.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/dnd.h
|
||||
// Purpose: declaration of the wxDropTarget class
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id: dnd.h 69020 2011-09-07 16:56:50Z PC $
|
||||
// Copyright: (c) 1998 Vadim Zeitlin, Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -81,6 +80,17 @@ public:
|
||||
|
||||
virtual ~wxDropSource();
|
||||
|
||||
// set the icon corresponding to given drag result
|
||||
void SetIcon(wxDragResult res, const wxIcon& icon)
|
||||
{
|
||||
if ( res == wxDragCopy )
|
||||
m_iconCopy = icon;
|
||||
else if ( res == wxDragMove )
|
||||
m_iconMove = icon;
|
||||
else
|
||||
m_iconNone = icon;
|
||||
}
|
||||
|
||||
// start drag action
|
||||
virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxDataViewRenderer for GTK wxDataViewCtrl implementation
|
||||
// Author: Robert Roebling, Vadim Zeitlin
|
||||
// Created: 2009-11-07 (extracted from wx/gtk/dataview.h)
|
||||
// RCS-ID: $Id: dvrenderer.h 69020 2011-09-07 16:56:50Z PC $
|
||||
// Copyright: (c) 2006 Robert Roebling
|
||||
// (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: All GTK wxDataViewCtrl renderer classes
|
||||
// Author: Robert Roebling, Vadim Zeitlin
|
||||
// Created: 2009-11-07 (extracted from wx/gtk/dataview.h)
|
||||
// RCS-ID: $Id: dvrenderers.h 70300 2012-01-09 06:31:07Z PC $
|
||||
// Copyright: (c) 2006 Robert Roebling
|
||||
// (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
@ -12,7 +11,12 @@
|
||||
#ifndef _WX_GTK_DVRENDERERS_H_
|
||||
#define _WX_GTK_DVRENDERERS_H_
|
||||
|
||||
typedef struct _GdkRectangle GdkRectangle;
|
||||
#ifdef __WXGTK3__
|
||||
typedef struct _cairo_rectangle_int cairo_rectangle_int_t;
|
||||
typedef cairo_rectangle_int_t GdkRectangle;
|
||||
#else
|
||||
typedef struct _GdkRectangle GdkRectangle;
|
||||
#endif
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// wxDataViewTextRenderer
|
||||
@ -137,10 +141,9 @@ public:
|
||||
|
||||
virtual GtkCellRendererText *GtkGetTextRenderer() const;
|
||||
|
||||
protected:
|
||||
private:
|
||||
bool Init(wxDataViewCellMode mode, int align);
|
||||
|
||||
private:
|
||||
// Called from GtkGetTextRenderer() to really create the renderer if
|
||||
// necessary.
|
||||
void GtkInitTextRenderer();
|
||||
|
12
Externals/wxWidgets3/include/wx/gtk/evtloop.h
vendored
12
Externals/wxWidgets3/include/wx/gtk/evtloop.h
vendored
@ -3,7 +3,6 @@
|
||||
// Purpose: wxGTK event loop implementation
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2008-12-27
|
||||
// RCS-ID: $Id: evtloop.h 62475 2009-10-22 11:36:35Z VZ $
|
||||
// Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -22,22 +21,19 @@ class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase
|
||||
public:
|
||||
wxGUIEventLoop();
|
||||
|
||||
virtual int Run();
|
||||
virtual void Exit(int rc = 0);
|
||||
virtual void ScheduleExit(int rc = 0);
|
||||
virtual bool Pending() const;
|
||||
virtual bool Dispatch();
|
||||
virtual int DispatchTimeout(unsigned long timeout);
|
||||
virtual void WakeUp();
|
||||
virtual bool YieldFor(long eventsToProcess);
|
||||
|
||||
#if wxUSE_EVENTLOOP_SOURCE
|
||||
virtual wxEventLoopSource *
|
||||
AddSourceForFD(int fd, wxEventLoopSourceHandler *handler, int flags);
|
||||
#endif // wxUSE_EVENTLOOP_SOURCE
|
||||
|
||||
void StoreGdkEventForLaterProcessing(GdkEvent* ev)
|
||||
{ m_arrGdkEvents.Add(ev); }
|
||||
|
||||
protected:
|
||||
virtual int DoRun();
|
||||
|
||||
private:
|
||||
// the exit code of this event loop
|
||||
int m_exitcode;
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxGTKEventLoopSource class
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2009-10-21
|
||||
// RCS-ID: $Id: evtloopsrc.h 64140 2010-04-25 21:33:16Z FM $
|
||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Diaa M. Sami
|
||||
// Modified by:
|
||||
// Created: Aug-10-2007
|
||||
// RCS-ID: $Id: filectrl.h 70165 2011-12-29 14:42:13Z SN $
|
||||
// Copyright: (c) Diaa M. Sami
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -88,9 +87,8 @@ public:
|
||||
Create( parent, id, defaultDirectory, defaultFilename, wildCard, style, pos, size, name );
|
||||
}
|
||||
|
||||
virtual ~wxGtkFileCtrl() {}
|
||||
virtual ~wxGtkFileCtrl();
|
||||
|
||||
void Init();
|
||||
bool Create( wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& defaultDirectory = wxEmptyString,
|
||||
@ -134,6 +132,9 @@ protected:
|
||||
wxGtkFileChooser m_fc;
|
||||
wxString m_wildCard;
|
||||
|
||||
private:
|
||||
void Init();
|
||||
|
||||
DECLARE_DYNAMIC_CLASS( wxGtkFileCtrl )
|
||||
};
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/filedlg.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: filedlg.h 70898 2012-03-14 12:32:27Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -43,7 +42,6 @@ public:
|
||||
|
||||
virtual wxString GetPath() const;
|
||||
virtual void GetPaths(wxArrayString& paths) const;
|
||||
virtual wxString GetDirectory() const;
|
||||
virtual wxString GetFilename() const;
|
||||
virtual void GetFilenames(wxArrayString& files) const;
|
||||
virtual int GetFilterIndex() const;
|
||||
@ -59,6 +57,9 @@ public:
|
||||
|
||||
virtual bool SupportsExtraControl() const { return true; }
|
||||
|
||||
// Implementation only.
|
||||
void GTKSelectionChanged(const wxString& filename);
|
||||
|
||||
|
||||
protected:
|
||||
// override this from wxTLW since the native
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: GTK+ bits for wxFileHistory
|
||||
// Author: Vaclav Slavik
|
||||
// Created: 2010-05-06
|
||||
// RCS-ID: $Id: filehistory.h 64240 2010-05-07 06:45:48Z VS $
|
||||
// Copyright: (c) 2010 Vaclav Slavik
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
23
Externals/wxWidgets3/include/wx/gtk/filepicker.h
vendored
23
Externals/wxWidgets3/include/wx/gtk/filepicker.h
vendored
@ -5,7 +5,6 @@
|
||||
// Modified by:
|
||||
// Created: 14/4/2006
|
||||
// Copyright: (c) Francesco Montorsi
|
||||
// RCS-ID: $Id: filepicker.h 70043 2011-12-18 12:34:47Z VZ $
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -34,13 +33,6 @@
|
||||
return NULL; \
|
||||
} \
|
||||
\
|
||||
virtual bool Destroy() \
|
||||
{ \
|
||||
if (m_dialog) \
|
||||
m_dialog->Destroy(); \
|
||||
return wxButton::Destroy(); \
|
||||
} \
|
||||
\
|
||||
/* even if wx derive from wxGenericFileButton, i.e. from wxButton, our */ \
|
||||
/* native GTK+ widget does not derive from GtkButton thus *all* uses */ \
|
||||
/* GTK_BUTTON(m_widget) macro done by wxButton must be bypassed to */ \
|
||||
@ -107,8 +99,6 @@ public: // overrides
|
||||
FILEDIRBTN_OVERRIDES
|
||||
|
||||
protected:
|
||||
virtual bool GTKShouldConnectSizeRequest() const { return false; }
|
||||
|
||||
wxDialog *m_dialog;
|
||||
|
||||
private:
|
||||
@ -178,13 +168,6 @@ public: // overrides
|
||||
FILEDIRBTN_OVERRIDES
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init()
|
||||
{
|
||||
m_dialog = NULL;
|
||||
m_bIgnoreNextChange = false;
|
||||
}
|
||||
|
||||
wxDialog *m_dialog;
|
||||
|
||||
public: // used by the GTK callback only
|
||||
@ -194,6 +177,12 @@ public: // used by the GTK callback only
|
||||
void GTKUpdatePath(const char *gtkpath);
|
||||
|
||||
private:
|
||||
void Init()
|
||||
{
|
||||
m_dialog = NULL;
|
||||
m_bIgnoreNextChange = false;
|
||||
}
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxDirButton)
|
||||
};
|
||||
|
||||
|
15
Externals/wxWidgets3/include/wx/gtk/font.h
vendored
15
Externals/wxWidgets3/include/wx/gtk/font.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/font.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: font.h 70476 2012-01-29 08:14:34Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -19,7 +18,8 @@ class WXDLLIMPEXP_CORE wxFont : public wxFontBase
|
||||
public:
|
||||
wxFont() { }
|
||||
|
||||
// wxGTK-specific
|
||||
wxFont(const wxFontInfo& info);
|
||||
|
||||
wxFont(const wxString& nativeFontInfoString)
|
||||
{
|
||||
Create(nativeFontInfoString);
|
||||
@ -63,12 +63,6 @@ public:
|
||||
SetPixelSize(pixelSize);
|
||||
}
|
||||
|
||||
wxFont(int pointSize,
|
||||
wxFontFamily family,
|
||||
int flags = wxFONTFLAG_DEFAULT,
|
||||
const wxString& face = wxEmptyString,
|
||||
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
|
||||
|
||||
bool Create(int size,
|
||||
wxFontFamily family,
|
||||
wxFontStyle style,
|
||||
@ -119,15 +113,14 @@ public:
|
||||
protected:
|
||||
virtual void DoSetNativeFontInfo( const wxNativeFontInfo& info );
|
||||
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
virtual wxGDIRefData* CreateGDIRefData() const;
|
||||
virtual wxGDIRefData* CloneGDIRefData(const wxGDIRefData* data) const;
|
||||
|
||||
virtual wxFontFamily DoGetFamily() const;
|
||||
|
||||
private:
|
||||
void Init();
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxFont)
|
||||
};
|
||||
|
||||
|
@ -3,13 +3,12 @@
|
||||
// Purpose: wxFontDialog
|
||||
// Author: Robert Roebling
|
||||
// Created:
|
||||
// RCS-ID: $Id: fontdlg.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __GTK_FONTDLGH__
|
||||
#define __GTK_FONTDLGH__
|
||||
#ifndef _WX_GTK_FONTDLG_H_
|
||||
#define _WX_GTK_FONTDLG_H_
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxFontDialog
|
||||
@ -26,9 +25,6 @@ public:
|
||||
|
||||
virtual ~wxFontDialog();
|
||||
|
||||
// implementation only
|
||||
void SetChosenFont(const char *name);
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// deprecated interface, don't use
|
||||
wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) );
|
||||
@ -38,7 +34,6 @@ protected:
|
||||
// create the GTK dialog
|
||||
virtual bool DoCreate(wxWindow *parent);
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxFontDialog)
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
// Modified by:
|
||||
// Created: 14/4/2006
|
||||
// Copyright: (c) Francesco Montorsi
|
||||
// RCS-ID: $Id: fontpicker.h 69020 2011-09-07 16:56:50Z PC $
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
6
Externals/wxWidgets3/include/wx/gtk/frame.h
vendored
6
Externals/wxWidgets3/include/wx/gtk/frame.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/frame.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: frame.h 66648 2011-01-08 06:42:41Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -64,9 +63,6 @@ public:
|
||||
virtual bool SendIdleEvents(wxIdleEvent& event);
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// override wxWindow methods to take into account tool/menu/statusbars
|
||||
virtual void DoGetClientSize( int *width, int *height ) const;
|
||||
|
||||
@ -76,6 +72,8 @@ protected:
|
||||
#endif // wxUSE_MENUS_NATIVE
|
||||
|
||||
private:
|
||||
void Init();
|
||||
|
||||
long m_fsSaveFlag;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxFrame)
|
||||
|
6
Externals/wxWidgets3/include/wx/gtk/gauge.h
vendored
6
Externals/wxWidgets3/include/wx/gtk/gauge.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/gauge.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: gauge.h 70165 2011-12-29 14:42:13Z SN $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -71,15 +70,14 @@ public:
|
||||
m_gaugePos;
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init() { m_rangeMax = m_gaugePos = 0; }
|
||||
|
||||
// set the gauge value to the value of m_gaugePos
|
||||
void DoSetGauge();
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
private:
|
||||
void Init() { m_rangeMax = m_gaugePos = 0; }
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxGauge)
|
||||
};
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Robert Roebling
|
||||
// Modified by:
|
||||
// Created: 17/8/98
|
||||
// RCS-ID: $Id: glcanvas.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -39,6 +38,7 @@ public:
|
||||
const int *attribList = NULL,
|
||||
const wxPalette& palette = wxNullPalette);
|
||||
|
||||
virtual bool SetBackgroundStyle(wxBackgroundStyle style);
|
||||
|
||||
// implement wxGLCanvasX11 methods
|
||||
// --------------------------------
|
||||
@ -93,6 +93,9 @@ public:
|
||||
void OnInternalIdle();
|
||||
|
||||
bool m_exposed;
|
||||
#ifdef __WXGTK3__
|
||||
cairo_t* m_cairoPaintContext;
|
||||
#endif
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
wxGLContext *m_sharedContext;
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Author: Robert Roebling
|
||||
// Purpose: GNOME printing support
|
||||
// Created: 09/20/04
|
||||
// RCS-ID: $Id: gprint.h 67280 2011-03-22 14:17:38Z DS $
|
||||
// Copyright: Robert Roebling
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -258,9 +257,9 @@ protected:
|
||||
void DoDrawArc(wxCoord x1,wxCoord y1,wxCoord x2,wxCoord y2,wxCoord xc,wxCoord yc);
|
||||
void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea);
|
||||
void DoDrawPoint(wxCoord x, wxCoord y);
|
||||
void DoDrawLines(int n, wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0);
|
||||
void DoDrawPolygon(int n, wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawPolyPolygon(int n, int count[], wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawLines(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0);
|
||||
void DoDrawPolygon(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawPolyPolygon(int n, const int count[], const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20.0);
|
||||
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
@ -294,6 +293,8 @@ protected:
|
||||
virtual wxRect GetPaperRect() const;
|
||||
virtual int GetResolution() const;
|
||||
|
||||
virtual void* GetHandle() const { return (void*)m_gpc; }
|
||||
|
||||
private:
|
||||
wxPrintData m_printData;
|
||||
PangoContext *m_context;
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Author: Robert Roebling
|
||||
// Purpose: GNOME VFS support
|
||||
// Created: 17/03/06
|
||||
// RCS-ID: $Id: gvfs.h 61724 2009-08-21 10:41:26Z VZ $
|
||||
// Copyright: Robert Roebling
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: Hildon implementation of wxNotificationMessage
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2007-11-21
|
||||
// RCS-ID: $Id: notifmsg.h 58757 2009-02-08 11:45:59Z VZ $
|
||||
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Francesco Montorsi
|
||||
// Modified by:
|
||||
// Created: 14/2/2007
|
||||
// RCS-ID: $Id: hyperlink.h 67378 2011-04-02 20:43:29Z PC $
|
||||
// Copyright: (c) 2007 Francesco Montorsi
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: native implementation of wxInfoBar for GTK+ 2.18 and later
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2009-09-26
|
||||
// RCS-ID: $Id: infobar.h 64213 2010-05-05 12:20:08Z VZ $
|
||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -54,7 +53,6 @@ public:
|
||||
void GTKResponse(int btnid);
|
||||
|
||||
protected:
|
||||
virtual bool GTKShouldConnectSizeRequest() const { return false; }
|
||||
virtual void DoApplyWidgetStyle(GtkRcStyle *style);
|
||||
|
||||
private:
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/listbox.h
|
||||
// Purpose: wxListBox class declaration
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: listbox.h 67298 2011-03-23 17:36:10Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -10,7 +9,7 @@
|
||||
#ifndef _WX_GTK_LISTBOX_H_
|
||||
#define _WX_GTK_LISTBOX_H_
|
||||
|
||||
struct _GtkTreeEntry;
|
||||
struct _wxTreeEntry;
|
||||
struct _GtkTreeIter;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -91,7 +90,7 @@ public:
|
||||
bool m_hasCheckBoxes;
|
||||
#endif // wxUSE_CHECKLISTBOX
|
||||
|
||||
struct _GtkTreeEntry* GTKGetEntry(unsigned pos) const;
|
||||
struct _wxTreeEntry* GTKGetEntry(unsigned pos) const;
|
||||
|
||||
void GTKDisableEvents();
|
||||
void GTKEnableEvents();
|
||||
@ -111,6 +110,7 @@ protected:
|
||||
virtual int DoInsertItems(const wxArrayStringsAdapter& items,
|
||||
unsigned int pos,
|
||||
void **clientData, wxClientDataType type);
|
||||
virtual int DoInsertOneItem(const wxString& item, unsigned int pos);
|
||||
|
||||
virtual void DoSetFirstItem(int n);
|
||||
virtual void DoSetItemClientData(unsigned int n, void* clientData);
|
||||
@ -123,9 +123,6 @@ protected:
|
||||
// get the index for the given iterator, return wxNOT_FOUND on failure
|
||||
int GTKGetIndexFor(_GtkTreeIter& iter) const;
|
||||
|
||||
// set the specified item
|
||||
void GTKSetItem(_GtkTreeIter& iter, const _GtkTreeEntry *entry);
|
||||
|
||||
// common part of DoSetFirstItem() and EnsureVisible()
|
||||
void DoScrollToCell(int n, float alignY, float alignX);
|
||||
|
||||
|
3
Externals/wxWidgets3/include/wx/gtk/mdi.h
vendored
3
Externals/wxWidgets3/include/wx/gtk/mdi.h
vendored
@ -3,7 +3,6 @@
|
||||
// Purpose: TDI-based MDI implementation for wxGTK
|
||||
// Author: Robert Roebling
|
||||
// Modified by: 2008-10-31 Vadim Zeitlin: derive from the base classes
|
||||
// Id: $Id: mdi.h 69528 2011-10-25 16:56:57Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// (c) 2008 Vadim Zeitlin
|
||||
// Licence: wxWindows licence
|
||||
@ -67,11 +66,11 @@ public:
|
||||
virtual void OnInternalIdle();
|
||||
|
||||
protected:
|
||||
void Init();
|
||||
virtual void DoGetClientSize(int* width, int* height) const;
|
||||
|
||||
private:
|
||||
friend class wxMDIChildFrame;
|
||||
void Init();
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
|
||||
};
|
||||
|
18
Externals/wxWidgets3/include/wx/gtk/menu.h
vendored
18
Externals/wxWidgets3/include/wx/gtk/menu.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/menu.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: menu.h 70350 2012-01-15 13:41:17Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -21,6 +20,7 @@ public:
|
||||
wxMenuBar();
|
||||
wxMenuBar(long style);
|
||||
wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0);
|
||||
~wxMenuBar();
|
||||
|
||||
// implement base class (pure) virtuals
|
||||
virtual bool Append( wxMenu *menu, const wxString &title );
|
||||
@ -40,22 +40,21 @@ public:
|
||||
void SetLayoutDirection(wxLayoutDirection dir);
|
||||
wxLayoutDirection GetLayoutDirection() const;
|
||||
|
||||
// wxMenuBar is not a top level window but it still doesn't need a parent
|
||||
// window
|
||||
virtual bool GTKNeedsParent() const { return false; }
|
||||
|
||||
virtual void Attach(wxFrame *frame);
|
||||
virtual void Detach();
|
||||
|
||||
// implementation only from now on
|
||||
GtkWidget *m_menubar; // Public for hildon support
|
||||
|
||||
private:
|
||||
// common part of Append and Insert
|
||||
void GtkAppend(wxMenu* menu, const wxString& title, int pos = -1);
|
||||
|
||||
void Init(size_t n, wxMenu *menus[], const wxString titles[], long style);
|
||||
|
||||
// wxMenuBar is not a top level window but it still doesn't need a parent
|
||||
// window
|
||||
virtual bool GTKNeedsParent() const { return false; }
|
||||
|
||||
GtkWidget* m_menubar;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMenuBar)
|
||||
};
|
||||
|
||||
@ -82,7 +81,8 @@ public:
|
||||
// Returns the title, with mnemonics translated to wx format
|
||||
wxString GetTitle() const;
|
||||
|
||||
// TODO: virtual void SetTitle(const wxString& title);
|
||||
// Sets the title, with mnemonics translated to gtk format
|
||||
virtual void SetTitle(const wxString& title);
|
||||
|
||||
// implementation GTK only
|
||||
GtkWidget *m_menu; // GtkMenu
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/menuitem.h
|
||||
// Purpose: wxMenuItem class
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id: menuitem.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -36,14 +35,13 @@ public:
|
||||
virtual const wxBitmap& GetBitmap() const { return m_bitmap; }
|
||||
|
||||
// implementation
|
||||
void SetMenuItem(GtkWidget *menuItem) { m_menuItem = menuItem; }
|
||||
void SetMenuItem(GtkWidget *menuItem);
|
||||
GtkWidget *GetMenuItem() const { return m_menuItem; }
|
||||
void SetGtkLabel();
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
// compatibility only, don't use in new code
|
||||
wxDEPRECATED(
|
||||
inline
|
||||
wxDEPRECATED_CONSTRUCTOR(
|
||||
wxMenuItem(wxMenu *parentMenu,
|
||||
int id,
|
||||
const wxString& text,
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/minifram.h
|
||||
// Purpose: wxMiniFrame class
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id: minifram.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -33,6 +32,7 @@ public:
|
||||
{
|
||||
Create(parent, id, title, pos, size, style, name);
|
||||
}
|
||||
~wxMiniFrame();
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
|
1
Externals/wxWidgets3/include/wx/gtk/msgdlg.h
vendored
1
Externals/wxWidgets3/include/wx/gtk/msgdlg.h
vendored
@ -4,7 +4,6 @@
|
||||
// Author: Vaclav Slavik
|
||||
// Modified by:
|
||||
// Created: 2003/02/28
|
||||
// RCS-ID: $Id: msgdlg.h 68537 2011-08-04 22:53:42Z VZ $
|
||||
// Copyright: (c) Vaclav Slavik, 2003
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxGTK-specific wxNonOwnedWindow declaration.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2011-10-12
|
||||
// RCS-ID: $Id: nonownedwnd.h 69462 2011-10-18 21:56:52Z VZ $
|
||||
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxNotebook class
|
||||
// Author: Robert Roebling
|
||||
// Modified by:
|
||||
// RCS-ID: $Id: notebook.h 70112 2011-12-24 18:19:26Z VZ $
|
||||
// Copyright: (c) Julian Smart and Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -107,9 +106,6 @@ public:
|
||||
bool DoPhase(int phase);
|
||||
#endif
|
||||
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// Called by GTK event handler when the current page is definitely changed.
|
||||
void GTKOnPageChanged();
|
||||
|
||||
@ -138,6 +134,7 @@ private:
|
||||
// the padding set by SetPadding()
|
||||
int m_padding;
|
||||
|
||||
void Init();
|
||||
virtual void AddChildGTK(wxWindowGTK* child);
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxNotebook)
|
||||
|
51
Externals/wxWidgets3/include/wx/gtk/notifmsg.h
vendored
Normal file
51
Externals/wxWidgets3/include/wx/gtk/notifmsg.h
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/gtk/notifmsg.h
|
||||
// Purpose: wxNotificationMessage for wxGTK.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2012-07-25
|
||||
// Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GTK_NOTIFMSG_H_
|
||||
#define _WX_GTK_NOTIFMSG_H_
|
||||
|
||||
typedef struct _NotifyNotification NotifyNotification;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxNotificationMessage
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_ADV wxNotificationMessage : public wxNotificationMessageBase
|
||||
{
|
||||
public:
|
||||
wxNotificationMessage() { Init(); }
|
||||
wxNotificationMessage(const wxString& title,
|
||||
const wxString& message = wxString(),
|
||||
wxWindow *parent = NULL,
|
||||
int flags = wxICON_INFORMATION)
|
||||
: wxNotificationMessageBase(title, message, parent, flags)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
virtual ~wxNotificationMessage();
|
||||
|
||||
|
||||
virtual bool Show(int timeout = Timeout_Auto);
|
||||
virtual bool Close();
|
||||
|
||||
// Set the name of the icon to use, overriding the default icon determined
|
||||
// by the flags. Call with empty string to reset custom icon.
|
||||
bool GTKSetIconName(const wxString& name);
|
||||
|
||||
private:
|
||||
void Init() { m_notification = NULL; }
|
||||
|
||||
NotifyNotification* m_notification;
|
||||
wxString m_iconName;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxNotificationMessage);
|
||||
};
|
||||
|
||||
#endif // _WX_GTK_NOTIFMSG_H_
|
1
Externals/wxWidgets3/include/wx/gtk/pen.h
vendored
1
Externals/wxWidgets3/include/wx/gtk/pen.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/pen.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: pen.h 69020 2011-09-07 16:56:50Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created:
|
||||
// Id: $Id: popupwin.h 70739 2012-02-28 17:25:59Z PC $
|
||||
// Copyright: (c) 2001 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
15
Externals/wxWidgets3/include/wx/gtk/print.h
vendored
15
Externals/wxWidgets3/include/wx/gtk/print.h
vendored
@ -3,7 +3,6 @@
|
||||
// Author: Anthony Bretaudeau
|
||||
// Purpose: GTK printing support
|
||||
// Created: 2007-08-25
|
||||
// RCS-ID: $Id: print.h 67280 2011-03-22 14:17:38Z DS $
|
||||
// Copyright: (c) Anthony Bretaudeau
|
||||
// Licence: wxWindows Licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -19,8 +18,6 @@
|
||||
#include "wx/printdlg.h"
|
||||
#include "wx/prntbase.h"
|
||||
#include "wx/dc.h"
|
||||
#include "wx/cairo.h"
|
||||
|
||||
|
||||
typedef struct _GtkPrintOperation GtkPrintOperation;
|
||||
typedef struct _GtkPrintContext GtkPrintContext;
|
||||
@ -197,6 +194,7 @@ public:
|
||||
void SetPrintConfig( GtkPrintSettings * config );
|
||||
|
||||
GtkPrintOperation* GetPrintJob() { return m_job; }
|
||||
void SetPrintJob(GtkPrintOperation *job) { m_job = job; }
|
||||
|
||||
GtkPrintContext *GetPrintContext() { return m_context; }
|
||||
void SetPrintContext(GtkPrintContext *context) {m_context = context; }
|
||||
@ -206,6 +204,8 @@ public:
|
||||
void SetPageSetupToSettings(GtkPrintSettings* settings, GtkPageSetup* page_setup);
|
||||
|
||||
private:
|
||||
// NB: m_config is created and owned by us, but the other objects are not
|
||||
// and their accessors don't change their ref count.
|
||||
GtkPrintSettings *m_config;
|
||||
GtkPrintOperation *m_job;
|
||||
GtkPrintContext *m_context;
|
||||
@ -227,7 +227,8 @@ public:
|
||||
bool IsOk() const;
|
||||
|
||||
virtual void* GetCairoContext() const;
|
||||
|
||||
virtual void* GetHandle() const;
|
||||
|
||||
bool CanDrawBitmap() const { return true; }
|
||||
void Clear();
|
||||
void SetFont( const wxFont& font );
|
||||
@ -264,9 +265,9 @@ protected:
|
||||
void DoDrawArc(wxCoord x1,wxCoord y1,wxCoord x2,wxCoord y2,wxCoord xc,wxCoord yc);
|
||||
void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea);
|
||||
void DoDrawPoint(wxCoord x, wxCoord y);
|
||||
void DoDrawLines(int n, wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0);
|
||||
void DoDrawPolygon(int n, wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawPolyPolygon(int n, int count[], wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawLines(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0);
|
||||
void DoDrawPolygon(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawPolyPolygon(int n, const int count[], const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
||||
void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20.0);
|
||||
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
|
37
Externals/wxWidgets3/include/wx/gtk/private.h
vendored
37
Externals/wxWidgets3/include/wx/gtk/private.h
vendored
@ -4,7 +4,6 @@
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 12.03.02
|
||||
// RCS-ID: $Id: private.h 70475 2012-01-29 08:00:15Z PC $
|
||||
// Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -28,7 +27,7 @@
|
||||
extern const gchar *wx_pango_version_check(int major, int minor, int micro);
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
#define wxGTK_CONV(s) s.utf8_str()
|
||||
#define wxGTK_CONV(s) (s).utf8_str()
|
||||
#define wxGTK_CONV_ENC(s, enc) wxGTK_CONV((s))
|
||||
#define wxGTK_CONV_FONT(s, font) wxGTK_CONV((s))
|
||||
#define wxGTK_CONV_SYS(s) wxGTK_CONV((s))
|
||||
@ -87,6 +86,17 @@ extern const gchar *wx_pango_version_check(int major, int minor, int micro);
|
||||
#define wxGTK_CONV_BACK_SYS(s) wxConvertFromGTK((s))
|
||||
#endif
|
||||
|
||||
// Define a macro for converting wxString to char* in appropriate encoding for
|
||||
// the file names.
|
||||
#ifdef G_OS_WIN32
|
||||
// Under MSW, UTF-8 file name encodings are always used.
|
||||
#define wxGTK_CONV_FN(s) (s).utf8_str()
|
||||
#else
|
||||
// Under Unix use GLib file name encoding (which is also UTF-8 by default
|
||||
// but may be different from it).
|
||||
#define wxGTK_CONV_FN(s) (s).fn_str()
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// various private helper functions
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -99,17 +109,18 @@ namespace wxGTKPrivate
|
||||
//
|
||||
// the returned widgets shouldn't be destroyed, this is done automatically on
|
||||
// shutdown
|
||||
GtkWidget *GetButtonWidget();
|
||||
GtkWidget *GetCheckButtonWidget();
|
||||
GtkWidget *GetComboBoxWidget();
|
||||
GtkWidget *GetEntryWidget();
|
||||
GtkWidget *GetHeaderButtonWidgetFirst();
|
||||
GtkWidget *GetHeaderButtonWidgetLast();
|
||||
GtkWidget *GetHeaderButtonWidget();
|
||||
GtkWidget *GetRadioButtonWidget();
|
||||
GtkWidget *GetSplitterWidget();
|
||||
GtkWidget *GetTextEntryWidget();
|
||||
GtkWidget *GetTreeWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetButtonWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetCheckButtonWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetComboBoxWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetEntryWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetHeaderButtonWidgetFirst();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetHeaderButtonWidgetLast();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetHeaderButtonWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetNotebookWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetRadioButtonWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetSplitterWidget(wxOrientation orient = wxHORIZONTAL);
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetTextEntryWidget();
|
||||
WXDLLIMPEXP_CORE GtkWidget *GetTreeWidget();
|
||||
|
||||
} // wxGTKPrivate
|
||||
|
||||
|
48
Externals/wxWidgets3/include/wx/gtk/private/dialogcount.h
vendored
Normal file
48
Externals/wxWidgets3/include/wx/gtk/private/dialogcount.h
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/gtk/private/dialogcount.h
|
||||
// Purpose: Helper for temporarily changing wxOpenModalDialogsCount global.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2013-03-21
|
||||
// Copyright: (c) 2013 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GTK_PRIVATE_DIALOGCOUNT_H_
|
||||
#define _WX_GTK_PRIVATE_DIALOGCOUNT_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
// This global variable contains the number of currently opened modal dialogs.
|
||||
// When it is non null, the global menu used in Ubuntu Unity needs to be
|
||||
// explicitly disabled as this doesn't currently happen on its own due to a bug
|
||||
// in Unity, see https://bugs.launchpad.net/indicator-appmenu/+bug/674605
|
||||
//
|
||||
// For this to work, all modal dialogs must use wxOpenModalDialogLocker class
|
||||
// below to increment this variable while they are indeed being modally shown.
|
||||
//
|
||||
// This variable is defined in src/gtk/toplevel.cpp
|
||||
extern int wxOpenModalDialogsCount;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxOpenModalDialogLocker: Create an object of this class to increment
|
||||
// wxOpenModalDialogsCount during its lifetime.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class wxOpenModalDialogLocker
|
||||
{
|
||||
public:
|
||||
wxOpenModalDialogLocker()
|
||||
{
|
||||
wxOpenModalDialogsCount++;
|
||||
}
|
||||
|
||||
~wxOpenModalDialogLocker()
|
||||
{
|
||||
wxOpenModalDialogsCount--;
|
||||
}
|
||||
|
||||
private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxOpenModalDialogLocker);
|
||||
};
|
||||
|
||||
#endif // _WX_GTK_PRIVATE_DIALOGCOUNT_H_
|
45
Externals/wxWidgets3/include/wx/gtk/private/error.h
vendored
Normal file
45
Externals/wxWidgets3/include/wx/gtk/private/error.h
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: gtk/private/error.h
|
||||
// Purpose: Wrapper around GError.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2012-07-25
|
||||
// Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GTK_PRIVATE_ERROR_H_
|
||||
#define _WX_GTK_PRIVATE_ERROR_H_
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxGtkError wraps GError and releases it automatically.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Create an object of this class and pass the result of its Out() method to a
|
||||
// function taking "GError**", then use GetMessage() if the function returned
|
||||
// false.
|
||||
class wxGtkError
|
||||
{
|
||||
public:
|
||||
wxGtkError() { m_error = NULL; }
|
||||
~wxGtkError() { if ( m_error ) g_error_free(m_error); }
|
||||
|
||||
GError** Out()
|
||||
{
|
||||
// This would result in a GError leak.
|
||||
wxASSERT_MSG( !m_error, wxS("Can't reuse the same object.") );
|
||||
|
||||
return &m_error;
|
||||
}
|
||||
|
||||
wxString GetMessage() const
|
||||
{
|
||||
return wxString::FromUTF8(m_error->message);
|
||||
}
|
||||
|
||||
private:
|
||||
GError* m_error;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGtkError);
|
||||
};
|
||||
|
||||
#endif // _WX_GTK_PRIVATE_ERROR_H_
|
@ -3,7 +3,6 @@
|
||||
// Purpose: Helper functions for working with GDK and wx events
|
||||
// Author: Vaclav Slavik
|
||||
// Created: 2011-10-14
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2011 Vaclav Slavik
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: Helper functions for converting between GDK and wx types
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2009-11-10
|
||||
// RCS-ID: $Id: gdkconv.h 64140 2010-04-25 21:33:16Z FM $
|
||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: Compatibility code for older GTK+ versions
|
||||
// Author: Vaclav Slavik
|
||||
// Created: 2011-03-25
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2011 Vaclav Slavik <vslavik@fastmail.fm>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -26,7 +25,7 @@
|
||||
// functions even if GTK_CHECK_VERSION would indicate the function is
|
||||
// already available in GTK+.
|
||||
|
||||
#if !GTK_CHECK_VERSION(3,0,0) && !(defined(GTK_DISABLE_DEPRECATED) || defined(GSEAL_ENABLE))
|
||||
#ifndef __WXGTK3__
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// the following were introduced in GTK+ 2.8
|
||||
@ -55,16 +54,13 @@ static inline gpointer wx_g_object_ref_sink(gpointer object)
|
||||
#define g_object_ref_sink wx_g_object_ref_sink
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// the following were introduced in GTK+ 2.12 and GtkAboutDialog itself is not
|
||||
// in 2.4 so skip this if we don't have it.
|
||||
#if GTK_CHECK_VERSION(2,6,0)
|
||||
// the following were introduced in GTK+ 2.12
|
||||
|
||||
static inline void wx_gtk_about_dialog_set_program_name(GtkAboutDialog* about, const gchar* name)
|
||||
{
|
||||
gtk_about_dialog_set_name(about, name);
|
||||
}
|
||||
#define gtk_about_dialog_set_program_name wx_gtk_about_dialog_set_program_name
|
||||
#endif // 2.6.0
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// the following were introduced in GTK+ 2.14
|
||||
@ -129,18 +125,6 @@ static inline guint16 wx_gtk_entry_get_text_length(GtkEntry* entry)
|
||||
}
|
||||
#define gtk_entry_get_text_length wx_gtk_entry_get_text_length
|
||||
|
||||
static inline GtkWidget* wx_gtk_font_selection_dialog_get_cancel_button(GtkFontSelectionDialog* fsd)
|
||||
{
|
||||
return fsd->cancel_button;
|
||||
}
|
||||
#define gtk_font_selection_dialog_get_cancel_button wx_gtk_font_selection_dialog_get_cancel_button
|
||||
|
||||
static inline GtkWidget* wx_gtk_font_selection_dialog_get_ok_button(GtkFontSelectionDialog* fsd)
|
||||
{
|
||||
return fsd->ok_button;
|
||||
}
|
||||
#define gtk_font_selection_dialog_get_ok_button wx_gtk_font_selection_dialog_get_ok_button
|
||||
|
||||
static inline const guchar* wx_gtk_selection_data_get_data(GtkSelectionData* selection_data)
|
||||
{
|
||||
return selection_data->data;
|
||||
@ -342,9 +326,66 @@ static inline GdkWindow* wx_gtk_entry_get_text_window(GtkEntry* entry)
|
||||
}
|
||||
#define gtk_entry_get_text_window wx_gtk_entry_get_text_window
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// the following were introduced in GTK+ 2.22
|
||||
|
||||
static inline GdkWindow* wx_gtk_button_get_event_window(GtkButton* button)
|
||||
{
|
||||
return button->event_window;
|
||||
}
|
||||
#define gtk_button_get_event_window wx_gtk_button_get_event_window
|
||||
|
||||
static inline GdkDragAction wx_gdk_drag_context_get_actions(GdkDragContext* context)
|
||||
{
|
||||
return context->actions;
|
||||
}
|
||||
#define gdk_drag_context_get_actions wx_gdk_drag_context_get_actions
|
||||
|
||||
static inline GdkDragAction wx_gdk_drag_context_get_selected_action(GdkDragContext* context)
|
||||
{
|
||||
return context->action;
|
||||
}
|
||||
#define gdk_drag_context_get_selected_action wx_gdk_drag_context_get_selected_action
|
||||
|
||||
static inline GdkDragAction wx_gdk_drag_context_get_suggested_action(GdkDragContext* context)
|
||||
{
|
||||
return context->suggested_action;
|
||||
}
|
||||
#define gdk_drag_context_get_suggested_action wx_gdk_drag_context_get_suggested_action
|
||||
|
||||
static inline GList* wx_gdk_drag_context_list_targets(GdkDragContext* context)
|
||||
{
|
||||
return context->targets;
|
||||
}
|
||||
#define gdk_drag_context_list_targets wx_gdk_drag_context_list_targets
|
||||
|
||||
static inline gint wx_gdk_visual_get_depth(GdkVisual* visual)
|
||||
{
|
||||
return visual->depth;
|
||||
}
|
||||
#define gdk_visual_get_depth wx_gdk_visual_get_depth
|
||||
|
||||
static inline gboolean wx_gtk_window_has_group(GtkWindow* window)
|
||||
{
|
||||
return window->group != NULL;
|
||||
}
|
||||
#define gtk_window_has_group wx_gtk_window_has_group
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// the following were introduced in GTK+ 2.24
|
||||
|
||||
static inline GdkDisplay* wx_gdk_window_get_display(GdkWindow* window)
|
||||
{
|
||||
return gdk_drawable_get_display(window);
|
||||
}
|
||||
#define gdk_window_get_display wx_gdk_window_get_display
|
||||
|
||||
static inline GdkScreen* wx_gdk_window_get_screen(GdkWindow* window)
|
||||
{
|
||||
return gdk_drawable_get_screen(window);
|
||||
}
|
||||
#define gdk_window_get_screen wx_gdk_window_get_screen
|
||||
|
||||
static inline gint wx_gdk_window_get_height(GdkWindow* window)
|
||||
{
|
||||
int h;
|
||||
@ -369,8 +410,106 @@ static inline void wx_gdk_cairo_set_source_window(cairo_t* cr, GdkWindow* window
|
||||
#define gdk_cairo_set_source_window wx_gdk_cairo_set_source_window
|
||||
#endif
|
||||
|
||||
#endif // !GTK_CHECK_VERSION(3,0,0) && !defined(GTK_DISABLE_DEPRECATED)
|
||||
// ----------------------------------------------------------------------------
|
||||
// the following were introduced in GTK+ 3.0
|
||||
|
||||
static inline void wx_gdk_window_get_geometry(GdkWindow* window, gint* x, gint* y, gint* width, gint* height)
|
||||
{
|
||||
gdk_window_get_geometry(window, x, y, width, height, NULL);
|
||||
}
|
||||
#define gdk_window_get_geometry wx_gdk_window_get_geometry
|
||||
|
||||
static inline GtkWidget* wx_gtk_tree_view_column_get_button(GtkTreeViewColumn* tree_column)
|
||||
{
|
||||
return tree_column->button;
|
||||
}
|
||||
#define gtk_tree_view_column_get_button wx_gtk_tree_view_column_get_button
|
||||
|
||||
static inline GtkWidget* wx_gtk_box_new(GtkOrientation orientation, gint spacing)
|
||||
{
|
||||
GtkWidget* widget;
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
widget = gtk_hbox_new(false, spacing);
|
||||
else
|
||||
widget = gtk_vbox_new(false, spacing);
|
||||
return widget;
|
||||
}
|
||||
#define gtk_box_new wx_gtk_box_new
|
||||
|
||||
static inline GtkWidget* wx_gtk_button_box_new(GtkOrientation orientation)
|
||||
{
|
||||
GtkWidget* widget;
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
widget = gtk_hbutton_box_new();
|
||||
else
|
||||
widget = gtk_vbutton_box_new();
|
||||
return widget;
|
||||
}
|
||||
#define gtk_button_box_new wx_gtk_button_box_new
|
||||
|
||||
static inline GtkWidget* wx_gtk_scale_new(GtkOrientation orientation, GtkAdjustment* adjustment)
|
||||
{
|
||||
GtkWidget* widget;
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
widget = gtk_hscale_new(adjustment);
|
||||
else
|
||||
widget = gtk_vscale_new(adjustment);
|
||||
return widget;
|
||||
}
|
||||
#define gtk_scale_new wx_gtk_scale_new
|
||||
|
||||
static inline GtkWidget* wx_gtk_scrollbar_new(GtkOrientation orientation, GtkAdjustment* adjustment)
|
||||
{
|
||||
GtkWidget* widget;
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
widget = gtk_hscrollbar_new(adjustment);
|
||||
else
|
||||
widget = gtk_vscrollbar_new(adjustment);
|
||||
return widget;
|
||||
}
|
||||
#define gtk_scrollbar_new wx_gtk_scrollbar_new
|
||||
|
||||
static inline GtkWidget* wx_gtk_separator_new(GtkOrientation orientation)
|
||||
{
|
||||
GtkWidget* widget;
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
widget = gtk_hseparator_new();
|
||||
else
|
||||
widget = gtk_vseparator_new();
|
||||
return widget;
|
||||
}
|
||||
#define gtk_separator_new wx_gtk_separator_new
|
||||
|
||||
static inline void wx_gtk_widget_get_preferred_height(GtkWidget* widget, gint* minimum, gint* natural)
|
||||
{
|
||||
GtkRequisition req;
|
||||
gtk_widget_size_request(widget, &req);
|
||||
if (minimum)
|
||||
*minimum = req.height;
|
||||
if (natural)
|
||||
*natural = req.height;
|
||||
}
|
||||
#define gtk_widget_get_preferred_height wx_gtk_widget_get_preferred_height
|
||||
|
||||
static inline void wx_gtk_widget_get_preferred_width(GtkWidget* widget, gint* minimum, gint* natural)
|
||||
{
|
||||
GtkRequisition req;
|
||||
gtk_widget_size_request(widget, &req);
|
||||
if (minimum)
|
||||
*minimum = req.width;
|
||||
if (natural)
|
||||
*natural = req.width;
|
||||
}
|
||||
#define gtk_widget_get_preferred_width wx_gtk_widget_get_preferred_width
|
||||
|
||||
static inline void wx_gtk_widget_get_preferred_size(GtkWidget* widget, GtkRequisition* minimum, GtkRequisition* natural)
|
||||
{
|
||||
GtkRequisition* req = minimum;
|
||||
if (req == NULL)
|
||||
req = natural;
|
||||
gtk_widget_size_request(widget, req);
|
||||
}
|
||||
#define gtk_widget_get_preferred_size wx_gtk_widget_get_preferred_size
|
||||
|
||||
#endif // !__WXGTK3__
|
||||
#endif // _WX_GTK_PRIVATE_COMPAT_H_
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxGtkList class.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2011-08-21
|
||||
// RCS-ID: $Id: list.h 68842 2011-08-22 12:41:00Z VZ $
|
||||
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: translate between wx and GtkMessageType
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2009-09-27
|
||||
// RCS-ID: $Id: messagetype.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: helper functions for dealing with GTK+ mnemonics
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2007-11-12
|
||||
// RCS-ID: $Id: mnemonics.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxGtkObject class declaration
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2008-08-27
|
||||
// RCS-ID: $Id: object.h 58757 2009-02-08 11:45:59Z VZ $
|
||||
// Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxGtkString class declaration
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2006-10-19
|
||||
// RCS-ID: $Id: string.h 65680 2010-09-30 11:44:45Z VZ $
|
||||
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
64
Externals/wxWidgets3/include/wx/gtk/private/textmeasure.h
vendored
Normal file
64
Externals/wxWidgets3/include/wx/gtk/private/textmeasure.h
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/gtk/private/textmeasure.h
|
||||
// Purpose: wxGTK-specific declaration of wxTextMeasure class
|
||||
// Author: Manuel Martin
|
||||
// Created: 2012-10-05
|
||||
// Copyright: (c) 1997-2012 wxWidgets team
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GTK_PRIVATE_TEXTMEASURE_H_
|
||||
#define _WX_GTK_PRIVATE_TEXTMEASURE_H_
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTextMeasure
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxWindowDCImpl;
|
||||
|
||||
class wxTextMeasure : public wxTextMeasureBase
|
||||
{
|
||||
public:
|
||||
wxEXPLICIT wxTextMeasure(const wxDC *dc, const wxFont *font = NULL)
|
||||
: wxTextMeasureBase(dc, font)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
wxEXPLICIT wxTextMeasure(const wxWindow *win, const wxFont *font = NULL)
|
||||
: wxTextMeasureBase(win, font)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
protected:
|
||||
// Common part of both ctors.
|
||||
void Init();
|
||||
|
||||
virtual void BeginMeasuring();
|
||||
virtual void EndMeasuring();
|
||||
|
||||
virtual void DoGetTextExtent(const wxString& string,
|
||||
wxCoord *width,
|
||||
wxCoord *height,
|
||||
wxCoord *descent = NULL,
|
||||
wxCoord *externalLeading = NULL);
|
||||
|
||||
virtual bool DoGetPartialTextExtents(const wxString& text,
|
||||
wxArrayInt& widths,
|
||||
double scaleX);
|
||||
|
||||
// This class is only used for DC text measuring with GTK+ 2 as GTK+ 3 uses
|
||||
// Cairo and not Pango for this. However it's still used even with GTK+ 3
|
||||
// for window text measuring, so the context and the layout are still
|
||||
// needed.
|
||||
#ifndef __WXGTK3__
|
||||
wxWindowDCImpl *m_wdc;
|
||||
#endif // GTK+ < 3
|
||||
PangoContext *m_context;
|
||||
PangoLayout *m_layout;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxTextMeasure);
|
||||
};
|
||||
|
||||
#endif // _WX_GTK_PRIVATE_TEXTMEASURE_H_
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/private/timer.h
|
||||
// Purpose: wxTimerImpl for wxGTK
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: timer.h 70165 2011-12-29 14:42:13Z SN $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
58
Externals/wxWidgets3/include/wx/gtk/private/treeentry_gtk.h
vendored
Normal file
58
Externals/wxWidgets3/include/wx/gtk/private/treeentry_gtk.h
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
/* ///////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/gtk/private/treeentry_gtk.h
|
||||
// Purpose: GtkTreeEntry - a string/userdata combo for use with treeview
|
||||
// Author: Ryan Norton
|
||||
// Copyright: (c) 2006 Ryan Norton
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////// */
|
||||
|
||||
#ifndef _WX_GTK_TREE_ENTRY_H_
|
||||
#define _WX_GTK_TREE_ENTRY_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include <gtk/gtk.h> /* for gpointer and gchar* etc. */
|
||||
|
||||
#define WX_TYPE_TREE_ENTRY wx_tree_entry_get_type()
|
||||
#define WX_TREE_ENTRY(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, wx_tree_entry_get_type(), wxTreeEntry)
|
||||
#define WX_IS_TREE_ENTRY(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, wx_tree_entry_get_type())
|
||||
|
||||
typedef struct _wxTreeEntry wxTreeEntry;
|
||||
|
||||
typedef void (*wxTreeEntryDestroy)(wxTreeEntry* entry, void* context);
|
||||
|
||||
struct _wxTreeEntry
|
||||
{
|
||||
GObject parent; /* object instance */
|
||||
gchar* label; /* label - always copied by this object except on get */
|
||||
gchar* collate_key; /* collate key used for string comparisons/sorting */
|
||||
gpointer userdata; /* untouched userdata */
|
||||
wxTreeEntryDestroy destroy_func; /* called upon destruction - use for freeing userdata etc. */
|
||||
gpointer destroy_func_data; /* context passed to destroy_func */
|
||||
};
|
||||
|
||||
wxTreeEntry* wx_tree_entry_new(void);
|
||||
|
||||
GType wx_tree_entry_get_type(void);
|
||||
|
||||
char* wx_tree_entry_get_collate_key(wxTreeEntry* entry);
|
||||
|
||||
char* wx_tree_entry_get_label(wxTreeEntry* entry);
|
||||
|
||||
void* wx_tree_entry_get_userdata(wxTreeEntry* entry);
|
||||
|
||||
void wx_tree_entry_set_label(wxTreeEntry* entry, const char* label);
|
||||
|
||||
void wx_tree_entry_set_userdata(wxTreeEntry* entry, void* userdata);
|
||||
|
||||
void wx_tree_entry_set_destroy_func(wxTreeEntry* entry,
|
||||
wxTreeEntryDestroy destroy_func,
|
||||
gpointer destroy_func_data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* _WX_GTK_TREE_ENTRY_H_ */
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/private/win_gtk.h
|
||||
// Purpose: native GTK+ widget for wxWindow
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: win_gtk.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////// */
|
||||
@ -10,8 +9,6 @@
|
||||
#ifndef _WX_GTK_PIZZA_H_
|
||||
#define _WX_GTK_PIZZA_H_
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define WX_PIZZA(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, wxPizza::type(), wxPizza)
|
||||
#define WX_IS_PIZZA(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, wxPizza::type())
|
||||
|
||||
@ -23,16 +20,16 @@ struct WXDLLIMPEXP_CORE wxPizza
|
||||
|
||||
static GtkWidget* New(long windowStyle = 0);
|
||||
static GType type();
|
||||
void move(GtkWidget* widget, int x, int y);
|
||||
void put(GtkWidget* widget, int x, int y);
|
||||
void move(GtkWidget* widget, int x, int y, int width, int height);
|
||||
void put(GtkWidget* widget, int x, int y, int width, int height);
|
||||
void scroll(int dx, int dy);
|
||||
void get_border_widths(int& x, int& y);
|
||||
void get_border(GtkBorder& border);
|
||||
|
||||
GtkFixed m_fixed;
|
||||
GList* m_children;
|
||||
int m_scroll_x;
|
||||
int m_scroll_y;
|
||||
int m_border_style;
|
||||
bool m_is_scrollable;
|
||||
int m_windowStyle;
|
||||
};
|
||||
|
||||
#endif // _WX_GTK_PIZZA_H_
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/radiobox.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: radiobox.h 67298 2011-03-23 17:36:10Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -28,7 +27,7 @@ class WXDLLIMPEXP_CORE wxRadioBox : public wxControl,
|
||||
{
|
||||
public:
|
||||
// ctors and dtor
|
||||
wxRadioBox() { Init(); }
|
||||
wxRadioBox() { }
|
||||
wxRadioBox(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& title,
|
||||
@ -41,8 +40,6 @@ public:
|
||||
const wxValidator& val = wxDefaultValidator,
|
||||
const wxString& name = wxRadioBoxNameStr)
|
||||
{
|
||||
Init();
|
||||
|
||||
Create( parent, id, title, pos, size, n, choices, majorDim, style, val, name );
|
||||
}
|
||||
|
||||
@ -57,8 +54,6 @@ public:
|
||||
const wxValidator& val = wxDefaultValidator,
|
||||
const wxString& name = wxRadioBoxNameStr)
|
||||
{
|
||||
Init();
|
||||
|
||||
Create( parent, id, title, pos, size, choices, majorDim, style, val, name );
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/radiobut.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: radiobut.h 62785 2009-12-05 19:25:04Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
15
Externals/wxWidgets3/include/wx/gtk/region.h
vendored
15
Externals/wxWidgets3/include/wx/gtk/region.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/region.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: region.h 69815 2011-11-25 00:52:24Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -10,6 +9,10 @@
|
||||
#ifndef _WX_GTK_REGION_H_
|
||||
#define _WX_GTK_REGION_H_
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
typedef struct _cairo_region cairo_region_t;
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxRegion
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -56,12 +59,12 @@ public:
|
||||
virtual void Clear();
|
||||
virtual bool IsEmpty() const;
|
||||
|
||||
public:
|
||||
// Init with GdkRegion, set ref count to 2 so that
|
||||
// the C++ class will not destroy the region!
|
||||
wxRegion( GdkRegion *region );
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
cairo_region_t* GetRegion() const;
|
||||
#else
|
||||
wxRegion(const GdkRegion* region);
|
||||
GdkRegion *GetRegion() const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/scrolbar.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: scrolbar.h 67326 2011-03-28 06:27:49Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -4,7 +4,6 @@
|
||||
// Author: Robert Roebling
|
||||
// Modified by: Vadim Zeitlin (2005-10-10): wxScrolledWindow is now common
|
||||
// Created: 01/02/97
|
||||
// RCS-ID: $Id: scrolwin.h 58773 2009-02-08 20:51:44Z PC $
|
||||
// Copyright: (c) Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -30,6 +29,8 @@ public:
|
||||
bool noRefresh = false);
|
||||
virtual void AdjustScrollbars();
|
||||
|
||||
virtual bool IsScrollbarShown(int orient) const;
|
||||
|
||||
protected:
|
||||
virtual void DoScroll(int x, int y);
|
||||
virtual void DoShowScrollbars(wxScrollbarVisibility horz,
|
||||
|
1665
Externals/wxWidgets3/include/wx/gtk/setup0.h
vendored
Normal file
1665
Externals/wxWidgets3/include/wx/gtk/setup0.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
Externals/wxWidgets3/include/wx/gtk/slider.h
vendored
2
Externals/wxWidgets3/include/wx/gtk/slider.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/slider.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: slider.h 65680 2010-09-30 11:44:45Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -30,6 +29,7 @@ public:
|
||||
Create( parent, id, value, minValue, maxValue,
|
||||
pos, size, style, validator, name );
|
||||
}
|
||||
~wxSlider();
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxSpinButton class
|
||||
// Author: Robert Roebling
|
||||
// Modified by:
|
||||
// RCS-ID: $Id: spinbutt.h 62785 2009-12-05 19:25:04Z PC $
|
||||
// Copyright: (c) Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
24
Externals/wxWidgets3/include/wx/gtk/spinctrl.h
vendored
24
Externals/wxWidgets3/include/wx/gtk/spinctrl.h
vendored
@ -3,7 +3,6 @@
|
||||
// Purpose: wxSpinCtrl class
|
||||
// Author: Robert Roebling
|
||||
// Modified by:
|
||||
// RCS-ID: $Id: spinctrl.h 67254 2011-03-20 00:14:35Z DS $
|
||||
// Copyright: (c) Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -73,13 +72,15 @@ protected:
|
||||
void GtkEnableEvents() const;
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
|
||||
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
|
||||
|
||||
// Widgets that use the style->base colour for the BG colour should
|
||||
// override this and return true.
|
||||
virtual bool UseGTKStyleBase() const { return true; }
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxSpinCtrlGTKBase)
|
||||
friend class wxSpinCtrlEventDisabler;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
@ -90,7 +91,7 @@ protected:
|
||||
class WXDLLIMPEXP_CORE wxSpinCtrl : public wxSpinCtrlGTKBase
|
||||
{
|
||||
public:
|
||||
wxSpinCtrl() {}
|
||||
wxSpinCtrl() { Init(); }
|
||||
wxSpinCtrl(wxWindow *parent,
|
||||
wxWindowID id = wxID_ANY,
|
||||
const wxString& value = wxEmptyString,
|
||||
@ -100,6 +101,8 @@ public:
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = wxS("wxSpinCtrl"))
|
||||
{
|
||||
Init();
|
||||
|
||||
Create(parent, id, value, pos, size, style, min, max, initial, name);
|
||||
}
|
||||
|
||||
@ -128,6 +131,18 @@ public:
|
||||
void SetRange( int minVal, int maxVal ) { DoSetRange(minVal, maxVal); }
|
||||
void SetIncrement(int inc) { DoSetIncrement(inc); }
|
||||
|
||||
virtual int GetBase() const { return m_base; }
|
||||
virtual bool SetBase(int base);
|
||||
|
||||
private:
|
||||
// Common part of all ctors.
|
||||
void Init()
|
||||
{
|
||||
m_base = 10;
|
||||
}
|
||||
|
||||
int m_base;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
|
||||
};
|
||||
|
||||
@ -181,6 +196,9 @@ public:
|
||||
void SetIncrement(double inc) { DoSetIncrement(inc); }
|
||||
void SetDigits(unsigned digits);
|
||||
|
||||
virtual int GetBase() const { return 10; }
|
||||
virtual bool SetBase(int WXUNUSED(base)) { return false; }
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxSpinCtrlDouble)
|
||||
};
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/statbmp.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: statbmp.h 61724 2009-08-21 10:41:26Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/statbox.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: statbox.h 70738 2012-02-28 17:06:56Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/statline.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: statline.h 43874 2006-12-09 14:52:59Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/stattext.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: stattext.h 67062 2011-02-27 12:48:07Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -48,10 +47,6 @@ protected:
|
||||
virtual bool GTKWidgetNeedsMnemonic() const;
|
||||
virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
|
||||
|
||||
virtual void DoSetSize(int x, int y,
|
||||
int width, int height,
|
||||
int sizeFlags = wxSIZE_AUTO);
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
virtual wxString DoGetLabel() const;
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: wxTaskBarIcon class for GTK2
|
||||
// Author: Paul Cornett
|
||||
// Created: 2009-02-08
|
||||
// RCS-ID: $Id: taskbar.h 67232 2011-03-18 15:10:15Z DS $
|
||||
// Copyright: (c) 2009 Paul Cornett
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -14,7 +13,7 @@
|
||||
class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
|
||||
{
|
||||
public:
|
||||
wxTaskBarIcon();
|
||||
wxTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE);
|
||||
~wxTaskBarIcon();
|
||||
virtual bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxString());
|
||||
virtual bool RemoveIcon();
|
||||
|
17
Externals/wxWidgets3/include/wx/gtk/textctrl.h
vendored
17
Externals/wxWidgets3/include/wx/gtk/textctrl.h
vendored
@ -3,7 +3,6 @@
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Created: 01/02/97
|
||||
// Id: $Id: textctrl.h 68450 2011-07-29 15:11:54Z VZ $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -145,28 +144,26 @@ public:
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
protected:
|
||||
// wxGTK-specific: called recursively by Enable,
|
||||
// to give widgets an oppprtunity to correct their colours after they
|
||||
// have been changed by Enable
|
||||
virtual void OnEnabled(bool enable);
|
||||
|
||||
// overridden wxWindow virtual methods
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual void DoApplyWidgetStyle(GtkRcStyle *style);
|
||||
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
|
||||
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
|
||||
|
||||
virtual void DoFreeze();
|
||||
virtual void DoThaw();
|
||||
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// Widgets that use the style->base colour for the BG colour should
|
||||
// override this and return true.
|
||||
virtual bool UseGTKStyleBase() const { return true; }
|
||||
|
||||
virtual void DoSetValue(const wxString &value, int flags = 0);
|
||||
|
||||
// Override this to use either GtkEntry or GtkTextView IME depending on the
|
||||
// kind of control we are.
|
||||
virtual int GTKIMFilterKeypress(GdkEventKey* event) const;
|
||||
|
||||
virtual wxPoint DoPositionToCoords(long pos) const;
|
||||
|
||||
// wrappers hiding the differences between functions doing the same thing
|
||||
@ -179,6 +176,8 @@ protected:
|
||||
void GTKSetJustification();
|
||||
|
||||
private:
|
||||
void Init();
|
||||
|
||||
// overridden wxTextEntry virtual methods
|
||||
virtual GtkEditable *GetEditable() const;
|
||||
virtual GtkEntry *GetEntry() const;
|
||||
|
15
Externals/wxWidgets3/include/wx/gtk/textentry.h
vendored
15
Externals/wxWidgets3/include/wx/gtk/textentry.h
vendored
@ -3,7 +3,6 @@
|
||||
// Purpose: wxGTK-specific wxTextEntry implementation
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2007-09-24
|
||||
// RCS-ID: $Id: textentry.h 67509 2011-04-16 17:27:04Z VZ $
|
||||
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@ -11,6 +10,7 @@
|
||||
#ifndef _WX_GTK_TEXTENTRY_H_
|
||||
#define _WX_GTK_TEXTENTRY_H_
|
||||
|
||||
typedef struct _GdkEventKey GdkEventKey;
|
||||
typedef struct _GtkEditable GtkEditable;
|
||||
typedef struct _GtkEntry GtkEntry;
|
||||
|
||||
@ -50,8 +50,18 @@ public:
|
||||
|
||||
// implementation only from now on
|
||||
void SendMaxLenEvent();
|
||||
bool GTKEntryOnInsertText(const char* text);
|
||||
|
||||
protected:
|
||||
// This method must be called from the derived class Create() to connect
|
||||
// the handlers for the clipboard (cut/copy/paste) events.
|
||||
void GTKConnectClipboardSignals(GtkWidget* entry);
|
||||
|
||||
// And this one to connect "insert-text" signal.
|
||||
void GTKConnectInsertTextSignal(GtkEntry* entry);
|
||||
|
||||
|
||||
virtual void DoSetValue(const wxString& value, int flags);
|
||||
virtual wxString DoGetValue() const;
|
||||
|
||||
// margins functions
|
||||
@ -60,6 +70,9 @@ protected:
|
||||
|
||||
virtual bool DoAutoCompleteStrings(const wxArrayString& choices);
|
||||
|
||||
// Override the base class method to use GtkEntry IM context.
|
||||
virtual int GTKIMFilterKeypress(GdkEventKey* event) const;
|
||||
|
||||
private:
|
||||
// implement this to return the associated GtkEntry or another widget
|
||||
// implementing GtkEditable
|
||||
|
8
Externals/wxWidgets3/include/wx/gtk/tglbtn.h
vendored
8
Externals/wxWidgets3/include/wx/gtk/tglbtn.h
vendored
@ -5,7 +5,6 @@
|
||||
// Author: John Norris, minor changes by Axel Schlueter
|
||||
// Modified by:
|
||||
// Created: 08.02.01
|
||||
// RCS-ID: $Id: tglbtn.h 67931 2011-06-14 13:00:42Z VZ $
|
||||
// Copyright: (c) 2000 Johnny C. Norris II
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -15,13 +14,6 @@
|
||||
|
||||
#include "wx/bitmap.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// classes
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxToggleButton;
|
||||
class WXDLLIMPEXP_FWD_CORE wxToggleBitmapButton;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxToggleButton
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/toolbar.h
|
||||
// Purpose: GTK toolbar
|
||||
// Author: Robert Roebling
|
||||
// RCS-ID: $Id: toolbar.h 70854 2012-03-10 00:01:09Z RD $
|
||||
// Copyright: (c) Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -73,6 +72,9 @@ public:
|
||||
// --------------------------
|
||||
|
||||
protected:
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_DEFAULT; }
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/tooltip.h
|
||||
// Purpose: wxToolTip class
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: tooltip.h 67298 2011-03-23 17:36:10Z PC $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
20
Externals/wxWidgets3/include/wx/gtk/toplevel.h
vendored
20
Externals/wxWidgets3/include/wx/gtk/toplevel.h
vendored
@ -2,7 +2,6 @@
|
||||
// Name: wx/gtk/toplevel.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: toplevel.h 70165 2011-12-29 14:42:13Z SN $
|
||||
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -95,6 +94,8 @@ public:
|
||||
|
||||
virtual void GTKHandleRealized();
|
||||
|
||||
void GTKConfigureEvent(int x, int y);
|
||||
|
||||
// do *not* call this to iconize the frame, this is a private function!
|
||||
void SetIconizeState(bool iconic);
|
||||
|
||||
@ -109,7 +110,11 @@ public:
|
||||
m_gdkDecor;
|
||||
|
||||
// size of WM decorations
|
||||
wxSize m_decorSize;
|
||||
struct DecorSize
|
||||
{
|
||||
int left, right, top, bottom;
|
||||
};
|
||||
DecorSize m_decorSize;
|
||||
|
||||
// private gtk_timeout_add result for mimicing wxUSER_ATTENTION_INFO and
|
||||
// wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle.
|
||||
@ -120,7 +125,7 @@ public:
|
||||
// return the size of the window without WM decorations
|
||||
void GTKDoGetSize(int *width, int *height) const;
|
||||
|
||||
void GTKUpdateDecorSize(const wxSize& decorSize);
|
||||
void GTKUpdateDecorSize(const DecorSize& decorSize);
|
||||
|
||||
protected:
|
||||
// give hints to the Window Manager for how the size
|
||||
@ -128,9 +133,6 @@ protected:
|
||||
virtual void DoSetSizeHints( int minW, int minH,
|
||||
int maxW, int maxH,
|
||||
int incW, int incH);
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// move the window to the specified location and resize it
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||
|
||||
@ -148,7 +150,11 @@ protected:
|
||||
bool m_deferShow;
|
||||
|
||||
private:
|
||||
wxSize& GetCachedDecorSize();
|
||||
void Init();
|
||||
DecorSize& GetCachedDecorSize();
|
||||
|
||||
// size hint increments
|
||||
int m_incWidth, m_incHeight;
|
||||
|
||||
// is the frame currently iconized?
|
||||
bool m_isIconized;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user