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

#include <C:/adskgit/3dsmax/3dsmax/3dswin/src/maxsdk/include/maxscript/editor/MXS_Editor_Interface.h>

Public Member Functions

 MXS_Editor_Interface ()
 ~MXS_Editor_Interface ()
HWND Editor_GetMainHWND ()
HWND Editor_GetEditHWND ()
bool Editor_Run (HWND parentHWND)
bool Editor_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)
int Editor_NumberDocuments ()
const MCHAREditor_GetDocumentFilename (int i)
void Editor_SetDocumentFilename (int i, const MCHAR *file_name)
const MCHAREditor_GetDocumentFilename ()
void Editor_SetDocumentFilename (const MCHAR *file_name)
bool Editor_IsEditorMessage (MSG &msg)
void Editor_SetTabWidth (int tabWidth)
bool Editor_CloseEditor ()
void Editor_DeleteEditor ()
void Editor_Show (bool show, bool setFocus=false)
void Editor_SetTitle (const MCHAR *title)
void Editor_SetProperty (const MCHAR *prop_name, const MCHAR *prop_value)
const MCHAREditor_GetProperty (const MCHAR *prop_name)
int Editor_GetIntProperty (const MCHAR *prop_name, int defaultValue=0)
void Editor_SetCodePageAndCharacterSet (int code_page, int character_set)
void Editor_GetCodePageAndCharacterSet (int &code_page, int &character_set)
EditorStyleDef Editor_GetEditorStyleDef (const MCHAR *lang, int style)
void MXS_DisableAccelerators ()
void MXS_EnableAccelerators ()
void MXS_EditorShowStateChanged (bool open)
void MXS_ShowListener ()
void MXS_PositionListenerAtEOF ()
void MXS_ExecuteString (const wchar_t *executeString, const MCHAR *file_name, unsigned int file_offset, unsigned int file_linenum)
void MXS_DoLoadProperties ()
MSTR MXS_GetLocalUserDataDirectory ()
void MXS_DisplayHelp (const MCHAR *word)
void MXS_DisplayHelp (bool displayPythonHelp, const MCHAR *word)
void MXS_NewRollout (HWND mainHWND, HWND editHWND)
void MXS_EditRollout (HWND mainHWND, HWND editHWND)
UINT GetSaveCodePage ()
UINT GetLoadCodePage ()
UINT GetSaveCodePageEx (bool allow_utf8)
UINT LegacyFilesCanBeStoredUsingUTF8 ()
void EditorActivated (bool activatedState)

Public Attributes

Editor_InterfaceEditor_Interface_Instance
MXSEditor_Interface3MXSEditor_Interface_Instance

Constructor & Destructor Documentation

◆ MXS_Editor_Interface()

MXSEditor_Interface3 * MXSEditor_Interface_Instance
Definition MXS_Editor_Interface.h:119
Editor_Interface * Editor_Interface_Instance
Definition MXS_Editor_Interface.h:118

◆ ~MXS_Editor_Interface()

~MXS_Editor_Interface ( )
inline
123 {
125 Editor_Interface_Instance->DeleteThis();
127 MXSEditor_Interface_Instance->DeleteThis();
128 }

Member Function Documentation

◆ Editor_GetMainHWND()

HWND Editor_GetMainHWND ( )
inline
130{ return Editor_Interface_Instance->GetMainHWND(); }

◆ Editor_GetEditHWND()

HWND Editor_GetEditHWND ( )
inline
131{ return Editor_Interface_Instance->GetEditHWND(); }

◆ Editor_Run()

bool Editor_Run ( HWND parentHWND)
inline
132{ return Editor_Interface_Instance->Run(parentHWND); }

◆ Editor_EditFile()

bool Editor_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 )
inline
136 { return Editor_Interface_Instance->EditFile(filename, useOpenfilenameDialogIfFilenameNull, initialPath, openToPos, of, unhide, setFocus); }

◆ Editor_NumberDocuments()

int Editor_NumberDocuments ( )
inline
138{ return Editor_Interface_Instance->NumberDocuments(); }

◆ Editor_GetDocumentFilename() [1/2]

const MCHAR * Editor_GetDocumentFilename ( int i)
inline
139{ return Editor_Interface_Instance->GetDocumentFilename(i); }

◆ Editor_SetDocumentFilename() [1/2]

void Editor_SetDocumentFilename ( int i,
const MCHAR * file_name )
inline
140{ Editor_Interface_Instance->SetDocumentFilename(i, file_name); }

◆ Editor_GetDocumentFilename() [2/2]

const MCHAR * Editor_GetDocumentFilename ( )
inline
141{ return Editor_Interface_Instance->GetDocumentFilename(); }

◆ Editor_SetDocumentFilename() [2/2]

void Editor_SetDocumentFilename ( const MCHAR * file_name)
inline
142{ Editor_Interface_Instance->SetDocumentFilename(file_name); }

◆ Editor_IsEditorMessage()

bool Editor_IsEditorMessage ( MSG & msg)
inline
143{ return Editor_Interface_Instance->IsEditorMessage(msg); }

◆ Editor_SetTabWidth()

void Editor_SetTabWidth ( int tabWidth)
inline
144{ Editor_Interface_Instance->SetTabWidth(tabWidth); }

◆ Editor_CloseEditor()

bool Editor_CloseEditor ( )
inline
145{ return Editor_Interface_Instance->CloseEditor(); }

◆ Editor_DeleteEditor()

void Editor_DeleteEditor ( )
inline
146{ Editor_Interface_Instance->DeleteEditor(); }

◆ Editor_Show()

void Editor_Show ( bool show,
bool setFocus = false )
inline
149 { Editor_Interface_Instance->Show(show, setFocus); }

◆ Editor_SetTitle()

void Editor_SetTitle ( const MCHAR * title)
inline
151 { Editor_Interface_Instance->SetTitle(title); }

◆ Editor_SetProperty()

void Editor_SetProperty ( const MCHAR * prop_name,
const MCHAR * prop_value )
inline
153 { Editor_Interface_Instance->SetProperty(prop_name, prop_value); }

◆ Editor_GetProperty()

const MCHAR * Editor_GetProperty ( const MCHAR * prop_name)
inline
155 { return Editor_Interface_Instance->GetProperty(prop_name); }

◆ Editor_GetIntProperty()

int Editor_GetIntProperty ( const MCHAR * prop_name,
int defaultValue = 0 )
inline
157 { return Editor_Interface_Instance->GetIntProperty(prop_name, defaultValue); }

◆ Editor_SetCodePageAndCharacterSet()

void Editor_SetCodePageAndCharacterSet ( int code_page,
int character_set )
inline
159 { Editor_Interface_Instance->SetCodePageAndCharacterSet(code_page, character_set); }

◆ Editor_GetCodePageAndCharacterSet()

void Editor_GetCodePageAndCharacterSet ( int & code_page,
int & character_set )
inline
161 { Editor_Interface_Instance->GetCodePageAndCharacterSet(code_page, character_set); }

◆ Editor_GetEditorStyleDef()

EditorStyleDef Editor_GetEditorStyleDef ( const MCHAR * lang,
int style )
inline
163 { return Editor_Interface_Instance->GetEditorStyleDef(lang, style); }

◆ MXS_DisableAccelerators()

void MXS_DisableAccelerators ( )
inline
166 { MXSEditor_Interface_Instance->DisableAccelerators(); }

◆ MXS_EnableAccelerators()

void MXS_EnableAccelerators ( )
inline
168 { MXSEditor_Interface_Instance->EnableAccelerators(); }

◆ MXS_EditorShowStateChanged()

void MXS_EditorShowStateChanged ( bool open)
inline
170 { MXSEditor_Interface_Instance->EditorShowStateChanged(open); }

◆ MXS_ShowListener()

void MXS_ShowListener ( )
inline
172 { MXSEditor_Interface_Instance->ShowListener(); }

◆ MXS_PositionListenerAtEOF()

void MXS_PositionListenerAtEOF ( )
inline
174 { MXSEditor_Interface_Instance->PositionListenerAtEOF(); }

◆ MXS_ExecuteString()

void MXS_ExecuteString ( const wchar_t * executeString,
const MCHAR * file_name,
unsigned int file_offset,
unsigned int file_linenum )
inline
176 { MXSEditor_Interface_Instance->ExecuteString(executeString, file_name, file_offset, file_linenum); }

◆ MXS_DoLoadProperties()

void MXS_DoLoadProperties ( )
inline
178 { MXSEditor_Interface_Instance->DoLoadProperties(); }

◆ MXS_GetLocalUserDataDirectory()

MSTR MXS_GetLocalUserDataDirectory ( )
inline
180 { return MXSEditor_Interface_Instance->GetLocalUserDataDirectory(); }

◆ MXS_DisplayHelp() [1/2]

void MXS_DisplayHelp ( const MCHAR * word)
inline
182 { ((MXSEditor_Interface*)MXSEditor_Interface_Instance)->DisplayHelp(word); }

◆ MXS_DisplayHelp() [2/2]

void MXS_DisplayHelp ( bool displayPythonHelp,
const MCHAR * word )
inline
184 { MXSEditor_Interface_Instance->DisplayHelp(displayPythonHelp, word); }

◆ MXS_NewRollout()

void MXS_NewRollout ( HWND mainHWND,
HWND editHWND )
inline
186 { MXSEditor_Interface_Instance->NewRollout(mainHWND, editHWND); }

◆ MXS_EditRollout()

void MXS_EditRollout ( HWND mainHWND,
HWND editHWND )
inline
188 { MXSEditor_Interface_Instance->EditRollout(mainHWND, editHWND); }

◆ GetSaveCodePage()

UINT GetSaveCodePage ( )
inline
191 { return MXSEditor_Interface_Instance->GetSaveCodePage(); }

◆ GetLoadCodePage()

UINT GetLoadCodePage ( )
inline
193 { return MXSEditor_Interface_Instance->GetLoadCodePage(); }

◆ GetSaveCodePageEx()

UINT GetSaveCodePageEx ( bool allow_utf8)
inline
196 { return MXSEditor_Interface_Instance->GetSaveCodePageEx(allow_utf8); }

◆ LegacyFilesCanBeStoredUsingUTF8()

UINT LegacyFilesCanBeStoredUsingUTF8 ( )
inline
198 { return MXSEditor_Interface_Instance->LegacyFilesCanBeStoredUsingUTF8(); }

◆ EditorActivated()

void EditorActivated ( bool activatedState)
inline
200 { MXSEditor_Interface_Instance->EditorActivated(activatedState); }

Member Data Documentation

◆ Editor_Interface_Instance

Editor_Interface* Editor_Interface_Instance

◆ MXSEditor_Interface_Instance

MXSEditor_Interface3* MXSEditor_Interface_Instance