fix a few hundreds of harmless unused parameters warnings and a couple of real bugs discovered thanks to them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -370,7 +370,7 @@ protected :
|
||||
template <typename procType, typename uppType , uppType (*newUPP)(procType) , void (*disposeUPP)(uppType) > class wxMacUPP
|
||||
{
|
||||
public :
|
||||
wxMacUPP( procType proc )
|
||||
wxMacUPP( procType WXUNUSED(proc) )
|
||||
{
|
||||
m_upp = NULL;
|
||||
m_upp = (*newUPP)( NULL );
|
||||
|
||||
@@ -39,10 +39,10 @@ public :
|
||||
|
||||
|
||||
virtual bool HasOwnContextMenu() const
|
||||
{ return false ; }
|
||||
{ return false ; }
|
||||
|
||||
virtual bool SetupCursor( const wxPoint& pt )
|
||||
{ return false ; }
|
||||
virtual bool SetupCursor( const wxPoint& WXUNUSED(pt) )
|
||||
{ return false ; }
|
||||
|
||||
virtual void Clear() ;
|
||||
virtual bool CanUndo() const;
|
||||
@@ -55,7 +55,7 @@ public :
|
||||
virtual void ShowPosition(long WXUNUSED(pos)) ;
|
||||
virtual int GetLineLength(long lineNo) const ;
|
||||
virtual wxString GetLineText(long lineNo) const ;
|
||||
virtual void CheckSpelling(bool check) { }
|
||||
virtual void CheckSpelling(bool WXUNUSED(check)) { }
|
||||
|
||||
#ifndef __WXMAC_OSX__
|
||||
virtual void MacControlUserPaneDrawProc(wxInt16 part) = 0 ;
|
||||
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
PangoContext* GetPangoContext();
|
||||
#endif
|
||||
|
||||
wxXVisualInfo* GetVisualInfo(WXDisplay* display)
|
||||
wxXVisualInfo* GetVisualInfo(WXDisplay* WXUNUSED(display))
|
||||
{
|
||||
// this should be implemented correctly for wxBitmap to work
|
||||
// with multiple display
|
||||
|
||||
@@ -1363,7 +1363,7 @@ GdkBitmap *wxBitmap::GetBitmap() const
|
||||
return M_BMPDATA->m_bitmap;
|
||||
}
|
||||
|
||||
void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp)
|
||||
void *wxBitmap::GetRawData(wxPixelDataBase& WXUNUSED(data), int WXUNUSED(bpp))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,8 @@ extern wxWindowGTK *g_delayedFocus;
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern "C" {
|
||||
static void gtk_checkbox_toggled_callback(GtkWidget *widget, wxCheckBox *cb)
|
||||
static void gtk_checkbox_toggled_callback(GtkWidget *WXUNUSED(widget),
|
||||
wxCheckBox *cb)
|
||||
{
|
||||
if (g_isIdle) wxapp_install_idle_handler();
|
||||
|
||||
|
||||
@@ -677,7 +677,7 @@ source_drag_data_get (GtkWidget *WXUNUSED(widget),
|
||||
|
||||
extern "C" {
|
||||
static void source_drag_data_delete( GtkWidget *WXUNUSED(widget),
|
||||
GdkDragContext *context,
|
||||
GdkDragContext *WXUNUSED(context),
|
||||
wxDropSource *WXUNUSED(drop_source) )
|
||||
{
|
||||
if (g_isIdle)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
extern "C" {
|
||||
static
|
||||
void _GSocket_GDK_Input(gpointer data,
|
||||
gint source,
|
||||
gint WXUNUSED(source),
|
||||
GdkInputCondition condition)
|
||||
{
|
||||
GSocket *socket = (GSocket *)data;
|
||||
|
||||
@@ -93,9 +93,9 @@ static gint wxlistbox_idle_callback( gpointer gdata )
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern "C" {
|
||||
static gint gtk_listitem_focus_in_callback( GtkWidget *widget,
|
||||
GdkEvent *WXUNUSED(event),
|
||||
wxWindow *win )
|
||||
static gint gtk_listitem_focus_in_callback( GtkWidget *WXUNUSED(widget),
|
||||
GdkEvent *WXUNUSED(event),
|
||||
wxWindow *win )
|
||||
{
|
||||
if (g_isIdle)
|
||||
wxapp_install_idle_handler();
|
||||
@@ -127,7 +127,9 @@ static gint gtk_listitem_focus_in_callback( GtkWidget *widget,
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern "C" {
|
||||
static gint gtk_listitem_focus_out_callback( GtkWidget *widget, GdkEventFocus *gdk_event, wxWindowGTK *win )
|
||||
static gint gtk_listitem_focus_out_callback( GtkWidget *WXUNUSED(widget),
|
||||
GdkEventFocus *WXUNUSED(gdk_event),
|
||||
wxWindowGTK *win )
|
||||
{
|
||||
if (g_isIdle)
|
||||
wxapp_install_idle_handler();
|
||||
@@ -433,7 +435,7 @@ static void gtk_listitem_deselect_callback( GtkWidget *widget, wxListBox *listbo
|
||||
|
||||
extern "C" {
|
||||
static gint
|
||||
gtk_listbox_realized_callback( GtkWidget *m_widget, wxListBox *win )
|
||||
gtk_listbox_realized_callback( GtkWidget *WXUNUSED(widget), wxListBox *win )
|
||||
{
|
||||
if (g_isIdle)
|
||||
wxapp_install_idle_handler();
|
||||
@@ -565,8 +567,7 @@ wxListBox::~wxListBox()
|
||||
|
||||
Clear();
|
||||
|
||||
if (m_strings)
|
||||
delete m_strings;
|
||||
delete m_strings;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -1007,23 +1008,8 @@ GtkWidget *wxListBox::GetConnectWidget()
|
||||
|
||||
bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
|
||||
{
|
||||
return true;
|
||||
|
||||
#if 0
|
||||
if (m_widget->window == window) return true;
|
||||
|
||||
if (GTK_WIDGET(m_list)->window == window) return true;
|
||||
|
||||
GList *child = m_list->children;
|
||||
while (child)
|
||||
{
|
||||
GtkWidget *bin = GTK_WIDGET( child->data );
|
||||
if (bin->window == window) return true;
|
||||
child = child->next;
|
||||
}
|
||||
|
||||
return false;
|
||||
#endif
|
||||
return m_widget->window == window ||
|
||||
GTK_WIDGET(m_list)->window == window;
|
||||
}
|
||||
|
||||
void wxListBox::DoApplyWidgetStyle(GtkRcStyle *style)
|
||||
|
||||
@@ -148,14 +148,14 @@ static void DoCommonMenuCallbackCode(wxMenu *menu, wxMenuEvent& event)
|
||||
|
||||
extern "C" {
|
||||
|
||||
static void gtk_menu_open_callback( GtkWidget *widget, wxMenu *menu )
|
||||
static void gtk_menu_open_callback( GtkWidget *WXUNUSED(widget), wxMenu *menu )
|
||||
{
|
||||
wxMenuEvent event(wxEVT_MENU_OPEN, -1, menu);
|
||||
|
||||
DoCommonMenuCallbackCode(menu, event);
|
||||
}
|
||||
|
||||
static void gtk_menu_close_callback( GtkWidget *widget, wxMenuBar *menubar )
|
||||
static void gtk_menu_close_callback( GtkWidget *WXUNUSED(widget), wxMenuBar *menubar )
|
||||
{
|
||||
if ( !menubar->GetMenuCount() )
|
||||
{
|
||||
|
||||
@@ -115,7 +115,7 @@ static gint gtk_radiobox_keypress_callback( GtkWidget *widget, GdkEventKey *gdk_
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static gint gtk_radiobutton_focus_in( GtkWidget *widget,
|
||||
static gint gtk_radiobutton_focus_in( GtkWidget *WXUNUSED(widget),
|
||||
GdkEvent *WXUNUSED(event),
|
||||
wxRadioBox *win )
|
||||
{
|
||||
@@ -141,7 +141,7 @@ static gint gtk_radiobutton_focus_in( GtkWidget *widget,
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static gint gtk_radiobutton_focus_out( GtkWidget *widget,
|
||||
static gint gtk_radiobutton_focus_out( GtkWidget *WXUNUSED(widget),
|
||||
GdkEvent *WXUNUSED(event),
|
||||
wxRadioBox *win )
|
||||
{
|
||||
|
||||
@@ -183,7 +183,7 @@ wxRendererGTK::DrawSplitterBorder(wxWindow * WXUNUSED(win),
|
||||
|
||||
void
|
||||
wxRendererGTK::DrawSplitterSash(wxWindow *win,
|
||||
wxDC& dc,
|
||||
wxDC& WXUNUSED(dc),
|
||||
const wxSize& size,
|
||||
wxCoord position,
|
||||
wxOrientation orient,
|
||||
@@ -297,7 +297,7 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
|
||||
}
|
||||
|
||||
void
|
||||
wxRendererGTK::DrawDropArrow(wxWindow *win,
|
||||
wxRendererGTK::DrawDropArrow(wxWindow *WXUNUSED(win),
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags)
|
||||
|
||||
@@ -357,7 +357,8 @@ wxFont wxSystemSettingsNative::GetFont( wxSystemFont index )
|
||||
}
|
||||
}
|
||||
|
||||
int wxSystemSettingsNative::GetMetric( wxSystemMetric index, wxWindow* win )
|
||||
int
|
||||
wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(win))
|
||||
{
|
||||
switch (index)
|
||||
{
|
||||
|
||||
@@ -482,7 +482,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxToolBar::DoDeleteTool(size_t pos, wxToolBarToolBase *toolBase)
|
||||
bool wxToolBar::DoDeleteTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase)
|
||||
{
|
||||
wxToolBarTool *tool = (wxToolBarTool *)toolBase;
|
||||
|
||||
|
||||
@@ -89,9 +89,9 @@ static void wxGtkTextInsert(GtkWidget *text,
|
||||
extern "C" {
|
||||
static void
|
||||
gtk_insert_text_callback(GtkEditable *editable,
|
||||
const gchar *new_text,
|
||||
gint new_text_length,
|
||||
gint *position,
|
||||
const gchar *WXUNUSED(new_text),
|
||||
gint WXUNUSED(new_text_length),
|
||||
gint *WXUNUSED(position),
|
||||
wxTextCtrl *win)
|
||||
{
|
||||
if (g_isIdle)
|
||||
@@ -130,7 +130,7 @@ gtk_insert_text_callback(GtkEditable *editable,
|
||||
|
||||
extern "C" {
|
||||
static void
|
||||
gtk_text_changed_callback( GtkWidget *widget, wxTextCtrl *win )
|
||||
gtk_text_changed_callback( GtkWidget *WXUNUSED(widget), wxTextCtrl *win )
|
||||
{
|
||||
if ( win->IgnoreTextUpdate() )
|
||||
return;
|
||||
@@ -718,7 +718,7 @@ void wxTextCtrl::DoEnable( bool enable )
|
||||
// wxGTK-specific: called recursively by Enable,
|
||||
// to give widgets an oppprtunity to correct their colours after they
|
||||
// have been changed by Enable
|
||||
void wxTextCtrl::OnEnabled( bool enable )
|
||||
void wxTextCtrl::OnEnabled( bool WXUNUSED(enable) )
|
||||
{
|
||||
if ( IsSingleLine() )
|
||||
return;
|
||||
|
||||
@@ -170,9 +170,9 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern "C" {
|
||||
static gint gtk_frame_focus_out_callback( GtkWidget *widget,
|
||||
static gint gtk_frame_focus_out_callback( GtkWidget *WXUNUSED(widget),
|
||||
GdkEventFocus *WXUNUSED(gdk_event),
|
||||
wxTopLevelWindowGTK *win )
|
||||
wxTopLevelWindowGTK *WXUNUSED(win) )
|
||||
{
|
||||
if (g_isIdle)
|
||||
wxapp_install_idle_handler();
|
||||
@@ -1117,7 +1117,7 @@ void wxTopLevelWindowGTK::SetIcons( const wxIconBundle &icons )
|
||||
// frame state: maximized/iconized/normal
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxTopLevelWindowGTK::Maximize(bool maximize)
|
||||
void wxTopLevelWindowGTK::Maximize(bool WXUNUSED(maximize))
|
||||
{
|
||||
wxFAIL_MSG( _T("not implemented") );
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@ static void gtk_window_own_draw_callback( GtkWidget *widget, GdkRectangle *WXUNU
|
||||
|
||||
// make it extern because wxStaticText needs to disconnect this one
|
||||
extern "C" {
|
||||
void wxgtk_window_size_request_callback(GtkWidget *widget,
|
||||
void wxgtk_window_size_request_callback(GtkWidget *WXUNUSED(widget),
|
||||
GtkRequisition *requisition,
|
||||
wxWindow *win)
|
||||
{
|
||||
@@ -446,7 +446,7 @@ void wxgtk_window_size_request_callback(GtkWidget *widget,
|
||||
|
||||
extern "C" {
|
||||
static
|
||||
void wxgtk_combo_size_request_callback(GtkWidget *widget,
|
||||
void wxgtk_combo_size_request_callback(GtkWidget *WXUNUSED(widget),
|
||||
GtkRequisition *requisition,
|
||||
wxComboBox *win)
|
||||
{
|
||||
@@ -478,7 +478,7 @@ void wxgtk_combo_size_request_callback(GtkWidget *widget,
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern "C" {
|
||||
static int gtk_window_expose_callback( GtkWidget *widget,
|
||||
static int gtk_window_expose_callback( GtkWidget *WXUNUSED(widget),
|
||||
GdkEventExpose *gdk_event,
|
||||
wxWindow *win )
|
||||
{
|
||||
@@ -1862,7 +1862,9 @@ static gint gtk_window_focus_in_callback( GtkWidget *widget,
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern "C" {
|
||||
static gint gtk_window_focus_out_callback( GtkWidget *widget, GdkEventFocus *gdk_event, wxWindowGTK *win )
|
||||
static gint gtk_window_focus_out_callback( GtkWidget *WXUNUSED(widget),
|
||||
GdkEventFocus *WXUNUSED(gdk_event),
|
||||
wxWindowGTK *win )
|
||||
{
|
||||
DEBUG_MAIN_THREAD
|
||||
|
||||
@@ -2168,7 +2170,7 @@ wxWindow *wxWindowBase::DoFindFocus()
|
||||
|
||||
extern "C" {
|
||||
static gint
|
||||
gtk_window_realized_callback( GtkWidget *m_widget, wxWindow *win )
|
||||
gtk_window_realized_callback( GtkWidget *WXUNUSED(widget), wxWindow *win )
|
||||
{
|
||||
DEBUG_MAIN_THREAD
|
||||
|
||||
@@ -2228,7 +2230,7 @@ void gtk_window_size_callback( GtkWidget *WXUNUSED(widget),
|
||||
extern "C" {
|
||||
static
|
||||
void gtk_wxwindow_size_callback( GtkWidget* WXUNUSED_UNLESS_XIM(widget),
|
||||
GtkAllocation* WXUNUSED_UNLESS_XIM(alloc),
|
||||
GtkAllocation* WXUNUSED(alloc),
|
||||
wxWindowGTK* WXUNUSED_UNLESS_XIM(win) )
|
||||
{
|
||||
if (g_isIdle)
|
||||
|
||||
@@ -295,7 +295,7 @@ void wxApp::MacOpenFile(const wxString & fileName )
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxApp::MacOpenURL(const wxString & url )
|
||||
void wxApp::MacOpenURL(const wxString & WXUNUSED(url) )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -543,7 +543,9 @@ static const EventTypeSpec eventList[] =
|
||||
} ;
|
||||
|
||||
static pascal OSStatus
|
||||
wxMacAppMenuEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
|
||||
wxMacAppMenuEventHandler( EventHandlerCallRef WXUNUSED(handler),
|
||||
EventRef event,
|
||||
void *WXUNUSED(data) )
|
||||
{
|
||||
wxMacCarbonEvent cEvent( event ) ;
|
||||
MenuRef menuRef = cEvent.GetParameter<MenuRef>(kEventParamDirectObject) ;
|
||||
@@ -596,7 +598,10 @@ wxMacAppMenuEventHandler( EventHandlerCallRef handler , EventRef event , void *d
|
||||
return eventNotHandledErr;
|
||||
}
|
||||
|
||||
static pascal OSStatus wxMacAppCommandEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
|
||||
static pascal OSStatus
|
||||
wxMacAppCommandEventHandler( EventHandlerCallRef WXUNUSED(handler) ,
|
||||
EventRef event ,
|
||||
void *WXUNUSED(data) )
|
||||
{
|
||||
OSStatus result = eventNotHandledErr ;
|
||||
|
||||
@@ -679,7 +684,10 @@ static pascal OSStatus wxMacAppCommandEventHandler( EventHandlerCallRef handler
|
||||
return result ;
|
||||
}
|
||||
|
||||
static pascal OSStatus wxMacAppApplicationEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
|
||||
static pascal OSStatus
|
||||
wxMacAppApplicationEventHandler( EventHandlerCallRef WXUNUSED(handler) ,
|
||||
EventRef event ,
|
||||
void *WXUNUSED(data) )
|
||||
{
|
||||
OSStatus result = eventNotHandledErr ;
|
||||
switch ( GetEventKind( event ) )
|
||||
@@ -760,9 +768,16 @@ DEFINE_ONE_SHOT_HANDLER_GETTER( wxMacAppEventHandler )
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
|
||||
pascal static void wxMacAssertOutputHandler(OSType componentSignature, UInt32 options,
|
||||
const char *assertionString, const char *exceptionLabelString,
|
||||
const char *errorString, const char *fileName, long lineNumber, void *value, ConstStr255Param outputMsg)
|
||||
pascal static void
|
||||
wxMacAssertOutputHandler(OSType WXUNUSED(componentSignature),
|
||||
UInt32 WXUNUSED(options),
|
||||
const char *assertionString,
|
||||
const char *exceptionLabelString,
|
||||
const char *errorString,
|
||||
const char *fileName,
|
||||
long lineNumber,
|
||||
void *value,
|
||||
ConstStr255Param WXUNUSED(outputMsg))
|
||||
{
|
||||
// flow into assert handling
|
||||
wxString fileNameStr ;
|
||||
@@ -800,13 +815,7 @@ pascal static void wxMacAssertOutputHandler(OSType componentSignature, UInt32 op
|
||||
#endif //__WXDEBUG__
|
||||
|
||||
#ifdef __WXMAC_OSX__
|
||||
extern "C"
|
||||
{
|
||||
// m_macEventPosted run loop source callback:
|
||||
void macPostedEventCallback(void *unused);
|
||||
}
|
||||
|
||||
void macPostedEventCallback(void *unused)
|
||||
extern "C" void macPostedEventCallback(void *WXUNUSED(unused))
|
||||
{
|
||||
wxTheApp->ProcessPendingEvents();
|
||||
}
|
||||
@@ -1134,7 +1143,7 @@ wxApp::wxApp()
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxApp::OnIdle(wxIdleEvent& event)
|
||||
void wxApp::OnIdle(wxIdleEvent& WXUNUSED(event))
|
||||
{
|
||||
wxMacProcessNotifierEvents();
|
||||
|
||||
@@ -1272,7 +1281,7 @@ void wxApp::MacDoOneEvent()
|
||||
}
|
||||
|
||||
// virtual
|
||||
void wxApp::MacHandleUnhandledEvent( WXEVENTREF evr )
|
||||
void wxApp::MacHandleUnhandledEvent( WXEVENTREF WXUNUSED(evr) )
|
||||
{
|
||||
// Override to process unhandled events as you please
|
||||
}
|
||||
|
||||
@@ -529,7 +529,7 @@ PicHandle wxBitmapRefData::GetPictHandle()
|
||||
}
|
||||
|
||||
#ifdef __WXMAC_OSX__
|
||||
void wxMacMemoryBufferReleaseProc(void *info, const void *data, size_t size)
|
||||
void wxMacMemoryBufferReleaseProc(void *info, const void *data, size_t WXUNUSED(size))
|
||||
{
|
||||
wxMemoryBuffer* membuf = (wxMemoryBuffer*) info ;
|
||||
|
||||
@@ -1597,8 +1597,11 @@ public:
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxPICTResourceHandler, wxBitmapHandler)
|
||||
|
||||
|
||||
bool wxPICTResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
|
||||
int desiredWidth, int desiredHeight)
|
||||
bool wxPICTResourceHandler::LoadFile(wxBitmap *bitmap,
|
||||
const wxString& name,
|
||||
long WXUNUSED(flags),
|
||||
int WXUNUSED(desiredWidth),
|
||||
int WXUNUSED(desiredHeight))
|
||||
{
|
||||
#if wxUSE_METAFILE
|
||||
Str255 theName ;
|
||||
@@ -1633,7 +1636,7 @@ void wxBitmap::InitStandardHandlers()
|
||||
// raw bitmap access support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp)
|
||||
void *wxBitmap::GetRawData(wxPixelDataBase& data, int WXUNUSED(bpp))
|
||||
{
|
||||
if ( !Ok() )
|
||||
// no bitmap, no data (raw or otherwise)
|
||||
@@ -1646,7 +1649,7 @@ void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp)
|
||||
return BeginRawAccess() ;
|
||||
}
|
||||
|
||||
void wxBitmap::UngetRawData(wxPixelDataBase& dataBase)
|
||||
void wxBitmap::UngetRawData(wxPixelDataBase& WXUNUSED(dataBase))
|
||||
{
|
||||
EndRawAccess() ;
|
||||
}
|
||||
|
||||
@@ -132,9 +132,9 @@ wxInt32 wxCheckBox::MacControlHit( WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENT
|
||||
// Bitmap checkbox
|
||||
bool wxBitmapCheckBox::Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxBitmap *label,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
const wxBitmap *WXUNUSED(label),
|
||||
const wxPoint& WXUNUSED(pos),
|
||||
const wxSize& WXUNUSED(size),
|
||||
long style,
|
||||
const wxValidator& wxVALIDATOR_PARAM(validator),
|
||||
const wxString& name)
|
||||
@@ -158,7 +158,7 @@ bool wxBitmapCheckBox::Create(wxWindow *parent,
|
||||
return false;
|
||||
}
|
||||
|
||||
void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap)
|
||||
void wxBitmapCheckBox::SetLabel(const wxBitmap *WXUNUSED(bitmap))
|
||||
{
|
||||
// TODO
|
||||
wxFAIL_MSG(wxT("wxBitmapCheckBox::SetLabel() not yet implemented"));
|
||||
@@ -169,7 +169,7 @@ void wxBitmapCheckBox::SetSize(int x, int y, int width, int height, int sizeFlag
|
||||
wxControl::SetSize( x , y , width , height , sizeFlags ) ;
|
||||
}
|
||||
|
||||
void wxBitmapCheckBox::SetValue(bool val)
|
||||
void wxBitmapCheckBox::SetValue(bool WXUNUSED(val))
|
||||
{
|
||||
// TODO
|
||||
wxFAIL_MSG(wxT("wxBitmapCheckBox::SetValue() not yet implemented"));
|
||||
|
||||
@@ -69,6 +69,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
|
||||
|
||||
- (BOOL)windowShouldClose:(id)sender
|
||||
{
|
||||
wxUnusedVar(sender);
|
||||
|
||||
m_bIsClosed = true;
|
||||
|
||||
[NSApp abortModal];
|
||||
|
||||
@@ -345,8 +345,13 @@ bool wxComboBox::Create(wxWindow *parent,
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
return Create( parent, id, value, pos, size, 0, NULL,
|
||||
style, validator, name );
|
||||
if ( !Create( parent, id, value, pos, size, 0, NULL,
|
||||
style, validator, name ) )
|
||||
return false;
|
||||
|
||||
Append(choices);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxComboBox::Create(wxWindow *parent,
|
||||
|
||||
@@ -81,7 +81,7 @@ bool wxControl::ProcessCommand( wxCommandEvent &event )
|
||||
return GetEventHandler()->ProcessEvent( event );
|
||||
}
|
||||
|
||||
void wxControl::OnKeyDown( wxKeyEvent &event )
|
||||
void wxControl::OnKeyDown( wxKeyEvent &WXUNUSED(event) )
|
||||
{
|
||||
if ( m_peer == NULL || !m_peer->Ok() )
|
||||
return;
|
||||
|
||||
@@ -189,7 +189,8 @@ bool wxDataObject::IsSupportedFormat( const wxDataFormat& rFormat, Direction vDi
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
void wxTextDataObject::GetAllFormats( wxDataFormat *formats, wxDataObjectBase::Direction dir ) const
|
||||
void wxTextDataObject::GetAllFormats(wxDataFormat *formats,
|
||||
wxDataObjectBase::Direction WXUNUSED(dir)) const
|
||||
{
|
||||
*formats++ = wxDataFormat( wxDF_TEXT );
|
||||
*formats = wxDataFormat( wxDF_UNICODETEXT );
|
||||
@@ -239,7 +240,7 @@ size_t wxFileDataObject::GetDataSize() const
|
||||
return buffLength + 1;
|
||||
}
|
||||
|
||||
bool wxFileDataObject::SetData( size_t nSize, const void *pBuf )
|
||||
bool wxFileDataObject::SetData( size_t WXUNUSED(nSize), const void *pBuf )
|
||||
{
|
||||
wxString filenames;
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ static pascal void NavEventProc(
|
||||
wxDirDialog::wxDirDialog(wxWindow *parent,
|
||||
const wxString& message,
|
||||
const wxString& defaultPath,
|
||||
long style,
|
||||
long WXUNUSED(style),
|
||||
const wxPoint& WXUNUSED(pos),
|
||||
const wxSize& WXUNUSED(size),
|
||||
const wxString& WXUNUSED(name))
|
||||
|
||||
@@ -58,7 +58,10 @@ static const EventTypeSpec eventList[] =
|
||||
} ;
|
||||
|
||||
|
||||
pascal OSStatus wxMacCarbonFontPanelHandler(EventHandlerCallRef nextHandler, EventRef event, void *userData)
|
||||
pascal OSStatus
|
||||
wxMacCarbonFontPanelHandler(EventHandlerCallRef WXUNUSED(nextHandler),
|
||||
EventRef event,
|
||||
void *userData)
|
||||
{
|
||||
OSStatus result = eventNotHandledErr ;
|
||||
wxFontDialog *fontdialog = (wxFontDialog*) userData ;
|
||||
@@ -183,7 +186,7 @@ wxFontDialog::~wxFontDialog()
|
||||
{
|
||||
}
|
||||
|
||||
bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
|
||||
bool wxFontDialog::Create(wxWindow *WXUNUSED(parent), const wxFontData& data)
|
||||
{
|
||||
m_fontData = data;
|
||||
return true ;
|
||||
|
||||
@@ -105,12 +105,14 @@
|
||||
|
||||
- (IBAction)cancelPressed:(id)sender
|
||||
{
|
||||
wxUnusedVar(sender);
|
||||
m_shouldClose = YES ;
|
||||
[NSApp stopModal];
|
||||
}
|
||||
|
||||
- (IBAction)okPressed:(id)sender
|
||||
{
|
||||
wxUnusedVar(sender);
|
||||
m_okPressed = YES ;
|
||||
m_shouldClose = YES ;
|
||||
[NSApp stopModal];
|
||||
@@ -135,7 +137,7 @@
|
||||
|
||||
extern "C" int RunMixedFontDialog(wxFontDialog* dialog) ;
|
||||
|
||||
int RunMixedFontDialog(wxFontDialog* dialog)
|
||||
int RunMixedFontDialog(wxFontDialog* WXUNUSED(dialog))
|
||||
{
|
||||
int retval = wxID_CANCEL ;
|
||||
|
||||
|
||||
@@ -34,6 +34,12 @@
|
||||
bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
||||
bool fixedWidthOnly)
|
||||
{
|
||||
if ( fixedWidthOnly )
|
||||
{
|
||||
wxFAIL_MSG( "enumerating only fixed width fonts not supported" );
|
||||
return false;
|
||||
}
|
||||
|
||||
//
|
||||
// From Apple's QA 1471 http://developer.apple.com/qa/qa2006/qa1471.html
|
||||
//
|
||||
@@ -104,7 +110,7 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxFontEnumerator::EnumerateEncodings(const wxString& family)
|
||||
bool wxFontEnumerator::EnumerateEncodings(const wxString& WXUNUSED(family))
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxFontEnumerator::EnumerateEncodings() not yet implemented"));
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ bool wxGetNativeFontEncoding( wxFontEncoding encoding, wxNativeEncodingInfo *inf
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxTestFontEncoding( const wxNativeEncodingInfo& info )
|
||||
bool wxTestFontEncoding( const wxNativeEncodingInfo& WXUNUSED(info) )
|
||||
{
|
||||
// basically we should be able to support every encoding via the OS
|
||||
return true;
|
||||
|
||||
@@ -985,7 +985,7 @@ public :
|
||||
virtual void * GetNativePath() const { return m_path; }
|
||||
|
||||
// give the native path returned by GetNativePath() back (there might be some deallocations necessary)
|
||||
virtual void UnGetNativePath(void *p) const {}
|
||||
virtual void UnGetNativePath(void *WXUNUSED(p)) const {}
|
||||
|
||||
// transforms each point of this path by the matrix
|
||||
virtual void Transform( const wxGraphicsMatrixData* matrix );
|
||||
|
||||
@@ -95,15 +95,15 @@ int wxIcon::GetDepth() const
|
||||
return 32;
|
||||
}
|
||||
|
||||
void wxIcon::SetDepth( int depth )
|
||||
void wxIcon::SetDepth( int WXUNUSED(depth) )
|
||||
{
|
||||
}
|
||||
|
||||
void wxIcon::SetWidth( int width )
|
||||
void wxIcon::SetWidth( int WXUNUSED(width) )
|
||||
{
|
||||
}
|
||||
|
||||
void wxIcon::SetHeight( int height )
|
||||
void wxIcon::SetHeight( int WXUNUSED(height) )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ void wxIconRefData::Free()
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxICONResourceHandler, wxBitmapHandler)
|
||||
|
||||
bool wxICONResourceHandler::LoadFile(
|
||||
wxBitmap *bitmap, const wxString& name, long flags,
|
||||
wxBitmap *bitmap, const wxString& name, long WXUNUSED(flags),
|
||||
int desiredWidth, int desiredHeight )
|
||||
{
|
||||
wxIcon icon ;
|
||||
|
||||
@@ -435,7 +435,7 @@ wxMacListBoxItem::~wxMacListBoxItem()
|
||||
|
||||
void wxMacListBoxItem::Notification(wxMacDataItemBrowserControl *owner ,
|
||||
DataBrowserItemNotification message,
|
||||
DataBrowserItemDataRef itemData ) const
|
||||
DataBrowserItemDataRef WXUNUSED(itemData) ) const
|
||||
{
|
||||
wxMacDataBrowserListControl *lb = wxDynamicCast(owner,wxMacDataBrowserListControl);
|
||||
|
||||
|
||||
@@ -259,11 +259,11 @@ protected:
|
||||
Rect *maxEditTextRect,
|
||||
Boolean *shrinkToFit);
|
||||
|
||||
static pascal Boolean DataBrowserHitTestProc(ControlRef browser,
|
||||
DataBrowserItemID itemID,
|
||||
DataBrowserPropertyID property,
|
||||
const Rect *theRect,
|
||||
const Rect *mouseRect) { return true; }
|
||||
static pascal Boolean DataBrowserHitTestProc(ControlRef WXUNUSED(browser),
|
||||
DataBrowserItemID WXUNUSED(itemID),
|
||||
DataBrowserPropertyID WXUNUSED(property),
|
||||
const Rect *WXUNUSED(theRect),
|
||||
const Rect *WXUNUSED(mouseRect)) { return true; }
|
||||
|
||||
virtual bool ConfirmEditText(DataBrowserItemID item,
|
||||
DataBrowserPropertyID property,
|
||||
@@ -1848,7 +1848,7 @@ wxTextCtrl* wxListCtrl::EditLabel(long item, wxClassInfo* textControlClass)
|
||||
}
|
||||
|
||||
// End label editing, optionally cancelling the edit
|
||||
bool wxListCtrl::EndEditLabel(bool cancel)
|
||||
bool wxListCtrl::EndEditLabel(bool WXUNUSED(cancel))
|
||||
{
|
||||
// TODO: generic impl. doesn't have this method - is it needed for us?
|
||||
if (m_genericImpl)
|
||||
@@ -2364,7 +2364,7 @@ wxMacListCtrlItem::~wxMacListCtrlItem()
|
||||
|
||||
void wxMacListCtrlItem::Notification(wxMacDataItemBrowserControl *owner ,
|
||||
DataBrowserItemNotification message,
|
||||
DataBrowserItemDataRef itemData ) const
|
||||
DataBrowserItemDataRef WXUNUSED(itemData) ) const
|
||||
{
|
||||
|
||||
wxMacDataBrowserListCtrlControl *lb = wxDynamicCast(owner, wxMacDataBrowserListCtrlControl);
|
||||
@@ -2538,11 +2538,11 @@ pascal Boolean wxMacDataBrowserListCtrlControl::DataBrowserEditTextProc(
|
||||
}
|
||||
|
||||
bool wxMacDataBrowserListCtrlControl::ConfirmEditText(
|
||||
DataBrowserItemID itemID,
|
||||
DataBrowserPropertyID property,
|
||||
CFStringRef theString,
|
||||
Rect *maxEditTextRect,
|
||||
Boolean *shrinkToFit)
|
||||
DataBrowserItemID WXUNUSED(itemID),
|
||||
DataBrowserPropertyID WXUNUSED(property),
|
||||
CFStringRef WXUNUSED(theString),
|
||||
Rect *WXUNUSED(maxEditTextRect),
|
||||
Boolean *WXUNUSED(shrinkToFit))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -2601,7 +2601,7 @@ void wxMacDataBrowserListCtrlControl::DrawItem(
|
||||
DataBrowserItemID itemID,
|
||||
DataBrowserPropertyID property,
|
||||
DataBrowserItemState itemState,
|
||||
const Rect *itemRect,
|
||||
const Rect *WXUNUSED(itemRect),
|
||||
SInt16 gdDepth,
|
||||
Boolean colorDevice)
|
||||
{
|
||||
@@ -2923,7 +2923,7 @@ OSStatus wxMacDataBrowserListCtrlControl::GetSetItemData(DataBrowserItemID itemI
|
||||
|
||||
void wxMacDataBrowserListCtrlControl::ItemNotification(DataBrowserItemID itemID,
|
||||
DataBrowserItemNotification message,
|
||||
DataBrowserItemDataRef itemData )
|
||||
DataBrowserItemDataRef WXUNUSED(itemData) )
|
||||
{
|
||||
// we want to depend on as little as possible to make sure tear-down of controls is safe
|
||||
if ( message == kDataBrowserItemRemoved)
|
||||
|
||||
@@ -480,7 +480,7 @@ void wxMDIClientWindow::DoGetClientSize(int *x, int *y) const
|
||||
}
|
||||
|
||||
// Explicitly call default scroll behaviour
|
||||
void wxMDIClientWindow::OnScroll(wxScrollEvent& event)
|
||||
void wxMDIClientWindow::OnScroll(wxScrollEvent& WXUNUSED(event))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ WXHMETAFILE wxMetaFile::GetHMETAFILE() const
|
||||
return (WXHMETAFILE) M_METAFILEDATA->m_metafile;
|
||||
}
|
||||
|
||||
bool wxMetaFile::SetClipboard(int width, int height)
|
||||
bool wxMetaFile::SetClipboard(int WXUNUSED(width), int WXUNUSED(height))
|
||||
{
|
||||
bool success = true;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
||||
const wxString& message,
|
||||
const wxString& caption,
|
||||
long style,
|
||||
const wxPoint& pos)
|
||||
const wxPoint& WXUNUSED(pos))
|
||||
: wxMessageDialogBase(parent, message, caption, style)
|
||||
{
|
||||
m_yes = _("Yes");
|
||||
|
||||
@@ -140,12 +140,12 @@ wxNotebook::~wxNotebook()
|
||||
// wxNotebook accessors
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxNotebook::SetPadding(const wxSize& padding)
|
||||
void wxNotebook::SetPadding(const wxSize& WXUNUSED(padding))
|
||||
{
|
||||
// unsupported by OS
|
||||
}
|
||||
|
||||
void wxNotebook::SetTabSize(const wxSize& sz)
|
||||
void wxNotebook::SetTabSize(const wxSize& WXUNUSED(sz))
|
||||
{
|
||||
// unsupported by OS
|
||||
}
|
||||
@@ -565,7 +565,7 @@ bool wxNotebook::DoPhase(int WXUNUSED(nPhase))
|
||||
|
||||
#endif // wxUSE_CONSTRAINTS
|
||||
|
||||
void wxNotebook::Command(wxCommandEvent& event)
|
||||
void wxNotebook::Command(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxNotebook::Command not implemented"));
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ void wxOverlayImpl::EndDrawing( wxWindowDC* dc)
|
||||
CGContextSynchronize( m_overlayContext );
|
||||
}
|
||||
|
||||
void wxOverlayImpl::Clear(wxWindowDC* dc)
|
||||
void wxOverlayImpl::Clear(wxWindowDC* WXUNUSED(dc))
|
||||
{
|
||||
wxASSERT_MSG( IsOk() , _("You cannot Clear an overlay that is not inited") );
|
||||
CGRect box = CGRectMake( m_x - 1, m_y - 1 , m_width + 2 , m_height + 2 );
|
||||
|
||||
@@ -281,7 +281,7 @@ bool wxMacCarbonPrintData::TransferTo( wxPrintData &data )
|
||||
return true ;
|
||||
}
|
||||
|
||||
void wxMacCarbonPrintData::TransferFrom( wxPageSetupData *data )
|
||||
void wxMacCarbonPrintData::TransferFrom( wxPageSetupData *WXUNUSED(data) )
|
||||
{
|
||||
// should we setup the page rect here ?
|
||||
// since MacOS sometimes has two same paper rects with different
|
||||
@@ -562,7 +562,7 @@ wxDC* wxMacPrinter::PrintDialog(wxWindow *parent)
|
||||
return dc;
|
||||
}
|
||||
|
||||
bool wxMacPrinter::Setup(wxWindow *parent)
|
||||
bool wxMacPrinter::Setup(wxWindow *WXUNUSED(parent))
|
||||
{
|
||||
#if 0
|
||||
wxPrintDialog dialog(parent, & m_printDialogData);
|
||||
|
||||
@@ -207,7 +207,7 @@ bool wxRegion::DoCombine(const wxRegion& region, wxRegionOp op)
|
||||
//# Information on region
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
bool wxRegion::DoIsEqual(const wxRegion& region) const
|
||||
bool wxRegion::DoIsEqual(const wxRegion& WXUNUSED(region)) const
|
||||
{
|
||||
wxFAIL_MSG( _T("not implemented") );
|
||||
|
||||
@@ -358,7 +358,7 @@ wxRegionIterator::wxRegionIterator(const wxRegion& region)
|
||||
*/
|
||||
|
||||
OSStatus wxMacRegionToRectsCounterCallback(
|
||||
UInt16 message, RgnHandle region, const Rect *rect, void *data )
|
||||
UInt16 message, RgnHandle WXUNUSED(region), const Rect *WXUNUSED(rect), void *data )
|
||||
{
|
||||
long *m_numRects = (long*) data ;
|
||||
if ( message == kQDRegionToRectsMsgInit )
|
||||
@@ -381,7 +381,7 @@ public :
|
||||
};
|
||||
|
||||
OSStatus wxMacRegionToRectsSetterCallback(
|
||||
UInt16 message, RgnHandle region, const Rect *rect, void *data )
|
||||
UInt16 message, RgnHandle WXUNUSED(region), const Rect *rect, void *data )
|
||||
{
|
||||
if (message == kQDRegionToRectsMsgParse)
|
||||
{
|
||||
|
||||
@@ -69,7 +69,11 @@ int wxScrollBar::GetThumbPosition() const
|
||||
return m_peer->GetValue();
|
||||
}
|
||||
|
||||
void wxScrollBar::SetScrollbar( int position, int thumbSize, int range, int pageSize, bool refresh )
|
||||
void wxScrollBar::SetScrollbar( int position,
|
||||
int thumbSize,
|
||||
int range,
|
||||
int pageSize,
|
||||
bool WXUNUSED(refresh) )
|
||||
{
|
||||
m_pageSize = pageSize;
|
||||
m_viewSize = thumbSize;
|
||||
@@ -89,7 +93,7 @@ void wxScrollBar::Command( wxCommandEvent& event )
|
||||
ProcessCommand( event );
|
||||
}
|
||||
|
||||
void wxScrollBar::MacHandleControlClick( WXWidget control, wxInt16 controlpart, bool mouseStillDown )
|
||||
void wxScrollBar::MacHandleControlClick( WXWidget WXUNUSED(control), wxInt16 controlpart, bool mouseStillDown )
|
||||
{
|
||||
int position = m_peer->GetValue();
|
||||
int minPos = m_peer->GetMinimum();
|
||||
@@ -164,7 +168,7 @@ void wxScrollBar::MacHandleControlClick( WXWidget control, wxInt16 controlpart,
|
||||
GetEventHandler()->ProcessEvent( event );
|
||||
}
|
||||
|
||||
wxInt32 wxScrollBar::MacControlHit( WXEVENTHANDLERREF handler, WXEVENTREF mevent )
|
||||
wxInt32 wxScrollBar::MacControlHit( WXEVENTHANDLERREF WXUNUSED(handler), WXEVENTREF mevent )
|
||||
{
|
||||
int position = m_peer->GetValue();
|
||||
int minPos = m_peer->GetMinimum();
|
||||
|
||||
@@ -216,7 +216,7 @@ void wxSlider::SetRange(int minValue, int maxValue)
|
||||
}
|
||||
|
||||
// For trackbars only
|
||||
void wxSlider::SetTickFreq(int n, int pos)
|
||||
void wxSlider::SetTickFreq(int n, int WXUNUSED(pos))
|
||||
{
|
||||
// TODO
|
||||
m_tickFreq = n;
|
||||
@@ -267,12 +267,12 @@ int wxSlider::GetSelStart() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void wxSlider::SetSelection(int minPos, int maxPos)
|
||||
void wxSlider::SetSelection(int WXUNUSED(minPos), int WXUNUSED(maxPos))
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxSlider::SetThumbLength(int len)
|
||||
void wxSlider::SetThumbLength(int WXUNUSED(len))
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
@@ -283,7 +283,7 @@ int wxSlider::GetThumbLength() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void wxSlider::SetTick(int tickPos)
|
||||
void wxSlider::SetTick(int WXUNUSED(tickPos))
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
@@ -294,7 +294,9 @@ void wxSlider::Command(wxCommandEvent &event)
|
||||
ProcessCommand(event);
|
||||
}
|
||||
|
||||
void wxSlider::MacHandleControlClick( WXWidget control, wxInt16 controlpart, bool mouseStillDown )
|
||||
void wxSlider::MacHandleControlClick(WXWidget WXUNUSED(control),
|
||||
wxInt16 WXUNUSED(controlpart),
|
||||
bool WXUNUSED(mouseStillDown))
|
||||
{
|
||||
// Whatever the native value is, we may need to invert it for calling
|
||||
// SetValue and putting the possibly inverted value in the event
|
||||
@@ -313,7 +315,8 @@ void wxSlider::MacHandleControlClick( WXWidget control, wxInt16 controlpart, boo
|
||||
GetEventHandler()->ProcessEvent( cevent );
|
||||
}
|
||||
|
||||
wxInt32 wxSlider::MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF mevent )
|
||||
wxInt32 wxSlider::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler),
|
||||
WXEVENTREF WXUNUSED(mevent))
|
||||
{
|
||||
// Whatever the native value is, we may need to invert it for calling
|
||||
// SetValue and putting the possibly inverted value in the event
|
||||
@@ -340,7 +343,7 @@ wxInt32 wxSlider::MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF mevent )
|
||||
//
|
||||
void wxSlider::DoSetSizeHints( int minW, int minH,
|
||||
int maxW, int maxH,
|
||||
int incW, int incH )
|
||||
int WXUNUSED(incW), int WXUNUSED(incH) )
|
||||
{
|
||||
wxSize size = GetBestSize();
|
||||
|
||||
|
||||
@@ -149,7 +149,9 @@ void wxSpinButton::MacHandleValueChanged( int inc )
|
||||
}
|
||||
}
|
||||
|
||||
void wxSpinButton::MacHandleControlClick( WXWidget control, wxInt16 controlpart, bool mouseStillDown )
|
||||
void wxSpinButton::MacHandleControlClick(WXWidget WXUNUSED(control),
|
||||
wxInt16 controlpart,
|
||||
bool WXUNUSED(mouseStillDown))
|
||||
{
|
||||
int nScrollInc = 0;
|
||||
|
||||
@@ -170,7 +172,8 @@ void wxSpinButton::MacHandleControlClick( WXWidget control, wxInt16 controlpart,
|
||||
MacHandleValueChanged( nScrollInc ) ;
|
||||
}
|
||||
|
||||
wxInt32 wxSpinButton::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF event )
|
||||
wxInt32 wxSpinButton::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler),
|
||||
WXEVENTREF WXUNUSED(event))
|
||||
{
|
||||
#if 0
|
||||
// these have been handled by the live action proc already
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
void OnKillFocus(wxFocusEvent &event)
|
||||
void OnKillFocus(wxFocusEvent& WXUNUSED(event))
|
||||
{
|
||||
long l;
|
||||
if ( !GetValue().ToLong(&l) )
|
||||
|
||||
@@ -79,7 +79,9 @@ private:
|
||||
wxMenu* m_menu;
|
||||
} ;
|
||||
|
||||
void wxMacSearchFieldControl::CreateControl( wxTextCtrl* /*peer*/, const Rect* bounds, CFStringRef crf )
|
||||
void wxMacSearchFieldControl::CreateControl(wxTextCtrl* WXUNUSED(peer),
|
||||
const Rect* bounds,
|
||||
CFStringRef WXUNUSED(crf))
|
||||
{
|
||||
OptionBits attributes = 0;
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
@@ -275,6 +277,8 @@ bool wxSearchCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
GetEventTypeCount(eventList), eventList, this,
|
||||
(EventHandlerRef *)&searchEventHandler);
|
||||
|
||||
SetValue(value);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -132,8 +132,10 @@ wxTaskBarIconImpl::~wxTaskBarIconImpl()
|
||||
// 1) To handle wxTaskBarIcon menu events (see below for why)
|
||||
// 2) To handle events from the dock when it requests a menu
|
||||
//-----------------------------------------------------------------------------
|
||||
pascal OSStatus wxDockEventHandler( EventHandlerCallRef inHandlerCallRef,
|
||||
EventRef inEvent, void *pData )
|
||||
pascal OSStatus
|
||||
wxDockEventHandler(EventHandlerCallRef WXUNUSED(inHandlerCallRef),
|
||||
EventRef inEvent,
|
||||
void *pData)
|
||||
{
|
||||
// Get the parameters we want from the event
|
||||
wxDockTaskBarIcon* pTB = (wxDockTaskBarIcon*) pData;
|
||||
@@ -388,7 +390,7 @@ bool wxDockTaskBarIcon::IsIconInstalled() const
|
||||
//
|
||||
// Sets the icon for the dock CGImage functions and SetApplicationDockTileImage
|
||||
//-----------------------------------------------------------------------------
|
||||
bool wxDockTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
|
||||
bool wxDockTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& WXUNUSED(tooltip))
|
||||
{
|
||||
// convert the wxIcon into a wxBitmap so we can perform some
|
||||
// wxBitmap operations with it
|
||||
|
||||
@@ -1128,7 +1128,9 @@ wxMacTextControl::~wxMacTextControl()
|
||||
{
|
||||
}
|
||||
|
||||
void wxMacTextControl::SetStyle(long start, long end, const wxTextAttr& style)
|
||||
void wxMacTextControl::SetStyle(long WXUNUSED(start),
|
||||
long WXUNUSED(end),
|
||||
const wxTextAttr& WXUNUSED(style))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1149,7 +1151,7 @@ bool wxMacTextControl::CanPaste() const
|
||||
return false ;
|
||||
}
|
||||
|
||||
void wxMacTextControl::SetEditable(bool editable)
|
||||
void wxMacTextControl::SetEditable(bool WXUNUSED(editable))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1193,12 +1195,14 @@ void wxMacTextControl::Redo()
|
||||
{
|
||||
}
|
||||
|
||||
long wxMacTextControl::XYToPosition(long x, long y) const
|
||||
long wxMacTextControl::XYToPosition(long WXUNUSED(x), long WXUNUSED(y)) const
|
||||
{
|
||||
return 0 ;
|
||||
}
|
||||
|
||||
bool wxMacTextControl::PositionToXY(long pos, long *x, long *y) const
|
||||
bool wxMacTextControl::PositionToXY(long WXUNUSED(pos),
|
||||
long *WXUNUSED(x),
|
||||
long *WXUNUSED(y)) const
|
||||
{
|
||||
return false ;
|
||||
}
|
||||
@@ -1471,7 +1475,7 @@ bool wxMacUnicodeTextControl::CanPaste() const
|
||||
return true ;
|
||||
}
|
||||
|
||||
void wxMacUnicodeTextControl::SetEditable(bool editable)
|
||||
void wxMacUnicodeTextControl::SetEditable(bool WXUNUSED(editable))
|
||||
{
|
||||
#if 0 // leads to problem because text cannot be selected anymore
|
||||
SetData<Boolean>( kControlEditTextPart , kControlEditTextLockedTag , (Boolean) !editable ) ;
|
||||
@@ -1729,7 +1733,8 @@ TXNFrameOptions wxMacMLTEControl::FrameOptionsFromWXStyle( long wxStyle )
|
||||
return frameOptions ;
|
||||
}
|
||||
|
||||
void wxMacMLTEControl::AdjustCreationAttributes( const wxColour &background, bool visible )
|
||||
void wxMacMLTEControl::AdjustCreationAttributes(const wxColour &background,
|
||||
bool WXUNUSED(visible))
|
||||
{
|
||||
TXNControlTag iControlTags[] =
|
||||
{
|
||||
@@ -1884,7 +1889,9 @@ void wxMacMLTEControl::TXNSetAttribute( const wxTextAttr& style , long from , lo
|
||||
}
|
||||
}
|
||||
|
||||
void wxMacMLTEControl::SetFont( const wxFont & font , const wxColour& foreground , long windowStyle )
|
||||
void wxMacMLTEControl::SetFont(const wxFont & font,
|
||||
const wxColour& foreground,
|
||||
long WXUNUSED(windowStyle))
|
||||
{
|
||||
wxMacEditHelper help( m_txn ) ;
|
||||
TXNSetAttribute( wxTextAttr( foreground, wxNullColour, font ), kTXNStartOffset, kTXNEndOffset ) ;
|
||||
@@ -2531,7 +2538,7 @@ void wxMacMLTEClassicControl::SetRect( Rect *r )
|
||||
MacUpdatePosition() ;
|
||||
}
|
||||
|
||||
void wxMacMLTEClassicControl::MacControlUserPaneDrawProc(wxInt16 thePart)
|
||||
void wxMacMLTEClassicControl::MacControlUserPaneDrawProc(wxInt16 WXUNUSED(thePart))
|
||||
{
|
||||
wxTextCtrl* textctrl = (wxTextCtrl*)GetControlReference( m_controlRef );
|
||||
if ( textctrl == NULL )
|
||||
@@ -2572,7 +2579,7 @@ wxInt16 wxMacMLTEClassicControl::MacControlUserPaneHitTestProc(wxInt16 x, wxInt1
|
||||
return result;
|
||||
}
|
||||
|
||||
wxInt16 wxMacMLTEClassicControl::MacControlUserPaneTrackingProc( wxInt16 x, wxInt16 y, void* actionProc )
|
||||
wxInt16 wxMacMLTEClassicControl::MacControlUserPaneTrackingProc( wxInt16 x, wxInt16 y, void* WXUNUSED(actionProc) )
|
||||
{
|
||||
ControlPartCode result = kControlNoPart;
|
||||
|
||||
@@ -2690,7 +2697,7 @@ wxInt16 wxMacMLTEClassicControl::MacControlUserPaneFocusProc(wxInt16 action)
|
||||
return focusResult;
|
||||
}
|
||||
|
||||
void wxMacMLTEClassicControl::MacControlUserPaneBackgroundProc( void *info )
|
||||
void wxMacMLTEClassicControl::MacControlUserPaneBackgroundProc( void *WXUNUSED(info) )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ struct MacTimerInfo
|
||||
EventLoopTimerRef m_timerRef;
|
||||
};
|
||||
|
||||
static pascal void wxProcessTimer( EventLoopTimerRef theTimer, void *data )
|
||||
static pascal void wxProcessTimer( EventLoopTimerRef WXUNUSED(theTimer), void *data )
|
||||
{
|
||||
if ( data == NULL )
|
||||
return;
|
||||
|
||||
@@ -244,7 +244,7 @@ static const EventTypeSpec eventList[] =
|
||||
#endif
|
||||
};
|
||||
|
||||
static pascal OSStatus wxMacToolBarToolControlEventHandler( EventHandlerCallRef handler, EventRef event, void *data )
|
||||
static pascal OSStatus wxMacToolBarToolControlEventHandler( EventHandlerCallRef WXUNUSED(handler), EventRef event, void *data )
|
||||
{
|
||||
OSStatus result = eventNotHandledErr;
|
||||
ControlRef controlRef;
|
||||
@@ -326,7 +326,7 @@ static const EventTypeSpec toolBarEventList[] =
|
||||
{ kEventClassToolbarItem, kEventToolbarItemPerformAction },
|
||||
};
|
||||
|
||||
static pascal OSStatus wxMacToolBarCommandEventHandler( EventHandlerCallRef handler, EventRef event, void *data )
|
||||
static pascal OSStatus wxMacToolBarCommandEventHandler( EventHandlerCallRef WXUNUSED(handler), EventRef event, void *data )
|
||||
{
|
||||
OSStatus result = eventNotHandledErr;
|
||||
|
||||
@@ -769,7 +769,9 @@ static const EventTypeSpec kToolbarEvents[] =
|
||||
{ kEventClassToolbar, kEventToolbarCreateItemWithIdentifier },
|
||||
};
|
||||
|
||||
static OSStatus ToolbarDelegateHandler( EventHandlerCallRef inCallRef, EventRef inEvent, void* inUserData )
|
||||
static OSStatus ToolbarDelegateHandler(EventHandlerCallRef WXUNUSED(inCallRef),
|
||||
EventRef inEvent,
|
||||
void* WXUNUSED(inUserData))
|
||||
{
|
||||
OSStatus result = eventNotHandledErr;
|
||||
// Not yet needed
|
||||
|
||||
@@ -457,7 +457,10 @@ ControlRef wxMacFindControlUnderMouse( wxTopLevelWindowMac* toplevelWindow , con
|
||||
|
||||
#define NEW_CAPTURE_HANDLING 1
|
||||
|
||||
pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
|
||||
pascal OSStatus
|
||||
wxMacTopLevelMouseEventHandler(EventHandlerCallRef WXUNUSED(handler),
|
||||
EventRef event,
|
||||
void *data)
|
||||
{
|
||||
wxTopLevelWindowMac* toplevelWindow = (wxTopLevelWindowMac*) data ;
|
||||
|
||||
@@ -688,7 +691,10 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
|
||||
return result ;
|
||||
}
|
||||
|
||||
static pascal OSStatus wxMacTopLevelWindowEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
|
||||
static pascal OSStatus
|
||||
wxMacTopLevelWindowEventHandler(EventHandlerCallRef WXUNUSED(handler),
|
||||
EventRef event,
|
||||
void *data)
|
||||
{
|
||||
OSStatus result = eventNotHandledErr ;
|
||||
|
||||
@@ -1338,7 +1344,7 @@ void wxTopLevelWindowMac::MacDelayedDeactivation(long timestamp)
|
||||
}
|
||||
}
|
||||
|
||||
void wxTopLevelWindowMac::MacActivate( long timestamp , bool inIsActivating )
|
||||
void wxTopLevelWindowMac::MacActivate( long timestamp , bool WXUNUSED(inIsActivating) )
|
||||
{
|
||||
wxLogTrace(TRACE_ACTIVATE, wxT("TopLevel=%p::MacActivate"), this);
|
||||
|
||||
@@ -1695,7 +1701,7 @@ static pascal void wxMacNMResponse( NMRecPtr ptr )
|
||||
DisposePtr( (Ptr)ptr ) ;
|
||||
}
|
||||
|
||||
void wxTopLevelWindowMac::RequestUserAttention(int flags )
|
||||
void wxTopLevelWindowMac::RequestUserAttention(int WXUNUSED(flags))
|
||||
{
|
||||
NMRecPtr notificationRequest = (NMRecPtr) NewPtr( sizeof( NMRec) ) ;
|
||||
static wxMacNMUPP nmupp( wxMacNMResponse );
|
||||
@@ -1767,7 +1773,7 @@ static void wxShapedMacWindowGetPos(WindowRef window, Rect* inRect)
|
||||
inRect->left = pt.h;
|
||||
}
|
||||
|
||||
static SInt32 wxShapedMacWindowGetFeatures(WindowRef window, SInt32 param)
|
||||
static SInt32 wxShapedMacWindowGetFeatures(WindowRef WXUNUSED(window), SInt32 param)
|
||||
{
|
||||
/*------------------------------------------------------
|
||||
Define which options your custom window supports.
|
||||
@@ -1867,7 +1873,7 @@ static SInt32 wxShapedMacWindowHitTest(WindowRef window, SInt32 param)
|
||||
return wNoHit;
|
||||
}
|
||||
|
||||
static pascal long wxShapedMacWindowDef(short varCode, WindowRef window, SInt16 message, SInt32 param)
|
||||
static pascal long wxShapedMacWindowDef(short WXUNUSED(varCode), WindowRef window, SInt16 message, SInt32 param)
|
||||
{
|
||||
switch (message)
|
||||
{
|
||||
|
||||
@@ -49,7 +49,8 @@ void UMACleanupToolbox()
|
||||
{
|
||||
}
|
||||
|
||||
void UMAInitToolbox( UInt16 inMoreMastersCalls, bool isEmbedded )
|
||||
void UMAInitToolbox( UInt16 WXUNUSED(inMoreMastersCalls),
|
||||
bool WXUNUSED(isEmbedded) )
|
||||
{
|
||||
::InitCursor();
|
||||
|
||||
|
||||
@@ -463,7 +463,7 @@ wxString wxMacFindFolder( short vol,
|
||||
|
||||
// Check whether this window wants to process messages, e.g. Stop button
|
||||
// in long calculations.
|
||||
bool wxCheckForInterrupt(wxWindow *wnd)
|
||||
bool wxCheckForInterrupt(wxWindow *WXUNUSED(wnd))
|
||||
{
|
||||
// TODO
|
||||
return false;
|
||||
@@ -932,7 +932,7 @@ bool wxMacControl::NeedsFocusRect() const
|
||||
return m_needsFocusRect;
|
||||
}
|
||||
|
||||
void wxMacControl::VisibilityChanged(bool shown)
|
||||
void wxMacControl::VisibilityChanged(bool WXUNUSED(shown))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1286,7 +1286,11 @@ DataBrowserItemDataUPP gDataBrowserItemDataUPP = NULL;
|
||||
DataBrowserItemNotificationUPP gDataBrowserItemNotificationUPP = NULL;
|
||||
DataBrowserItemCompareUPP gDataBrowserItemCompareUPP = NULL;
|
||||
|
||||
wxMacDataBrowserControl::wxMacDataBrowserControl( wxWindow* peer, const wxPoint& pos, const wxSize& size, long style) : wxMacControl( peer )
|
||||
wxMacDataBrowserControl::wxMacDataBrowserControl( wxWindow* peer,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long WXUNUSED(style))
|
||||
: wxMacControl( peer )
|
||||
{
|
||||
Rect bounds = wxMacGetBoundsForControl( peer, pos, size );
|
||||
OSStatus err = ::CreateDataBrowserControl(
|
||||
@@ -1626,7 +1630,7 @@ const wxString& wxMacDataItem::GetLabel() const
|
||||
return m_label;
|
||||
}
|
||||
|
||||
bool wxMacDataItem::IsLessThan(wxMacDataItemBrowserControl *owner ,
|
||||
bool wxMacDataItem::IsLessThan(wxMacDataItemBrowserControl *WXUNUSED(owner) ,
|
||||
const wxMacDataItem* rhs,
|
||||
DataBrowserPropertyID sortProperty) const
|
||||
{
|
||||
@@ -1643,7 +1647,7 @@ bool wxMacDataItem::IsLessThan(wxMacDataItemBrowserControl *owner ,
|
||||
return retval;
|
||||
}
|
||||
|
||||
OSStatus wxMacDataItem::GetSetData( wxMacDataItemBrowserControl *owner ,
|
||||
OSStatus wxMacDataItem::GetSetData( wxMacDataItemBrowserControl *WXUNUSED(owner) ,
|
||||
DataBrowserPropertyID property,
|
||||
DataBrowserItemDataRef itemData,
|
||||
bool changeValue )
|
||||
@@ -1675,9 +1679,9 @@ OSStatus wxMacDataItem::GetSetData( wxMacDataItemBrowserControl *owner ,
|
||||
return err;
|
||||
}
|
||||
|
||||
void wxMacDataItem::Notification(wxMacDataItemBrowserControl *owner ,
|
||||
DataBrowserItemNotification message,
|
||||
DataBrowserItemDataRef itemData ) const
|
||||
void wxMacDataItem::Notification(wxMacDataItemBrowserControl *WXUNUSED(owner) ,
|
||||
DataBrowserItemNotification WXUNUSED(message),
|
||||
DataBrowserItemDataRef WXUNUSED(itemData) ) const
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -405,7 +405,10 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
|
||||
return result ;
|
||||
}
|
||||
|
||||
static pascal OSStatus wxMacWindowServiceEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
|
||||
static pascal OSStatus
|
||||
wxMacWindowServiceEventHandler(EventHandlerCallRef WXUNUSED(handler),
|
||||
EventRef event,
|
||||
void *data)
|
||||
{
|
||||
OSStatus result = eventNotHandledErr ;
|
||||
|
||||
@@ -620,7 +623,10 @@ pascal OSStatus wxMacUnicodeTextEventHandler( EventHandlerCallRef handler , Even
|
||||
return result ;
|
||||
}
|
||||
|
||||
static pascal OSStatus wxMacWindowCommandEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
|
||||
static pascal OSStatus
|
||||
wxMacWindowCommandEventHandler(EventHandlerCallRef WXUNUSED(handler),
|
||||
EventRef event,
|
||||
void *data)
|
||||
{
|
||||
OSStatus result = eventNotHandledErr ;
|
||||
wxWindowMac* focus = (wxWindowMac*) data ;
|
||||
@@ -1147,7 +1153,7 @@ void wxWindowMac::MacChildAdded()
|
||||
m_hScrollBar->Raise() ;
|
||||
}
|
||||
|
||||
void wxWindowMac::MacPostControlCreate(const wxPoint& pos, const wxSize& size)
|
||||
void wxWindowMac::MacPostControlCreate(const wxPoint& WXUNUSED(pos), const wxSize& size)
|
||||
{
|
||||
wxASSERT_MSG( m_peer != NULL && m_peer->Ok() , wxT("No valid mac control") ) ;
|
||||
|
||||
@@ -1394,7 +1400,7 @@ void wxWindowMac::SetDropTarget(wxDropTarget *pDropTarget)
|
||||
#endif
|
||||
|
||||
// Old-style File Manager Drag & Drop
|
||||
void wxWindowMac::DragAcceptFiles(bool accept)
|
||||
void wxWindowMac::DragAcceptFiles(bool WXUNUSED(accept))
|
||||
{
|
||||
// TODO:
|
||||
}
|
||||
@@ -1402,8 +1408,10 @@ void wxWindowMac::DragAcceptFiles(bool accept)
|
||||
// Returns the size of the native control. In the case of the toplevel window
|
||||
// this is the content area root control
|
||||
|
||||
void wxWindowMac::MacGetPositionAndSizeFromControl(int& x, int& y,
|
||||
int& w, int& h) const
|
||||
void wxWindowMac::MacGetPositionAndSizeFromControl(int& WXUNUSED(x),
|
||||
int& WXUNUSED(y),
|
||||
int& WXUNUSED(w),
|
||||
int& WXUNUSED(h)) const
|
||||
{
|
||||
wxFAIL_MSG( wxT("Not currently supported") ) ;
|
||||
}
|
||||
@@ -2178,7 +2186,7 @@ void wxWindowMac::MacPropagateVisibilityChanged()
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxWindowMac::OnEnabled(bool enabled)
|
||||
void wxWindowMac::OnEnabled(bool WXUNUSED(enabled))
|
||||
{
|
||||
#if !TARGET_API_MAC_OSX
|
||||
MacEnabledStateChanged() ;
|
||||
@@ -2304,7 +2312,7 @@ void wxWindowMac::GetTextExtent(const wxString& string, int *x, int *y,
|
||||
* we always intersect with the entire window, not only with the client area
|
||||
*/
|
||||
|
||||
void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
|
||||
void wxWindowMac::Refresh(bool WXUNUSED(eraseBack), const wxRect *rect)
|
||||
{
|
||||
if ( m_peer == NULL )
|
||||
return ;
|
||||
@@ -2364,7 +2372,7 @@ wxWindowMac *wxGetActiveWindow()
|
||||
}
|
||||
|
||||
// Coordinates relative to the window
|
||||
void wxWindowMac::WarpPointer(int x_pos, int y_pos)
|
||||
void wxWindowMac::WarpPointer(int WXUNUSED(x_pos), int WXUNUSED(y_pos))
|
||||
{
|
||||
// We really don't move the mouse programmatically under Mac.
|
||||
}
|
||||
@@ -2442,7 +2450,7 @@ int wxWindowMac::GetScrollThumb(int orient) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void wxWindowMac::SetScrollPos(int orient, int pos, bool refresh)
|
||||
void wxWindowMac::SetScrollPos(int orient, int pos, bool WXUNUSED(refresh))
|
||||
{
|
||||
if ( orient == wxHORIZONTAL )
|
||||
{
|
||||
@@ -2481,7 +2489,7 @@ wxWindowMac::AlwaysShowScrollbars(bool hflag, bool vflag)
|
||||
// our own window origin is at leftOrigin/rightOrigin
|
||||
//
|
||||
|
||||
void wxWindowMac::MacPaintBorders( int leftOrigin , int rightOrigin )
|
||||
void wxWindowMac::MacPaintBorders( int WXUNUSED(leftOrigin) , int WXUNUSED(rightOrigin) )
|
||||
{
|
||||
if ( IsTopLevel() )
|
||||
return ;
|
||||
@@ -2848,7 +2856,7 @@ bool wxWindowMac::MacSetupCursor( const wxPoint& pt )
|
||||
return cursor.Ok() ;
|
||||
}
|
||||
|
||||
wxString wxWindowMac::MacGetToolTipString( wxPoint &pt )
|
||||
wxString wxWindowMac::MacGetToolTipString( wxPoint &WXUNUSED(pt) )
|
||||
{
|
||||
#if wxUSE_TOOLTIPS
|
||||
if ( m_tooltip )
|
||||
@@ -3376,7 +3384,7 @@ void wxWindowMac::OnMouseEvent( wxMouseEvent &event )
|
||||
}
|
||||
}
|
||||
|
||||
void wxWindowMac::OnPaint( wxPaintEvent & event )
|
||||
void wxWindowMac::OnPaint( wxPaintEvent & WXUNUSED(event) )
|
||||
{
|
||||
if ( wxTheApp->MacGetCurrentEvent() != NULL && wxTheApp->MacGetCurrentEventHandlerCallRef() != NULL
|
||||
&& GetBackgroundStyle() != wxBG_STYLE_TRANSPARENT )
|
||||
@@ -3385,7 +3393,9 @@ void wxWindowMac::OnPaint( wxPaintEvent & event )
|
||||
(EventRef) wxTheApp->MacGetCurrentEvent() ) ;
|
||||
}
|
||||
|
||||
void wxWindowMac::MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool WXUNUSED( mouseStillDown ) )
|
||||
void wxWindowMac::MacHandleControlClick(WXWidget WXUNUSED(control),
|
||||
wxInt16 WXUNUSED(controlpart),
|
||||
bool WXUNUSED(mouseStillDown))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ struct MacGSocketData
|
||||
// We will store the main loop's reference when Initialize is called
|
||||
static CFRunLoopRef s_mainRunLoop = NULL;
|
||||
|
||||
void Mac_Socket_Callback(CFSocketRef s, CFSocketCallBackType callbackType,
|
||||
CFDataRef address, const void* data, void* info)
|
||||
void Mac_Socket_Callback(CFSocketRef WXUNUSED(s), CFSocketCallBackType callbackType,
|
||||
CFDataRef WXUNUSED(address), const void* data, void* info)
|
||||
{
|
||||
GSocket* socket = (GSocket*)info;
|
||||
struct MacGSocketData* macdata;
|
||||
|
||||
@@ -480,7 +480,7 @@ int wxJoystick::GetMovementThreshold() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void wxJoystick::SetMovementThreshold(int threshold)
|
||||
void wxJoystick::SetMovementThreshold(int WXUNUSED(threshold))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -795,8 +795,10 @@ void* wxJoystickThread::Entry()
|
||||
// 5) Sends the event to the polling window (if any)
|
||||
// 6) Gets the next event and goes back to (1)
|
||||
//---------------------------------------------------------------------------
|
||||
/*static*/ void wxJoystickThread::HIDCallback(void* target, IOReturn res,
|
||||
void* context, void* sender)
|
||||
/*static*/ void wxJoystickThread::HIDCallback(void* WXUNUSED(target),
|
||||
IOReturn WXUNUSED(res),
|
||||
void* context,
|
||||
void* WXUNUSED(sender))
|
||||
{
|
||||
IOHIDEventStruct hidevent;
|
||||
AbsoluteTime bogustime = {0,0};
|
||||
|
||||
@@ -143,7 +143,7 @@ extern "C" {
|
||||
#include <mach/mach.h>
|
||||
}
|
||||
|
||||
void wxMAC_MachPortEndProcessDetect(CFMachPortRef port, void *data)
|
||||
void wxMAC_MachPortEndProcessDetect(CFMachPortRef WXUNUSED(port), void *data)
|
||||
{
|
||||
wxEndProcessData *proc_data = (wxEndProcessData*)data;
|
||||
wxLogDebug(wxT("Process ended"));
|
||||
@@ -240,7 +240,11 @@ int wxAddProcessCallbackForPid(wxEndProcessData *proc_data, int pid)
|
||||
Called due to source signal detected by the CFRunLoop.
|
||||
This is nearly identical to the wxGTK equivalent.
|
||||
*/
|
||||
extern "C" void WXCF_EndProcessDetector(CFSocketRef s, CFSocketCallBackType callbackType, CFDataRef address, void const *data, void *info)
|
||||
extern "C" void WXCF_EndProcessDetector(CFSocketRef s,
|
||||
CFSocketCallBackType WXUNUSED(callbackType),
|
||||
CFDataRef WXUNUSED(address),
|
||||
void const *WXUNUSED(data),
|
||||
void *info)
|
||||
{
|
||||
wxEndProcessData * const proc_data = static_cast<wxEndProcessData*>(info);
|
||||
|
||||
|
||||
@@ -169,15 +169,6 @@ void wxComboBox::DoSetSize(int x, int y, int width, int WXUNUSED(height), int si
|
||||
wxWindow::DoSetSize(x, y, width, DoGetBestSize().y, sizeFlags);
|
||||
}
|
||||
|
||||
wxString wxComboBox::GetValue() const
|
||||
{
|
||||
char* s = XmTextGetString (GetXmText (this));
|
||||
wxString str(s);
|
||||
if (s)
|
||||
XtFree (s);
|
||||
return str;
|
||||
}
|
||||
|
||||
void wxComboBox::SetString(unsigned int n, const wxString& s)
|
||||
{
|
||||
wxXmString text(s);
|
||||
@@ -288,69 +279,11 @@ int wxComboBox::FindString(const wxString& s, bool WXUNUSED(bCase)) const
|
||||
return wxDoFindStringInList( GetXmList( this ), s );
|
||||
}
|
||||
|
||||
// Clipboard operations
|
||||
void wxComboBox::Copy()
|
||||
{
|
||||
XmTextCopy( GetXmText(this), CurrentTime );
|
||||
}
|
||||
|
||||
void wxComboBox::Cut()
|
||||
{
|
||||
XmTextCut( GetXmText(this), CurrentTime );
|
||||
}
|
||||
|
||||
void wxComboBox::Paste()
|
||||
{
|
||||
XmTextPaste( GetXmText(this) );
|
||||
}
|
||||
|
||||
void wxComboBox::SetEditable(bool WXUNUSED(editable))
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void wxComboBox::SetInsertionPoint(long pos)
|
||||
{
|
||||
XmTextSetInsertionPosition( GetXmText(this), (XmTextPosition)pos );
|
||||
}
|
||||
|
||||
void wxComboBox::SetInsertionPointEnd()
|
||||
{
|
||||
SetInsertionPoint( GetLastPosition() );
|
||||
}
|
||||
|
||||
long wxComboBox::GetInsertionPoint() const
|
||||
{
|
||||
return (long)XmTextGetInsertionPosition( GetXmText(this) );
|
||||
}
|
||||
|
||||
wxTextPos wxComboBox::GetLastPosition() const
|
||||
{
|
||||
XmTextPosition pos = XmTextGetLastPosition( GetXmText(this) );
|
||||
return (long)pos;
|
||||
}
|
||||
|
||||
void wxComboBox::Replace(long from, long to, const wxString& value)
|
||||
{
|
||||
XmTextReplace( GetXmText(this), (XmTextPosition)from, (XmTextPosition)to,
|
||||
value.char_str() );
|
||||
}
|
||||
|
||||
void wxComboBox::Remove(long from, long to)
|
||||
{
|
||||
SetSelection( from, to );
|
||||
XmTextRemove( GetXmText(this) );
|
||||
}
|
||||
|
||||
void wxComboBox::SetSelection(long from, long to)
|
||||
{
|
||||
if( to == -1 )
|
||||
to = GetLastPosition();
|
||||
|
||||
XmTextSetSelection( GetXmText(this), (XmTextPosition)from,
|
||||
(XmTextPosition)to, (Time)0 );
|
||||
}
|
||||
|
||||
void wxComboBoxCallback (Widget WXUNUSED(w), XtPointer clientData,
|
||||
XmComboBoxCallbackStruct * cbs)
|
||||
{
|
||||
@@ -446,6 +379,11 @@ wxSize wxComboBox::DoGetBestSize() const
|
||||
return wxWindow::DoGetBestSize();
|
||||
}
|
||||
|
||||
WXWidget wxComboBox::GetTextWidget() const
|
||||
{
|
||||
return (WXWidget)GetXmText(this);
|
||||
}
|
||||
|
||||
#endif // XmVersion >= 2000
|
||||
|
||||
#endif // wxUSE_COMBOBOX
|
||||
|
||||
@@ -219,14 +219,7 @@ wxString wxTextCtrl::GetValue() const
|
||||
}
|
||||
else
|
||||
{
|
||||
// just get the string from Motif
|
||||
char *s = XmTextGetString ((Widget) m_mainWidget);
|
||||
if ( s )
|
||||
{
|
||||
str = s;
|
||||
XtFree (s);
|
||||
}
|
||||
//else: return empty string
|
||||
str = wxTextEntry::GetValue();
|
||||
|
||||
if ( m_tempCallbackStruct )
|
||||
{
|
||||
@@ -258,159 +251,6 @@ void wxTextCtrl::DoSetValue(const wxString& text, int flags)
|
||||
SendTextUpdatedEvent();
|
||||
}
|
||||
|
||||
// Clipboard operations
|
||||
void wxTextCtrl::Copy()
|
||||
{
|
||||
XmTextCopy((Widget) m_mainWidget, CurrentTime);
|
||||
}
|
||||
|
||||
void wxTextCtrl::Cut()
|
||||
{
|
||||
XmTextCut((Widget) m_mainWidget, CurrentTime);
|
||||
}
|
||||
|
||||
void wxTextCtrl::Paste()
|
||||
{
|
||||
XmTextPaste((Widget) m_mainWidget);
|
||||
}
|
||||
|
||||
bool wxTextCtrl::CanCopy() const
|
||||
{
|
||||
// Can copy if there's a selection
|
||||
long from, to;
|
||||
GetSelection(& from, & to);
|
||||
return (from != to) ;
|
||||
}
|
||||
|
||||
bool wxTextCtrl::CanCut() const
|
||||
{
|
||||
// Can cut if there's a selection
|
||||
long from, to;
|
||||
GetSelection(& from, & to);
|
||||
return (from != to) && (IsEditable());
|
||||
}
|
||||
|
||||
bool wxTextCtrl::CanPaste() const
|
||||
{
|
||||
return IsEditable() ;
|
||||
}
|
||||
|
||||
// Undo/redo
|
||||
void wxTextCtrl::Undo()
|
||||
{
|
||||
// Not possible in Motif
|
||||
}
|
||||
|
||||
void wxTextCtrl::Redo()
|
||||
{
|
||||
// Not possible in Motif
|
||||
}
|
||||
|
||||
bool wxTextCtrl::CanUndo() const
|
||||
{
|
||||
// No Undo in Motif
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxTextCtrl::CanRedo() const
|
||||
{
|
||||
// No Redo in Motif
|
||||
return false;
|
||||
}
|
||||
|
||||
// If the return values from and to are the same, there is no
|
||||
// selection.
|
||||
void wxTextCtrl::GetSelection(long* from, long* to) const
|
||||
{
|
||||
XmTextPosition left, right;
|
||||
|
||||
XmTextGetSelectionPosition((Widget) m_mainWidget, & left, & right);
|
||||
|
||||
*from = (long) left;
|
||||
*to = (long) right;
|
||||
}
|
||||
|
||||
bool wxTextCtrl::IsEditable() const
|
||||
{
|
||||
return (XmTextGetEditable((Widget) m_mainWidget) != 0);
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetEditable(bool editable)
|
||||
{
|
||||
XmTextSetEditable((Widget) m_mainWidget, (Boolean) editable);
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetInsertionPoint(long pos)
|
||||
{
|
||||
XmTextSetInsertionPosition ((Widget) m_mainWidget, (XmTextPosition) pos);
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetInsertionPointEnd()
|
||||
{
|
||||
wxTextPos pos = GetLastPosition();
|
||||
SetInsertionPoint(pos);
|
||||
}
|
||||
|
||||
long wxTextCtrl::GetInsertionPoint() const
|
||||
{
|
||||
return (long) XmTextGetInsertionPosition ((Widget) m_mainWidget);
|
||||
}
|
||||
|
||||
wxTextPos wxTextCtrl::GetLastPosition() const
|
||||
{
|
||||
return (long) XmTextGetLastPosition ((Widget) m_mainWidget);
|
||||
}
|
||||
|
||||
void wxTextCtrl::Replace(long from, long to, const wxString& value)
|
||||
{
|
||||
XmTextReplace ((Widget) m_mainWidget, (XmTextPosition) from, (XmTextPosition) to,
|
||||
value.char_str());
|
||||
}
|
||||
|
||||
void wxTextCtrl::Remove(long from, long to)
|
||||
{
|
||||
XmTextSetSelection ((Widget) m_mainWidget, (XmTextPosition) from, (XmTextPosition) to,
|
||||
(Time) 0);
|
||||
XmTextRemove ((Widget) m_mainWidget);
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetSelection(long from, long to)
|
||||
{
|
||||
if( to == -1 )
|
||||
to = GetLastPosition();
|
||||
|
||||
XmTextSetSelection ((Widget) m_mainWidget, (XmTextPosition) from, (XmTextPosition) to,
|
||||
(Time) 0);
|
||||
}
|
||||
|
||||
void wxTextCtrl::WriteText(const wxString& text)
|
||||
{
|
||||
long textPosition = GetInsertionPoint() + text.length();
|
||||
XmTextInsert ((Widget) m_mainWidget, GetInsertionPoint(),
|
||||
text.char_str());
|
||||
XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);
|
||||
SetInsertionPoint(textPosition);
|
||||
XmTextShowPosition ((Widget) m_mainWidget, textPosition);
|
||||
m_modified = true;
|
||||
}
|
||||
|
||||
void wxTextCtrl::AppendText(const wxString& text)
|
||||
{
|
||||
wxTextPos textPosition = GetLastPosition() + text.length();
|
||||
XmTextInsert ((Widget) m_mainWidget, GetLastPosition(),
|
||||
text.char_str());
|
||||
XtVaSetValues ((Widget) m_mainWidget, XmNcursorPosition, textPosition, NULL);
|
||||
SetInsertionPoint(textPosition);
|
||||
XmTextShowPosition ((Widget) m_mainWidget, textPosition);
|
||||
m_modified = true;
|
||||
}
|
||||
|
||||
void wxTextCtrl::Clear()
|
||||
{
|
||||
XmTextSetString ((Widget) m_mainWidget, wxMOTIF_STR(""));
|
||||
m_modified = false;
|
||||
}
|
||||
|
||||
bool wxTextCtrl::IsModified() const
|
||||
{
|
||||
return m_modified;
|
||||
|
||||
@@ -237,7 +237,7 @@ struct wxExposeInfo
|
||||
};
|
||||
|
||||
extern "C"
|
||||
Bool wxX11ExposePredicate (Display *display, XEvent *xevent, XPointer arg)
|
||||
Bool wxX11ExposePredicate (Display *WXUNUSED(display), XEvent *xevent, XPointer arg)
|
||||
{
|
||||
wxExposeInfo *info = (wxExposeInfo*) arg;
|
||||
|
||||
@@ -630,7 +630,7 @@ bool wxApp::ProcessXEvent(WXEvent* _event)
|
||||
|
||||
// This should be redefined in a derived class for
|
||||
// handling property change events for XAtom IPC.
|
||||
bool wxApp::HandlePropertyChange(WXEvent *event)
|
||||
bool wxApp::HandlePropertyChange(WXEvent *WXUNUSED(event))
|
||||
{
|
||||
// by default do nothing special
|
||||
// TODO: what to do for X11
|
||||
|
||||
@@ -123,15 +123,17 @@ wxCursor::wxCursor( int cursorId )
|
||||
#endif
|
||||
}
|
||||
|
||||
wxCursor::wxCursor(const char bits[], int width, int height,
|
||||
int hotSpotX, int hotSpotY,
|
||||
const char maskBits[], wxColour *fg, wxColour *bg)
|
||||
wxCursor::wxCursor(const char WXUNUSED(bits)[],
|
||||
int WXUNUSED(width), int WXUNUSED(height),
|
||||
int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY),
|
||||
const char WXUNUSED(maskBits)[],
|
||||
wxColour *WXUNUSED(fg), wxColour *WXUNUSED(bg))
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxCursor creation from bits not yet implemented") );
|
||||
}
|
||||
|
||||
#if wxUSE_IMAGE
|
||||
wxCursor::wxCursor( const wxImage & image )
|
||||
wxCursor::wxCursor( const wxImage & WXUNUSED(image) )
|
||||
{
|
||||
wxFAIL_MSG( wxT("wxCursor creation from wxImage not yet implemented") );
|
||||
}
|
||||
|
||||
@@ -625,7 +625,8 @@ void wxWindowDC::DoDrawLines( int n, wxPoint points[], wxCoord xoffset, wxCoord
|
||||
}
|
||||
|
||||
void wxWindowDC::DoDrawPolygon( int n, wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset, int fillStyle )
|
||||
wxCoord xoffset, wxCoord yoffset,
|
||||
int WXUNUSED(fillStyle) )
|
||||
{
|
||||
wxCHECK_RET( Ok(), wxT("invalid window dc") );
|
||||
|
||||
@@ -1606,9 +1607,11 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y )
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxWindowDC::DoDrawRotatedText( const wxString &text, wxCoord x, wxCoord y, double angle )
|
||||
void wxWindowDC::DoDrawRotatedText(const wxString& WXUNUSED(text),
|
||||
wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
|
||||
double WXUNUSED(angle))
|
||||
{
|
||||
// later
|
||||
wxFAIL_MSG( "not implemented" );
|
||||
}
|
||||
|
||||
void wxWindowDC::DoGetTextExtent( const wxString &string, wxCoord *width, wxCoord *height,
|
||||
@@ -2137,7 +2140,7 @@ void wxWindowDC::SetBackgroundMode( int mode )
|
||||
}
|
||||
}
|
||||
|
||||
void wxWindowDC::SetPalette( const wxPalette& palette )
|
||||
void wxWindowDC::SetPalette( const wxPalette& WXUNUSED(palette) )
|
||||
{
|
||||
#if 0
|
||||
if (m_window)
|
||||
|
||||
@@ -96,24 +96,9 @@ bool wxScreenDC::StartDrawingOnTop( wxWindow *window )
|
||||
return StartDrawingOnTop( &rect );
|
||||
}
|
||||
|
||||
bool wxScreenDC::StartDrawingOnTop( wxRect *rectIn )
|
||||
bool wxScreenDC::StartDrawingOnTop( wxRect *WXUNUSED(rectIn) )
|
||||
{
|
||||
// VZ: should we do the same thing that wxMotif wxScreenDC does here?
|
||||
#if 0
|
||||
wxRect rect;
|
||||
if ( rectIn )
|
||||
{
|
||||
rect = *rectIn;
|
||||
}
|
||||
else
|
||||
{
|
||||
rect.x =
|
||||
rect.y = 0;
|
||||
|
||||
DoGetSize(&rect.width, &rect.height);
|
||||
}
|
||||
#endif // 0
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,31 +98,8 @@ bool wxEventLoopImpl::ProcessEvent(XEvent *event)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxEventLoopImpl::PreProcessEvent(XEvent *event)
|
||||
bool wxEventLoopImpl::PreProcessEvent(XEvent *WXUNUSED(event))
|
||||
{
|
||||
// TODO
|
||||
#if 0
|
||||
HWND hWnd = msg->hwnd;
|
||||
wxWindow *wndThis = wxGetWindowFromHWND((WXHWND)hWnd);
|
||||
|
||||
|
||||
// try translations first; find the youngest window with a translation
|
||||
// table.
|
||||
wxWindow *wnd;
|
||||
for ( wnd = wndThis; wnd; wnd = wnd->GetParent() )
|
||||
{
|
||||
if ( wnd->MSWTranslateMessage((WXMSG *)msg) )
|
||||
return true;
|
||||
}
|
||||
|
||||
// Anyone for a non-translation message? Try youngest descendants first.
|
||||
for ( wnd = wndThis; wnd; wnd = wnd->GetParent() )
|
||||
{
|
||||
if ( wnd->MSWProcessMessage((WXMSG *)msg) )
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -170,7 +170,9 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxPalette::GetPixel(unsigned char red, unsigned char green, unsigned char blue) const
|
||||
int wxPalette::GetPixel(unsigned char WXUNUSED(red),
|
||||
unsigned char WXUNUSED(green),
|
||||
unsigned char WXUNUSED(blue)) const
|
||||
{
|
||||
if ( !m_refData )
|
||||
return wxNOT_FOUND;
|
||||
|
||||
@@ -70,7 +70,7 @@ wxWindow* wxReparenter::sm_newParent = NULL;
|
||||
wxString wxReparenter::sm_name;
|
||||
bool wxReparenter::sm_exactMatch = false;
|
||||
|
||||
static int ErrorHandler(Display* dpy, XErrorEvent* event)
|
||||
static int ErrorHandler(Display* WXUNUSED(dpy), XErrorEvent* WXUNUSED(event))
|
||||
{
|
||||
Xerror = True;
|
||||
return False;
|
||||
|
||||
@@ -299,7 +299,7 @@ bool wxTopLevelWindowX11::Show(bool show)
|
||||
// wxTopLevelWindowX11 maximize/minimize
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxTopLevelWindowX11::Maximize(bool maximize)
|
||||
void wxTopLevelWindowX11::Maximize(bool WXUNUSED(maximize))
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
@@ -312,6 +312,12 @@ bool wxTopLevelWindowX11::IsMaximized() const
|
||||
|
||||
void wxTopLevelWindowX11::Iconize(bool iconize)
|
||||
{
|
||||
if ( !iconize )
|
||||
{
|
||||
Restore();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_iconized && GetMainWindow())
|
||||
{
|
||||
if (XIconifyWindow(wxGlobalDisplay(),
|
||||
|
||||
@@ -83,7 +83,7 @@ void wxFlushEvents()
|
||||
// ??
|
||||
}
|
||||
|
||||
bool wxCheckForInterrupt(wxWindow *wnd)
|
||||
bool wxCheckForInterrupt(wxWindow *WXUNUSED(wnd))
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxCheckForInterrupt not yet implemented."));
|
||||
return false;
|
||||
|
||||
@@ -1416,7 +1416,10 @@ WXWindow wxWindowX11::GetClientAreaWindow() const
|
||||
// TranslateXXXEvent() functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Window window, XEvent *xevent)
|
||||
bool wxTranslateMouseEvent(wxMouseEvent& wxevent,
|
||||
wxWindow *win,
|
||||
Window WXUNUSED(window),
|
||||
XEvent *xevent)
|
||||
{
|
||||
switch (XEventGetType(xevent))
|
||||
{
|
||||
@@ -1648,7 +1651,8 @@ wxWindow *wxWindowBase::GetCapture()
|
||||
// position.
|
||||
wxWindow* wxFindWindowAtPointer(wxPoint& pt)
|
||||
{
|
||||
return wxFindWindowAtPoint(wxGetMousePosition());
|
||||
pt = wxGetMousePosition();
|
||||
return wxFindWindowAtPoint(pt);
|
||||
}
|
||||
|
||||
void wxGetMouseState(int& rootX, int& rootY, unsigned& maskReturn)
|
||||
|
||||
Reference in New Issue
Block a user