Class FrameImpl
A standard implementation of the IFrame interface, used by CadFrame and the old SingleDocumentFrame
Inheritance
System.Object
FrameImpl
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
public abstract class FrameImpl : IFrame, ICommandHandler
Constructors
|
Improve this Doc
View Source
FrameImpl()
Declaration
|
Improve this Doc
View Source
FrameImpl(ICanvas)
Declaration
public FrameImpl(ICanvas canvas)
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
|
Improve this Doc
View Source
FrameImpl(Project, ModelView, IControlCenter)
Declaration
public FrameImpl(Project pr, ModelView modelView, IControlCenter cc)
Parameters
|
Improve this Doc
View Source
FrameImpl(IControlCenter, ICanvas)
Declaration
public FrameImpl(IControlCenter cc, ICanvas canvas)
Parameters
Fields
|
Improve this Doc
View Source
MainFrame
Declaration
public static IFrame MainFrame
Field Value
Properties
|
Improve this Doc
View Source
ActionStack
Declaration
public ActionStack ActionStack { get; }
Property Value
|
Improve this Doc
View Source
ActiveAction
Declaration
public Action ActiveAction { get; }
Property Value
|
Improve this Doc
View Source
ActiveView
Declaration
public IView ActiveView { get; set; }
Property Value
|
Improve this Doc
View Source
AllViews
Declaration
public IView[] AllViews { get; }
Property Value
|
Improve this Doc
View Source
CommandHandler
Declaration
public ICommandHandler CommandHandler { get; }
Property Value
|
Improve this Doc
View Source
ControlCenter
Declaration
public IControlCenter ControlCenter { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public string CurrentMenuId { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
DesignMode
Declaration
public bool DesignMode { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
GlobalSettings
Gets or set the GlobalSettings object (Settings). The global settings
are saved in the file CADability.GlobalSettings.bin. If you set a different settings object
you are responsible for saving the content.
Declaration
public Settings GlobalSettings { get; set; }
Property Value
|
Improve this Doc
View Source
Project
Gets or sets the project handles in this farme
Declaration
public Project Project { get; set; }
Property Value
|
Improve this Doc
View Source
SelectedObjects
Declaration
public GeoObjectList SelectedObjects { get; set; }
Property Value
|
Improve this Doc
View Source
SnapMode
The snapping mode for mouse movements when interactively constructing objects
Declaration
public SnapPointFinder.SnapModes SnapMode { get; set; }
Property Value
|
Improve this Doc
View Source
SolidModellingMode
Declaration
public Make3D.SolidModellingMode SolidModellingMode { get; set; }
Property Value
|
Improve this Doc
View Source
UIService
Declaration
public abstract IUIService UIService { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddView(IView)
Declaration
public void AddView(IView toAdd)
Parameters
| Type |
Name |
Description |
| IView |
toAdd |
|
|
Improve this Doc
View Source
AssureModelView()
Declaration
public void AssureModelView()
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
FindView(String)
Find a View with the provided name.
Declaration
public IView FindView(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
name of the View
|
Returns
| Type |
Description |
| IView |
The View, if found, null otherwise
|
|
Improve this Doc
View Source
FocusChanged(IPropertyTreeView, IShowProperty, Boolean)
Declaration
public void FocusChanged(IPropertyTreeView inThisView, IShowProperty thisItem, bool gotFocus)
Parameters
|
Improve this Doc
View Source
GenerateNewProject()
Generates a new project, saves the current project if necessary and sets the
new project as the current project.
Declaration
public bool GenerateNewProject()
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
GetActivePropertyDisplay()
Declaration
public string GetActivePropertyDisplay()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetBooleanSetting(String, Boolean)
Declaration
public bool GetBooleanSetting(string Name, bool Default)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
| System.Boolean |
Default |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
GetColorSetting(String, Color)
Declaration
public Color GetColorSetting(string Name, Color Default)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
| System.Drawing.Color |
Default |
|
Returns
| Type |
Description |
| System.Drawing.Color |
|
|
Improve this Doc
View Source
GetDoubleSetting(String, Double)
Declaration
public double GetDoubleSetting(string Name, double Default)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
| System.Double |
Default |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
GetIntSetting(String, Int32)
Declaration
public int GetIntSetting(string Name, int Default)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
| System.Int32 |
Default |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
GetSetting(String)
Declaration
public object GetSetting(string Name)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
Returns
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
GetStringSetting(String, String)
Declaration
public string GetStringSetting(string Name, string Default)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
| System.String |
Default |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
OnCommand(String)
Declaration
public virtual bool OnCommand(string MenuId)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
OnSnapCenter()
Declaration
public void OnSnapCenter()
|
Improve this Doc
View Source
OnSnapDropPoint()
Declaration
public void OnSnapDropPoint()
|
Improve this Doc
View Source
OnSnapGrid()
Declaration
|
Improve this Doc
View Source
OnSnapIntersections()
Declaration
public void OnSnapIntersections()
|
Improve this Doc
View Source
OnSnapObjectPoint()
Declaration
public void OnSnapObjectPoint()
|
Improve this Doc
View Source
OnSnapOrtho()
Declaration
public void OnSnapOrtho()
|
Improve this Doc
View Source
OnSnapSnapPoint()
Declaration
public void OnSnapSnapPoint()
|
Improve this Doc
View Source
OnSnapSurface()
Declaration
public void OnSnapSurface()
|
Improve this Doc
View Source
OnSnapTangentPoint()
Declaration
public void OnSnapTangentPoint()
|
Improve this Doc
View Source
OnUpdateCommand(String, CommandState)
Declaration
public virtual bool OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
| CommandState |
CommandState |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
PreProcessKeyDown(KeyEventArgs)
Declaration
public virtual void PreProcessKeyDown(KeyEventArgs e)
Parameters
|
Improve this Doc
View Source
PreProcessMouseWheel(MouseEventArgs)
Declaration
public bool PreProcessMouseWheel(MouseEventArgs e)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
RemoveActiveAction()
Declaration
public void RemoveActiveAction()
|
Improve this Doc
View Source
RemoveView(IView)
Declaration
public void RemoveView(IView toRemove)
Parameters
| Type |
Name |
Description |
| IView |
toRemove |
|
|
Improve this Doc
View Source
SetAction(Action)
Declaration
public void SetAction(Action Action)
Parameters
| Type |
Name |
Description |
| Action |
Action |
|
|
Improve this Doc
View Source
SetControlCenterFocus(String, String, Boolean, Boolean)
Declaration
public bool SetControlCenterFocus(string tabPageName, string resourceId, bool openEntry, bool popupCOntextMenu)
Parameters
| Type |
Name |
Description |
| System.String |
tabPageName |
|
| System.String |
resourceId |
|
| System.Boolean |
openEntry |
|
| System.Boolean |
popupCOntextMenu |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
SetProjectProperties()
Refreshes the properties in the propertypage
Declaration
public void SetProjectProperties()
|
Improve this Doc
View Source
ShowPropertyDisplay(String)
Declaration
public void ShowPropertyDisplay(string Name)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
|
Improve this Doc
View Source
Declaration
public virtual void UpdateMRUMenu(string[] mruFiles)
Parameters
| Type |
Name |
Description |
| System.String[] |
mruFiles |
|
Events
|
Improve this Doc
View Source
ActionStartedEvent
Declaration
public event ActionStartedDelegate ActionStartedEvent
Event Type
|
Improve this Doc
View Source
ActionTerminatedEvent
Declaration
public event ActionTerminatedDelegate ActionTerminatedEvent
Event Type
|
Improve this Doc
View Source
ControlCenterCreatedEvent
Declaration
public event ControlCenterCreatedDelegate ControlCenterCreatedEvent
Event Type
|
Improve this Doc
View Source
FileNameChangedEvent
Declaration
public event FrameImpl.FileNameChangedDelegate FileNameChangedEvent
Event Type
|
Improve this Doc
View Source
FilterDragDrop
Declaration
public event FrameImpl.DragDropDelegate FilterDragDrop
Event Type
|
Improve this Doc
View Source
FilterDragEnter
Declaration
public event FrameImpl.DragDropDelegate FilterDragEnter
Event Type
|
Improve this Doc
View Source
FilterDragGetData
Declaration
public event FrameImpl.DragGetDataDelegate FilterDragGetData
Event Type
|
Improve this Doc
View Source
FilterDragLeave
Declaration
public event FrameImpl.DragDropDelegate FilterDragLeave
Event Type
|
Improve this Doc
View Source
FilterDragOver
Declaration
public event FrameImpl.DragDropDelegate FilterDragOver
Event Type
|
Improve this Doc
View Source
ProcessCommandEvent
Declaration
public event ProcessCommandDelegate ProcessCommandEvent
Event Type
|
Improve this Doc
View Source
Declaration
public event ProcessContextMenuDelegate ProcessContextMenuEvent
Event Type
|
Improve this Doc
View Source
ProjectClosedEvent
Declaration
public event ProjectClosedDelegate ProjectClosedEvent
Event Type
|
Improve this Doc
View Source
ProjectOpenedEvent
Declaration
public event ProjectOpenedDelegate ProjectOpenedEvent
Event Type
|
Improve this Doc
View Source
SettingChangedEvent
Declaration
public event SettingChangedDelegate SettingChangedEvent
Event Type
|
Improve this Doc
View Source
UpdateCommandEvent
Declaration
public event UpdateCommandDelegate UpdateCommandEvent
Event Type
|
Improve this Doc
View Source
Declaration
public event UpdateContextMenuDelegate UpdateContextMenuEvent
Event Type
|
Improve this Doc
View Source
ViewsChangedEvent
Declaration
public event ViewsChangedDelegate ViewsChangedEvent
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
Declaration
IPropertyEntry IFrame.ContextMenuSource { get; set; }
Returns
|
Improve this Doc
View Source
IFrame.GetPropertyDisplay(String)
Declaration
IPropertyPage IFrame.GetPropertyDisplay(string Name)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
Returns
|
Improve this Doc
View Source
IFrame.ProcessContextMenu(ICommandHandler, String, ref Boolean)
Declaration
void IFrame.ProcessContextMenu(ICommandHandler target, string MenuId, ref bool Processed)
Parameters
| Type |
Name |
Description |
| ICommandHandler |
target |
|
| System.String |
MenuId |
|
| System.Boolean |
Processed |
|
|
Improve this Doc
View Source
IFrame.RaiseActionStartedEvent(Action)
Declaration
void IFrame.RaiseActionStartedEvent(Action action)
Parameters
| Type |
Name |
Description |
| Action |
action |
|
|
Improve this Doc
View Source
IFrame.RaiseActionTerminatedEvent(Action)
Declaration
void IFrame.RaiseActionTerminatedEvent(Action action)
Parameters
| Type |
Name |
Description |
| Action |
action |
|
|
Improve this Doc
View Source
IFrame.UpdateContextMenu(ICommandHandler, String, CommandState, ref Boolean)
Declaration
void IFrame.UpdateContextMenu(ICommandHandler target, string MenuId, CommandState CommandState, ref bool Processed)
Parameters
|
Improve this Doc
View Source
ICommandHandler.OnSelected(MenuWithHandler, Boolean)
Declaration
void ICommandHandler.OnSelected(MenuWithHandler selectedMenuItem, bool selected)
Parameters
| Type |
Name |
Description |
| MenuWithHandler |
selectedMenuItem |
|
| System.Boolean |
selected |
|
Implements