2007-09-10 04:51:01 +00:00
|
|
|
/***************************************************/
|
2009-11-09 14:00:22 +00:00
|
|
|
/* tool_gerber.cpp: Build tool bars and main menu */
|
2007-09-10 04:51:01 +00:00
|
|
|
/***************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#include "fctsys.h"
|
2009-02-04 15:25:03 +00:00
|
|
|
#include "appl_wxstruct.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
#include "common.h"
|
2009-04-05 20:49:15 +00:00
|
|
|
#include "macros.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
#include "gerbview.h"
|
|
|
|
#include "pcbplot.h"
|
|
|
|
#include "protos.h"
|
|
|
|
#include "bitmaps.h"
|
2010-01-24 13:46:01 +00:00
|
|
|
#include "gerbview_id.h"
|
2007-09-10 04:51:01 +00:00
|
|
|
#include "hotkeys.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-11-09 14:00:22 +00:00
|
|
|
void WinEDA_GerberFrame::ReCreateMenuBar( void )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-01-17 20:31:19 +00:00
|
|
|
wxMenuBar *menuBar = GetMenuBar();
|
|
|
|
|
|
|
|
/* Destroy the existing menu bar so it can be rebuilt. This allows
|
|
|
|
* language changes of the menu text on the fly. */
|
|
|
|
if( menuBar )
|
|
|
|
SetMenuBar( NULL );
|
|
|
|
|
|
|
|
menuBar = new wxMenuBar();
|
|
|
|
|
|
|
|
wxMenu* filesMenu = new wxMenu;
|
2010-02-04 11:03:31 +00:00
|
|
|
filesMenu->Append( wxID_FILE, _( "Load Gerber File" ),
|
|
|
|
_( "Load a new Gerber file on the current layer" ),
|
2009-01-17 20:31:19 +00:00
|
|
|
FALSE );
|
|
|
|
|
2009-11-23 17:24:33 +00:00
|
|
|
filesMenu->Append( ID_APPEND_FILE, _( "Append Gerber File to Current Layer" ),
|
|
|
|
_( "Append a new Gerber file to the current layer" ),
|
2009-02-04 15:25:03 +00:00
|
|
|
FALSE );
|
2009-01-17 20:31:19 +00:00
|
|
|
|
|
|
|
filesMenu->Append( ID_MENU_INC_LAYER_AND_APPEND_FILE,
|
2009-02-04 15:25:03 +00:00
|
|
|
_( "Inc Layer and load Gerber file" ),
|
|
|
|
_( "Increment layer number, and Load Gerber file" ),
|
|
|
|
FALSE );
|
2009-01-17 20:31:19 +00:00
|
|
|
|
|
|
|
filesMenu->Append( ID_GERBVIEW_LOAD_DCODE_FILE, _( "Load DCodes" ),
|
2009-02-04 15:25:03 +00:00
|
|
|
_( "Load D-Codes File" ), FALSE );
|
2007-06-05 12:10:51 +00:00
|
|
|
#if 0
|
2009-11-23 17:24:33 +00:00
|
|
|
filesMenu->Append( ID_GERBVIEW_LOAD_DRILL_FILE, _( "Load EXCELLON Drill File" ),
|
2009-02-04 15:25:03 +00:00
|
|
|
_( "Load excellon drill file" ), FALSE );
|
2007-06-05 12:10:51 +00:00
|
|
|
#endif
|
|
|
|
|
2009-11-23 17:24:33 +00:00
|
|
|
filesMenu->Append( ID_NEW_BOARD, _( "&Clear All" ),
|
2009-02-04 15:25:03 +00:00
|
|
|
_( "Clear all layers" ), FALSE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-01-17 20:31:19 +00:00
|
|
|
filesMenu->AppendSeparator();
|
|
|
|
filesMenu->Append( ID_GERBVIEW_EXPORT_TO_PCBNEW, _( "&Export to Pcbnew" ),
|
2009-02-04 15:25:03 +00:00
|
|
|
_( "Export data in pcbnew format" ), FALSE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#if 0
|
2009-01-17 20:31:19 +00:00
|
|
|
filesMenu->AppendSeparator();
|
2009-09-22 12:27:57 +00:00
|
|
|
filesMenu->Append( ID_SAVE_BOARD, _( "&Save Layers" ),
|
2009-02-04 15:25:03 +00:00
|
|
|
_( "Save current layers (GERBER format)" ), FALSE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-09-22 12:27:57 +00:00
|
|
|
filesMenu->Append( ID_SAVE_BOARD_AS, _( "Save Layers As..." ),
|
2009-02-04 15:25:03 +00:00
|
|
|
_( "Save current layers as.." ), FALSE );
|
2009-01-17 20:31:19 +00:00
|
|
|
#endif
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-01-17 20:31:19 +00:00
|
|
|
filesMenu->AppendSeparator();
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-01-17 20:31:19 +00:00
|
|
|
filesMenu->Append( ID_GEN_PRINT, _( "P&rint" ), _( "Print gerber" ) );
|
|
|
|
filesMenu->Append( ID_GEN_PLOT, _( "Plot" ),
|
|
|
|
_( "Plotting in various formats" ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-01-17 20:31:19 +00:00
|
|
|
filesMenu->AppendSeparator();
|
|
|
|
filesMenu->Append( ID_EXIT, _( "E&xit" ), _( "Quit Gerbview" ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-01-17 20:31:19 +00:00
|
|
|
wxGetApp().m_fileHistory.AddFilesToMenu( filesMenu );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2010-02-03 14:05:17 +00:00
|
|
|
// Configuration and preferences:
|
2009-01-17 20:31:19 +00:00
|
|
|
wxMenu* configmenu = new wxMenu;
|
2009-02-21 15:12:26 +00:00
|
|
|
ADD_MENUITEM_WITH_HELP( configmenu, ID_CONFIG_REQ, _( "&File Ext" ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Set files extensions" ), config_xpm );
|
2010-02-03 14:05:17 +00:00
|
|
|
ADD_MENUITEM_WITH_HELP( configmenu, ID_MENU_GERBVIEW_SHOW_HIDE_LAYERS_MANAGER_DIALOG,
|
|
|
|
_( "Hide &Layers Manager" ),
|
|
|
|
_( "Show/hide the layers manager toolbar" ),
|
|
|
|
layers_manager_xpm );
|
2009-01-17 20:31:19 +00:00
|
|
|
ADD_MENUITEM_WITH_HELP( configmenu, ID_OPTIONS_SETUP, _( "&Options" ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Select general options" ), preference_xpm );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2010-02-03 14:05:17 +00:00
|
|
|
ADD_MENUITEM_WITH_HELP( configmenu, ID_GERBVIEW_DISPLAY_OPTIONS_SETUP,
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Display" ),
|
|
|
|
_( "Select how items are displayed" ),
|
2009-01-17 20:31:19 +00:00
|
|
|
display_options_xpm );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-01-18 10:15:10 +00:00
|
|
|
wxGetApp().AddMenuLanguageList( configmenu );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-01-17 20:31:19 +00:00
|
|
|
configmenu->AppendSeparator();
|
|
|
|
ADD_MENUITEM_WITH_HELP( configmenu, ID_CONFIG_SAVE, _( "&Save Setup" ),
|
|
|
|
_( "Save application preferences" ),
|
|
|
|
save_setup_xpm );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-01-17 20:31:19 +00:00
|
|
|
configmenu->AppendSeparator();
|
|
|
|
AddHotkeyConfigMenu( configmenu );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-01-17 20:31:19 +00:00
|
|
|
wxMenu* miscellaneous_menu = new wxMenu;
|
|
|
|
ADD_MENUITEM_WITH_HELP( miscellaneous_menu, ID_GERBVIEW_SHOW_LIST_DCODES,
|
|
|
|
_( "&List DCodes" ),
|
|
|
|
_( "List and edit D-codes" ), show_dcodenumber_xpm );
|
|
|
|
ADD_MENUITEM_WITH_HELP( miscellaneous_menu, ID_GERBVIEW_SHOW_SOURCE,
|
2009-02-21 15:12:26 +00:00
|
|
|
_( "&Show Source" ),
|
2009-01-17 20:31:19 +00:00
|
|
|
_( "Show source file for the current layer" ),
|
|
|
|
tools_xpm );
|
|
|
|
miscellaneous_menu->AppendSeparator();
|
2010-02-03 14:05:17 +00:00
|
|
|
ADD_MENUITEM_WITH_HELP( miscellaneous_menu, ID_GERBVIEW_GLOBAL_DELETE,
|
2009-02-21 15:12:26 +00:00
|
|
|
_( "&Delete Layer" ),
|
2009-01-17 20:31:19 +00:00
|
|
|
_( "Delete current layer" ), general_deletions_xpm );
|
|
|
|
|
|
|
|
// Menu Help:
|
|
|
|
wxMenu* helpMenu = new wxMenu;
|
|
|
|
ADD_MENUITEM_WITH_HELP( helpMenu, ID_GENERAL_HELP, _( "&Contents" ),
|
|
|
|
_( "Open the gerbview manual" ), help_xpm );
|
2009-02-21 15:12:26 +00:00
|
|
|
ADD_MENUITEM_WITH_HELP( helpMenu, ID_KICAD_ABOUT, _( "&About Gerbview" ),
|
2009-02-04 15:25:03 +00:00
|
|
|
_( "About gerbview gerber and drill viewer" ),
|
|
|
|
info_xpm );
|
2009-01-17 20:31:19 +00:00
|
|
|
|
|
|
|
menuBar->Append( filesMenu, _( "&File" ) );
|
|
|
|
menuBar->Append( configmenu, _( "&Preferences" ) );
|
|
|
|
menuBar->Append( miscellaneous_menu, _( "&Miscellaneous" ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-11-09 14:00:22 +00:00
|
|
|
// menuBar->Append(drill_menu, _("&Drill"));
|
2009-01-17 20:31:19 +00:00
|
|
|
menuBar->Append( helpMenu, _( "&Help" ) );
|
|
|
|
|
|
|
|
// Associate the menu bar with the frame
|
|
|
|
SetMenuBar( menuBar );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-09-10 04:51:01 +00:00
|
|
|
void WinEDA_GerberFrame::ReCreateHToolbar( void )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2007-09-10 04:51:01 +00:00
|
|
|
int layer = 0;
|
2008-11-08 06:44:07 +00:00
|
|
|
GERBER* gerber = NULL;
|
2007-09-10 04:51:01 +00:00
|
|
|
int ii;
|
|
|
|
wxString msg;
|
|
|
|
|
|
|
|
// delete and recreate the toolbar
|
2009-11-09 14:00:22 +00:00
|
|
|
if( m_HToolBar != NULL )
|
2007-09-10 04:51:01 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
if( GetScreen() )
|
|
|
|
{
|
2008-04-17 16:25:29 +00:00
|
|
|
layer = GetScreen()->m_Active_Layer;
|
2008-11-08 06:44:07 +00:00
|
|
|
gerber = g_GERBER_List[layer];
|
2007-09-10 04:51:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
m_HToolBar = new WinEDA_Toolbar( TOOLBAR_MAIN, this, ID_H_TOOLBAR, TRUE );
|
2009-11-09 14:00:22 +00:00
|
|
|
|
2007-09-10 04:51:01 +00:00
|
|
|
// Set up toolbar
|
2009-05-02 07:35:04 +00:00
|
|
|
m_HToolBar->AddTool( ID_NEW_BOARD, wxEmptyString,
|
|
|
|
wxBitmap( new_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "New world" ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2010-02-04 11:03:31 +00:00
|
|
|
m_HToolBar->AddTool( wxID_FILE, wxEmptyString,
|
2009-05-02 07:35:04 +00:00
|
|
|
wxBitmap( open_xpm ),
|
2009-01-07 15:59:49 +00:00
|
|
|
_( "Open existing Layer" ) );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
m_HToolBar->AddSeparator();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2010-01-19 20:43:44 +00:00
|
|
|
m_HToolBar->AddTool( wxID_UNDO, wxEmptyString,
|
2009-05-02 07:35:04 +00:00
|
|
|
wxBitmap( undelete_xpm ),
|
2009-01-07 15:59:49 +00:00
|
|
|
_( "Undelete" ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
m_HToolBar->AddSeparator();
|
2009-05-02 07:35:04 +00:00
|
|
|
m_HToolBar->AddTool( ID_GEN_PRINT, wxEmptyString,
|
|
|
|
wxBitmap( print_button ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Print world" ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
m_HToolBar->AddSeparator();
|
2008-10-03 13:13:21 +00:00
|
|
|
msg = AddHotkeyName( _( "Zoom in" ), s_Gerbview_Hokeys_Descr, HK_ZOOM_IN );
|
2009-05-02 07:35:04 +00:00
|
|
|
m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString,
|
|
|
|
wxBitmap( zoom_in_xpm ),
|
2007-09-10 04:51:01 +00:00
|
|
|
msg );
|
|
|
|
|
2008-10-03 13:13:21 +00:00
|
|
|
msg = AddHotkeyName( _( "Zoom out" ), s_Gerbview_Hokeys_Descr, HK_ZOOM_OUT );
|
2009-05-02 07:35:04 +00:00
|
|
|
m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString,
|
|
|
|
wxBitmap( zoom_out_xpm ),
|
2007-09-10 04:51:01 +00:00
|
|
|
msg );
|
|
|
|
|
2009-04-29 17:09:00 +00:00
|
|
|
msg = AddHotkeyName( _( "Redraw view" ), s_Gerbview_Hokeys_Descr,
|
|
|
|
HK_ZOOM_REDRAW );
|
2009-05-02 07:35:04 +00:00
|
|
|
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
|
|
|
|
wxBitmap( zoom_redraw_xpm ),
|
2007-09-10 04:51:01 +00:00
|
|
|
msg );
|
|
|
|
|
2009-11-09 14:00:22 +00:00
|
|
|
msg = AddHotkeyName( _( "Zoom auto" ), s_Gerbview_Hokeys_Descr,
|
|
|
|
HK_ZOOM_AUTO );
|
2009-05-02 07:35:04 +00:00
|
|
|
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
|
|
|
|
wxBitmap( zoom_auto_xpm ),
|
2009-09-27 14:09:26 +00:00
|
|
|
msg );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
m_HToolBar->AddSeparator();
|
2009-05-02 07:35:04 +00:00
|
|
|
m_HToolBar->AddTool( ID_FIND_ITEMS, wxEmptyString,
|
|
|
|
wxBitmap( find_xpm ),
|
2009-01-07 15:59:49 +00:00
|
|
|
_( "Find D-codes" ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
wxArrayString choices;
|
|
|
|
m_HToolBar->AddSeparator();
|
|
|
|
for( ii = 0; ii < 32; ii++ )
|
|
|
|
{
|
|
|
|
wxString msg;
|
|
|
|
msg = _( "Layer " ); msg << ii + 1;
|
|
|
|
choices.Add( msg );
|
|
|
|
}
|
|
|
|
|
2009-04-29 17:09:00 +00:00
|
|
|
m_SelLayerBox = new WinEDAChoiceBox( m_HToolBar,
|
2010-02-03 14:05:17 +00:00
|
|
|
ID_TOOLBARH_GERBVIEW_SELECT_LAYER,
|
2009-04-29 17:09:00 +00:00
|
|
|
wxDefaultPosition, wxSize( 150, -1 ),
|
|
|
|
choices );
|
2010-02-04 09:08:08 +00:00
|
|
|
m_SelLayerBox->SetSelection( getActiveLayer() );
|
2007-09-10 04:51:01 +00:00
|
|
|
m_HToolBar->AddControl( m_SelLayerBox );
|
|
|
|
|
|
|
|
m_HToolBar->AddSeparator();
|
|
|
|
choices.Clear();
|
|
|
|
choices.Add( _( "No tool" ) );
|
2009-11-09 14:00:22 +00:00
|
|
|
|
2007-09-10 04:51:01 +00:00
|
|
|
for( ii = 0; ii < MAX_TOOLS; ii++ )
|
|
|
|
{
|
|
|
|
wxString msg;
|
|
|
|
msg = _( "Tool " ); msg << ii + FIRST_DCODE;
|
|
|
|
choices.Add( msg );
|
|
|
|
}
|
|
|
|
|
2009-04-29 17:09:00 +00:00
|
|
|
m_SelLayerTool = new WinEDAChoiceBox( m_HToolBar,
|
|
|
|
ID_TOOLBARH_GERBER_SELECT_TOOL,
|
|
|
|
wxDefaultPosition, wxSize( 150, -1 ),
|
|
|
|
choices );
|
2007-09-10 04:51:01 +00:00
|
|
|
m_HToolBar->AddControl( m_SelLayerTool );
|
|
|
|
|
|
|
|
|
|
|
|
// after adding the buttons to the toolbar, must call Realize() to reflect
|
|
|
|
// the changes
|
|
|
|
m_HToolBar->Realize();
|
|
|
|
SetToolbars();
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-11-02 09:58:42 +00:00
|
|
|
/**
|
2009-11-09 14:00:22 +00:00
|
|
|
* Create or update the right vertical toolbar
|
|
|
|
*/
|
|
|
|
void WinEDA_GerberFrame::ReCreateVToolbar( void )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2007-09-10 04:51:01 +00:00
|
|
|
if( m_VToolBar )
|
|
|
|
return;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-09-10 04:51:01 +00:00
|
|
|
m_VToolBar = new WinEDA_Toolbar( TOOLBAR_TOOL, this, ID_V_TOOLBAR, FALSE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2007-09-10 04:51:01 +00:00
|
|
|
// Set up toolbar
|
2009-05-02 07:35:04 +00:00
|
|
|
m_VToolBar->AddTool( ID_NO_SELECT_BUTT, wxEmptyString,
|
|
|
|
wxBitmap( cursor_xpm ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
m_VToolBar->ToggleTool( ID_NO_SELECT_BUTT, TRUE );
|
|
|
|
m_VToolBar->AddSeparator();
|
2010-02-03 14:05:17 +00:00
|
|
|
m_VToolBar->AddTool( ID_GERBVIEW_DELETE_ITEM_BUTT, wxEmptyString,
|
2009-01-07 15:59:49 +00:00
|
|
|
wxBitmap( delete_body_xpm ),
|
|
|
|
_( "Delete items" ) );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
m_VToolBar->Realize();
|
|
|
|
SetToolbars();
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-11-02 09:58:42 +00:00
|
|
|
/**
|
2009-11-09 14:00:22 +00:00
|
|
|
* Create or update the left vertical toolbar (option toolbar
|
|
|
|
*/
|
|
|
|
void WinEDA_GerberFrame::ReCreateOptToolbar( void )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2007-09-10 04:51:01 +00:00
|
|
|
if( m_OptionsToolBar )
|
|
|
|
return;
|
|
|
|
|
2009-11-09 14:00:22 +00:00
|
|
|
// creation of tool bar options
|
2009-04-29 17:09:00 +00:00
|
|
|
m_OptionsToolBar = new WinEDA_Toolbar( TOOLBAR_OPTION, this,
|
|
|
|
ID_OPT_TOOLBAR, FALSE );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-05-02 07:35:04 +00:00
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_GRID, wxEmptyString,
|
|
|
|
wxBitmap( grid_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Turn grid off" ), wxITEM_CHECK );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-05-02 07:35:04 +00:00
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_POLAR_COORD, wxEmptyString,
|
2009-04-29 17:09:00 +00:00
|
|
|
wxBitmap( polar_coord_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Turn polar coordinate on" ), wxITEM_CHECK );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_UNIT_INCH, wxEmptyString,
|
2008-12-08 15:27:13 +00:00
|
|
|
wxBitmap( unit_inch_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Set units to inches" ), wxITEM_CHECK );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_UNIT_MM, wxEmptyString,
|
2008-12-08 15:27:13 +00:00
|
|
|
wxBitmap( unit_mm_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Set units to millimeters" ), wxITEM_CHECK );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-05-02 07:35:04 +00:00
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SELECT_CURSOR, wxEmptyString,
|
2009-04-29 17:09:00 +00:00
|
|
|
wxBitmap( cursor_shape_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Change cursor shape" ), wxITEM_CHECK );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
|
|
|
m_OptionsToolBar->AddSeparator();
|
2009-05-02 07:35:04 +00:00
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_PADS_SKETCH, wxEmptyString,
|
2009-01-07 15:59:49 +00:00
|
|
|
wxBitmap( pad_sketch_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Show spots in sketch mode" ), wxITEM_CHECK );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-05-02 07:35:04 +00:00
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_TRACKS_SKETCH, wxEmptyString,
|
2009-01-07 15:59:49 +00:00
|
|
|
wxBitmap( showtrack_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Show lines in sketch mode" ), wxITEM_CHECK );
|
2007-11-02 09:58:42 +00:00
|
|
|
|
2009-05-02 07:35:04 +00:00
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_POLYGONS_SKETCH, wxEmptyString,
|
2009-01-07 15:59:49 +00:00
|
|
|
wxBitmap( opt_show_polygon_xpm ),
|
2009-11-09 14:00:22 +00:00
|
|
|
_( "Show polygons in sketch mode" ),
|
|
|
|
wxITEM_CHECK );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2009-05-02 07:35:04 +00:00
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_DCODES, wxEmptyString,
|
2009-01-07 15:59:49 +00:00
|
|
|
wxBitmap( show_dcodenumber_xpm ),
|
2009-05-02 07:35:04 +00:00
|
|
|
_( "Show dcode number" ), wxITEM_CHECK );
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2010-02-03 14:05:17 +00:00
|
|
|
// Tools to show/hide toolbars:
|
|
|
|
m_OptionsToolBar->AddSeparator();
|
|
|
|
m_OptionsToolBar->AddTool( ID_TB_OPTIONS_SHOW_LAYERS_MANAGER_VERTICAL_TOOLBAR,
|
|
|
|
wxEmptyString,
|
|
|
|
wxBitmap( layers_manager_xpm ),
|
|
|
|
_(
|
|
|
|
"Show/hide the layers manager toolbar" ),
|
|
|
|
wxITEM_CHECK );
|
2010-02-03 17:38:32 +00:00
|
|
|
|
2007-09-10 04:51:01 +00:00
|
|
|
|
2010-02-03 14:05:17 +00:00
|
|
|
m_OptionsToolBar->Realize();
|
2007-09-10 04:51:01 +00:00
|
|
|
SetToolbars();
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|