mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
* Implement code to allow wxDC to handle coordinate conversions between device and drawing units. * Add build settings to enable wxGCDC for wxGraphicsContext testing. * Remove wxAUI conditional build cruft as it is now required to build Kicad. * Fix scroll increment size regression to prevent jumping around the zoom center position. * Add find GDI+ cmake module for building on WXMSW when wxGraphicsContext is enabled.
38 lines
861 B
C++
38 lines
861 B
C++
/****************/
|
|
/* toolbars.cpp */
|
|
/****************/
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "fctsys.h"
|
|
#include "wxstruct.h"
|
|
|
|
|
|
WinEDA_Toolbar::WinEDA_Toolbar( id_toolbar type, wxWindow * parent,
|
|
wxWindowID id, bool horizontal ):
|
|
wxAuiToolBar( parent, id, wxDefaultPosition, wxDefaultSize,
|
|
wxAUI_TB_DEFAULT_STYLE | ( ( horizontal ) ?
|
|
wxAUI_TB_HORZ_LAYOUT :
|
|
wxAUI_TB_VERTICAL ) )
|
|
{
|
|
m_Parent = parent;
|
|
m_Ident = type;
|
|
m_Horizontal = horizontal;
|
|
|
|
SetToolBitmapSize(wxSize(16,16));
|
|
SetMargins(0,0);
|
|
SetToolSeparation(1);
|
|
SetToolPacking(1);
|
|
}
|
|
|
|
|
|
int WinEDA_Toolbar::GetDimension( )
|
|
{
|
|
if( m_Horizontal )
|
|
return GetSize().y;
|
|
else
|
|
return GetSize().x;
|
|
}
|