📄 ae.java
字号:
byte1 = 42;
byte2 = 35;
setLocation(0, 0);
}
if(dimension.width < 800)
{
c = '\u0280';
c1 = '\u01B7';
byte1 = 36;
byte2 = 30;
byte0 = 12;
setLocation(0, 0);
}
setSize(getInsets().left + getInsets().right + c, getInsets().top + getInsets().bottom + c1);
AEFont = new Font("Dialog", 0, byte0);
AEBold = new Font("Dialog", 1, byte0);
Font font = new Font("SansSerif", 0, byte0 - 1);
setFont(AEFont);
DButton.setDefaultSize(byte1, byte2);
DButton.setDefaultFont(AEFont);
Tip.setParent(this);
Font font1 = AEFont;
mainMenuBar = new MenuBar();
mainMenuBar.setFont(font1);
menuFile = new DMenu("File");
menuFile.setFont(font1);
miFileLocate = new MenuItem("Find a file", new MenuShortcut(76));
miFileLocate.addActionListener(action);
miFileLocate.setFont(font1);
menuFile.add(miFileLocate);
menuFile.addSeparator();
miFileCopy = new MenuItem("Copy", new MenuShortcut(67));
miFileCopy.addActionListener(action);
miFileCopy.setFont(font1);
menuFile.add(miFileCopy);
miCopyInDir = new MenuItem("Copy inside dir", new MenuShortcut(68));
miCopyInDir.addActionListener(action);
miCopyInDir.setFont(font1);
menuFile.add(miCopyInDir);
miCopyRen = new MenuItem("Copy and rename");
miCopyRen.addActionListener(action);
miCopyRen.setFont(font1);
menuFile.add(miCopyRen);
menuFile.addSeparator();
miFileSelectAll = new MenuItem("Select all files");
miFileSelectAll.addActionListener(action);
miFileSelectAll.setFont(font1);
menuFile.add(miFileSelectAll);
miFileSelectAny = new MenuItem("Select all entries");
miFileSelectAny.addActionListener(action);
miFileSelectAny.setFont(font1);
menuFile.add(miFileSelectAny);
menuFile.addSeparator();
miExit = new MenuItem(menuLabel("Exit", " Alt+F4"));
miExit.addActionListener(action);
miExit.setFont(font1);
menuFile.add(miExit);
mainMenuBar.add(menuFile);
menuDir = new DMenu("Dir");
menuDir.setFont(font1);
miSwap = new MenuItem("Swap dirs", new MenuShortcut(83));
miSwap.addActionListener(action);
miSwap.setFont(font1);
menuDir.add(miSwap);
miDirExtend = new MenuItem("Use source for target");
miDirExtend.addActionListener(action);
miDirExtend.setFont(font1);
menuDir.add(miDirExtend);
menuDir.addSeparator();
miDirCompare = new MenuItem("Compare names", new MenuShortcut(69));
miDirCompare.addActionListener(action);
miDirCompare.setFont(font1);
menuDir.add(miDirCompare);
miCmpVersions = new MenuItem("Compare versions");
miCmpVersions.addActionListener(action);
miCmpVersions.setFont(font1);
menuDir.add(miCmpVersions);
miCmpContent = new MenuItem("Compare data");
miCmpContent.addActionListener(action);
miCmpContent.setFont(font1);
menuDir.add(miCmpContent);
miCmpFull = new MenuItem("Compare any");
miCmpFull.addActionListener(action);
miCmpFull.setFont(font1);
menuDir.add(miCmpFull);
menuDir.addSeparator();
miFileComp = new MenuItem("Tagged compare", new MenuShortcut(80));
miFileComp.addActionListener(action);
miFileComp.setFont(font1);
menuDir.add(miFileComp);
miUpdate = new MenuItem("Tagged update");
miUpdate.addActionListener(action);
miUpdate.setFont(font1);
menuDir.add(miUpdate);
menuDir.addSeparator();
miMake = new MenuItem("Make dir", new MenuShortcut(75));
miMake.addActionListener(action);
miMake.setFont(font1);
menuDir.add(miMake);
mainMenuBar.add(menuDir);
menuZip = new DMenu("Archive");
menuZip.setFont(font1);
menuZip.setFont(font1);
miView = new MenuItem("View");
miView.addActionListener(action);
miView.setFont(font1);
menuZip.add(miView);
miExtract = new MenuItem("Unarchive", new MenuShortcut(85));
miExtract.addActionListener(action);
miExtract.setFont(font1);
menuZip.add(miExtract);
miZip = new MenuItem("Archive", new MenuShortcut(90));
miZip.addActionListener(action);
miZip.setFont(font1);
menuZip.add(miZip);
mainMenuBar.add(menuZip);
menuEdit = new DMenu("Editor");
menuEdit.setFont(font1);
miUndo = new MenuItem(menuLabel("Undo", "Ctrl+Z"));
miUndo.addActionListener(action);
miUndo.setEnabled(false);
miUndo.setFont(font1);
menuEdit.add(miUndo);
menuEdit.addSeparator();
miFind = new MenuItem(menuLabel("Find", "Ctrl+F"));
miFind.addActionListener(action);
miFind.setEnabled(false);
miFind.setFont(font1);
menuEdit.add(miFind);
miFindAgain = new MenuItem(menuLabel("Find again", "F3"));
miFindAgain.addActionListener(action);
miFindAgain.setEnabled(false);
miFindAgain.setFont(font1);
menuEdit.add(miFindAgain);
miReplace = new MenuItem(menuLabel("Replace", "Ctrl+R"));
miReplace.addActionListener(action);
miReplace.setEnabled(false);
miReplace.setFont(font1);
menuEdit.add(miReplace);
menuEdit.addSeparator();
miSelectAll = new MenuItem("Select all");
miSelectAll.addActionListener(action);
miSelectAll.setEnabled(false);
miSelectAll.setFont(font1);
menuEdit.add(miSelectAll);
menuEdit.addSeparator();
miNew = new MenuItem("Create a blank text");
miNew.addActionListener(action);
miNew.setFont(font1);
menuEdit.add(miNew);
miOpenText = new MenuItem("Edit a text");
miOpenText.addActionListener(action);
miOpenText.setFont(font1);
menuEdit.add(miOpenText);
miClose = new MenuItem("Close the text");
miClose.addActionListener(action);
miClose.setFont(font1);
menuEdit.add(miClose);
menuEdit.addSeparator();
miInsert = new MenuItem(menuLabel("Insert a file", "Alt+I"));
miInsert.addActionListener(action);
miInsert.setEnabled(false);
miInsert.setFont(font1);
menuEdit.add(miInsert);
menuEdit.addSeparator();
miSave = new MenuItem(menuLabel("Save", "Ctrl+S"));
miSave.addActionListener(action);
miSave.setEnabled(false);
miSave.setFont(font1);
menuEdit.add(miSave);
miSaveAs = new MenuItem("Save as");
miSaveAs.addActionListener(action);
miSaveAs.setEnabled(false);
miSaveAs.setFont(font1);
menuEdit.add(miSaveAs);
miSaveBlock = new MenuItem(menuLabel("Save selection", "Alt+W"));
miSaveBlock.addActionListener(action);
miSaveBlock.setEnabled(false);
miSaveBlock.setFont(font1);
menuEdit.add(miSaveBlock);
mainMenuBar.add(menuEdit);
menuWeb = new DMenu("Web pages");
menuWeb.setFont(font1);
miThumbnail = new MenuItem("Thumbnail");
miThumbnail.addActionListener(action);
miThumbnail.setFont(font1);
menuWeb.add(miThumbnail);
miListe = new MenuItem("File list");
miListe.addActionListener(action);
miListe.setFont(font1);
menuWeb.add(miListe);
miOutline = new MenuItem("Outlined text");
miOutline.addActionListener(action);
miOutline.setFont(font1);
menuWeb.add(miOutline);
mainMenuBar.add(menuWeb);
tools = new MenuDynamic("Tools", font1, Preferences.menuSize);
tools.addActionListener(action);
mainMenuBar.add(tools);
miProgSearch = new MenuItem("Search and add");
miProgSearch.addActionListener(action);
tools.add(miProgSearch);
miProgClear = new MenuItem("Clear all");
miProgClear.addActionListener(action);
tools.add(miProgClear);
tools.addSeparator();
String s;
if(WINDOWS)
{
s = "DOS window";
Directory.root = "\\";
} else
{
Directory.root = "/";
s = "Console";
}
miDOS = new MenuItem(s);
miDOS.addActionListener(action);
miDOS.setFont(font1);
tools.add(miDOS);
miHistory = new MenuItem("Last messages", new MenuShortcut(72));
miHistory.addActionListener(action);
miHistory.setFont(font1);
tools.add(miHistory);
miFree = new MenuItem("Free memory");
miFree.setFont(font1);
miCalc = new MenuItem("Calculator");
miCalc.setFont(font1);
miCalc.addActionListener(action);
if(WINDOWS)
tools.add(miCalc);
miScan = new MenuItem("Disk Scan");
miScan.addActionListener(action);
miScan.setFont(font1);
if(WINDOWS)
tools.add(miScan);
miExplorer = new MenuItem("Explorer");
miExplorer.addActionListener(action);
miExplorer.setFont(font1);
if(WINDOWS)
tools.add(miExplorer);
tools.addSeparator();
references = new MenuDynamic("References", font1, Preferences.menuSize);
references.addActionListener(action);
mainMenuBar.add(references);
miTextClear = new MenuItem("Clear all");
miTextClear.addActionListener(action);
references.add(miTextClear);
references.addSeparator();
recents = new MenuDynamic("Recents", font1, Preferences.menuSize);
recents.addActionListener(action);
mainMenuBar.add(recents);
miRecentClear = new MenuItem("Clear all");
miRecentClear.addActionListener(action);
recents.add(miRecentClear);
recents.addSeparator();
menuHelp = new DMenu("Quick Search");
menuHelp.setFont(font1);
mainMenuBar.setHelpMenu(menuHelp);
miHelp = new MenuItem("Quick Search");
miHelp.addActionListener(action);
miHelp.setFont(font1);
menuHelp.add(miHelp);
miAbout = new MenuItem("Index");
miAbout.addActionListener(action);
miAbout.setFont(font1);
menuHelp.add(miAbout);
mainMenuBar.add(menuHelp);
setMenuBar(mainMenuBar);
panelTool = new CPanel();
panelTool.setBounds(getInsets().left + 0, getInsets().top + 0, 640, 38);
add(panelTool, "North");
toolDir = new DToolBar();
toolDir.setBackground(PrgBackground);
panelTool.add(toolDir, "");
toolText = new DToolBar();
toolText.setBackground(PrgBackground);
panelTool.add(toolText, "");
panelTool.validate();
statusbar = new DMessageBar();
statusbar.setBounds(getInsets().left + 0, getInsets().top + 446, 636, 16);
add(statusbar, "South");
statuscreated = true;
tabbedAE = new TabPanel(0, Preferences.tabStyle);
tabbedAE.setBackground(PrgBackground);
add(tabbedAE, "Center");
tabDir = new Panel(new GridLayout(1, 2));
tabDir.addKeyListener(aemainkeys);
tabDir.addComponentListener(symcomponent);
tabbedAE.addTabPanel("+File Manager", true, tabDir);
editor = new TextEditor(this);
editor.setVisible(false);
editor.addActionListener(action);
editor.addKeyListener(aemainkeys);
editor.addComponentListener(symcomponent);
tabbedAE.addTabPanel("+Editor", true, editor);
tabSetup = new Panel(new GridLayout());
tabSetup.setVisible(false);
tabSetup.addComponentListener(symcomponent);
tabbedAE.addTabPanel("+Options", true, tabSetup);
EmptyPanel emptypanel = new EmptyPanel(new BorderLayout());
tabDir.add(emptypanel);
DToolBar dtoolbar = new DToolBar(0);
emptypanel.add(dtoolbar, "North");
panelSrc = new CPanel();
panelSrc.setBackground(PrgBackground);
emptypanel.add(panelSrc, "Center");
panelRight = new CPanel();
tabDir.add(panelRight);
tabDst = new TabPanel(0, Preferences.tabStyle);
tabDst.setBevel(0);
tabDst.setBackground(PrgBackground);
tabDst.setMargins(1, 2, 2, 0);
tabDst.addComponentListener(symcomponent);
panelRight.add(tabDst);
panelThumbnail = new PanelThumbnail(this);
panelThumbnail.addActionListener(action);
panelRight.add(panelThumbnail);
panelList = new PanelList(this);
panelList.addActionListener(action);
panelRight.add(panelList);
panelOutline = new PanelOutline(this);
panelOutline.addActionListener(action);
panelRight.add(panelOutline);
panelArchive = new PanelArchive(this);
panelArchive.addActionListener(action);
panelRight.add(panelArchive);
panelRight.select(0);
source = new DirManager(this, statusbar);
source.addActionListener(action);
source.addKeyListener(aemainkeys);
source.addComponentListener(symcomponent);
source.setHistory(history);
source.setArchiver(archiver);
source.setUsage(0);
source.setTemporary(tempo);
panelSrc.add(source);
target = new DirManager(this, statusbar);
target.addActionListener(action);
target.addKeyListener(aemainkeys);
target.addComponentListener(symcomponent);
target.setHistory(history);
target.setUsage(1);
target.setTemporary(tempo);
tabDst.addTabPanel("Target", true, target);
treemanager = new TreeManager(this, statusbar);
treemanager.addActionListener(action);
treemanager.addComponentListener(symcomponent);
tabDst.addTabPanel("Tree", true, treemanager);
imageViewer = new ImageViewer();
imageViewer.addActionListener(action);
imageViewer.addComponentListener(symcomponent);
tabDst.addTabPanel("Image", true, imageViewer);
aesetup = new AESetup(this, PrgBackground, AEFont, AEBold);
aesetup.addActionListener(action);
tabSetup.add(aesetup);
aesetup.setMemory(mem);
setTitle(" Advanced Explorer ");
buttonSwap = new DButton(Icons.Swap, Icons.SwapGray);
buttonSwap.setTip("Swap source and target");
buttonSwap.addActionListener(dbuttonaction);
toolDir.add(buttonSwap);
buttonLR = new DButton(Icons.LR, Icons.LRGray);
buttonLR.setTip("Make source directory the target");
buttonLR.addActionListener(dbuttonaction);
toolDir.add(buttonLR);
buttonFileCopy = new DButton(Icons.FileCopy, Icons.CopyGray);
buttonFileCopy.setTip("Copy the selection into target");
buttonFileCopy.addActionListener(dbuttonaction);
toolDir.add(buttonFileCopy);
buttonUnarc = new DButton(Icons.Unzip, Icons.UnzipGray);
buttonUnarc.setTip("Extract tagged archive or selection inside");
buttonUnarc.addActionListener(dbuttonaction);
toolDir.add(buttonUnarc);
buttonLocate = new DButton(Icons.Locate);
buttonLocate.setTip("Find a file or a directory");
buttonLocate.addActionListener(dbuttonaction);
toolDir.add(buttonLocate);
buttonDirCompare = new DButton(Icons.Dcomp, Icons.DCompGray);
buttonDirCompare.setTip("Compare source and target lists");
buttonDirCompare.addActionListener(dbuttonaction);
toolDir.add(buttonDirCompare);
buttonExplorer = new DButton(Icons.Microsoft);
buttonExplorer.setTip("Windows' Explorer");
buttonExplorer.addActionListener(dbuttonaction);
if(WINDOWS)
toolDir.add(buttonExplorer);
toolDir.addSeparator(30, 36);
buttonDirNew = new DButton(Icons.New);
buttonDirNew.setTip("Create a blank text");
buttonDirNew.addActionListener(dbuttonaction);
toolDir.add(buttonDirNew);
buttonDirOpen = new DButton(Icons.Open);
buttonDirOpen.setTip("Open a document");
buttonDirOpen.addActionListener(dbuttonaction);
toolDir.add(buttonDirOpen);
buttonTextNew = new DButton(Icons.New);
buttonTextNew.setTip("Create a blank text");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -