OS X: Disable full-screen cursor
This feature cannot work reliably for reasons explained in lp:1463505. Remove the option on OS X builds and force cursor to the small one. https://bugs.launchpad.net/kicad/+bug/1463505 > Bernhard Stegmaier (stegmaier) wrote on 2016-01-14: > > As far as I see from the code this is no bug but done on intention. > > The reason probably is that on OSX in the legacy canvas you don't have the > XOR-drawing as on other platforms. To the best of my knowledge, this would > mean that on every mouse move you would have to repaint the whole window just > to get rid of the "old" cross. > > So, I would say this is a clear "won't fix". > We could think of just removing/disabling the button in the legacy canvas.
This commit is contained in:
parent
5904e4c942
commit
540275fe44
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* Copyright (C) 2004-2015 Jean-Pierre Charras, jean-pierre.charras@gipsa-lab.inpg.fr
|
||||
* Copyright (C) 2008-2015 Wayne Stambaugh <stambaughw@verizon.net>
|
||||
* Copyright (C) 2004-2016 KiCad Developers, see change_log.txt for contributors.
|
||||
* Copyright (C) 2004-2016 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -84,7 +84,11 @@ BEGIN_EVENT_TABLE( EDA_DRAW_FRAME, KIWAY_PLAYER )
|
|||
EVT_TOOL( ID_TB_OPTIONS_SHOW_GRID, EDA_DRAW_FRAME::OnToggleGridState )
|
||||
EVT_TOOL_RANGE( ID_TB_OPTIONS_SELECT_UNIT_MM, ID_TB_OPTIONS_SELECT_UNIT_INCH,
|
||||
EDA_DRAW_FRAME::OnSelectUnits )
|
||||
|
||||
// Cursor shape cannot be implemented on OS X
|
||||
#ifndef __APPLE__
|
||||
EVT_TOOL( ID_TB_OPTIONS_SELECT_CURSOR, EDA_DRAW_FRAME::OnToggleCrossHairStyle )
|
||||
#endif // !__APPLE__
|
||||
|
||||
EVT_UPDATE_UI( wxID_UNDO, EDA_DRAW_FRAME::OnUpdateUndo )
|
||||
EVT_UPDATE_UI( wxID_REDO, EDA_DRAW_FRAME::OnUpdateRedo )
|
||||
|
@ -660,7 +664,12 @@ void EDA_DRAW_FRAME::LoadSettings( wxConfigBase* aCfg )
|
|||
|
||||
wxString baseCfgName = ConfigBaseName();
|
||||
|
||||
// Cursor shape is problematic on OS X, lock to 0
|
||||
#ifdef __APPLE__
|
||||
m_cursorShape = 0;
|
||||
#else
|
||||
aCfg->Read( baseCfgName + CursorShapeEntryKeyword, &m_cursorShape, ( long )0 );
|
||||
#endif // __APPLE__
|
||||
|
||||
bool btmp;
|
||||
if( aCfg->Read( baseCfgName + ShowGridEntryKeyword, &btmp ) )
|
||||
|
|
|
@ -189,9 +189,11 @@ void DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar()
|
|||
KiBitmap( unit_mm_xpm ),
|
||||
_( "Units in millimeters" ), wxITEM_CHECK );
|
||||
|
||||
#ifndef __APPLE__
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_CURSOR, wxEmptyString,
|
||||
KiBitmap( cursor_shape_xpm ),
|
||||
_( "Change cursor shape" ), wxITEM_CHECK );
|
||||
#endif // !__APPLE__
|
||||
|
||||
m_optionsToolBar->AddSeparator();
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_PADS_SKETCH, wxEmptyString,
|
||||
|
|
|
@ -235,9 +235,11 @@ void LIB_EDIT_FRAME::CreateOptionToolbar()
|
|||
KiBitmap( unit_mm_xpm ),
|
||||
_( "Units in millimeters" ), wxITEM_CHECK );
|
||||
|
||||
#ifndef __APPLE__
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_CURSOR, wxEmptyString,
|
||||
KiBitmap( cursor_shape_xpm ),
|
||||
_( "Change cursor shape" ), wxITEM_CHECK );
|
||||
#endif // !__APPLE__
|
||||
|
||||
m_optionsToolBar->Realize();
|
||||
}
|
||||
|
|
|
@ -280,9 +280,11 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
|
|||
KiBitmap( unit_mm_xpm ),
|
||||
_( "Set unit to mm" ), wxITEM_CHECK );
|
||||
|
||||
#ifndef __APPLE__
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_CURSOR, wxEmptyString,
|
||||
KiBitmap( cursor_shape_xpm ),
|
||||
_( "Change cursor shape" ), wxITEM_CHECK );
|
||||
#endif // !__APPLE__
|
||||
|
||||
//m_optionsToolBar->AddSeparator();
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_HIDDEN_PINS, wxEmptyString,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2010-2014 Jean-Pierre Charras jp.charras at wanadoo.fr
|
||||
* Copyright (C) 1992-2016 KiCad Developers, see change_log.txt for contributors.
|
||||
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -97,7 +97,13 @@ void DIALOG_DISPLAY_OPTIONS::initOptDialog( )
|
|||
{
|
||||
m_PolarDisplay->SetSelection( m_Parent->m_DisplayOptions.m_DisplayPolarCood ? 1 : 0 );
|
||||
m_BoxUnits->SetSelection( g_UserUnit ? 1 : 0 );
|
||||
|
||||
// Cursor shape cannot be implemented on OS X
|
||||
#ifdef __APPLE__
|
||||
m_CursorShape->Hide();
|
||||
#else
|
||||
m_CursorShape->SetSelection( m_Parent->GetCursorShape() ? 1 : 0 );
|
||||
#endif // __APPLE__
|
||||
|
||||
// Show Option Draw Lines. We use DisplayPcbTrackFill as Lines draw option
|
||||
m_OptDisplayLines->SetSelection( m_Parent->m_DisplayOptions.m_DisplayLinesFill ? 1 : 0 );
|
||||
|
@ -138,7 +144,10 @@ void DIALOG_DISPLAY_OPTIONS::OnOKBUttonClick( wxCommandEvent& event )
|
|||
m_Parent->m_DisplayOptions.m_DisplayPolarCood =
|
||||
(m_PolarDisplay->GetSelection() == 0) ? false : true;
|
||||
g_UserUnit = (m_BoxUnits->GetSelection() == 0) ? INCHES : MILLIMETRES;
|
||||
|
||||
#ifndef __APPLE__
|
||||
m_Parent->SetCursorShape( m_CursorShape->GetSelection() );
|
||||
#endif // !__APPLE__
|
||||
|
||||
if( m_OptDisplayLines->GetSelection() == 1 )
|
||||
m_Parent->m_DisplayOptions.m_DisplayLinesFill = true;
|
||||
|
|
|
@ -162,9 +162,11 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
|
|||
KiBitmap( unit_mm_xpm ),
|
||||
_( "Set units to millimeters" ), wxITEM_CHECK );
|
||||
|
||||
#ifndef __APPLE__
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_CURSOR, wxEmptyString,
|
||||
KiBitmap( cursor_shape_xpm ),
|
||||
_( "Change cursor shape" ), wxITEM_CHECK );
|
||||
#endif // !__APPLE__
|
||||
|
||||
m_optionsToolBar->AddSeparator();
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_FLASHED_ITEMS_SKETCH, wxEmptyString,
|
||||
|
|
|
@ -64,7 +64,13 @@ void DIALOG_GENERALOPTIONS::init()
|
|||
/* Set display options */
|
||||
m_PolarDisplay->SetSelection( displ_opts->m_DisplayPolarCood ? 1 : 0 );
|
||||
m_UnitsSelection->SetSelection( g_UserUnit ? 1 : 0 );
|
||||
|
||||
// Cursor shape cannot be implemented on OS X
|
||||
#ifdef __APPLE__
|
||||
m_CursorShape->Hide();
|
||||
#else
|
||||
m_CursorShape->SetSelection( GetParent()->GetCursorShape() ? 1 : 0 );
|
||||
#endif // __APPLE__
|
||||
|
||||
|
||||
wxString rotationAngle;
|
||||
|
@ -114,7 +120,9 @@ void DIALOG_GENERALOPTIONS::OnOkClick( wxCommandEvent& event )
|
|||
if( ii != g_UserUnit )
|
||||
GetParent()->ReCreateAuxiliaryToolbar();
|
||||
|
||||
#ifndef __APPLE__
|
||||
GetParent()->SetCursorShape( m_CursorShape->GetSelection() );
|
||||
#endif // !__APPLE__
|
||||
GetParent()->SetAutoSaveInterval( m_SaveTime->GetValue() * 60 );
|
||||
GetParent()->SetRotationAngle( wxRound( 10.0 * wxAtof( m_RotationAngle->GetValue() ) ) );
|
||||
|
||||
|
|
|
@ -219,9 +219,11 @@ void FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar()
|
|||
KiBitmap( unit_mm_xpm ),
|
||||
_( "Units in millimeters" ), wxITEM_CHECK );
|
||||
|
||||
#ifndef __APPLE__
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_CURSOR, wxEmptyString,
|
||||
KiBitmap( cursor_shape_xpm ),
|
||||
_( "Change Cursor Shape" ), wxITEM_CHECK );
|
||||
#endif // !__APPLE__
|
||||
|
||||
m_optionsToolBar->AddSeparator();
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_PADS_SKETCH, wxEmptyString,
|
||||
|
|
|
@ -342,9 +342,12 @@ void PCB_EDIT_FRAME::ReCreateOptToolbar()
|
|||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_UNIT_MM, wxEmptyString,
|
||||
KiBitmap( unit_mm_xpm ),
|
||||
_( "Units in millimeters" ), wxITEM_CHECK );
|
||||
|
||||
#ifndef __APPLE__
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_CURSOR, wxEmptyString,
|
||||
KiBitmap( cursor_shape_xpm ),
|
||||
_( "Change cursor shape" ), wxITEM_CHECK );
|
||||
#endif // !__APPLE__
|
||||
|
||||
m_optionsToolBar->AddSeparator();
|
||||
m_optionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_RATSNEST, wxEmptyString,
|
||||
|
|
Loading…
Reference in New Issue