сворачивание машин v++
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
package GlobalData.Compiler;
|
||||
import Common.UI.Menus_2023.DataMenuBar;
|
||||
import Common.UI.Menus_2023.MenuBarButton;
|
||||
import Common.UI.Themes.VisualiserFonts;
|
||||
import Common.UI.UI;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
|
||||
import javax.swing.*;
|
||||
public class CompilersMenuBar extends DataMenuBar {
|
||||
public MenuBarButton CollapseButton;
|
||||
public CompilersMenuBar() {
|
||||
super("компиляторы",
|
||||
PassCode_2021.AddCompiler,
|
||||
@@ -9,5 +15,16 @@ public class CompilersMenuBar extends DataMenuBar {
|
||||
PassCode_2021.DeleteCompiler,
|
||||
PassCode_2021.ShowCompilerVersion,
|
||||
PassCode_2021.ShowCompilerHelp);
|
||||
add(new JSeparator());
|
||||
add(CollapseButton = new MenuBarButton() {
|
||||
{
|
||||
setIcon("/icons/CollapseUp.png");
|
||||
setFont(VisualiserFonts.TreeBold);
|
||||
setToolTipText("Cвернуть");
|
||||
addActionListener(e -> {
|
||||
UI.getMainWindow().getTestingWindow().SwitchCredentials(false);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,19 +84,18 @@ public class MachinesDBTable extends iDBTable<Machine> {
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
super.ShowCurrentObject();
|
||||
UI.getMainWindow().getTestingWindow().ShowCurrentCompiler();
|
||||
//UI.testingBar.ShowMachine();
|
||||
UI.credentialsBar.ShowMachine();
|
||||
}
|
||||
@Override
|
||||
public void ShowNoCurrentObject() throws Exception {
|
||||
super.ShowNoCurrentObject();
|
||||
UI.getMainWindow().getTestingWindow().ShowCurrentCompiler();
|
||||
//UI.testingBar.ShowNoMachine();
|
||||
UI.credentialsBar.ShowNoMachine();
|
||||
}
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
columns.get(0).setVisible(false);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
@Override
|
||||
|
||||
@@ -77,13 +77,13 @@ public class UsersDBTable extends iDBTable<User> {
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
super.ShowCurrentObject();
|
||||
// UI.getMainWindow().ShowCurrentCompiler();
|
||||
// UI.testingBar.ShowUser();
|
||||
UI.credentialsBar.ShowUser();
|
||||
}
|
||||
@Override
|
||||
public void ShowNoCurrentObject() throws Exception {
|
||||
super.ShowNoCurrentObject();
|
||||
// UI.getMainWindow().ShowCurrentCompiler();
|
||||
// UI.testingBar.ShowNoUser();
|
||||
UI.credentialsBar.ShowNoUser();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user