KiCad PCB EDA Suite
pagelayout_editor/onrightclick.cpp File Reference

functions called on rigth click mouse event More...

#include <fctsys.h>
#include <class_drawpanel.h>
#include <pl_editor_id.h>
#include <pl_editor_frame.h>
#include <design_tree_frame.h>
#include <properties_frame.h>
#include <menus_helpers.h>
#include <worksheet_shape_builder.h>
#include <class_worksheet_dataitem.h>
#include <hotkeys.h>

Go to the source code of this file.

Functions

void AddNewItemsCommand (wxMenu *aMainMenu)
 

Detailed Description

functions called on rigth click mouse event

Definition in file pagelayout_editor/onrightclick.cpp.

Function Documentation

void AddNewItemsCommand ( wxMenu *  aMainMenu)

Definition at line 43 of file pagelayout_editor/onrightclick.cpp.

References AddMenuItem(), ID_POPUP_ITEM_ADD_BITMAP, ID_POPUP_ITEM_ADD_LINE, ID_POPUP_ITEM_ADD_RECT, ID_POPUP_ITEM_ADD_TEXT, ID_POPUP_ITEM_APPEND_PAGE_LAYOUT, and KiBitmap().

Referenced by PL_EDITOR_FRAME::OnRightClick(), and PL_EDITOR_FRAME::OnTreeRightClick().

44 {
45  AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_LINE, _( "Add Line" ),
46  KiBitmap( add_dashed_line_xpm ) );
47  AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_RECT, _( "Add Rectangle" ),
48  KiBitmap( add_rectangle_xpm ) );
49  AddMenuItem( aMainMenu, ID_POPUP_ITEM_ADD_TEXT, _( "Add Text" ),
50  KiBitmap( add_text_xpm ) );
52  _( "Append Page Layout Descr File" ),
53  KiBitmap( import_xpm ) );
55  _( "Add Bitmap" ),
56  KiBitmap( image_xpm ) );
57 }
wxMenuItem * AddMenuItem(wxMenu *aMenu, int aId, const wxString &aText, const wxBitmap &aImage, wxItemKind aType=wxITEM_NORMAL)
Function AddMenuItem is an inline helper function to create and insert a menu item with an icon into ...
Definition: bitmap.cpp:55
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Function KiBitmap constructs a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:36