Skip to content
Snippets Groups Projects
Select Git revision
  • 012f25c2b7904a7be9f8d492286715aaf5623389
  • master default
  • 1.1
  • 1.0
4 results

tokenize.cpp

Blame
  • MainWindow.xaml 2.30 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="800">
        <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="150" 
                    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="150" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="350,10,0,10"
                    Grid.Row="0"
                    Click="FordFulkersonButton_Click"/>
            
            <!-- Second Button in the first row -->
            <Button x:Name="RunEdmondsKarpButton" 
                    Content="Run Edmonds–Karp" 
                    Width="150" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="180,10,0,10"
                    Grid.Row="0"
                    Click="EdmondsKarpButton_Click"/>
            
            <!-- Second Button in the first row -->
            <Button x:Name="Export" 
                    Content="Export" 
                    Width="150" 
                    Height="40" 
                    VerticalAlignment="Center" 
                    HorizontalAlignment="Left" 
                    Margin="520,10,0,10"
                    Grid.Row="0"
                    Click="ExportToLatexButton_Click"/>
    
            
            <!-- Placeholder for graph viewer -->
            <Grid x:Name="GraphViewerGrid" Grid.Row="1"/>
        </Grid>
    </Window>