Перенос.

This commit is contained in:
2023-09-17 22:13:42 +03:00
parent dd2e0ca7e0
commit 629d8b8477
1239 changed files with 61161 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Repository.Component.UI.ComponentsFields">
<grid id="27dc6" binding="content" layout-manager="BorderLayout" hgap="0" vgap="0">
<constraints>
<xy x="20" y="20" width="802" height="400"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<grid id="a969b" binding="componentsPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
<constraints border-constraint="Center"/>
<properties/>
<border type="none"/>
<children/>
</grid>
</children>
</grid>
</form>

View File

@@ -0,0 +1,17 @@
package Repository.Component.UI;
import Common.Global;
import Common.UI.Windows.Dialog.DialogFields;
import javax.swing.*;
import java.awt.*;
public class ComponentsFields implements DialogFields {
public JPanel content;
private JPanel componentsPanel;
public ComponentsFields() {
Global.Components.mountUI(componentsPanel);
}
@Override
public Component getContent() {
return content;
}
}

View File

@@ -0,0 +1,44 @@
package Repository.Component.UI;
import Common.Global;
import Common.UI.Windows.Dialog.Dialog;
import java.awt.*;
public class ComponentsForm extends Dialog<Object, ComponentsFields> {
public ComponentsForm() {
super(ComponentsFields.class);
}
@Override
public boolean NeedsScroll() {
return false;
}
@Override
public int getDefaultWidth() {
return Global.properties.ComponentsWindowWidth;
}
@Override
public int getDefaultHeight() {
return Global.properties.ComponentsWindowHeight;
}
@Override
public void CreateButtons() {
}
@Override
public void Init(Object... params) {
Global.Components.ShowUI();
}
@Override
public void LoadSize() {
setMinimumSize(new Dimension(650, 250));
Dimension dimension = new Dimension(getDefaultWidth(), getDefaultHeight());
setPreferredSize(dimension);
setSize(dimension);
}
@Override
public void onClose() {
super.onClose();
Global.properties.ComponentsWindowWidth=getWidth();
Global.properties.ComponentsWindowHeight=getHeight();
Global.properties.Update();
}
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Repository.Component.UI.PickUpComponentFields">
<grid id="27dc6" binding="content" layout-manager="BorderLayout" hgap="0" vgap="0">
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<border type="none"/>
<children/>
</grid>
</form>

View File

@@ -0,0 +1,12 @@
package Repository.Component.UI;
import Common.UI.Windows.Dialog.DialogFields;
import javax.swing.*;
import java.awt.*;
public class PickUpComponentFields implements DialogFields {
private JPanel content;
@Override
public Component getContent() {
return content;
}
}

View File

@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Repository.Component.UI.PublishFields">
<grid id="27dc6" binding="content" layout-manager="GridLayoutManager" row-count="7" 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>
<font size="16"/>
</properties>
<border type="none"/>
<children>
<component id="8edb0" class="javax.swing.JCheckBox" binding="cbNeedsBroadcast">
<constraints>
<grid row="0" column="0" row-span="1" col-span="3" 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="0"/>
<selected value="true"/>
<text value="Включить оповещение о публикации"/>
<verticalAlignment value="3"/>
</properties>
</component>
<scrollpane id="b33e5">
<constraints>
<grid row="6" column="0" row-span="1" col-span="3" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="326bc" class="javax.swing.JTextArea" binding="taBroadcast" custom-create="true">
<constraints/>
<properties>
<lineWrap value="true"/>
<wrapStyleWord value="true"/>
</properties>
</component>
</children>
</scrollpane>
<component id="fbdf3" class="javax.swing.JLabel">
<constraints>
<grid row="5" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="текст оповещения"/>
<verticalAlignment value="3"/>
</properties>
</component>
<component id="21340" class="javax.swing.JCheckBox" binding="cbForceMail">
<constraints>
<grid row="1" column="0" row-span="1" col-span="3" 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="0"/>
<selected value="false"/>
<text value="Разослать файл всем подписчикам"/>
<verticalAlignment value="3"/>
</properties>
</component>
<component id="148fa" class="javax.swing.JCheckBox" binding="cbUpdateMinimalVersion">
<constraints>
<grid row="2" column="0" row-span="1" col-span="3" 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="0"/>
<selected value="true"/>
<text value="Назначить минимальную версию"/>
<verticalAlignment value="3"/>
</properties>
</component>
<component id="b1e6f" class="javax.swing.JLabel">
<constraints>
<grid row="3" 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="0"/>
<text value="Минимальная версия: "/>
</properties>
</component>
<component id="7e269" class="javax.swing.JLabel" binding="lMinimalVersion">
<constraints>
<grid row="3" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="1"/>
<text value="?"/>
</properties>
</component>
<hspacer id="37705">
<constraints>
<grid row="3" column="2" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
</hspacer>
<component id="128e5" class="javax.swing.JLabel">
<constraints>
<grid row="4" 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="0"/>
<text value="Публикуемая версия: "/>
</properties>
</component>
<component id="84e2b" class="javax.swing.JLabel" binding="lPublishingVersion">
<constraints>
<grid row="4" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="1"/>
<text value="?"/>
</properties>
</component>
</children>
</grid>
</form>

View File

@@ -0,0 +1,34 @@
package Repository.Component.UI;
import Common.UI.Editor.BaseEditor;
import Common.UI.Windows.Dialog.DialogFields;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class PublishFields implements DialogFields {
public JPanel content;
public JCheckBox cbNeedsBroadcast;
public JTextArea taBroadcast;
public JCheckBox cbForceMail;
public JCheckBox cbUpdateMinimalVersion;
public JLabel lMinimalVersion;
public JLabel lPublishingVersion;
public PublishFields() {
cbNeedsBroadcast.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
taBroadcast.setEnabled(cbNeedsBroadcast.isSelected());
}
});
}
private void createUIComponents() {
// TODO: place custom component creation code here
taBroadcast = new BaseEditor();
}
@Override
public Component getContent() {
return content;
}
}

View File

@@ -0,0 +1,16 @@
package Repository.Component.UI;
import Common.UI.Windows.Dialog.Dialog;
public class PublishForm extends Dialog<String, PublishFields> {
public PublishForm() {
super(PublishFields.class);
}
@Override
public boolean NeedsScroll() {
return false;
}
@Override
public void ProcessResult() {
Result = fields.cbNeedsBroadcast.isSelected() ? fields.taBroadcast.getText() : null;
}
}