2009-11-23 15:16:50 +00:00
|
|
|
/****************/
|
|
|
|
/* toolbars.cpp */
|
|
|
|
/****************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "fctsys.h"
|
2009-02-04 15:25:03 +00:00
|
|
|
#include "wxstruct.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2009-02-04 15:25:03 +00:00
|
|
|
WinEDA_Toolbar::WinEDA_Toolbar( id_toolbar type, wxWindow * parent,
|
|
|
|
wxWindowID id, bool horizontal ):
|
2009-11-05 08:52:41 +00:00
|
|
|
#if defined(KICAD_AUITOOLBAR)
|
2009-11-02 22:24:55 +00:00
|
|
|
wxAuiToolBar( parent, id, wxDefaultPosition, wxDefaultSize,
|
2009-11-23 15:16:50 +00:00
|
|
|
wxAUI_TB_DEFAULT_STYLE | ( ( horizontal ) ?
|
|
|
|
wxAUI_TB_HORZ_LAYOUT :
|
|
|
|
wxAUI_TB_VERTICAL ) )
|
2009-11-02 22:24:55 +00:00
|
|
|
#else
|
2009-02-04 15:25:03 +00:00
|
|
|
wxToolBar( parent, id, wxPoint( -1,-1 ), wxSize( -1,-1 ),
|
|
|
|
horizontal ? wxTB_HORIZONTAL : wxTB_VERTICAL )
|
2009-11-02 22:24:55 +00:00
|
|
|
#endif
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-02-04 15:25:03 +00:00
|
|
|
m_Parent = parent;
|
|
|
|
Pnext = NULL;
|
|
|
|
m_Ident = type;
|
|
|
|
m_Horizontal = horizontal;
|
|
|
|
m_Size = 24;
|
|
|
|
|
|
|
|
SetToolBitmapSize(wxSize(16,16));
|
|
|
|
SetMargins(0,0);
|
|
|
|
SetToolSeparation(1);
|
|
|
|
SetToolPacking(1);
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|