mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-02-28 09:29:53 +00:00
Added compile icon.
This commit is contained in:
parent
a75acf0e66
commit
3b0dd511cc
@ -875,7 +875,7 @@ public class DiskExplorerTab {
|
||||
}
|
||||
});
|
||||
item = new ToolItem(toolBar, SWT.SEPARATOR);
|
||||
|
||||
|
||||
item = new ToolItem(toolBar, SWT.CHECK);
|
||||
item.setImage(imageManager.getDeletedFilesIcon());
|
||||
item.setText("De&leted");
|
||||
@ -932,6 +932,14 @@ public class DiskExplorerTab {
|
||||
});
|
||||
item = new ToolItem(toolBar, SWT.SEPARATOR);
|
||||
|
||||
item = new ToolItem(toolBar, SWT.PUSH);
|
||||
item.setImage(imageManager.getCompileIcon());
|
||||
item.setText("Compile");
|
||||
item.setToolTipText("Compile a BASIC program");
|
||||
item.setEnabled(false);
|
||||
//FIXME - need a listener
|
||||
item = new ToolItem(toolBar, SWT.SEPARATOR);
|
||||
|
||||
deleteToolItem = new ToolItem(toolBar, SWT.PUSH);
|
||||
deleteToolItem.setImage(imageManager.getDeleteFileIcon());
|
||||
deleteToolItem.setText("D&elete");
|
||||
|
@ -47,6 +47,7 @@ public class ImageManager {
|
||||
private Image aboutIcon;
|
||||
private Image diskImageWizardLogo;
|
||||
private Image importWizardLogo;
|
||||
private Image compileIcon;
|
||||
/**
|
||||
* Construct the ImageManager.
|
||||
*/
|
||||
@ -67,6 +68,7 @@ public class ImageManager {
|
||||
aboutIcon = createImage(display, "about.gif");
|
||||
diskImageWizardLogo = createImage(display, "DiskImageWizardLogo.gif");
|
||||
importWizardLogo = createImage(display, "ImportWizardLogo.gif");
|
||||
compileIcon = createImage(display, "compile.gif");
|
||||
}
|
||||
/**
|
||||
* Dispose of resources.
|
||||
@ -88,6 +90,7 @@ public class ImageManager {
|
||||
aboutIcon.dispose();
|
||||
diskImageWizardLogo.dispose();
|
||||
importWizardLogo.dispose();
|
||||
compileIcon.dispose();
|
||||
}
|
||||
/**
|
||||
* Creates an image.
|
||||
@ -232,4 +235,12 @@ public class ImageManager {
|
||||
public Image getImportWizardLogo() {
|
||||
return importWizardLogo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the compileIcon.
|
||||
* @return Image
|
||||
*/
|
||||
public Image getCompileIcon() {
|
||||
return compileIcon;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user