V 10
1
LANG:1 21 fwInstallationRestart
PANEL,460 302 601 239 N "_3DFace" 1
"$action"
"/**

fwInstallationRestart.pnl

This panel informs the user that he should restart the project for changes to take effect. 
The user can choose to restart only the UI manager by clicking on the OK button. In this case only the UI manager is closed and restarted. 
It is advised to click on the Cancel button and to restart the whole project manually.

Required $-parameters:

none

Panels called from this panel:

none

*/

main()
{

	string action = $action;
	

	
	string infoInstall = 	\"For these changes to take effect you should now stop and restart the whole project. \\n\" +
	
							\"While the project is stopped, you should add the following manager to your project: \\n\" + 
							\"\\n\" +
							\"                 PVSS00ctrl -num X -f fwScripts.lst \\n\" +
							\"\\n\" +
							\"where X is an unused control manager number. Be aware that by default \\\"-num 1\\\" is \\n\" +
							\"already used by PVSS ! \\n\" +
							\"Under Linux, add the manager definition to the progs file. Under Windows, add it in \\n\" +
							\"the PVSS console. \\n\";
														
							//\"or you should open the fwInstallation/fwInstallationMain.pnl\\n \";

	string infoDelete = \"For changes to take effect you should restart the whole project.\\n \" +
						\"( you should do it manually)\\n \";
	
	string infoAddedLibrary = 	\"The library for the Installation Tool has been added to the config file.\\n\" +
								\"Please restart this user interface in order to use the tool.\\n\";

//SMS	Debug(\"received parameter: \" + action);
					
		switch(action)
		{
			case \"install\":	txtInfo.text = infoInstall;
							break;
			case \"delete\":	txtInfo.text = infoDelete;
							break;
			case \"library\":	txtInfo.text = infoAddedLibrary;
							btnOKToInstall.visible = TRUE;
							btnCancel.visible = FALSE;
		}					
}" 0
EE E E 1 -1 -1 0  30 20
"" 0 1
EE 2
"CBRef""1"
"EClose"E
""
DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
LAYER, 0 
1
LANG:1 6 Layer1
2 3
"txtInfo"
""
1 71 16 E E E 1 E 1 E N {0,0,0} E N "_Transparent" E E
 E E
4 0 0 0 0 0
EE E
0
1
LANG:1 0 
1
"dashclr"N "_Transparent"
E E 0 1 1 0 1 E U  0 E 73 18 303 34
0 2 0 "s" 0 0 0 192 0 0  73 18
 1
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
1
LANG:1 41 the message is set in the EventInitialize
13 0
"btnOKtoInstall"
""
1 389 198 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E E
1 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
387 196 482 226
T 
1
LANG:1 10 Restart UI
"main()
{
	
	int startManId;
	int valueToWrite;
	int closeManId;
	int i;
	float sinValue;
	
	closeManId = myManNum();
	startManId = closeManId + 1;
	

	 valueToWrite = convManIdToInt(UI_MAN, closeManId);

	 dpSet(\"_Managers.Exit:_original.._value\",valueToWrite);

	if(_WIN32)
	{
	 	system(\"start PVSS00NV -num \" + startManId + \" -p fwInstallation/fwInstallationMain.pnl -iconBar -menuBar\");
	}
	else
	{
		system(\"start PVSS00ui -num \" + startManId + \" -p fwInstallation/fwInstallationMain.pnl -iconBar -menuBar\");

	}

}" 0
 E E E
13 1
"btnCancel"
""
1 493 197 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E
2 0 0 0 0 0
EE E
0
1
LANG:1 0 
0
1
LANG:1 107 -microsoft windows-Arial-normal-r-normal-*-*-120-100-100-*-*-iso8859-1|-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial
0 ""
491 195 586 225
T 
1
LANG:1 5 Close
"main()
{
  PanelOff();
}" 0
 E E E
0
LAYER, 1 
1
LANG:1 6 Layer2
0
LAYER, 2 
1
LANG:1 6 Layer3
0
LAYER, 3 
1
LANG:1 6 Layer4
0
LAYER, 4 
1
LANG:1 6 Layer5
0
LAYER, 5 
1
LANG:1 6 Layer6
0
LAYER, 6 
1
LANG:1 6 Layer7
0
LAYER, 7 
1
LANG:1 6 Layer8
0
0