Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve fax menu #33653

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 115 additions & 36 deletions Content.Client/Fax/UI/FaxWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,122 @@
<DefaultWindow xmlns="https://spacestation14.io"
Title="{Loc 'fax-machine-ui-window'}"
MinWidth="250">
<BoxContainer Orientation="Vertical" VerticalExpand="True">
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<Label Text="{Loc 'fax-machine-ui-paper'}" />
<Control MinWidth="4" />
<Label Name="PaperStatusLabel" />
</BoxContainer>
<Control HorizontalExpand="True" MinHeight="20" />
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<Label Text="{Loc 'fax-machine-ui-from'}" />
<Control MinWidth="4" />
<Label Name="FromLabel" />
</BoxContainer>
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<Label Text="{Loc 'fax-machine-ui-to'}" />
<Control MinWidth="4" />
<OptionButton Name="PeerSelector" HorizontalExpand="True" />
<DefaultWindow
xmlns="https://spacestation14.io"
Title="{Loc 'fax-machine-ui-window'}"
MinSize="300 275">
<!-- Main container -->
<BoxContainer Orientation="Vertical"
SeparationOverride="2"
VerticalExpand="True">

<!-- Param's -->
<BoxContainer Orientation="Vertical"
Margin="0 0 0 2">

<!-- From Line -->
<BoxContainer Orientation="Horizontal">

<!-- From Value Name -->
<Label Text="{Loc 'fax-machine-ui-from'}"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"/>

<Control HorizontalExpand="True"
MinWidth="8"
HorizontalAlignment="Center"/>

<!-- From Value -->
<Label Name="FromLabel"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Align="Right"/>
</BoxContainer>

<PanelContainer StyleClasses="LowDivider" Margin="0 1 0 4"/>

<!-- To Line -->
<BoxContainer
Orientation="Horizontal">

<!-- To Label -->
<Label Text="{Loc 'fax-machine-ui-to'}"
HorizontalAlignment="Left"
VerticalAlignment="Bottom"/>

<Control HorizontalExpand="True"
MinWidth="8"
HorizontalAlignment="Center"/>

<!-- To Value -->
<OptionButton Name="PeerSelector"
HorizontalAlignment="Right"/>
</BoxContainer>

<PanelContainer StyleClasses="LowDivider" Margin="0 1 0 4"/>

<!-- Paper Settings -->
<BoxContainer>

<!-- Paper Label -->
<Label Text="{Loc 'fax-machine-ui-paper'}"
VerticalAlignment="Bottom"/>

<Control HorizontalExpand="True"/>

<!-- Paper type -->
<Button Name="PaperButton"
Text="{Loc 'fax-machine-ui-paper-button-normal'}"
HorizontalAlignment="Left"
VerticalAlignment="Center"/>
</BoxContainer>

<PanelContainer StyleClasses="LowDivider" Margin="0 1 0 0"/>
</BoxContainer>
<Control HorizontalExpand="True" MinHeight="20" />
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<Button Name="FileButton"

<!-- Central part -->
<BoxContainer Orientation="Vertical"
VerticalExpand="True">

<!-- Other actions -->
<BoxContainer>

<!-- Print local file -->
<Button Name="FileButton"
Text="{Loc 'fax-machine-ui-file-button'}"
HorizontalExpand="False"/>
<Button Name="PaperButton"
Text="{Loc 'fax-machine-ui-paper-button-normal'}"
HorizontalExpand="False"/>
StyleClasses="OpenRight"
HorizontalExpand="True"
VerticalAlignment="Center"/>

<!-- Refresh Fax Recipients -->
<Button Name="RefreshButton"
Text="{Loc 'fax-machine-ui-refresh-button'}"
VerticalAlignment="Center"
HorizontalExpand="True"
StyleClasses="OpenLeft"/>
</BoxContainer>

<!-- It would be cool to add a display of the inserted file here. -->

<Control VerticalExpand="True"/>
</BoxContainer>
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<Button Name="CopyButton"
Text="{Loc 'fax-machine-ui-copy-button'}"
HorizontalExpand="False"
Disabled="True" />

<!-- Send & Copy -->
<BoxContainer Orientation="Vertical">

<!-- Paper Status -->
<Label Name="PaperStatusLabel"
HorizontalAlignment="Center" />

<PanelContainer StyleClasses="LowDivider"
Margin="0 4"/>

<!-- Send -->
<Button Name="SendButton"
Text="{Loc 'fax-machine-ui-send-button'}"
HorizontalExpand="True"
Disabled="True" />
<Button Name="RefreshButton"
Text="{Loc 'fax-machine-ui-refresh-button'}" />
Text="{Loc 'fax-machine-ui-send-button'}"
Disabled="True" />

<!-- Copy paper -->
<Button Name="CopyButton"
Text="{Loc 'fax-machine-ui-copy-button'}"
Disabled="True" />
</BoxContainer>
</BoxContainer>
</DefaultWindow>
Loading