Skip to content
Snippets Groups Projects
Select Git revision
  • 17a3b82382c7b18b9540cab557b4b28470945052
  • 5.4 default protected
  • 5.5
  • dev/5.5
  • dev/5.4
  • dev/5.3_downgrade
  • feature/experimenttime_hack
  • 5.3 protected
  • _IntenSelect5.3
  • IntenSelect5.3
  • 4.27 protected
  • 4.26 protected
  • 5.0 protected
  • 4.22 protected
  • 4.21 protected
  • UE5.4-2024.1
  • UE5.4-2024.1-rc1
  • UE5.3-2023.1-rc3
  • UE5.3-2023.1-rc2
  • UE5.3-2023.1-rc
20 results

IMC_WidgetInteraction.uasset

Blame
  • MainWindow.xaml 3.51 KiB
    <Window x:Class="FlowForge.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="Flow-Forge" Height="600" Width="1080">
        <Grid x:Name="MainGrid">
            <!-- Define two rows: one fixed height for the button and one for the graph viewer -->
            <Grid.RowDefinitions>
                <RowDefinition Height="70"/>  <!-- Fixed height row for button -->
                <RowDefinition Height="*"/>    <!-- Remaining space for the graph viewer -->
            </Grid.RowDefinitions>
    
            <!-- Button in the first row -->
            <Button x:Name="InitializeGraphButton" 
                    Content="Initialize graph" 
                    Width="120" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="10" 
                    Grid.Row="0"
                    Panel.ZIndex="1"
                    Click="InitializeGraphButton_Click"/>
            
            <!-- Second Button in the first row -->
            <Button x:Name="RunFordFulkersonButton" 
                    Content="Run Ford-Fulkerson" 
                    Width="120" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="310,10,0,10"
                    Grid.Row="0"
                    Click="FordFulkersonButton_Click"/>
            
            <!-- Second Button in the first row -->
            <Button x:Name="RunEdmondsKarpButton" 
                    Content="Run Edmonds–Karp" 
                    Width="120" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="160,10,0,10"
                    Grid.Row="0"
                    Click="EdmondsKarpButton_Click"/>
            
            <!-- Second Button in the first row -->
            <Button x:Name="Export" 
                    Content="Export" 
                    Width="120" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="460,10,0,10"
                    Grid.Row="0"
                    Click="ExportToLatexButton_Click"/>
            
            <Button x:Name="SnapToGrid" 
                    Content="Snap to grid" 
                    Width="120" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="610,10,0,10"
                    Grid.Row="0"
                    Click="SnapToGridButton_Click"/>
    
            <!-- Checkboxes in the first row -->
            <CheckBox x:Name="IncludeAnimationCheckbox"
                      Content="Include animation"
                      VerticalAlignment="Center"
                      HorizontalAlignment="Left"
                      Margin="750,-15,0,10"
                      Grid.Row="0"/>
    
            <CheckBox x:Name="StandaloneCheckbox"
                      Content="Standalone"
                      VerticalAlignment="Center"
                      HorizontalAlignment="Left"
                      Margin="750,30,0,10"
                      Grid.Row="0"
                      IsChecked="True"/>
            
            <CheckBox x:Name="WorstCaseCheckbox"
                      Content="Force worst case"
                      VerticalAlignment="Center"
                      HorizontalAlignment="Left"
                      Margin="880,-15,0,10"
                      Grid.Row="0"
                      IsChecked="True"/>
            
            <!-- Placeholder for graph viewer -->
            <Grid x:Name="GraphViewerGrid" Grid.Row="1"/>
        </Grid>
    </Window>