упорядочил папки с кодом.

This commit is contained in:
2023-11-19 01:53:56 +03:00
parent 4883b4af51
commit 44c6daffa3
596 changed files with 2140 additions and 1569 deletions

View File

@@ -1,87 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Visual_DVM_2021.Passes.UI.CopyProjectFields">
<grid id="27dc6" binding="content" layout-manager="GridLayoutManager" row-count="4" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="8ded0" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="папка назначения"/>
</properties>
</component>
<vspacer id="a00a6">
<constraints>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
</constraints>
</vspacer>
<component id="c0f1d" class="javax.swing.JTextField" binding="tfParent" custom-create="true">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties>
<editable value="false"/>
</properties>
</component>
<component id="8d37e" class="javax.swing.JButton" binding="bBrowse">
<constraints>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<enabled value="true"/>
<icon value="icons/LastOpened.png"/>
<text value=""/>
<toolTipText value="Обзор..."/>
</properties>
</component>
<component id="93a33" class="javax.swing.JLabel">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="перенос данных"/>
</properties>
</component>
<component id="25874" class="javax.swing.JCheckBox" binding="MigrateData">
<constraints>
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<horizontalAlignment value="10"/>
<icon value="icons/NotPick.png"/>
<selectedIcon value="icons/Pick.png"/>
<text value=""/>
<verticalTextPosition value="0"/>
</properties>
</component>
<component id="8369d" class="javax.swing.JLabel">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="имя копии"/>
</properties>
</component>
<component id="fd8d0" class="javax.swing.JTextField" binding="tfName" custom-create="true">
<constraints>
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
</component>
</children>
</grid>
</form>

View File

@@ -1,39 +0,0 @@
package Visual_DVM_2021.Passes.UI;
import Common.Current;
import Common.UI.TextField.StyledTextField;
import Common.UI.Windows.Dialog.DialogFields;
import Common.Utils.Files.VDirectoryChooser;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
public class CopyProjectFields implements DialogFields {
public JTextField tfParent;
public JTextField tfName;
public JCheckBox MigrateData;
VDirectoryChooser directoryChooser = new VDirectoryChooser("Выбор целевой папки для копии проекта");
private JPanel content;
private JButton bBrowse;
public CopyProjectFields() {
tfName.setText(Current.getProject().name + "_copy");
bBrowse.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
File file = directoryChooser.ShowDialog();
if (file != null)
tfParent.setText(file.getAbsolutePath());
}
});
}
@Override
public Component getContent() {
return content;
}
private void createUIComponents() {
// TODO: place custom component creation code here
tfParent = new StyledTextField();
tfName = new StyledTextField();
}
}

View File

@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Visual_DVM_2021.Passes.UI.PassFields">
<grid id="cbd77" binding="content" layout-manager="GridLayoutManager" row-count="4" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="10" left="10" bottom="10" right="10"/>
<constraints>
<xy x="48" y="54" width="436" height="297"/>
</constraints>
<properties>
<background color="-1"/>
<enabled value="true"/>
<foreground color="-1"/>
</properties>
<border type="none"/>
<children>
<component id="8cfe8" class="javax.swing.JLabel">
<constraints>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<icon value="icons/Pass2.gif"/>
<text value=""/>
</properties>
</component>
<component id="a7e0" class="javax.swing.JLabel" binding="Label1">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="1"/>
<text value=""/>
</properties>
</component>
<component id="7515a" class="javax.swing.JProgressBar" binding="ProgressBar">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<stringPainted value="true"/>
<value value="0"/>
</properties>
</component>
<component id="e1308" class="javax.swing.JLabel" binding="Label2">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="14" style="2"/>
<text value=""/>
</properties>
</component>
</children>
</grid>
</form>

View File

@@ -1,15 +0,0 @@
package Visual_DVM_2021.Passes.UI;
import Common.UI.Windows.Dialog.DialogFields;
import javax.swing.*;
import java.awt.*;
public class PassFields implements DialogFields {
public JPanel content;
public JProgressBar ProgressBar;
public JLabel Label1;
public JLabel Label2;
@Override
public Component getContent() {
return content;
}
}

View File

@@ -1,46 +0,0 @@
package Visual_DVM_2021.Passes.UI;
import Common.Global;
import Common.UI.Windows.Dialog.Dialog;
import Visual_DVM_2021.Passes.Pass_2021;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class PassForm extends Dialog<Pass_2021, PassFields> {
public PassForm(Pass_2021 pass_in) {
super(PassFields.class);
Result = pass_in;
addWindowListener(new WindowAdapter() {
@Override
public void windowOpened(WindowEvent e) {
Result.animation_sem.release();
}
});
}
public boolean ShowDialog() {
return super.ShowDialog("");
}
@Override
public int getDefaultWidth() {
return 600;
}
@Override
public int getDefaultHeight() {
return 250;
}
//кнопок нет
@Override
public void CreateButtons() {
}
@Override
protected void onCancel() {
try {
Result.Interrupt();
} catch (Exception e) {
Global.Log.PrintException(e);
}
}
@Override
public String getTitleText() {
return Result.getDescription();
}
}