OpenCPN Partial API docs
|
Handles context menu events for the chart canvas. More...
#include <canvasMenu.h>
Public Member Functions | |
CanvasMenuHandler (ChartCanvas *parentCanvas, Route *selectedRoute, Track *selectedTrack, RoutePoint *selectedPoint, int selectedAIS_MMSI, void *selectedTCIndex) | |
void | CanvasPopupMenu (int x, int y, int seltype) |
void | PopupMenuHandler (wxCommandEvent &event) |
void | PrepareMenuItem (wxMenuItem *item) |
void | MenuPrepend1 (wxMenu *menu, int id, wxString label) |
void | MenuAppend1 (wxMenu *menu, int id, wxString label) |
void | SetMenuItemFont1 (wxMenuItem *item) |
Static Public Member Functions | |
static int | GetNextContextMenuId () |
Static Public Attributes | |
static wxFont | m_scaledFont |
Handles context menu events for the chart canvas.
Manages the creation and handling of context menus that appear when right-clicking on the chart canvas.
Definition at line 82 of file canvasMenu.h.
CanvasMenuHandler::CanvasMenuHandler | ( | ChartCanvas * | parentCanvas, |
Route * | selectedRoute, | ||
Track * | selectedTrack, | ||
RoutePoint * | selectedPoint, | ||
int | selectedAIS_MMSI, | ||
void * | selectedTCIndex | ||
) |
Definition at line 232 of file canvasMenu.cpp.
CanvasMenuHandler::~CanvasMenuHandler | ( | ) |
Definition at line 253 of file canvasMenu.cpp.
void CanvasMenuHandler::CanvasPopupMenu | ( | int | x, |
int | y, | ||
int | seltype | ||
) |
Definition at line 315 of file canvasMenu.cpp.
|
static |
Definition at line 224 of file canvasMenu.cpp.
void CanvasMenuHandler::MenuAppend1 | ( | wxMenu * | menu, |
int | id, | ||
wxString | label | ||
) |
Definition at line 285 of file canvasMenu.cpp.
void CanvasMenuHandler::MenuPrepend1 | ( | wxMenu * | menu, |
int | id, | ||
wxString | label | ||
) |
Definition at line 268 of file canvasMenu.cpp.
void CanvasMenuHandler::PopupMenuHandler | ( | wxCommandEvent & | event | ) |
Definition at line 1138 of file canvasMenu.cpp.
void CanvasMenuHandler::PrepareMenuItem | ( | wxMenuItem * | item | ) |
Definition at line 259 of file canvasMenu.cpp.
void CanvasMenuHandler::SetMenuItemFont1 | ( | wxMenuItem * | item | ) |
Definition at line 302 of file canvasMenu.cpp.
|
static |
Definition at line 98 of file canvasMenu.h.