minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,7 +19,6 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/stream.h"
|
#include "wx/stream.h"
|
||||||
|
|
||||||
class WXDLLIMPEXP_FWD_BASE wxInputStream;
|
|
||||||
class WXDLLIMPEXP_FWD_CORE wxImage;
|
class WXDLLIMPEXP_FWD_CORE wxImage;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -18,8 +18,8 @@
|
|||||||
#if wxUSE_BITMAPCOMBOBOX
|
#if wxUSE_BITMAPCOMBOBOX
|
||||||
|
|
||||||
#include "wx/bitmap.h"
|
#include "wx/bitmap.h"
|
||||||
#include "wx/window.h"
|
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
||||||
class WXDLLIMPEXP_FWD_CORE wxItemContainer;
|
class WXDLLIMPEXP_FWD_CORE wxItemContainer;
|
||||||
|
|
||||||
// Define wxBITMAPCOMBOBOX_OWNERDRAWN_BASED for platforms which
|
// Define wxBITMAPCOMBOBOX_OWNERDRAWN_BASED for platforms which
|
||||||
|
@@ -7,13 +7,15 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __BUSYINFO_H__
|
#ifndef _WX_BUSYINFO_H_
|
||||||
#define __BUSYINFO_H__
|
#define _WX_BUSYINFO_H_
|
||||||
|
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
|
|
||||||
#if wxUSE_BUSYINFO
|
#if wxUSE_BUSYINFO
|
||||||
|
|
||||||
|
#include "wx/object.h"
|
||||||
|
|
||||||
class WXDLLIMPEXP_FWD_CORE wxFrame;
|
class WXDLLIMPEXP_FWD_CORE wxFrame;
|
||||||
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
||||||
|
|
||||||
@@ -36,7 +38,5 @@ private:
|
|||||||
wxDECLARE_NO_COPY_CLASS(wxBusyInfo);
|
wxDECLARE_NO_COPY_CLASS(wxBusyInfo);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // wxUSE_BUSYINFO
|
#endif // wxUSE_BUSYINFO
|
||||||
|
#endif // _WX_BUSYINFO_H_
|
||||||
#endif // __BUSYINFO_H__
|
|
||||||
|
@@ -3,20 +3,19 @@
|
|||||||
// Purpose:
|
// Purpose:
|
||||||
// Author: Robert Roebling
|
// Author: Robert Roebling
|
||||||
// Created: 01/02/97
|
// Created: 01/02/97
|
||||||
// Id:
|
// Id: $Id$
|
||||||
// Copyright: (c) 1998 Robert Roebling and Julian Smart
|
// Copyright: (c) 1998 Robert Roebling and Julian Smart
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __IMAGELISTH_G__
|
#ifndef _WX_IMAGLISTG_H_
|
||||||
#define __IMAGELISTH_G__
|
#define _WX_IMAGLISTG_H_
|
||||||
|
|
||||||
#include "wx/defs.h"
|
|
||||||
#include "wx/list.h"
|
#include "wx/list.h"
|
||||||
#include "wx/icon.h"
|
|
||||||
|
|
||||||
class WXDLLIMPEXP_FWD_CORE wxDC;
|
class WXDLLIMPEXP_FWD_CORE wxDC;
|
||||||
class WXDLLIMPEXP_FWD_CORE wxBitmap;
|
class WXDLLIMPEXP_FWD_CORE wxBitmap;
|
||||||
|
class WXDLLIMPEXP_FWD_CORE wxIcon;
|
||||||
class WXDLLIMPEXP_FWD_CORE wxColour;
|
class WXDLLIMPEXP_FWD_CORE wxColour;
|
||||||
|
|
||||||
|
|
||||||
@@ -78,5 +77,4 @@ public:
|
|||||||
};
|
};
|
||||||
#endif // !wxHAS_NATIVE_IMAGELIST
|
#endif // !wxHAS_NATIVE_IMAGELIST
|
||||||
|
|
||||||
#endif // __IMAGELISTH_G__
|
#endif // _WX_IMAGLISTG_H_
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
// Purpose: generic wxInfoBar class declaration
|
// Purpose: generic wxInfoBar class declaration
|
||||||
// Author: Vadim Zeitlin
|
// Author: Vadim Zeitlin
|
||||||
// Created: 2009-07-28
|
// Created: 2009-07-28
|
||||||
// RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
// Purpose: native implementation of wxInfoBar for GTK+ 2.18 and later
|
// Purpose: native implementation of wxInfoBar for GTK+ 2.18 and later
|
||||||
// Author: Vadim Zeitlin
|
// Author: Vadim Zeitlin
|
||||||
// Created: 2009-09-26
|
// Created: 2009-09-26
|
||||||
// RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __GTKSTATICBOXH__
|
#ifndef _WX_GTKSTATICBOX_H_
|
||||||
#define __GTKSTATICBOXH__
|
#define _WX_GTKSTATICBOX_H_
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// wxStaticBox
|
// wxStaticBox
|
||||||
@@ -40,7 +40,7 @@ public:
|
|||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
virtual bool IsTransparentForMouse() const { return TRUE; }
|
virtual bool IsTransparentForMouse() const { return true; }
|
||||||
|
|
||||||
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
|
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
|
||||||
|
|
||||||
@@ -52,8 +52,7 @@ protected:
|
|||||||
|
|
||||||
void DoApplyWidgetStyle(GtkRcStyle *style);
|
void DoApplyWidgetStyle(GtkRcStyle *style);
|
||||||
|
|
||||||
private:
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxStaticBox)
|
DECLARE_DYNAMIC_CLASS(wxStaticBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __GTKSTATICBOXH__
|
#endif // _WX_GTKSTATICBOX_H_
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
#ifndef _WX_MAC_CARBON_EVTLOOP_H_
|
#ifndef _WX_MAC_CARBON_EVTLOOP_H_
|
||||||
#define _WX_MAC_CARBON_EVTLOOP_H_
|
#define _WX_MAC_CARBON_EVTLOOP_H_
|
||||||
|
|
||||||
class OpaqueEventRef;
|
struct OpaqueEventRef;
|
||||||
typedef OpaqueEventRef *EventRef;
|
typedef OpaqueEventRef *EventRef;
|
||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxCFEventLoop
|
class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxCFEventLoop
|
||||||
|
@@ -9,12 +9,8 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef _TASKBAR_H_
|
#ifndef _WX_UNIX_TASKBAR_H_
|
||||||
#define _TASKBAR_H_
|
#define _WX_UNIX_TASKBAR_H_
|
||||||
|
|
||||||
class WXDLLIMPEXP_FWD_CORE wxIcon;
|
|
||||||
class WXDLLIMPEXP_FWD_CORE wxFrame;
|
|
||||||
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
|
||||||
|
|
||||||
class WXDLLIMPEXP_FWD_ADV wxTaskBarIconArea;
|
class WXDLLIMPEXP_FWD_ADV wxTaskBarIconArea;
|
||||||
|
|
||||||
@@ -42,5 +38,4 @@ private:
|
|||||||
DECLARE_DYNAMIC_CLASS(wxTaskBarIcon)
|
DECLARE_DYNAMIC_CLASS(wxTaskBarIcon)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _WX_UNIX_TASKBAR_H_
|
||||||
// _TASKBAR_H_
|
|
||||||
|
@@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#if wxUSE_TASKBARICON
|
#if wxUSE_TASKBARICON
|
||||||
|
|
||||||
|
#include "wx/taskbar.h"
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
#include "wx/list.h"
|
#include "wx/list.h"
|
||||||
@@ -29,8 +31,6 @@ extern WXDLLIMPEXP_DATA_CORE(wxList) wxPendingDelete;
|
|||||||
// DLL options compatibility check:
|
// DLL options compatibility check:
|
||||||
WX_CHECK_BUILD_OPTIONS("wxAdvanced")
|
WX_CHECK_BUILD_OPTIONS("wxAdvanced")
|
||||||
|
|
||||||
#include "wx/taskbar.h"
|
|
||||||
|
|
||||||
wxDEFINE_EVENT( wxEVT_TASKBAR_MOVE, wxTaskBarIconEvent );
|
wxDEFINE_EVENT( wxEVT_TASKBAR_MOVE, wxTaskBarIconEvent );
|
||||||
wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_DOWN, wxTaskBarIconEvent );
|
wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_DOWN, wxTaskBarIconEvent );
|
||||||
wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_UP, wxTaskBarIconEvent );
|
wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_UP, wxTaskBarIconEvent );
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
// Purpose: generic wxInfoBar implementation
|
// Purpose: generic wxInfoBar implementation
|
||||||
// Author: Vadim Zeitlin
|
// Author: Vadim Zeitlin
|
||||||
// Created: 2009-07-28
|
// Created: 2009-07-28
|
||||||
// RCS-ID: $Id: wxhead.cpp,v 1.10 2009-06-29 10:23:04 zeitlin Exp $
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#if wxUSE_INFOBAR
|
#if wxUSE_INFOBAR
|
||||||
|
|
||||||
|
#include "wx/infobar.h"
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/bmpbuttn.h"
|
#include "wx/bmpbuttn.h"
|
||||||
#include "wx/button.h"
|
#include "wx/button.h"
|
||||||
@@ -32,14 +34,12 @@
|
|||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
#include "wx/statbmp.h"
|
#include "wx/statbmp.h"
|
||||||
#include "wx/stattext.h"
|
#include "wx/stattext.h"
|
||||||
|
#include "wx/sizer.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/infobar.h"
|
|
||||||
|
|
||||||
#include "wx/artprov.h"
|
#include "wx/artprov.h"
|
||||||
#include "wx/renderer.h"
|
#include "wx/renderer.h"
|
||||||
#include "wx/scopeguard.h"
|
#include "wx/scopeguard.h"
|
||||||
#include "wx/sizer.h"
|
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxInfoBarGeneric, wxInfoBarBase)
|
BEGIN_EVENT_TABLE(wxInfoBarGeneric, wxInfoBarBase)
|
||||||
EVT_BUTTON(wxID_ANY, wxInfoBarGeneric::OnButton)
|
EVT_BUTTON(wxID_ANY, wxInfoBarGeneric::OnButton)
|
||||||
|
@@ -251,10 +251,8 @@ GtkWidget* wxComboBox::GetConnectWidget()
|
|||||||
return GTK_WIDGET( GetEntry() );
|
return GTK_WIDGET( GetEntry() );
|
||||||
}
|
}
|
||||||
|
|
||||||
GdkWindow *wxComboBox::GTKGetWindow(wxArrayGdkWindows& windows) const
|
GdkWindow* wxComboBox::GTKGetWindow(wxArrayGdkWindows& /* windows */) const
|
||||||
{
|
{
|
||||||
wxUnusedVar(windows);
|
|
||||||
|
|
||||||
return GetEntry()->text_area;
|
return GetEntry()->text_area;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -14,12 +14,11 @@
|
|||||||
|
|
||||||
#if wxUSE_SOCKETS
|
#if wxUSE_SOCKETS
|
||||||
|
|
||||||
#include <gdk/gdk.h>
|
|
||||||
#include <glib.h>
|
|
||||||
|
|
||||||
#include "wx/apptrait.h"
|
#include "wx/apptrait.h"
|
||||||
#include "wx/private/fdiomanager.h"
|
#include "wx/private/fdiomanager.h"
|
||||||
|
|
||||||
|
#include <gdk/gdk.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
static
|
static
|
||||||
void wxSocket_GDK_Input(gpointer data,
|
void wxSocket_GDK_Input(gpointer data,
|
||||||
|
@@ -114,7 +114,7 @@ void wxStaticBox::AddChild( wxWindowBase *child )
|
|||||||
{
|
{
|
||||||
// make this window a container of other wxWindows by instancing a wxPizza
|
// make this window a container of other wxWindows by instancing a wxPizza
|
||||||
// and packing it into the GtkFrame:
|
// and packing it into the GtkFrame:
|
||||||
m_wxwindow = wxPizza::New( 0 );
|
m_wxwindow = wxPizza::New();
|
||||||
gtk_widget_show( m_wxwindow );
|
gtk_widget_show( m_wxwindow );
|
||||||
gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow );
|
gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow );
|
||||||
}
|
}
|
||||||
|
@@ -186,8 +186,8 @@ wxUint32 wxMacGetSystemEncFromFontEnc(wxFontEncoding encoding)
|
|||||||
#if 0
|
#if 0
|
||||||
case wxFONTENCODING_UTF7 :
|
case wxFONTENCODING_UTF7 :
|
||||||
enc = CreateTextEncoding(kCFStringEncodingUnicodeDefault,0,kUnicodeUTF7Format) ;
|
enc = CreateTextEncoding(kCFStringEncodingUnicodeDefault,0,kUnicodeUTF7Format) ;
|
||||||
#endif
|
|
||||||
break ;
|
break ;
|
||||||
|
#endif
|
||||||
case wxFONTENCODING_UTF8 :
|
case wxFONTENCODING_UTF8 :
|
||||||
enc = kCFStringEncodingUTF8;
|
enc = kCFStringEncodingUTF8;
|
||||||
break ;
|
break ;
|
||||||
@@ -638,9 +638,8 @@ wxString wxCFStringRef::AsString( CFStringRef ref, wxFontEncoding WXUNUSED_IN_UN
|
|||||||
return wxEmptyString ;
|
return wxEmptyString ;
|
||||||
|
|
||||||
Size cflen = CFStringGetLength( ref ) ;
|
Size cflen = CFStringGetLength( ref ) ;
|
||||||
char* buf = NULL ;
|
|
||||||
|
|
||||||
CFStringEncoding cfencoding = 0;
|
CFStringEncoding cfencoding;
|
||||||
wxString result;
|
wxString result;
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
#if wxUSE_UNICODE_WCHAR
|
#if wxUSE_UNICODE_WCHAR
|
||||||
@@ -657,7 +656,7 @@ wxString wxCFStringRef::AsString( CFStringRef ref, wxFontEncoding WXUNUSED_IN_UN
|
|||||||
CFIndex cStrLen ;
|
CFIndex cStrLen ;
|
||||||
CFStringGetBytes( ref , CFRangeMake(0, cflen) , cfencoding ,
|
CFStringGetBytes( ref , CFRangeMake(0, cflen) , cfencoding ,
|
||||||
'?' , false , NULL , 0 , &cStrLen ) ;
|
'?' , false , NULL , 0 , &cStrLen ) ;
|
||||||
buf = new char[ cStrLen ] ;
|
char* buf = new char[cStrLen];
|
||||||
CFStringGetBytes( ref , CFRangeMake(0, cflen) , cfencoding,
|
CFStringGetBytes( ref , CFRangeMake(0, cflen) , cfencoding,
|
||||||
'?' , false , (unsigned char*) buf , cStrLen , &cStrLen) ;
|
'?' , false , (unsigned char*) buf , cStrLen , &cStrLen) ;
|
||||||
|
|
||||||
|
@@ -525,11 +525,11 @@ wxPrintNativeDataBase* wxOSXCreatePrintData()
|
|||||||
{
|
{
|
||||||
#if wxOSX_USE_COCOA
|
#if wxOSX_USE_COCOA
|
||||||
return new wxOSXCocoaPrintData();
|
return new wxOSXCocoaPrintData();
|
||||||
#endif
|
#elif wxOSX_USE_CARBON
|
||||||
#if wxOSX_USE_CARBON
|
|
||||||
return new wxOSXCarbonPrintData();
|
return new wxOSXCarbonPrintData();
|
||||||
#endif
|
#else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -659,7 +659,6 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
{
|
{
|
||||||
if (sm_abortIt)
|
if (sm_abortIt)
|
||||||
{
|
{
|
||||||
keepGoing = false;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -717,7 +716,7 @@ bool wxMacPrinter::Setup(wxWindow *WXUNUSED(parent))
|
|||||||
return (ret == wxID_OK);
|
return (ret == wxID_OK);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return wxID_CANCEL;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -287,6 +287,6 @@ static struct OSXManagerSetter
|
|||||||
} gs_OSXManagerSetter;
|
} gs_OSXManagerSetter;
|
||||||
|
|
||||||
// see the relative linker macro in socket.cpp
|
// see the relative linker macro in socket.cpp
|
||||||
wxFORCE_LINK_THIS_MODULE( osxsocket );
|
wxFORCE_LINK_THIS_MODULE(osxsocket)
|
||||||
|
|
||||||
#endif // wxUSE_SOCKETS
|
#endif // wxUSE_SOCKETS
|
||||||
|
@@ -225,7 +225,7 @@ void wxListBox::SetValueCallback( unsigned int WXUNUSED(n), wxListWidgetColumn*
|
|||||||
wxSize wxListBox::DoGetBestSize() const
|
wxSize wxListBox::DoGetBestSize() const
|
||||||
{
|
{
|
||||||
int lbWidth = 100; // some defaults
|
int lbWidth = 100; // some defaults
|
||||||
int lbHeight = 110;
|
int lbHeight;
|
||||||
int wLine;
|
int wLine;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@@ -720,7 +720,6 @@ void wxTextCtrl::OnContextMenu(wxContextMenuEvent& event)
|
|||||||
m_privateContextMenu->Append(wxID_SELECTALL, _("Select &All"));
|
m_privateContextMenu->Append(wxID_SELECTALL, _("Select &All"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_privateContextMenu != NULL)
|
|
||||||
PopupMenu(m_privateContextMenu);
|
PopupMenu(m_privateContextMenu);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -828,9 +827,8 @@ void wxTextWidgetImpl::ShowPosition( long WXUNUSED(pos) )
|
|||||||
|
|
||||||
int wxTextWidgetImpl::GetNumberOfLines() const
|
int wxTextWidgetImpl::GetNumberOfLines() const
|
||||||
{
|
{
|
||||||
ItemCount lines = 0 ;
|
|
||||||
wxString content = GetStringValue() ;
|
wxString content = GetStringValue() ;
|
||||||
lines = 1;
|
ItemCount lines = 1;
|
||||||
|
|
||||||
for (size_t i = 0; i < content.length() ; i++)
|
for (size_t i = 0; i < content.length() ; i++)
|
||||||
{
|
{
|
||||||
|
@@ -897,22 +897,20 @@ wxSize wxWindowMac::DoGetBestSize() const
|
|||||||
r.width =
|
r.width =
|
||||||
r.height = 16 ;
|
r.height = 16 ;
|
||||||
|
|
||||||
if ( 0 )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#if wxUSE_SCROLLBAR
|
#if wxUSE_SCROLLBAR
|
||||||
else if ( IsKindOf( CLASSINFO( wxScrollBar ) ) )
|
if ( IsKindOf( CLASSINFO( wxScrollBar ) ) )
|
||||||
{
|
{
|
||||||
r.height = 16 ;
|
r.height = 16 ;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
#endif
|
#endif
|
||||||
#if wxUSE_SPINBTN
|
#if wxUSE_SPINBTN
|
||||||
else if ( IsKindOf( CLASSINFO( wxSpinButton ) ) )
|
if ( IsKindOf( CLASSINFO( wxSpinButton ) ) )
|
||||||
{
|
{
|
||||||
r.height = 24 ;
|
r.height = 24 ;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// return wxWindowBase::DoGetBestSize() ;
|
// return wxWindowBase::DoGetBestSize() ;
|
||||||
}
|
}
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include "wx/arrimpl.cpp"
|
#include "wx/arrimpl.cpp"
|
||||||
|
|
||||||
WX_DEFINE_USER_EXPORTED_OBJARRAY(wxRibbonPageTabInfoArray);
|
WX_DEFINE_USER_EXPORTED_OBJARRAY(wxRibbonPageTabInfoArray)
|
||||||
|
|
||||||
wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONBAR_PAGE_CHANGED, wxRibbonBarEvent);
|
wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONBAR_PAGE_CHANGED, wxRibbonBarEvent);
|
||||||
wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONBAR_PAGE_CHANGING, wxRibbonBarEvent);
|
wxDEFINE_EVENT(wxEVT_COMMAND_RIBBONBAR_PAGE_CHANGING, wxRibbonBarEvent);
|
||||||
@@ -210,9 +210,9 @@ void wxRibbonBar::OnMouseMove(wxMouseEvent& evt)
|
|||||||
if(m_tab_scroll_buttons_shown)
|
if(m_tab_scroll_buttons_shown)
|
||||||
{
|
{
|
||||||
#define SET_FLAG(variable, flag) \
|
#define SET_FLAG(variable, flag) \
|
||||||
{ if(((variable) & (flag)) != (flag)) variable |= (flag), refresh_tabs = true; }
|
{ if(((variable) & (flag)) != (flag)) { variable |= (flag); refresh_tabs = true; }}
|
||||||
#define UNSET_FLAG(variable, flag) \
|
#define UNSET_FLAG(variable, flag) \
|
||||||
{ if((variable) & (flag)) variable &= ~(flag), refresh_tabs = true; }
|
{ if((variable) & (flag)) { variable &= ~(flag); refresh_tabs = true; }}
|
||||||
|
|
||||||
if(m_tab_scroll_left_button_rect.Contains(x, y))
|
if(m_tab_scroll_left_button_rect.Contains(x, y))
|
||||||
SET_FLAG(m_tab_scroll_left_button_state, wxRIBBON_SCROLL_BTN_HOVERED)
|
SET_FLAG(m_tab_scroll_left_button_state, wxRIBBON_SCROLL_BTN_HOVERED)
|
||||||
|
@@ -125,7 +125,7 @@ public:
|
|||||||
|
|
||||||
WX_DECLARE_OBJARRAY(wxRibbonButtonBarButtonInstance, wxArrayRibbonButtonBarButtonInstance);
|
WX_DECLARE_OBJARRAY(wxRibbonButtonBarButtonInstance, wxArrayRibbonButtonBarButtonInstance);
|
||||||
#include "wx/arrimpl.cpp"
|
#include "wx/arrimpl.cpp"
|
||||||
WX_DEFINE_OBJARRAY(wxArrayRibbonButtonBarButtonInstance);
|
WX_DEFINE_OBJARRAY(wxArrayRibbonButtonBarButtonInstance)
|
||||||
|
|
||||||
class wxRibbonButtonBarLayout
|
class wxRibbonButtonBarLayout
|
||||||
{
|
{
|
||||||
@@ -627,7 +627,7 @@ void wxRibbonButtonBar::CommonInit(long WXUNUSED(style))
|
|||||||
m_lock_active_state = false;
|
m_lock_active_state = false;
|
||||||
|
|
||||||
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
||||||
};
|
}
|
||||||
|
|
||||||
wxSize wxRibbonButtonBar::GetMinSize() const
|
wxSize wxRibbonButtonBar::GetMinSize() const
|
||||||
{
|
{
|
||||||
@@ -787,7 +787,7 @@ bool wxRibbonButtonBar::TryCollapseLayout(wxRibbonButtonBarLayout* original,
|
|||||||
layout->overall_size.GetHeight() > original->overall_size.GetHeight())
|
layout->overall_size.GetHeight() > original->overall_size.GetHeight())
|
||||||
{
|
{
|
||||||
delete layout;
|
delete layout;
|
||||||
wxASSERT_MSG(false, wxT("Layout collapse resulted in increased size"));
|
wxFAIL_MSG("Layout collapse resulted in increased size");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -79,7 +79,7 @@ public:
|
|||||||
wxDialUpManager methods.
|
wxDialUpManager methods.
|
||||||
*/
|
*/
|
||||||
virtual bool IsOk() const
|
virtual bool IsOk() const
|
||||||
{ return TRUE; }
|
{ return true; }
|
||||||
|
|
||||||
/** The simplest way to initiate a dial up: this function dials the given
|
/** The simplest way to initiate a dial up: this function dials the given
|
||||||
ISP (exact meaning of the parameter depends on the platform), returns
|
ISP (exact meaning of the parameter depends on the platform), returns
|
||||||
@@ -112,7 +112,7 @@ public:
|
|||||||
// so, in general, the user should be allowed to override it. This function
|
// so, in general, the user should be allowed to override it. This function
|
||||||
// allows to forcefully set the online status - whatever our internal
|
// allows to forcefully set the online status - whatever our internal
|
||||||
// algorithm may think about it.
|
// algorithm may think about it.
|
||||||
virtual void SetOnlineStatus(bool isOnline = TRUE)
|
virtual void SetOnlineStatus(bool isOnline = true)
|
||||||
{ m_IsOnline = isOnline; }
|
{ m_IsOnline = isOnline; }
|
||||||
|
|
||||||
// set misc wxDialUpManager options
|
// set misc wxDialUpManager options
|
||||||
@@ -180,11 +180,11 @@ public:
|
|||||||
AutoCheckTimer(wxDialUpManagerImpl *dupman)
|
AutoCheckTimer(wxDialUpManagerImpl *dupman)
|
||||||
{
|
{
|
||||||
m_dupman = dupman;
|
m_dupman = dupman;
|
||||||
m_started = FALSE;
|
m_started = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool Start( int millisecs = -1 )
|
virtual bool Start( int millisecs = -1 )
|
||||||
{ m_started = TRUE; return wxTimer::Start(millisecs, FALSE); }
|
{ m_started = true; return wxTimer::Start(millisecs, false); }
|
||||||
|
|
||||||
virtual void Notify()
|
virtual void Notify()
|
||||||
{ wxLogTrace("Checking dial up network status."); m_dupman->CheckStatus(); }
|
{ wxLogTrace("Checking dial up network status."); m_dupman->CheckStatus(); }
|
||||||
@@ -202,7 +202,7 @@ wxDialUpManagerImpl::Dial(const wxString &isp,
|
|||||||
const wxString & WXUNUSED(password))
|
const wxString & WXUNUSED(password))
|
||||||
{
|
{
|
||||||
if(m_IsOnline == 1)
|
if(m_IsOnline == 1)
|
||||||
return FALSE;
|
return false;
|
||||||
m_IsOnline = -1;
|
m_IsOnline = -1;
|
||||||
m_ISPname = isp;
|
m_ISPname = isp;
|
||||||
wxString cmd;
|
wxString cmd;
|
||||||
@@ -217,7 +217,7 @@ bool
|
|||||||
wxDialUpManagerImpl::HangUp(void)
|
wxDialUpManagerImpl::HangUp(void)
|
||||||
{
|
{
|
||||||
if(m_IsOnline == 0)
|
if(m_IsOnline == 0)
|
||||||
return FALSE;
|
return false;
|
||||||
m_IsOnline = -1;
|
m_IsOnline = -1;
|
||||||
wxString cmd;
|
wxString cmd;
|
||||||
if(m_HangUpCommand.Find("%s"))
|
if(m_HangUpCommand.Find("%s"))
|
||||||
|
Reference in New Issue
Block a user