2009-11-18 12:52:19 +00:00
|
|
|
/************************************************/
|
|
|
|
/* menubarmodedit.cpp - Module editor menu bar. */
|
|
|
|
/************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
#include "pcbnew.h"
|
2009-07-30 11:04:07 +00:00
|
|
|
#include "wxPcbStruct.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#include "bitmaps.h"
|
|
|
|
#include "protos.h"
|
2009-09-22 12:27:57 +00:00
|
|
|
#include "pcbnew_id.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2007-09-13 11:55:46 +00:00
|
|
|
void WinEDA_ModuleEditFrame::ReCreateMenuBar()
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-11-18 12:52:19 +00:00
|
|
|
wxMenuBar* menuBar = GetMenuBar();
|
|
|
|
wxMenuItem* item;
|
|
|
|
|
|
|
|
if( !menuBar )
|
|
|
|
{
|
|
|
|
menuBar = new wxMenuBar();
|
|
|
|
|
|
|
|
wxMenu* sizes_menu = new wxMenu;
|
|
|
|
|
|
|
|
item = new wxMenuItem( sizes_menu, ID_PCB_DRAWINGS_WIDTHS_SETUP,
|
|
|
|
_( "Sizes and Widths" ),
|
|
|
|
_( "Adjust width for texts and drawings" ) );
|
|
|
|
item->SetBitmap( options_text_xpm );
|
|
|
|
sizes_menu->Append( item );
|
|
|
|
|
|
|
|
item = new wxMenuItem( sizes_menu, ID_PCB_PAD_SETUP, _( "Pad Settings" ),
|
|
|
|
_( "Adjust size, shape, layers... for pads" ) );
|
|
|
|
item->SetBitmap( pad_xpm );
|
|
|
|
sizes_menu->Append( item );
|
|
|
|
|
|
|
|
item =
|
|
|
|
new wxMenuItem( sizes_menu, ID_PCB_USER_GRID_SETUP,
|
|
|
|
_( "User Grid Size" ),
|
|
|
|
_( "Adjust user grid" ) );
|
|
|
|
item->SetBitmap( grid_xpm );
|
|
|
|
sizes_menu->Append( item );
|
|
|
|
|
|
|
|
|
|
|
|
////////////////
|
|
|
|
// Menu Help: //
|
|
|
|
////////////////
|
|
|
|
wxMenu* helpMenu = new wxMenu;
|
|
|
|
|
|
|
|
// Contents
|
|
|
|
item = new wxMenuItem( helpMenu,
|
|
|
|
ID_GENERAL_HELP,
|
|
|
|
_( "&Contents" ),
|
|
|
|
_( "Open the pcbnew manual" ) );
|
|
|
|
item->SetBitmap( help_xpm );
|
|
|
|
helpMenu->Append( item );
|
|
|
|
|
|
|
|
|
|
|
|
// About pcbnew
|
|
|
|
item = new wxMenuItem( helpMenu,
|
|
|
|
ID_KICAD_ABOUT,
|
|
|
|
_( "&About pcbnew" ),
|
|
|
|
_( "About pcbnew PCB designer" ) );
|
|
|
|
item->SetBitmap( info_xpm );
|
|
|
|
helpMenu->Append( item );
|
|
|
|
|
|
|
|
//////////////////////
|
|
|
|
// Menu Display 3D: //
|
|
|
|
//////////////////////
|
|
|
|
wxMenu* Display3DMenu = new wxMenu;
|
|
|
|
item = new wxMenuItem( Display3DMenu,
|
|
|
|
ID_MENU_PCB_SHOW_3D_FRAME,
|
|
|
|
_( "3D Display" ),
|
|
|
|
_( "Show board in 3D viewer" ) );
|
|
|
|
item->SetBitmap( show_3d_xpm );
|
|
|
|
Display3DMenu->Append( item );
|
|
|
|
|
|
|
|
menuBar->Append( sizes_menu, _( "&Dimensions" ) );
|
|
|
|
menuBar->Append( Display3DMenu, _( "&3D Display" ) );
|
|
|
|
menuBar->Append( helpMenu, _( "&Help" ) );
|
|
|
|
|
|
|
|
// Associate the menu bar with the frame
|
|
|
|
SetMenuBar( menuBar );
|
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|