Check-in [6f99172144]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add base for the about command in the launcher.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6f9917214421f69c6e7abdcc19906922dab479be
User & Date: stephanie.gawroriski 2019-05-21 17:09:46
Context
2019-05-21
17:13
Go to temporary directory when making fonts. check-in: 92f677da0d user: stephanie.gawroriski tags: trunk
17:09
Add base for the about command in the launcher. check-in: 6f99172144 user: stephanie.gawroriski tags: trunk
2019-05-20
12:35
In the list demo set some alternative fonts. check-in: 7508c51408 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/kmid/launcher/cc/squirreljme/runtime/launcher/ui/MidletMain.java.

43
44
45
46
47
48
49








50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
...
232
233
234
235
236
237
238
239

240
241
242
243
244
245
246
...
385
386
387
388
389
390
391
392
393
394
395
396
397
398





399
400
401
402
	 * {@squirreljme.property cc.squirreljme.autolaunch=program This specifies
	 * the program that should be auto-launched once the program list has been
	 * processed.}
	 */
	public static final String AUTOLAUNCH_PROPERTY =
		"cc.squirreljme.autolaunch";
	








	/** Timer used to reschedule things. */
	static final Timer _TIMER =
		new Timer("LauncherRecoverThread");
	
	/** The display that is being used. */
	static volatile Display _MAIN_DISPLAY;
	
	/** The list which contains all of the programs we can run. */
	protected final List programlist =
		new List("SquirrelJME Launcher", Choice.IMPLICIT);
	
	/** Command used to exit the launcher and terminate. */
	protected final Command exitcommand =
		new Command("Exit", Command.EXIT, 1);
	
	/** The active task. */
	private final __ActiveTask__ _activetask =
		new __ActiveTask__();
	
	/** The programs which are mapped to the list. */
	private volatile __Program__[] _programs;
	
................................................................................
		// We will need to access our own display to build the list of
		// MIDlets that could actually be ran
		Display disp = Display.getDisplay(this);
		_MAIN_DISPLAY = disp;
		
		// Add commands to the list so things can be done with them
		List programlist = this.programlist;
		programlist.addCommand(this.exitcommand);

		
		// Need to handle commands and such
		__CommandHandler__ ch = new __CommandHandler__();
		programlist.setCommandListener(ch);
		
		// Used to ensure the splash screen is visible for at least a second
		long endtime = System.nanoTime() + 1_000_000_000L;
................................................................................
					return;
				
				// Call other launcher
				MidletMain.this.__launch(seldx);
			}
			
			// Exiting the VM?
			else if (__c == MidletMain.this.exitcommand)
			{
				// Indication that something is happening
				MidletMain.this.programlist.setTitle("Exiting...");
				
				System.exit(0);
			}





		}
	}
}








>
>
>
>
>
>
>
>











<
<
<
<







 







|
>







 







|






>
>
>
>
>




43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68




69
70
71
72
73
74
75
...
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
...
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
	 * {@squirreljme.property cc.squirreljme.autolaunch=program This specifies
	 * the program that should be auto-launched once the program list has been
	 * processed.}
	 */
	public static final String AUTOLAUNCH_PROPERTY =
		"cc.squirreljme.autolaunch";
	
	/** Command used to exit the launcher and terminate. */
	public static final Command EXIT_COMMAND =
		new Command("Exit", Command.EXIT, 1);
	
	/** The about command. */
	public static final Command ABOUT_COMMAND =
		new Command("About", Command.HELP, 2);
	
	/** Timer used to reschedule things. */
	static final Timer _TIMER =
		new Timer("LauncherRecoverThread");
	
	/** The display that is being used. */
	static volatile Display _MAIN_DISPLAY;
	
	/** The list which contains all of the programs we can run. */
	protected final List programlist =
		new List("SquirrelJME Launcher", Choice.IMPLICIT);
	




	/** The active task. */
	private final __ActiveTask__ _activetask =
		new __ActiveTask__();
	
	/** The programs which are mapped to the list. */
	private volatile __Program__[] _programs;
	
................................................................................
		// We will need to access our own display to build the list of
		// MIDlets that could actually be ran
		Display disp = Display.getDisplay(this);
		_MAIN_DISPLAY = disp;
		
		// Add commands to the list so things can be done with them
		List programlist = this.programlist;
		programlist.addCommand(EXIT_COMMAND);
		programlist.addCommand(ABOUT_COMMAND);
		
		// Need to handle commands and such
		__CommandHandler__ ch = new __CommandHandler__();
		programlist.setCommandListener(ch);
		
		// Used to ensure the splash screen is visible for at least a second
		long endtime = System.nanoTime() + 1_000_000_000L;
................................................................................
					return;
				
				// Call other launcher
				MidletMain.this.__launch(seldx);
			}
			
			// Exiting the VM?
			else if (__c == EXIT_COMMAND)
			{
				// Indication that something is happening
				MidletMain.this.programlist.setTitle("Exiting...");
				
				System.exit(0);
			}
			
			// About SquirrelJME
			else if (__c == ABOUT_COMMAND)
			{
			}
		}
	}
}