MenuWindows.c File Reference

#include "MenuWindows.h"
#include "win_mem_alloc.h"

Include dependency graph for MenuWindows.c:

Go to the source code of this file.

Defines

#define MENUNAME   "wscilabE.mnu"
#define GRAPHMENUNAME   "wgscilabE.mnu"

Functions

LPMW GetMenuWinScilab (void)
MW InitMWStruct (void)
LPSTR GetszMenuName (void)
LPSTR GetszGraphMenuName (void)
void InitszMenuName (char *ScilabDirectory)
void InitszGraphMenuName (char *ScilabDirectory)

Variables

MW menuwin
static LPSTR szMenuName
static LPSTR szGraphMenuName


Define Documentation

#define GRAPHMENUNAME   "wgscilabE.mnu"

Definition at line 10 of file MenuWindows.c.

Referenced by InitszGraphMenuName().

#define MENUNAME   "wscilabE.mnu"

Definition at line 9 of file MenuWindows.c.

Referenced by InitszMenuName().


Function Documentation

LPMW GetMenuWinScilab ( void   ) 

Definition at line 17 of file MenuWindows.c.

References menuwin.

00018 {
00019         return &menuwin;
00020 }

LPSTR GetszGraphMenuName ( void   ) 

Definition at line 54 of file MenuWindows.c.

References szGraphMenuName.

Referenced by Console_Main(), InitWindowGraphDll(), and Windows_Main().

00055 {
00056         return szGraphMenuName;
00057 }

Here is the caller graph for this function:

LPSTR GetszMenuName ( void   ) 

Definition at line 49 of file MenuWindows.c.

References szMenuName.

Referenced by Console_Main(), and Windows_Main().

00050 {
00051         return szMenuName;
00052 }

Here is the caller graph for this function:

MW InitMWStruct ( void   ) 

Definition at line 22 of file MenuWindows.c.

References BUTTONMAX, tagMW::CodeLanguage, FALSE, tagMW::hButton, tagMW::hButtonID, tagMW::hMenu, tagMW::IsAIcon, tagMW::LockToolBar, tagMW::lpfnButtonProc, tagMW::lpfnMenuButtonProc, tagMW::lpProcInput, tagMW::macro, tagMW::macrobuf, tagMW::nButton, tagMW::nChar, tagMW::nCountMenu, NULL, tagMW::PositionX, tagMW::ShowToolBar, tagMW::szAnswer, tagMW::szMenuName, and tagMW::szPrompt.

Referenced by Console_Main(), and Windows_Main().

00023 {
00024         MW MWStruct;
00025 
00026         MWStruct.szMenuName=NULL;
00027         MWStruct.hMenu=NULL;
00028         MWStruct.macro=NULL;
00029         MWStruct.macrobuf=NULL;
00030         MWStruct.nCountMenu=0;
00031         MWStruct.lpProcInput=NULL;
00032         MWStruct.szPrompt=NULL;
00033         MWStruct.szAnswer=NULL;
00034         MWStruct.nChar=0;
00035         MWStruct.nButton=0;
00036         MWStruct.hButton[BUTTONMAX-1]=NULL;
00037         MWStruct.hButtonID[BUTTONMAX-1];
00038         MWStruct.lpfnMenuButtonProc=NULL;
00039         MWStruct.lpfnButtonProc[BUTTONMAX-1]=NULL;
00040         MWStruct.IsAIcon[BUTTONMAX-1]=FALSE;
00041         MWStruct.PositionX[BUTTONMAX-1]=0;
00042         MWStruct.ShowToolBar=FALSE;
00043         MWStruct.LockToolBar=FALSE;
00044         MWStruct.CodeLanguage=0;
00045         
00046         return MWStruct;
00047 }

Here is the caller graph for this function:

void InitszGraphMenuName ( char *  ScilabDirectory  ) 

Definition at line 65 of file MenuWindows.c.

References GRAPHMENUNAME, MALLOC, and szGraphMenuName.

Referenced by Console_Main(), InitWindowGraphDll(), and Windows_Main().

00066 {
00067         szGraphMenuName = (LPSTR) MALLOC (strlen (ScilabDirectory) + strlen (GRAPHMENUNAME) + 10);
00068         wsprintf(szGraphMenuName,"%s\\bin\\%s",ScilabDirectory, GRAPHMENUNAME);
00069 }

Here is the caller graph for this function:

void InitszMenuName ( char *  ScilabDirectory  ) 

Definition at line 59 of file MenuWindows.c.

References MALLOC, MENUNAME, and szMenuName.

Referenced by Windows_Main().

00060 {
00061         szMenuName = (LPSTR) MALLOC (strlen (ScilabDirectory) + strlen (MENUNAME) + 10);
00062         wsprintf(szMenuName,"%s\\bin\\%s",ScilabDirectory,MENUNAME);
00063 }

Here is the caller graph for this function:


Variable Documentation

MW menuwin

Definition at line 12 of file MenuWindows.c.

Referenced by Console_Main(), GetMenuWinScilab(), and Windows_Main().

LPSTR szGraphMenuName [static]

Definition at line 15 of file MenuWindows.c.

Referenced by GetszGraphMenuName(), and InitszGraphMenuName().

LPSTR szMenuName [static]

Definition at line 14 of file MenuWindows.c.

Referenced by GetszMenuName(), and InitszMenuName().


Generated on Sun Mar 4 15:57:46 2007 for Scilab [trunk] by  doxygen 1.5.1