ScriptEditor Class Reference

ScriptEditor Class Reference

#include <scripteditor.h>

Public Member Functions

 ScriptEditor (const MCHAR *ititle=NULL)
 
virtual ScripterExport ~ScriptEditor ()
 
virtual LRESULT APIENTRY proc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
virtual ScripterExport HWND DisplayWindow (HWND hParent=NULL)
 
virtual ScripterExport void CloseWindow (bool notify=false)
 
virtual ScripterExport const MCHARGetEditScript ()
 
virtual ScripterExport void SetEditScript (const MCHAR *script)
 
virtual ScripterExport void SetTitle (const MCHAR *t)
 
virtual ScripterExport bool OnFileOpen (HWND hwnd)
 
virtual ScripterExport bool OnClose (HWND hwnd)
 
virtual const MCHARGetTitle ()
 
virtual ValueGetValueTitle ()
 
virtual bool OnExecute (HWND hwnd)
 return false to default handling More...
 
virtual bool IsDisplayed ()
 
virtual IntTabGetDisabledMenuTab ()
 

Protected Attributes

WNDPROC originalWndProc
 
IntTab disable_menus
 
edit_windowew
 
HWND hScript
 

Constructor & Destructor Documentation

ScriptEditor ( const MCHAR ititle = NULL)
inline
30  :
31  title(ititle),
32  ew(NULL),
33  hScript(NULL) { }
#define NULL
Definition: autoptr.h:18
edit_window * ew
Definition: scripteditor.h:26
HWND hScript
Definition: scripteditor.h:27
virtual ScripterExport ~ScriptEditor ( )
virtual

Member Function Documentation

virtual LRESULT APIENTRY proc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
inlinevirtual
37  {
38  return CallWindowProc(originalWndProc, hwnd, uMsg, wParam, lParam);
39  }
WNDPROC originalWndProc
Definition: scripteditor.h:24
virtual ScripterExport HWND DisplayWindow ( HWND  hParent = NULL)
virtual
virtual ScripterExport void CloseWindow ( bool  notify = false)
virtual
virtual ScripterExport const MCHAR* GetEditScript ( )
virtual
virtual ScripterExport void SetEditScript ( const MCHAR script)
virtual
virtual ScripterExport void SetTitle ( const MCHAR t)
inlinevirtual
45 { title = t; }
virtual ScripterExport bool OnFileOpen ( HWND  hwnd)
virtual
virtual ScripterExport bool OnClose ( HWND  hwnd)
virtual
virtual const MCHAR* GetTitle ( )
inlinevirtual
49 { return title; }
virtual Value* GetValueTitle ( )
inlinevirtual
50 { return (ew) ? ew->file_name : NULL; }
Value * file_name
Definition: listener.h:155
#define NULL
Definition: autoptr.h:18
edit_window * ew
Definition: scripteditor.h:26
virtual bool OnExecute ( HWND  hwnd)
inlinevirtual

return false to default handling

52 { UNUSED_PARAM(hwnd); return false; }
#define UNUSED_PARAM(x)
Definition: BuildWarnings.h:18
virtual bool IsDisplayed ( )
inlinevirtual
53 { return ew!=NULL; }
#define NULL
Definition: autoptr.h:18
edit_window * ew
Definition: scripteditor.h:26
virtual IntTab& GetDisabledMenuTab ( )
inlinevirtual
54 { return disable_menus; }
IntTab disable_menus
Definition: scripteditor.h:25

Member Data Documentation

WNDPROC originalWndProc
protected
IntTab disable_menus
protected
edit_window* ew
protected
HWND hScript
protected