3ds Max C++ API Reference
Loading...
Searching...
No Matches
Editor_Interface Class Reference

#include <MXS_Editor_Interface.h>

Public Types

enum  OpenFlags {
  ofNone =0 , ofNoSaveIfDirty =1 , ofForceLoad =2 , ofPreserveUndo =4 ,
  ofQuiet =8
}
 

Public Member Functions

 Editor_Interface (Editor *instance)
 
virtual ~Editor_Interface ()
 
virtual void DeleteThis ()
 
virtual void SetTabWidth (int tabWidth)
 
virtual HWND GetMainHWND ()
 
virtual HWND GetEditHWND ()
 
virtual bool Run (HWND parentHWND)
 
virtual bool EditFile (const MCHAR *filename=nullptr, bool useOpenfilenameDialogIfFilenameNull=false, const MCHAR *initialPath=nullptr, int openToPos=-1, Editor_Interface::OpenFlags of=Editor_Interface::ofNone, bool unhide=true, bool setFocus=true)
 
virtual int NumberDocuments ()
 
virtual const MCHARGetDocumentFilename (int i)
 
virtual void SetDocumentFilename (int i, const MCHAR *file_name)
 
virtual const MCHARGetDocumentFilename ()
 
virtual void SetDocumentFilename (const MCHAR *file_name)
 
virtual bool IsEditorMessage (MSG &msg)
 
virtual bool CloseEditor ()
 
virtual void DeleteEditor ()
 
virtual void Show (bool show, bool setFocus=false)
 
virtual void SetTitle (const MCHAR *title)
 
virtual void SetProperty (const MCHAR *prop_name, const MCHAR *prop_value)
 
virtual const MCHARGetProperty (const MCHAR *prop_name)
 
virtual int GetIntProperty (const MCHAR *prop_name, int defaultValue=0)
 
virtual void SetCodePageAndCharacterSet (int code_page, int character_set)
 
virtual void GetCodePageAndCharacterSet (int &code_page, int &character_set)
 
virtual EditorStyleDef GetEditorStyleDef (const MCHAR *lang, int style)
 

Public Attributes

Editor * Editor_Instance
 

Member Enumeration Documentation

◆ OpenFlags

enum OpenFlags
Enumerator
ofNone 
ofNoSaveIfDirty 
ofForceLoad 
ofPreserveUndo 
ofQuiet 
40 {
41 ofNone=0, // Default
42 ofNoSaveIfDirty=1, // Suppress check for unsaved changes
43 ofForceLoad=2, // Reload file even if already in a buffer
44 ofPreserveUndo=4, // Do not delete undo history
45 ofQuiet=8 // Avoid "Could not open file" message
46 };
@ ofForceLoad
Definition: MXS_Editor_Interface.h:43
@ ofNone
Definition: MXS_Editor_Interface.h:41
@ ofNoSaveIfDirty
Definition: MXS_Editor_Interface.h:42
@ ofPreserveUndo
Definition: MXS_Editor_Interface.h:44
@ ofQuiet
Definition: MXS_Editor_Interface.h:45

Constructor & Destructor Documentation

◆ Editor_Interface()

Editor_Interface ( Editor *  instance)
inline
48: Editor_Instance(instance) {}
Editor * Editor_Instance
Definition: MXS_Editor_Interface.h:38

◆ ~Editor_Interface()

virtual ~Editor_Interface ( )
inlinevirtual
49{}

Member Function Documentation

◆ DeleteThis()

virtual void DeleteThis ( )
virtual

◆ SetTabWidth()

virtual void SetTabWidth ( int  tabWidth)
virtual

◆ GetMainHWND()

virtual HWND GetMainHWND ( )
virtual

◆ GetEditHWND()

virtual HWND GetEditHWND ( )
virtual

◆ Run()

virtual bool Run ( HWND  parentHWND)
virtual

◆ EditFile()

virtual bool EditFile ( const MCHAR filename = nullptr,
bool  useOpenfilenameDialogIfFilenameNull = false,
const MCHAR initialPath = nullptr,
int  openToPos = -1,
Editor_Interface::OpenFlags  of = Editor_Interface::ofNone,
bool  unhide = true,
bool  setFocus = true 
)
virtual

◆ NumberDocuments()

virtual int NumberDocuments ( )
virtual

◆ GetDocumentFilename() [1/2]

virtual const MCHAR * GetDocumentFilename ( int  i)
virtual

◆ SetDocumentFilename() [1/2]

virtual void SetDocumentFilename ( int  i,
const MCHAR file_name 
)
virtual

◆ GetDocumentFilename() [2/2]

virtual const MCHAR * GetDocumentFilename ( )
virtual

◆ SetDocumentFilename() [2/2]

virtual void SetDocumentFilename ( const MCHAR file_name)
virtual

◆ IsEditorMessage()

virtual bool IsEditorMessage ( MSG &  msg)
virtual

◆ CloseEditor()

virtual bool CloseEditor ( )
virtual

◆ DeleteEditor()

virtual void DeleteEditor ( )
virtual

◆ Show()

virtual void Show ( bool  show,
bool  setFocus = false 
)
virtual

◆ SetTitle()

virtual void SetTitle ( const MCHAR title)
virtual

◆ SetProperty()

virtual void SetProperty ( const MCHAR prop_name,
const MCHAR prop_value 
)
virtual

◆ GetProperty()

virtual const MCHAR * GetProperty ( const MCHAR prop_name)
virtual

◆ GetIntProperty()

virtual int GetIntProperty ( const MCHAR prop_name,
int  defaultValue = 0 
)
virtual

◆ SetCodePageAndCharacterSet()

virtual void SetCodePageAndCharacterSet ( int  code_page,
int  character_set 
)
virtual

◆ GetCodePageAndCharacterSet()

virtual void GetCodePageAndCharacterSet ( int code_page,
int character_set 
)
virtual

◆ GetEditorStyleDef()

virtual EditorStyleDef GetEditorStyleDef ( const MCHAR lang,
int  style 
)
virtual

Member Data Documentation

◆ Editor_Instance

Editor* Editor_Instance