Public Member Functions | Protected Attributes

ScriptEditor Class Reference

Search for all occurrences

#include <scripteditor.h>

List of all members.

Public Member Functions

  ScriptEditor (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
MCHAR * 
GetEditScript ()
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 MCHAR *  GetTitle ()
virtual Value GetValueTitle ()
virtual bool  OnExecute (HWND hwnd)
  return false to default handling
virtual bool  IsDisplayed ()
virtual IntTab GetDisabledMenuTab ()

Protected Attributes

WNDPROC  originalWndProc
IntTab  disable_menus
edit_window ew
HWND  hScript

Constructor & Destructor Documentation

ScriptEditor ( MCHAR *  ititle = NULL ) [inline]
                                         : 
            title(ititle), 
            ew(NULL), 
            hScript(NULL), 
            editScript(NULL) { }
virtual ScripterExport ~ScriptEditor ( ) [virtual]

Member Function Documentation

virtual LRESULT APIENTRY proc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
) [inline, virtual]
                                                                                          { 
                            return CallWindowProc(originalWndProc, hwnd, uMsg, wParam, lParam); 
                            }
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 ) [inline, virtual]
virtual ScripterExport bool OnFileOpen ( HWND  hwnd ) [virtual]
virtual ScripterExport bool OnClose ( HWND  hwnd ) [virtual]
virtual const MCHAR* GetTitle ( ) [inline, virtual]
{ return title; }
virtual Value* GetValueTitle ( ) [inline, virtual]
{ return (ew) ? ew->file_name : NULL; }
virtual bool OnExecute ( HWND  hwnd ) [inline, virtual]

return false to default handling

{ UNUSED_PARAM(hwnd); return false; } 
virtual bool IsDisplayed ( ) [inline, virtual]
{ return ew!=NULL; }
virtual IntTab& GetDisabledMenuTab ( ) [inline, virtual]

Member Data Documentation

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

ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor
ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor ScriptEditor