Jack Server Settings; text selection in dialogs.
This commit is contained in:
@@ -188,7 +188,9 @@ const AboutDialog = withStyles(styles, { withTheme: true })(
|
||||
|
||||
return (
|
||||
<DialogEx tag="AboutDlg" fullScreen open={this.props.open}
|
||||
onClose={() => { this.props.onClose() }} TransitionComponent={Transition}>
|
||||
onClose={() => { this.props.onClose() }} TransitionComponent={Transition}
|
||||
style={{userSelect: "none"}}
|
||||
>
|
||||
|
||||
<div style={{ display: "flex", flexDirection: "column", flexWrap: "nowrap", width: "100%", height: "100%", overflow: "hidden" }}>
|
||||
<div style={{ flex: "0 0 auto" }}>
|
||||
@@ -206,7 +208,7 @@ const AboutDialog = withStyles(styles, { withTheme: true })(
|
||||
</div>
|
||||
<div style={{
|
||||
flex: "1 1 auto", position: "relative", overflow: "hidden",
|
||||
overflowX: "hidden", overflowY: "auto"
|
||||
overflowX: "hidden", overflowY: "auto" , userSelect: "text"
|
||||
}}
|
||||
>
|
||||
<div style={{margin: 24}}>
|
||||
|
||||
@@ -407,7 +407,9 @@ const BankDialog = withStyles(styles, { withTheme: true })(
|
||||
|
||||
return (
|
||||
<DialogEx tag="BankDialog" fullScreen open={this.props.show}
|
||||
onClose={() => { this.handleDialogClose() }} TransitionComponent={Transition}>
|
||||
onClose={() => { this.handleDialogClose() }} TransitionComponent={Transition}
|
||||
style={{userSelect: "none"}}
|
||||
>
|
||||
<div style={{ display: "flex", flexDirection: "column", flexWrap: "nowrap", width: "100%", height: "100%", overflow: "hidden" }}>
|
||||
<div style={{ flex: "0 0 auto" }}>
|
||||
<AppBar className={classes.dialogAppBar} style={{ display: this.isEditMode() ? "none" : "block" }} >
|
||||
@@ -539,7 +541,8 @@ const BankDialog = withStyles(styles, { withTheme: true })(
|
||||
style={{ display: "none" }}
|
||||
/>
|
||||
|
||||
<DialogEx tag="deletePrompt" open={this.state.showDeletePrompt} onClose={() => this.handleDeletePromptClose()}>
|
||||
<DialogEx tag="deletePrompt" open={this.state.showDeletePrompt} onClose={() => this.handleDeletePromptClose()}
|
||||
style={{userSelect: "none"}}>
|
||||
<DialogContent>
|
||||
<Typography>Are you sure you want to delete bank '{this.getSelectedBankName()}'?</Typography>
|
||||
</DialogContent>
|
||||
|
||||
@@ -51,7 +51,9 @@ export default class JackServerSettings {
|
||||
|
||||
getSummaryText() {
|
||||
if (this.valid) {
|
||||
return this.alsaDevice + " Sample Rate: " + this.sampleRate + " BufferSize: " + this.bufferSize + " Number of Buffers: " + this.numberOfBuffers;
|
||||
let device = this.alsaDevice;
|
||||
if (device.startsWith("hw:")) device = device.substr(3);
|
||||
return device + " - Rate: " + this.sampleRate + " BufferSize: " + this.bufferSize + " Buffers: " + this.numberOfBuffers;
|
||||
} else {
|
||||
return "Not configured";
|
||||
}
|
||||
|
||||
@@ -408,9 +408,9 @@ class PiPedalModelImpl implements PiPedalModel {
|
||||
this.onSocketReconnected = this.onSocketReconnected.bind(this);
|
||||
}
|
||||
onSocketReconnecting(retry: number, maxRetries: number): void {
|
||||
if (retry !== 0) {
|
||||
//if (retry !== 0) {
|
||||
this.setState(State.Reconnecting);
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
@@ -455,14 +455,10 @@ class PiPedalModelImpl implements PiPedalModel {
|
||||
);
|
||||
} else if (message === "onPedalBoardChanged") {
|
||||
let pedalChangedBody = body as PedalBoardChangedBody;
|
||||
// xxx: do we want to optimize for messages we went ourselves??
|
||||
// we could actually protect against preview collisions in the model.
|
||||
this.pedalBoard.set(new PedalBoard().deserialize(pedalChangedBody.pedalBoard));
|
||||
|
||||
} else if (message === "onMidiValueChanged") {
|
||||
let controlChangedBody = body as ControlChangedBody;
|
||||
// xxx: do we want to optimize for messages we went ourselves??
|
||||
// we could actually protect against preview collisions in the model.
|
||||
this._setPedalBoardControlValue(
|
||||
controlChangedBody.instanceId,
|
||||
controlChangedBody.symbol,
|
||||
@@ -480,8 +476,6 @@ class PiPedalModelImpl implements PiPedalModel {
|
||||
this.handleNotifyMidiListener(clientHandle, isNote, noteOrControl);
|
||||
} else if (message === "onControlChanged") {
|
||||
let controlChangedBody = body as ControlChangedBody;
|
||||
// xxx: do we want to optimize for messages we went ourselves??
|
||||
// we could actually protect against preview collisions in the model.
|
||||
this._setPedalBoardControlValue(
|
||||
controlChangedBody.instanceId,
|
||||
controlChangedBody.symbol,
|
||||
|
||||
@@ -335,7 +335,8 @@ const PresetDialog = withStyles(styles, { withTheme: true })(
|
||||
|
||||
return (
|
||||
<DialogEx tag="PresetDialog" fullScreen open={this.props.show}
|
||||
onClose={() => { this.handleDialogClose() }} TransitionComponent={Transition}>
|
||||
onClose={() => { this.handleDialogClose() }} TransitionComponent={Transition}
|
||||
style={{userSelect: "none"}}>
|
||||
<div style={{ display: "flex", flexDirection: "column", flexWrap: "nowrap", width: "100%", height: "100%", overflow: "hidden" }}>
|
||||
<div style={{ flex: "0 0 auto" }}>
|
||||
<AppBar className={classes.dialogAppBar} style={{ display: this.isEditMode() ? "none" : "block" }} >
|
||||
|
||||
@@ -96,8 +96,9 @@ export default class RenameDialog extends ResizeResponsiveComponent<RenameDialog
|
||||
}
|
||||
};
|
||||
return (
|
||||
<DialogEx tag="RenameDialog" open={open} fullWidth onClose={handleClose} aria-labelledby="Rename-dialog-title" style={{}}
|
||||
<DialogEx tag="RenameDialog" open={open} fullWidth onClose={handleClose} aria-labelledby="Rename-dialog-title"
|
||||
fullScreen={this.state.fullScreen}
|
||||
style={{userSelect: "none"}}
|
||||
>
|
||||
<DialogContent>
|
||||
<TextField
|
||||
|
||||
@@ -393,7 +393,9 @@ const SettingsDialog = withStyles(styles, { withTheme: true })(
|
||||
|
||||
return (
|
||||
<DialogEx tag="SettingsDialog" fullScreen open={this.props.open}
|
||||
onClose={() => { this.props.onClose() }} TransitionComponent={Transition}>
|
||||
onClose={() => { this.props.onClose() }} TransitionComponent={Transition}
|
||||
style={{userSelect: "none"}}
|
||||
>
|
||||
|
||||
<div style={{ display: "flex", flexDirection: "column", flexWrap: "nowrap", width: "100%", height: "100%", overflow: "hidden" }}>
|
||||
<div style={{ flex: "0 0 auto" }}>
|
||||
@@ -426,11 +428,19 @@ const SettingsDialog = withStyles(styles, { withTheme: true })(
|
||||
JackHostStatus.getDisplayView("Status:\u00A0", this.state.jackStatus)
|
||||
}
|
||||
</div>
|
||||
{ this.state.jackConfiguration.errorState !== "" &&
|
||||
(
|
||||
<div style={{ paddingLeft: 48, position: "relative", top: -12 }}>
|
||||
<Typography variant="caption" color="textSecondary"><span style={{color: "#F00"}}>{this.state.jackConfiguration.errorState }</span></Typography>
|
||||
</div>
|
||||
|
||||
)
|
||||
}
|
||||
<ButtonBase className={classes.setting} onClick={() => this.handleJackServerSettings()}
|
||||
>
|
||||
<SelectHoverBackground selected={false} showHover={true} />
|
||||
<div style={{ width: "100%" }}>
|
||||
<Typography display="block" variant="body2" noWrap>Jack Server Settings</Typography>
|
||||
<Typography display="block" variant="body2" noWrap>Audio device</Typography>
|
||||
<Typography display="block" variant="caption" noWrap color="textSecondary">{this.state.jackServerSettings.getSummaryText()}</Typography>
|
||||
</div>
|
||||
</ButtonBase>
|
||||
@@ -454,7 +464,7 @@ const SettingsDialog = withStyles(styles, { withTheme: true })(
|
||||
>
|
||||
<SelectHoverBackground selected={false} showHover={true} />
|
||||
<div style={{ width: "100%" }}>
|
||||
<Typography display="block" variant="body2" noWrap>Input Channels</Typography>
|
||||
<Typography display="block" variant="body2" noWrap>Input channels</Typography>
|
||||
<Typography display="block" variant="caption" color="textSecondary" noWrap>{this.state.jackSettings.getAudioInputDisplayValue(this.state.jackConfiguration)}</Typography>
|
||||
</div>
|
||||
</ButtonBase>
|
||||
@@ -473,7 +483,7 @@ const SettingsDialog = withStyles(styles, { withTheme: true })(
|
||||
<ButtonBase className={classes.setting} disabled={!isConfigValid} onClick={() => this.handleMidiSelection()} >
|
||||
<SelectHoverBackground selected={false} showHover={true} />
|
||||
<div style={{ width: "100%" }}>
|
||||
<Typography className={classes.primaryItem} display="block" variant="body2" noWrap>Select MIDI Input Channels</Typography>
|
||||
<Typography className={classes.primaryItem} display="block" variant="body2" noWrap>Select MIDI input channels</Typography>
|
||||
|
||||
<Typography className={classes.secondaryItem} display="block" variant="caption" color="textSecondary" noWrap>{this.midiSummary()}</Typography>
|
||||
</div>
|
||||
@@ -488,7 +498,7 @@ const SettingsDialog = withStyles(styles, { withTheme: true })(
|
||||
<SelectHoverBackground selected={false} showHover={true} />
|
||||
<div style={{ width: "100%" }}>
|
||||
<Typography className={classes.primaryItem} display="block" variant="body2" color="textPrimary" noWrap>
|
||||
Configure Wi-fi Hotspot</Typography>
|
||||
Configure Wi-Fi hotspot</Typography>
|
||||
<Typography display="block" variant="caption" noWrap color="textSecondary">
|
||||
{this.state.wifiConfigSettings.getSummaryText()}
|
||||
</Typography>
|
||||
|
||||
@@ -153,8 +153,9 @@ export default class UploadDialog extends ResizeResponsiveComponent<UploadDialog
|
||||
|
||||
|
||||
return (
|
||||
<DialogEx tag="UploadDialog" open={this.props.open} fullWidth onClose={() => this.handleClose()} style={{}}
|
||||
<DialogEx tag="UploadDialog" open={this.props.open} fullWidth onClose={() => this.handleClose()}
|
||||
fullScreen={this.state.fullScreen}
|
||||
style={{userSelect: "none"}}
|
||||
>
|
||||
<DialogTitle>Upload preset</DialogTitle>
|
||||
<DialogContent>
|
||||
|
||||
@@ -250,7 +250,7 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })(
|
||||
};
|
||||
|
||||
return (
|
||||
<DialogEx tag="WifiConfigDialog" open={open} fullWidth onClose={handleClose} style={{}}
|
||||
<DialogEx tag="WifiConfigDialog" open={open} fullWidth onClose={handleClose} style={{userSelect: "none"}}
|
||||
fullScreen={this.state.fullScreen}
|
||||
>
|
||||
{ this.state.fullScreen && (
|
||||
@@ -335,7 +335,8 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })(
|
||||
OK
|
||||
</Button>
|
||||
</DialogActions>
|
||||
<DialogEx open={this.state.showWifiWarningDialog} tag="wifiConfirm" >
|
||||
<DialogEx open={this.state.showWifiWarningDialog} tag="wifiConfirm"
|
||||
style={{userSelect: "none"}}>
|
||||
<DialogContent>
|
||||
<Typography className={classes.pgraph} variant="body2" color="textPrimary">
|
||||
Enabling the Wi-Fi hotspot will disable regular Wi-Fi network access on the PiPedal device. Once
|
||||
|
||||
Reference in New Issue
Block a user