wxMaxima
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MyApp Class Reference
Inheritance diagram for MyApp:
Inheritance graph
[legend]
Collaboration diagram for MyApp:
Collaboration graph
[legend]

Public Member Functions

virtual bool OnInit ()
 
virtual int OnRun ()
 
virtual int OnExit ()
 
void NewWindow (const wxString &file={}, bool evalOnStartup=false, bool exitAfterEval=false, unsigned char *wxmData=NULL, size_t wxmLen=0)
 
void OnFileMenu (wxCommandEvent &ev)
 
virtual void MacNewFile ()
 
void BecomeLogTarget ()
 
virtual void MacOpenFile (const wxString &file)
 
int OnRun () override
 

Static Public Member Functions

static void DelistTopLevelWindow (wxMaxima *)
 

Public Attributes

wxLocale m_locale
 
Catch::Session catchSession
 

Static Public Attributes

static std::vector< wxMaxima * > m_topLevelWindows
 

Member Function Documentation

◆ NewWindow()

void MyApp::NewWindow ( const wxString &  file = {},
bool  evalOnStartup = false,
bool  exitAfterEval = false,
unsigned char *  wxmData = NULL,
size_t  wxmLen = 0 
)

Create a new window

The mac platform insists in making all windows of an application share the same process. On the other platforms we create a separate process for every wxMaxima session instead which means that each process uses the NewWindow() function only once.

Parameters
fileThe file name
evalOnStartupDo we want to execute the file automatically, but halt on error?
exitAfterEvalDo we want to close the window after the file has been evaluated?
wxmDataA .wxm file containing the initial worksheet contents
wxmLenThe length of wxmData

The documentation for this class was generated from the following files: