59 |
/** Property which specifies whether the LS Console should be shown when script is run. */ |
/** Property which specifies whether the LS Console should be shown when script is run. */ |
60 |
public final static String SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT = "showLSConsoleWhenRunScript"; |
public final static String SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT = "showLSConsoleWhenRunScript"; |
61 |
|
|
62 |
|
/** Property representing the maximum master volume (in percents). */ |
63 |
|
public final static String MAXIMUM_MASTER_VOLUME = "maximumMasterVolume"; |
64 |
|
|
65 |
|
/** Property representing the maximum channel volume (in percents). */ |
66 |
|
public final static String MAXIMUM_CHANNEL_VOLUME = "maximumChannelVolume"; |
67 |
|
|
68 |
|
/** Property which specifies whether the user should confirm channel removals. */ |
69 |
|
public final static String CONFIRM_CHANNEL_REMOVAL = "confirmChannelRemoval"; |
70 |
|
|
71 |
|
/** Property which specifies whether the user should confirm audio/MIDI device removals. */ |
72 |
|
public final static String CONFIRM_DEVICE_REMOVAL = "confirmDeviceRemoval"; |
73 |
|
|
74 |
|
/** Property which specifies whether the user should confirm quiting. */ |
75 |
|
public final static String CONFIRM_APP_QUIT = "confirmAppQuit"; |
76 |
|
|
77 |
|
|
78 |
/** |
/** |
79 |
* Creates a new instance of <code>StdPrefs</code>. |
* Creates a new instance of <code>StdPrefs</code>. |
102 |
if(name == DEFAULT_CHANNEL_VOLUME) return 100; |
if(name == DEFAULT_CHANNEL_VOLUME) return 100; |
103 |
if(name == LS_CONSOLE_HISTSIZE) return 1000; |
if(name == LS_CONSOLE_HISTSIZE) return 1000; |
104 |
if(name == RECENT_LSCP_SCRIPTS_SIZE) return 7; |
if(name == RECENT_LSCP_SCRIPTS_SIZE) return 7; |
105 |
|
if(name == MAXIMUM_MASTER_VOLUME) return 100; |
106 |
|
if(name == MAXIMUM_CHANNEL_VOLUME) return 100; |
107 |
|
|
108 |
return super.getDefaultIntValue(name); |
return super.getDefaultIntValue(name); |
109 |
} |
} |
110 |
|
|
111 |
public boolean |
public boolean |
112 |
getDefaultBoolValue(String name) { |
getDefaultBoolValue(String name) { |
113 |
|
if(name == CONFIRM_CHANNEL_REMOVAL) return true; |
114 |
|
if(name == CONFIRM_DEVICE_REMOVAL) return true; |
115 |
|
if(name == CONFIRM_APP_QUIT) return true; |
116 |
if(name == SAVE_LS_CONSOLE_HISTORY) return true; |
if(name == SAVE_LS_CONSOLE_HISTORY) return true; |
|
if(name == SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT) return true; |
|
117 |
if(name == USE_CHANNEL_DEFAULTS) return true; |
if(name == USE_CHANNEL_DEFAULTS) return true; |
118 |
|
|
119 |
return super.getDefaultBoolValue(name); |
return super.getDefaultBoolValue(name); |