#include <drawing_canvas.h>
Public Member Functions | |
DrawingCanvas () | |
Constructors. | |
DrawingCanvas (wxWindow *parent, wxWindowID id=SYMBOL_DRAWINGCANVAS_IDNAME, const wxPoint &pos=SYMBOL_DRAWINGCANVAS_POSITION, const wxSize &size=SYMBOL_DRAWINGCANVAS_SIZE, long style=SYMBOL_DRAWINGCANVAS_STYLE) | |
~DrawingCanvas () | |
bool | Create (wxWindow *parent, wxWindowID id=SYMBOL_DRAWINGCANVAS_IDNAME, const wxPoint &pos=SYMBOL_DRAWINGCANVAS_POSITION, const wxSize &size=SYMBOL_DRAWINGCANVAS_SIZE, long style=SYMBOL_DRAWINGCANVAS_STYLE) |
Creation. | |
void | CreateControls () |
Creates the controls and sizers. | |
void | OnSize (wxSizeEvent &event) |
wxEVT_SIZE event handler for ID_DRAWING_CANVAS_DIALOG | |
void | OnPaint (wxPaintEvent &event) |
wxEVT_PAINT event handler for ID_DRAWING_CANVAS_DIALOG | |
void | OnEraseBackground (wxEraseEvent &event) |
wxEVT_ERASE_BACKGROUND event handler for ID_DRAWING_CANVAS_DIALOG | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. | |
void | RefreshBackBitmap (void) |
void | RefreshSampleBitmap (wxBitmap *p_sample_bitmap) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? | |
Static Public Attributes | |
static const int | NUM_DIV_PER_SCREEN = 10 |
Protected Member Functions | |
void | DrawGrid (wxDC &dc) |
void | DrawBackground (wxDC &dc) |
void | DrawCursor (wxDC &dc) |
void | DrawTrigger (wxDC &dc) |
void | DrawSamples (wxDC &dc) |
Protected Attributes | |
wxBitmap * | m_p_back_bitmap |
wxBitmap * | m_p_buffer_bitmap |
DrawingPanel * | m_parent |
int | m_pix_X |
int | m_pix_Y |
bool | m_first_time |
|
Constructors. DrawingCanvas constructors |
|
|
|
|
|
Creation. DrawingCanvas creator |
|
Creates the controls and sizers. Control creation for DrawingCanvas |
|
|
|
|
|
|
|
|
|
|
|
Retrieves bitmap resources. DrawingCanvas member function declarations |
|
Retrieves icon resources. Get icon resources |
|
wxEVT_ERASE_BACKGROUND event handler for ID_DRAWING_CANVAS_DIALOG wxEVT_ERASE_BACKGROUND event handler for ID_DRAWING_CANVAS_DIALOG |
|
wxEVT_PAINT event handler for ID_DRAWING_CANVAS_DIALOG wxEVT_PAINT event handler for ID_DRAWING_CANVAS_DIALOG |
|
wxEVT_SIZE event handler for ID_DRAWING_CANVAS_DIALOG DrawingCanvas event handler declarations |
|
|
|
|
|
Should we show tooltips? Should we show tooltips? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|