no message
This commit is contained in:
@@ -4,9 +4,8 @@ import Common.Utils.Stopwatch;
|
||||
import Common.Utils.TextLog;
|
||||
import Common.Visual.UI_;
|
||||
import MainModule_.MainModule_;
|
||||
import Visual_DVM_2021.PassStats.PassStats;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
import Visual_DVM_2021.Passes.UI.PassForm;
|
||||
import Common.Visual.Windows.PassForm;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.Controls.PassButton;
|
||||
@@ -16,7 +15,6 @@ import _VisualDVM.Visual.UI;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Stack;
|
||||
import java.util.Vector;
|
||||
import java.util.concurrent.Semaphore;
|
||||
|
||||
53
src/Common/Visual/Windows/PassFields.form
Normal file
53
src/Common/Visual/Windows/PassFields.form
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Common.Visual.Windows.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="Common/icons/Pass.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>
|
||||
15
src/Common/Visual/Windows/PassFields.java
Normal file
15
src/Common/Visual/Windows/PassFields.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package Common.Visual.Windows;
|
||||
import Common.Visual.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;
|
||||
}
|
||||
}
|
||||
46
src/Common/Visual/Windows/PassForm.java
Normal file
46
src/Common/Visual/Windows/PassForm.java
Normal file
@@ -0,0 +1,46 @@
|
||||
package Common.Visual.Windows;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Windows.Dialog.Dialog;
|
||||
import Common.Passes.Pass;
|
||||
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
public class PassForm extends Dialog<Pass, PassFields> {
|
||||
public PassForm(Pass 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) {
|
||||
Utils_.MainLog.PrintException(e);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public String getTitleText() {
|
||||
return Result.getDescription();
|
||||
}
|
||||
}
|
||||
BIN
src/Common/icons/Pass.gif
Normal file
BIN
src/Common/icons/Pass.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.2 KiB |
Reference in New Issue
Block a user