<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.SeparatorMenuItem?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>

<VBox minHeight="-Infinity" minWidth="-Infinity" prefHeight="1000.0" prefWidth="1200.0" stylesheets="@../css/main.css" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="top.r3944realms.docchecktoolrefactored.ui.MainStageController">
   <children>
      <MenuBar prefWidth="2558.0" VBox.vgrow="ALWAYS">
        <menus>
          <Menu mnemonicParsing="false" text="文件">
            <items>
                  <MenuItem fx:id="settingMI" mnemonicParsing="false" onAction="#onOpenSetting" text="设置" />
                  <SeparatorMenuItem mnemonicParsing="false" />
                  <MenuItem fx:id="logoutMI" mnemonicParsing="false" onAction="#onLogout" text="登出" />
                  <SeparatorMenuItem mnemonicParsing="false" />
              <MenuItem fx:id="exitMI" mnemonicParsing="false" onAction="#onExit" text="退出" />
            </items>
          </Menu>
          <Menu fx:id="helpM" mnemonicParsing="false" text="帮助">
            <items>
                  <MenuItem fx:id="helpDocMI" mnemonicParsing="false" onAction="#onOpenHelpDoc" text="用户使用说明书" />
                  <SeparatorMenuItem mnemonicParsing="false" />
              <MenuItem fx:id="aboutSoftwareMI" mnemonicParsing="false" onAction="#onAbout" text="关于软件" />
            </items>
          </Menu>
        </menus>
      </MenuBar>
       <!-- 导入项目信息面板 -->
      <fx:include source="module/project-info-pane.fxml" VBox.vgrow="ALWAYS" />
       <!-- 导入项目内容面板 -->
      <TabPane fx:id="tabPane" onKeyPressed="#handleKeyPressed" stylesheets="@../css/custom-tab.css" tabClosingPolicy="UNAVAILABLE" VBox.vgrow="ALWAYS">
         <tabs>
            <Tab id="startTab" fx:id="step1T" text="1. 查重复文件">
               <content>
                  <fx:include source="module/step-1-pane.fxml" />
               </content>
            </Tab>
             <Tab fx:id="step2T" styleClass="long-text-tab" text="2. 查遗漏、存储路径和命名规范">
                 <content>
                     <fx:include source="module/step-2-pane.fxml" />
                 </content>
             </Tab>
            <Tab fx:id="step3T" text="3. 查质量">
               <content>
                  <fx:include source="module/step-3-pane.fxml" />
               </content>
            </Tab>
            <Tab fx:id="step4T" text="4. 元数据">
               <content>
                  <fx:include source="module/step-4-pane.fxml" />
               </content>
            </Tab>
            <Tab fx:id="step5T" text="5. 查数据挂载">
               <content>
                  <fx:include source="module/step-5-pane.fxml" />
               </content>
            </Tab>
            <Tab fx:id="step6T" text="6. 查工作文件">
               <content>
                  <fx:include source="module/step-6-pane.fxml" />
               </content>
            </Tab>
            <Tab id="endTab" fx:id="step7T" text="7. 存储载体">
               <content>
                  <fx:include source="module/step-7-pane.fxml" />
               </content>
            </Tab>
         </tabs>
      </TabPane>
      <HBox nodeOrientation="RIGHT_TO_LEFT" prefHeight="100.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
         <children>
            <Button fx:id="nextB" mnemonicParsing="false" onAction="#onNext" prefHeight="100.0" prefWidth="500.0" text="下一步">
               <HBox.margin>
                  <Insets bottom="20.0" left="40.0" right="40.0" top="20.0" />
               </HBox.margin>
               <padding>
                  <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
               </padding>
               <font>
                  <Font name="System Bold" size="19.0" />
               </font>
            </Button>
            <Button fx:id="prevB" mnemonicParsing="false" onAction="#onPrev" prefHeight="100.0" prefWidth="500.0" text="上一步">
               <HBox.margin>
                  <Insets bottom="20.0" left="40.0" right="40.0" top="20.0" />
               </HBox.margin>
               <padding>
                  <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
               </padding>
               <font>
                  <Font name="System Bold" size="19.0" />
               </font>
            </Button>
         </children>
         <VBox.margin>
            <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
         </VBox.margin>
      </HBox>
   </children>
</VBox>
