|
OpenCPN Partial API docs
|
Generic toolbar implementation in pure wxWidgets adapted from wxToolBarSimple (deprecated). More...
#include <toolbar.h>
Public Member Functions | |
| ocpnToolBarSimple (ocpnFloatingToolbarDialog *parent, wxWindowID winid, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxNO_BORDER, int orient=wxTB_HORIZONTAL) | |
| bool | Create (ocpnFloatingToolbarDialog *parent, wxWindowID winid, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxNO_BORDER, int orient=wxTB_HORIZONTAL) |
| virtual void | SetToggledBackgroundColour (wxColour c) |
| virtual void | SetBackgroundColour (wxColour c) |
| virtual wxColour | GetBackgroundColour () |
| virtual void | SetColorScheme (ColorScheme cs) |
| bool | OnMouseEvent (wxMouseEvent &event, wxPoint &position) |
| void | OnToolTipTimerEvent (wxTimerEvent &event) |
| void | OnToolTipOffTimerEvent (wxTimerEvent &event) |
| wxToolBarToolBase * | AddTool (int toolid, const wxString &label, const wxBitmap &bitmap, const wxBitmap &bmpDisabled, wxItemKind kind=wxITEM_NORMAL, const wxString &shortHelp="", const wxString &longHelp="", wxObject *data=NULL) |
| wxToolBarToolBase * | AddTool (int toolid, const wxString &label, const wxBitmap &bitmap, const wxString &shortHelp="", wxItemKind kind=wxITEM_NORMAL) |
| wxToolBarToolBase * | InsertTool (size_t pos, int id, const wxString &label, const wxBitmap &bitmap, const wxBitmap &bmpDisabled, wxItemKind kind, const wxString &shortHelp, const wxString &longHelp, wxObject *clientData) |
| wxToolBarToolBase * | InsertTool (size_t pos, wxToolBarToolBase *tool) |
| virtual bool | OnLeftClick (int toolid, bool toggleDown) |
| virtual void | OnRightClick (int toolid, long x, long y) |
| virtual void | DoPluginToolUp () |
| bool | IsDirty () |
| void | SetDirty (bool value) |
| size_t | GetToolsCount () const |
| void | SetToolShowCount (int count) |
| int | GetToolShowCount () |
| int | GetNoRowsOrColumns () |
| int | GetLineCount () |
| int | GetVisibleToolCount () |
| void | SetToolNormalBitmapEx (wxToolBarToolBase *tool, const wxString &iconname) |
| void | SetToolNormalBitmapSVG (wxToolBarToolBase *tool, wxString fileSVG) |
| void | EnableRolloverBitmaps (bool enable) |
| wxBitmap & | GetBitmap () |
| virtual wxControl * | FindControl (int toolid) |
| virtual wxToolBarToolBase * | AddSeparator () |
| virtual wxToolBarToolBase * | InsertSeparator (size_t pos) |
| virtual wxToolBarToolBase * | RemoveTool (int toolid) |
| virtual bool | DeleteToolByPos (size_t pos) |
| virtual bool | DeleteTool (int toolid) |
| virtual void | ClearTools () |
| virtual bool | Realize () |
| virtual void | EnableTool (int toolid, bool enable) |
| virtual void | ToggleTool (int toolid, bool toggle) |
| virtual void | SetToolBitmaps (int toolid, wxBitmap *bmp, wxBitmap *bmpRollover) |
| virtual void | SetToolBitmapsSVG (int id, wxString fileSVGNormal, wxString fileSVGRollover, wxString fileSVGToggled) |
| void | InvalidateBitmaps () |
| wxBitmap & | CreateBitmap (double display_scale=1.0) |
| virtual wxObject * | GetToolClientData (int toolid) const |
| virtual void | SetToolClientData (int toolid, wxObject *clientData) |
| virtual int | GetToolPos (int id) const |
| virtual bool | GetToolState (int toolid) const |
| virtual bool | GetToolEnabled (int toolid) const |
| virtual void | SetToolShortHelp (int toolid, const wxString &helpString) |
| virtual wxString | GetToolShortHelp (int toolid) const |
| virtual void | SetToolLongHelp (int toolid, const wxString &helpString) |
| virtual wxString | GetToolLongHelp (int toolid) const |
| virtual void | SetToolTooltipHiViz (int id, bool b_hiviz) |
| virtual void | SetSizeFactor (float factor) |
| void | SetMaxRowsCols (int rows, int cols) |
| int | GetMaxRows () const |
| int | GetMaxCols () const |
| virtual void | SetToolBitmapSize (const wxSize &size) |
| virtual wxSize | GetToolBitmapSize () const |
| virtual wxSize | GetToolSize () const |
| virtual wxRect | GetToolRect (int tool_id) |
| wxToolBarToolBase * | FindToolForPosition (wxCoord x, wxCoord y) |
| wxToolBarToolBase * | FindById (int toolid) const |
| bool | IsVertical () const |
| void | HideTooltip () |
| void | KillTooltip () |
| void | EnableTooltips () |
| void | DisableTooltips () |
Public Attributes | |
| wxToolBarToolsList | m_tools |
| ocpnFloatingToolbarDialog * | m_parentContainer |
| int | m_maxRows |
| int | m_maxCols |
| wxCoord | m_defaultWidth |
| wxCoord | m_defaultHeight |
| wxCoord | m_maxWidth |
| wxCoord | m_maxHeight |
Protected Member Functions | |
| void | Init () |
| virtual wxToolBarToolBase * | DoAddTool (int toolid, const wxString &label, const wxBitmap &bitmap, const wxBitmap &bmpDisabled, wxItemKind kind, const wxString &shortHelp="", const wxString &longHelp="", wxObject *clientData=NULL, wxCoord xPos=wxDefaultCoord, wxCoord yPos=wxDefaultCoord) |
| virtual bool | DoInsertTool (size_t pos, wxToolBarToolBase *tool) |
| virtual bool | DoDeleteTool (size_t pos, wxToolBarToolBase *tool) |
| virtual void | DoEnableTool (wxToolBarToolBase *tool, bool enable) |
| virtual void | DoToggleTool (wxToolBarToolBase *tool, bool toggle) |
| virtual wxToolBarToolBase * | CreateTool (int winid, const wxString &label, const wxBitmap &bmpNormal, const wxBitmap &bmpDisabled, wxItemKind kind, wxObject *clientData, const wxString &shortHelp, const wxString &longHelp) |
| void | DrawTool (wxToolBarToolBase *tool) |
| virtual void | DrawTool (wxDC &dc, wxToolBarToolBase *tool) |
| void | CreateToolBitmap (wxToolBarToolBase *toolBase) |
Protected Attributes | |
| bool | m_dirty |
| int | m_currentRowsOrColumns |
| int | m_LineCount |
| int | m_pressedTool |
| int | m_currentTool |
| wxCoord | m_lastX |
| wxCoord | m_lastY |
| wxCoord | m_xPos |
| wxCoord | m_yPos |
| wxColour | m_toggle_bg_color |
| wxColour | m_toolOutlineColour |
| wxColour | m_background_color |
| ocpnToolBarTool * | m_last_ro_tool |
| ColorScheme | m_currentColorScheme |
| wxTimer | m_tooltip_timer |
| int | m_one_shot |
| wxTimer | m_tooltipoff_timer |
| int | m_tooltip_off |
| bool | m_btooltip_show |
| bool | m_btoolbar_is_zooming |
| ocpnStyle::Style * | m_style |
| int | m_orient |
| float | m_sizefactor |
| int | m_last_plugin_down_id |
| bool | m_leftDown |
| int | m_nShowTools |
| bool | m_tbenableRolloverBitmaps |
| wxBitmap | m_bitmap |
Generic toolbar implementation in pure wxWidgets adapted from wxToolBarSimple (deprecated).
|
inline |
|
virtual |
Definition at line 1006 of file toolbar.cpp.
|
virtual |
Definition at line 1851 of file toolbar.cpp.
| wxToolBarToolBase * ocpnToolBarSimple::AddTool | ( | int | toolid, |
| const wxString & | label, | ||
| const wxBitmap & | bitmap, | ||
| const wxBitmap & | bmpDisabled, | ||
| wxItemKind | kind = wxITEM_NORMAL, |
||
| const wxString & | shortHelp = "", |
||
| const wxString & | longHelp = "", |
||
| wxObject * | data = NULL |
||
| ) |
Definition at line 872 of file toolbar.cpp.
|
inline |
|
virtual |
Definition at line 1799 of file toolbar.cpp.
| bool ocpnToolBarSimple::Create | ( | ocpnFloatingToolbarDialog * | parent, |
| wxWindowID | winid, | ||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize, |
||
| long | style = wxNO_BORDER, |
||
| int | orient = wxTB_HORIZONTAL |
||
| ) |
Definition at line 975 of file toolbar.cpp.
| wxBitmap & ocpnToolBarSimple::CreateBitmap | ( | double | display_scale = 1.0 | ) |
Definition at line 1175 of file toolbar.cpp.
|
protectedvirtual |
Definition at line 799 of file toolbar.cpp.
|
protected |
Definition at line 1352 of file toolbar.cpp.
|
virtual |
Definition at line 1832 of file toolbar.cpp.
|
virtual |
Definition at line 1816 of file toolbar.cpp.
| void ocpnToolBarSimple::DisableTooltips | ( | ) |
Definition at line 1014 of file toolbar.cpp.
|
protectedvirtual |
Definition at line 856 of file toolbar.cpp.
|
protectedvirtual |
Definition at line 963 of file toolbar.cpp.
|
protectedvirtual |
Definition at line 1683 of file toolbar.cpp.
|
protectedvirtual |
Definition at line 917 of file toolbar.cpp.
|
virtual |
Definition at line 1981 of file toolbar.cpp.
|
protectedvirtual |
Definition at line 1689 of file toolbar.cpp.
|
protectedvirtual |
Definition at line 1471 of file toolbar.cpp.
|
inline |
|
virtual |
Definition at line 1777 of file toolbar.cpp.
| void ocpnToolBarSimple::EnableTooltips | ( | ) |
Definition at line 1008 of file toolbar.cpp.
| wxToolBarToolBase * ocpnToolBarSimple::FindById | ( | int | toolid | ) | const |
Definition at line 1919 of file toolbar.cpp.
|
virtual |
Definition at line 1900 of file toolbar.cpp.
| wxToolBarToolBase * ocpnToolBarSimple::FindToolForPosition | ( | wxCoord | x, |
| wxCoord | y | ||
| ) |
Definition at line 1641 of file toolbar.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 1764 of file toolbar.cpp.
|
virtual |
Definition at line 1747 of file toolbar.cpp.
|
virtual |
Definition at line 1707 of file toolbar.cpp.
|
virtual |
Definition at line 1728 of file toolbar.cpp.
|
virtual |
Definition at line 1668 of file toolbar.cpp.
|
virtual |
Definition at line 1700 of file toolbar.cpp.
|
inlinevirtual |
|
virtual |
Definition at line 1740 of file toolbar.cpp.
| int ocpnToolBarSimple::GetVisibleToolCount | ( | ) |
Definition at line 1805 of file toolbar.cpp.
| void ocpnToolBarSimple::HideTooltip | ( | ) |
Definition at line 1030 of file toolbar.cpp.
|
protected |
Definition at line 823 of file toolbar.cpp.
|
virtual |
Definition at line 1855 of file toolbar.cpp.
| wxToolBarToolBase * ocpnToolBarSimple::InsertTool | ( | size_t | pos, |
| int | id, | ||
| const wxString & | label, | ||
| const wxBitmap & | bitmap, | ||
| const wxBitmap & | bmpDisabled, | ||
| wxItemKind | kind, | ||
| const wxString & | shortHelp, | ||
| const wxString & | longHelp, | ||
| wxObject * | clientData | ||
| ) |
Definition at line 883 of file toolbar.cpp.
| wxToolBarToolBase * ocpnToolBarSimple::InsertTool | ( | size_t | pos, |
| wxToolBarToolBase * | tool | ||
| ) |
Definition at line 902 of file toolbar.cpp.
| void ocpnToolBarSimple::InvalidateBitmaps | ( | ) |
Definition at line 1658 of file toolbar.cpp.
| void ocpnToolBarSimple::KillTooltip | ( | ) |
Definition at line 1020 of file toolbar.cpp.
|
virtual |
Definition at line 1942 of file toolbar.cpp.
| bool ocpnToolBarSimple::OnMouseEvent | ( | wxMouseEvent & | event, |
| wxPoint & | position | ||
| ) |
Definition at line 1248 of file toolbar.cpp.
|
virtual |
Definition at line 1958 of file toolbar.cpp.
| void ocpnToolBarSimple::OnToolTipOffTimerEvent | ( | wxTimerEvent & | event | ) |
Definition at line 1244 of file toolbar.cpp.
| void ocpnToolBarSimple::OnToolTipTimerEvent | ( | wxTimerEvent & | event | ) |
Definition at line 1208 of file toolbar.cpp.
|
virtual |
Definition at line 1045 of file toolbar.cpp.
|
virtual |
Definition at line 1875 of file toolbar.cpp.
|
inlinevirtual |
|
virtual |
Definition at line 1036 of file toolbar.cpp.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 2025 of file toolbar.cpp.
|
inlinevirtual |
|
virtual |
Definition at line 2063 of file toolbar.cpp.
|
virtual |
Definition at line 1769 of file toolbar.cpp.
|
virtual |
Definition at line 1721 of file toolbar.cpp.
| void ocpnToolBarSimple::SetToolNormalBitmapEx | ( | wxToolBarToolBase * | tool, |
| const wxString & | iconname | ||
| ) |
Definition at line 2000 of file toolbar.cpp.
| void ocpnToolBarSimple::SetToolNormalBitmapSVG | ( | wxToolBarToolBase * | tool, |
| wxString | fileSVG | ||
| ) |
Definition at line 2015 of file toolbar.cpp.
|
virtual |
Definition at line 1714 of file toolbar.cpp.
|
inline |
|
virtual |
Definition at line 1792 of file toolbar.cpp.
|
virtual |
Definition at line 1754 of file toolbar.cpp.
|
protected |
|
protected |
| ocpnFloatingToolbarDialog* ocpnToolBarSimple::m_parentContainer |
|
protected |
|
protected |