File: toolbars.cpp

package info (click to toggle)
kicad 0.0.20060829-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 56,544 kB
  • ctags: 9,194
  • sloc: cpp: 88,990; ansic: 4,790; makefile: 88; sh: 39
file content (36 lines) | stat: -rw-r--r-- 843 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	/******************************************************************/
	/* toolbars.cpp - fonctions des classes du type WinEDA_ttolbar */
	/******************************************************************/

#ifdef __GNUG__
#pragma implementation
#endif

#include "fctsys.h"
#include "common.h"


#include "id.h"

	/*************************/
	/* class WinEDA_HToolbar */
	/*************************/

WinEDA_Toolbar::WinEDA_Toolbar(id_toolbar type, wxWindow * parent,
				wxWindowID id, bool horizontal):
			wxToolBar(parent,id, wxPoint(-1,-1), wxSize(-1,-1),
						horizontal ? wxTB_HORIZONTAL : wxTB_VERTICAL)
{
	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);
}