Show / Hide Table of Contents

Class FrameImpl

A standard implementation of the IFrame interface, used by CadFrame and the old SingleDocumentFrame

Inheritance
System.Object
FrameImpl
Implements
IFrame
ICommandHandler
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()
Namespace: CADability
Assembly: CADability.dll
Syntax
public abstract class FrameImpl : IFrame, ICommandHandler

Constructors

| Improve this Doc View Source

FrameImpl()

Declaration
public FrameImpl()
| 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
Type Name Description
Project pr
ModelView modelView
IControlCenter cc
| Improve this Doc View Source

FrameImpl(IControlCenter, ICanvas)

Declaration
public FrameImpl(IControlCenter cc, ICanvas canvas)
Parameters
Type Name Description
IControlCenter cc
ICanvas canvas

Fields

| Improve this Doc View Source

MainFrame

Declaration
public static IFrame MainFrame
Field Value
Type Description
IFrame

Properties

| Improve this Doc View Source

ActionStack

Declaration
public ActionStack ActionStack { get; }
Property Value
Type Description
ActionStack
| Improve this Doc View Source

ActiveAction

Implements ActiveAction.

Declaration
public Action ActiveAction { get; }
Property Value
Type Description
Action
| Improve this Doc View Source

ActiveView

Declaration
public IView ActiveView { get; set; }
Property Value
Type Description
IView
| Improve this Doc View Source

AllViews

Declaration
public IView[] AllViews { get; }
Property Value
Type Description
IView[]
| Improve this Doc View Source

CommandHandler

Returns the ICommandHandler of this frame. All menu and toolbar commands are routed through this command handler. If the tollbars and menus of CADability are used no action has to be taken. If you use your own menues or toolbars call OnCommand(String) and OnUpdateCommand(String, CommandState) for all commands concerning CADability.

Declaration
public ICommandHandler CommandHandler { get; }
Property Value
Type Description
ICommandHandler
| Improve this Doc View Source

ControlCenter

Declaration
public IControlCenter ControlCenter { get; set; }
Property Value
Type Description
IControlCenter
| Improve this Doc View Source

CurrentMenuId

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
Type Description
Settings
| Improve this Doc View Source

Project

Gets or sets the project handles in this farme

Declaration
public Project Project { get; set; }
Property Value
Type Description
Project
| Improve this Doc View Source

SelectedObjects

Declaration
public GeoObjectList SelectedObjects { get; set; }
Property Value
Type Description
GeoObjectList
| 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
Type Description
SnapPointFinder.SnapModes
| Improve this Doc View Source

SolidModellingMode

Declaration
public Make3D.SolidModellingMode SolidModellingMode { get; set; }
Property Value
Type Description
Make3D.SolidModellingMode
| Improve this Doc View Source

UIService

Declaration
public abstract IUIService UIService { get; }
Property Value
Type Description
IUIService

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
public void Dispose()
| 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
Type Name Description
IPropertyTreeView inThisView
IShowProperty thisItem
System.Boolean gotFocus
| 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
public void OnSnapGrid()
| 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
Type Name Description
KeyEventArgs e
| Improve this Doc View Source

PreProcessMouseWheel(MouseEventArgs)

Declaration
public bool PreProcessMouseWheel(MouseEventArgs e)
Parameters
Type Name Description
MouseEventArgs e
Returns
Type Description
System.Boolean
| Improve this Doc View Source

RemoveActiveAction()

Implements 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)

Implements 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

UpdateMRUMenu(String[])

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
Type Description
ActionStartedDelegate
| Improve this Doc View Source

ActionTerminatedEvent

Declaration
public event ActionTerminatedDelegate ActionTerminatedEvent
Event Type
Type Description
ActionTerminatedDelegate
| Improve this Doc View Source

ControlCenterCreatedEvent

Declaration
public event ControlCenterCreatedDelegate ControlCenterCreatedEvent
Event Type
Type Description
ControlCenterCreatedDelegate
| Improve this Doc View Source

FileNameChangedEvent

Declaration
public event FrameImpl.FileNameChangedDelegate FileNameChangedEvent
Event Type
Type Description
FrameImpl.FileNameChangedDelegate
| Improve this Doc View Source

FilterDragDrop

Declaration
public event FrameImpl.DragDropDelegate FilterDragDrop
Event Type
Type Description
FrameImpl.DragDropDelegate
| Improve this Doc View Source

FilterDragEnter

Declaration
public event FrameImpl.DragDropDelegate FilterDragEnter
Event Type
Type Description
FrameImpl.DragDropDelegate
| Improve this Doc View Source

FilterDragGetData

Declaration
public event FrameImpl.DragGetDataDelegate FilterDragGetData
Event Type
Type Description
FrameImpl.DragGetDataDelegate
| Improve this Doc View Source

FilterDragLeave

Declaration
public event FrameImpl.DragDropDelegate FilterDragLeave
Event Type
Type Description
FrameImpl.DragDropDelegate
| Improve this Doc View Source

FilterDragOver

Declaration
public event FrameImpl.DragDropDelegate FilterDragOver
Event Type
Type Description
FrameImpl.DragDropDelegate
| Improve this Doc View Source

ProcessCommandEvent

Declaration
public event ProcessCommandDelegate ProcessCommandEvent
Event Type
Type Description
ProcessCommandDelegate
| Improve this Doc View Source

ProcessContextMenuEvent

Declaration
public event ProcessContextMenuDelegate ProcessContextMenuEvent
Event Type
Type Description
ProcessContextMenuDelegate
| Improve this Doc View Source

ProjectClosedEvent

Declaration
public event ProjectClosedDelegate ProjectClosedEvent
Event Type
Type Description
ProjectClosedDelegate
| Improve this Doc View Source

ProjectOpenedEvent

Declaration
public event ProjectOpenedDelegate ProjectOpenedEvent
Event Type
Type Description
ProjectOpenedDelegate
| Improve this Doc View Source

SettingChangedEvent

Declaration
public event SettingChangedDelegate SettingChangedEvent
Event Type
Type Description
SettingChangedDelegate
| Improve this Doc View Source

UpdateCommandEvent

Declaration
public event UpdateCommandDelegate UpdateCommandEvent
Event Type
Type Description
UpdateCommandDelegate
| Improve this Doc View Source

UpdateContextMenuEvent

Declaration
public event UpdateContextMenuDelegate UpdateContextMenuEvent
Event Type
Type Description
UpdateContextMenuDelegate
| Improve this Doc View Source

ViewsChangedEvent

Declaration
public event ViewsChangedDelegate ViewsChangedEvent
Event Type
Type Description
ViewsChangedDelegate

Explicit Interface Implementations

| Improve this Doc View Source

IFrame.ContextMenuSource

Declaration
IPropertyEntry IFrame.ContextMenuSource { get; set; }
Returns
Type Description
IPropertyEntry
| Improve this Doc View Source

IFrame.GetPropertyDisplay(String)

Declaration
IPropertyPage IFrame.GetPropertyDisplay(string Name)
Parameters
Type Name Description
System.String Name
Returns
Type Description
IPropertyPage
| 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
Type Name Description
ICommandHandler target
System.String MenuId
CommandState CommandState
System.Boolean Processed
| 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

IFrame
ICommandHandler
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX