|
wxShapeFramework
1.13.0 beta
|
Class encalpsulating a shape canvas' thumbnail. This GUI control derived from wxPanel can be associated with one shape canvas and can be used for previewing and manipulating of it. More...
#include <Thumbnail.h>
Public Types | |
| enum | IDS { ID_UPDATETIMER = wxID_HIGHEST + 1 , IDM_SHOWELEMENTS , IDM_SHOWCONNECTIONS } |
| Internally used IDs. More... | |
| enum | THUMBSTYLE { tsSHOW_ELEMENTS = 1 , tsSHOW_CONNECTIONS = 2 } |
| Thumbnail style. More... | |
Public Member Functions | |
| wxSFThumbnail (wxWindow *parent) | |
| Constructor. More... | |
| virtual | ~wxSFThumbnail () |
| Destructor. More... | |
| void | SetThumbStyle (int style) |
| Set the thumbnail style. More... | |
| int | GetThumbStyle () |
| Get current thumbnail style. More... | |
| void | SetCanvas (wxSFShapeCanvas *canvas) |
| Set canvas managed by the thumbnail. More... | |
| virtual void | DrawContent (wxDC &dc) |
| Implementation of drawing of the thumbnail's content. This virtual function can be overrided by the user for customization of the thumbnail appearance. More... | |
Protected Member Functions | |
| void | _OnPaint (wxPaintEvent &event) |
| Current thumbnail's style. More... | |
| wxSize | GetCanvasOffset () |
| Get offset (view start) of managed shape canvas defined in pixels. More... | |
Protected Attributes | |
| wxSFShapeCanvas * | m_pCanvas |
| wxTimer | m_UpdateTimer |
| Pointer to managed shape canvas. More... | |
| wxPoint | m_nPrevMousePos |
| Timer user for the thumbnail's update. More... | |
| double | m_nScale |
| Auxiliary varialble. More... | |
| int | m_nThumbStyle |
| Current thumbnail's scale. More... | |
Private Member Functions | |
| void | _OnEraseBackground (wxEraseEvent &event) |
| Internally used event handler. More... | |
| void | _OnMouseMove (wxMouseEvent &event) |
| Internally used event handler. More... | |
| void | _OnLeftDown (wxMouseEvent &event) |
| Internally used event handler. More... | |
| void | _OnRightDown (wxMouseEvent &event) |
| Internally used event handler. More... | |
| void | _OnTimer (wxTimerEvent &event) |
| Internally used event handler. More... | |
| void | _OnShowElements (wxCommandEvent &event) |
| Internally used event handler. More... | |
| void | _OnShowConnections (wxCommandEvent &event) |
| Internally used event handler. More... | |
| void | _OnUpdateShowElements (wxUpdateUIEvent &event) |
| Internally used event handler. More... | |
| void | _OnUpdateShowConnections (wxUpdateUIEvent &event) |
| Internally used event handler. More... | |
| DECLARE_EVENT_TABLE () | |
Class encalpsulating a shape canvas' thumbnail. This GUI control derived from wxPanel can be associated with one shape canvas and can be used for previewing and manipulating of it.
| enum wxSFThumbnail::IDS |
| wxSFThumbnail::wxSFThumbnail | ( | wxWindow * | parent | ) |
Constructor.
| parent | Pointer to parent window |
|
virtual |
Destructor.
|
private |
Internally used event handler.
|
private |
Internally used event handler.
|
private |
Internally used event handler.
|
protected |
Current thumbnail's style.
Internally used event handler.
|
private |
Internally used event handler.
|
private |
Internally used event handler.
|
private |
Internally used event handler.
|
private |
Internally used event handler.
|
private |
Internally used event handler.
|
private |
Internally used event handler.
|
private |
|
virtual |
Implementation of drawing of the thumbnail's content. This virtual function can be overrided by the user for customization of the thumbnail appearance.
| dc | Reference to output device context |
|
protected |
Get offset (view start) of managed shape canvas defined in pixels.
|
inline |
| void wxSFThumbnail::SetCanvas | ( | wxSFShapeCanvas * | canvas | ) |
Set canvas managed by the thumbnail.
| canvas | Pointer to shape canvas |
|
inline |
Set the thumbnail style.
| style | Style value composed of predefined flags |
|
protected |
Timer user for the thumbnail's update.
|
protected |
Auxiliary varialble.
|
protected |
Current thumbnail's scale.
|
protected |
|
protected |
Pointer to managed shape canvas.