Rhino C++ API
8.17
|
#include <RhinoSdkDialog.h>
Public Member Functions | |
CRhinoTabbedDockBarDialog () | |
virtual const wchar_t * | Caption (void) const =0 |
Required overrides. More... | |
CRhinoUiDockBar * | DockBar (void) const |
Returns the dockbar that this tab is currently on. More... | |
void | OnDockBarPositionChanged (DWORD dwNewLocation) override |
bool | OnDockContextStartDrag (bool bStart) override |
Events, forwarded from CRhinoUiDockBar. More... | |
virtual void | OnShowDockBar (bool bShowDockBar) |
void | OnShowDockBar (IDockBarEventWatcher::ShowEventArgs args) override |
void | OnShowTab (const class CRhinoUiPanel &db, bool bShowTab, const ON_UUID &dockBarId) override |
void | OnStartTracking (bool bDoneTracking) override |
void | OnToggleDocking (bool bStart) override |
virtual ON_UUID | PlugInId (void) const =0 |
virtual ON_UUID | TabId (void) const =0 |
Generate a unique ID for your tab and return it here. More... | |
![]() | |
CRhinoDialog (LPCTSTR lpszTemplateName, CWnd *pParentWnd=nullptr) | |
Modal construct. More... | |
CRhinoDialog (UINT nIDTemplate, CWnd *pParentWnd=nullptr) | |
virtual | ~CRhinoDialog () |
CSize | CalcDialogSize (INT nResourceId) |
BOOL32 | Create (LPCTSTR lpszTemplateName, CWnd *pParentWnd=nullptr) override |
Modeless construct. More... | |
BOOL32 | Create (UINT nIDTemplate, CWnd *pParentWnd=nullptr) override |
UINT | DialogID () |
LPCTSTR | DialogStringID () |
unsigned int | DocumentSerialNumber () const |
virtual INT_PTR | DoModal () override |
bool | EnableDisplayCommands () const |
void | EnableSaveDialogPositionAndSize (bool bEnable=true, const wchar_t *wRegistryTitle=nullptr) |
bool | InDoModal () const |
bool | IsSaveDialogPositionAndSizeEnabled () const |
void | Localize () |
virtual void | OnColorButtonClicked (UINT nBtnID) |
Called by CRhColorButton if button clicked and color changed;. More... | |
void | OnRhinoHelpButton () |
Dialog Utilities. More... | |
bool | PushPickButton (bool hide_this_dialog) |
void | SetEnableDisplayCommands (bool b) |
void | SetEnableDisplayCommands (bool b, unsigned int documentRuntimeSerialNumber) |
![]() | |
CRhinoUiDialog (LPCTSTR lpszTemplateName=NULL, CWnd *pParentWnd=NULL) | |
CRhinoUiDialog (UINT nIDTemplate, CWnd *pParentWnd=NULL) | |
virtual | ~CRhinoUiDialog () |
bool | AddResizeControl (bool b) |
bool | AllowEscapeAndEnter () const |
void | CallOnUpdateUi () |
virtual BOOL32 | CreateIndirect (HGLOBAL hDialogTemplate, CWnd *pParentWnd=NULL) |
virtual BOOL32 | CreateIndirect (LPCDLGTEMPLATE lpDialogTemplate, CWnd *pParentWnd=NULL, void *lpDialogInit=NULL) |
AFX_MODULE_STATE * | DialogModuleState () |
UINT | DialogTemplateID () const |
LPCTSTR | DialogTemplateName () const |
void | DisableAllDialogItems () |
INT_PTR | DoModal () |
void | EnableAllDlgControls (bool bEnable) |
bool | EnableDialogItem (UINT nItemID, bool bEnable) |
int | EnableDialogItems (CUIntArray &nItemIDArray, bool bEnable) |
int | EnableDialogItems (UINT *nItemIDArray, int iArraySize, bool bEnable) |
virtual bool | ForwardLMouseDblClickMessagesToParent (CPoint point) |
virtual bool | ForwardLMouseDownMessagesToParent (CPoint point) |
bool | GetDlgItemRect (UINT nID, CRect &rc) |
bool | IsDialogItemEnabled (UINT nItemID) const |
bool | IsResizable () |
bool | IsRhinoFlagSet (rhino_dialog_flags flag) const |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
afx_msg HBRUSH | OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor) |
afx_msg void | OnDestroy () |
afx_msg void | OnGetMinMaxInfo (MINMAXINFO *lpMMI) |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
afx_msg LRESULT | OnNcHitTest (CPoint point) |
afx_msg void | OnPaint () |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
virtual void | OnUnhandledEscapeAndEnter (UINT nChar) |
virtual bool | OverrideAllowEscapeAndEnter (MSG *msg) |
void | PaintGradientTitleRect (CDC *pDC, LPRECT lpRect, const char *lpsCaption=0, bool bActiveWindow=TRUE) |
void | PaintGradientTitleRect (CDC *pDC, LPRECT lpRect, const wchar_t *lpsCaption=0, bool bActiveWindow=TRUE) |
void | RestoreAllDisabledDialogItems () |
int | RhinoFlags () const |
bool | SetAllowEscapeAndEnter (bool b) |
bool | SetDlgItemToolTip (CWnd *pWndCtrl, const char *lpsToolTip) |
bool | SetDlgItemToolTip (CWnd *pWndCtrl, const wchar_t *lpsToolTip) |
bool | SetDlgItemToolTip (UINT nID, const char *lpsToolTip) |
bool | SetDlgItemToolTip (UINT nID, const wchar_t *lpsToolTip) |
bool | SetMinSizeToCurrentSize () |
bool | SetRhinoFlag (rhino_dialog_flags flag, bool b) |
int | SetRhinoFlags (int iFlags) |
void | SetToolTipOwner (CWnd *pWnd) |
Ported from CRhinoUiDialog. More... | |
![]() | |
virtual | ~ITabbedDockBarEventWatcher () |
![]() | |
virtual | ~IDockBarEventWatcher () |
Static Public Member Functions | |
static void | CloseDockbarTab (const CRhinoDoc &doc, const ON_UUID &uuidPanelId, const ON_UUID *uuidDockBar) |
static void | CreateTabQuietly (const CRhinoDoc &doc, const ON_UUID &uuidPanelId) |
static CRhinoUiDockBar * | DockBarForTab (const CRhinoDoc &doc, const ON_UUID &uuidPanelId) |
static void | DockBarsForTab (const CRhinoDoc &doc, const ON_UUID &uuidPanelId, ON_SimpleArray< CRhinoUiDockBar * > &dockbars) |
static void | GetOpenTabIds (ON_SimpleArray< ON_UUID > &tabIds) |
static bool | IsTabVisible (const CRhinoDoc &doc, const ON_UUID &uuidPanelId, bool bIsSelectedTab=false) |
static void | OpenDockbarTab (const CRhinoDoc &doc, const ON_UUID &uuidPanelId, bool bSelect=true, const ON_UUID *uuidDockBar=nullptr) |
Utility functions to manipulate the tabs. More... | |
static bool | OpenTabOnDockBar (CRhinoUiDockBar *pDockbar, const CRhinoDoc &doc, const ON_UUID &uuidPanelId, bool makeSelectedTab=true) |
If nullptr == pDockbar, a new dockbar is created for the tab. More... | |
static bool | Register (CRuntimeClass *pRTC, LPCTSTR lpszTemplateName, UINT idi, AFX_MODULE_STATE *pms) |
static bool | Register (CRuntimeClass *pRTC, UINT nIDTemplate, UINT idi, AFX_MODULE_STATE *pms) |
static void | ShowDockbarTab (const CRhinoDoc &doc, const ON_UUID &uuidPanelId, bool bShow, bool bMakeSelected, const ON_UUID *uuidDockBar) |
![]() | |
static int | CheckSemiModalMessagePump () |
static bool | InDoSemiModal () |
Public Attributes | |
class CRhTabbedDockBarDialogSdkExtension * | m__rhino_dialog_sdk_extension |
ON_UUID | m_dockbar_id = ON_nil_uuid |
![]() | |
class CRhDialogSdkExtension * | m__rhino_dialog_sdk_extension |
![]() | |
bool | m_allow_auto_resize |
CRhinoUiLocalizeDialog | m_localize |
For internal use only. More... | |
CRhinoUiDialogItemResizer | m_Resize |
Protected Member Functions | |
virtual void * | EVF (const wchar_t *wszFunc, const void *pvData) |
virtual BOOL32 | OnInitDialog () override |
virtual BOOL32 | PreTranslateMessage (MSG *pMsg) override |
Overrides. More... | |
virtual LRESULT | WindowProc (UINT message, WPARAM wParam, LPARAM lParam) override |
![]() | |
virtual BOOL32 | ContinueModal () |
Implementation. More... | |
void | DoDataExchange (CDataExchange *pDX) override |
DDX/DDV support. More... | |
virtual void | OnCancel () |
virtual BOOL32 | OnCommand (WPARAM wParam, LPARAM lParam) |
override; ///<not an override on OSX More... | |
afx_msg void | OnDestroy () |
afx_msg BOOL32 | OnHelpInfo (HELPINFO *pHelpInfo) |
virtual void | OnOK () |
![]() | |
bool | _SetDlgItemToolTip (CWnd *pWndCtrl, LPCTSTR lpsToolTip) |
void | Construct () |
BOOL32 | RhCreateDlgIndirect (LPCDLGTEMPLATE lpDialogTemplate, CWnd *pParentWnd, HINSTANCE hInst) |
BOOL32 | RhCreateIndirect (HGLOBAL hDialogTemplate, CWnd *pParentWnd, HINSTANCE hInst) |
BOOL32 | RhCreateIndirect (LPCDLGTEMPLATE lpDialogTemplate, CWnd *pParentWnd, void *lpDialogInit, HINSTANCE hInst) |
INT_PTR | RhDoModal () |
Additional Inherited Members | |
![]() | |
enum | rhino_dialog_flags { is_dockbar_dialog = 1, force_32bit_rhino_flag = 0xFFFFFFFF } |
Reserved for future use. More... | |
![]() | |
enum | ShowEventArgs : int { ShowEventArgs::Show, ShowEventArgs::Hide, ShowEventArgs::HideOnDeactivate, ShowEventArgs::ShowOnDeactivate } |
OnShowDockbar event type More... | |
![]() | |
bool | m_activate_tool_tip |
bool | m_allow_escape_and_enter |
bool | m_bAddResizer |
UUID | m_plugin_id |
CRect | m_rcGripper |
CRect | m_rcPage |
int | m_rhino_flags |
CSize | m_sizeGripper |
CSize | m_sizeMax |
Defaults to 0,0 which means no clamp, if other than 0,0 use this instead. More... | |
CSize | m_sizeMin |
Defaults to 0,0 which means no clamp, if other than 0,0 use this instead. More... | |
UINT | m_template_name_id |
CString | m_template_name_string |
CToolTipCtrl | m_tool_tip |
CWnd * | m_tool_tip_owner |
Derive from this class for dialogs that will appear as a tabbed dock bar. Ensure you call one of the static Register functions during your CRhinoPlugIn::OnLoadPlugIn method. Note - your dialog must implement MFC dynamic creation using the DECLARE_DYNCREATE(MyDialog) macro in the header, and IMPLEMENT_DYNCREATE(MyDialog, CRhinoTabbedDockBarDialog) in the implementation file.
CRhinoTabbedDockBarDialog::CRhinoTabbedDockBarDialog | ( | ) |
|
pure virtual |
Required overrides.
|
static |
|
static |
CRhinoUiDockBar* CRhinoTabbedDockBarDialog::DockBar | ( | void | ) | const |
Returns the dockbar that this tab is currently on.
|
static |
|
static |
|
protectedvirtual |
|
static |
|
static |
|
overridevirtual |
Implements IDockBarEventWatcher.
|
overridevirtual |
Events, forwarded from CRhinoUiDockBar.
Implements IDockBarEventWatcher.
|
overrideprotectedvirtual |
Generated message map functions {{AFX_MSG(CRhinoDialog)
Reimplemented from CRhinoDialog.
|
virtual |
|
overridevirtual |
Implements IDockBarEventWatcher.
|
overridevirtual |
Implements ITabbedDockBarEventWatcher.
|
overridevirtual |
Implements IDockBarEventWatcher.
|
overridevirtual |
Implements IDockBarEventWatcher.
|
static |
Utility functions to manipulate the tabs.
|
static |
If nullptr == pDockbar, a new dockbar is created for the tab.
|
pure virtual |
|
overrideprotectedvirtual |
Overrides.
Reimplemented from CRhinoDialog.
|
static |
|
static |
Register your tab dialog with like this: CRhinoTabbedDockBarDialog::Register(RUNTIME_CLASS(CMyTabDialog), IID, IDI_ICON, AfxGetStaticModuleState());
|
static |
|
pure virtual |
Generate a unique ID for your tab and return it here.
|
overrideprotectedvirtual |
Reimplemented from CRhinoDialog.
class CRhTabbedDockBarDialogSdkExtension* CRhinoTabbedDockBarDialog::m__rhino_dialog_sdk_extension |
ON_UUID CRhinoTabbedDockBarDialog::m_dockbar_id = ON_nil_uuid |