Remove Eclipse crap and update .gitignore so it doesn't happen again

This commit is contained in:
Michael Becker 2015-06-18 09:07:18 -04:00
parent 4b8d74e985
commit a04d310cb0
411 changed files with 1 additions and 20662 deletions

1
.gitignore vendored
View File

@ -171,6 +171,7 @@ CSharp/Setup/setup.exe
# Eclipse crap
.buildpath
.metadata
.project
.settings
RemoteSystemsTempFiles

View File

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<index/>

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<JavaRefs/>

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<uiBinderReferences>
<referenceManager>
<references/>
</referenceManager>
<uiBinderSubtypeToOwner/>
<uiBinderSubtypeToUiXml/>
<uiXmlReferencedFields/>
</uiBinderReferences>

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<qualifiedTypeNameHistroy/>

View File

@ -1,23 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import javax.swing.*;
import net.alcetech.UserInterface.Controls.Ribbon;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends JFrame
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
}

View File

@ -1,6 +0,0 @@
package net.alcetech.UserInterface;
public class SolidBrush extends Brush
{
}

View File

@ -1,76 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.UserInterface.Controls.Ribbon;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends JFrame implements ActionListener, WindowListener
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.addWindowListener(this);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
public void actionPerformed(ActionEvent evt)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
void windowIconified(WindowEvent e)
Invoked when a window is changed from a normal to a minimized state.
void windowOpened(WindowEvent e)
Invoked the first time a window is made visible.
}

View File

@ -1,38 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
int messageType = JOptionPane.PLAIN_MESSAGE;
switch (buttons)
{
case OK:
{
optionType = JOptionPane.OK_OPTION;
break;
}
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
}
Icon icon = null;
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
switch (retval)
{
case JOptionPane.OK_OPTION:
{
return MessageDialogResult.OK;
}
}
}
}

View File

@ -1,83 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.UserInterface.Controls.Ribbon;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends JFrame implements ActionListener, WindowListener
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.addWindowListener(this);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
public void actionPerformed(ActionEvent evt)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
Application.Exit()
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a normal to a minimized state.
*/
public void windowIconified(WindowEvent e)
{
}
/**
* Invoked the first time a window is made visible.
*/
public void windowOpened(WindowEvent e)
{
}
}

View File

@ -1,5 +0,0 @@
package net.alcetech.UserInterface;
public class Graphics {
}

View File

@ -1,55 +0,0 @@
package net.alcetech.UserInterface.Theming;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import javax.imageio.ImageIO;
import javax.swing.Icon;
import javax.swing.ImageIcon;
public class ThemeManager
{
private static String mvarCurrentThemeName = "Default";
public static String[] GetThemedIconFileNames(String iconName)
{
return new String[]
{
System.getProperty("user.dir") + "/Themes/" + mvarCurrentThemeName + "/Icons/32x32/" + iconName + ".png",
System.getProperty("user.dir") + "/Themes/" + mvarCurrentThemeName + "/Icons/16x16/" + iconName + ".png"
};
}
public static ImageIcon GetThemedIcon(String iconName, String size)
{
ImageIcon image = new ImageIcon("Themes/" + mvarCurrentThemeName + "/Icons/" + size + "/" + iconName + ".png");
return image;
}
public static ArrayList<Image> GetThemedIconImages(String iconName)
{
ArrayList<Image> images = new ArrayList<Image>();
String lastFileName = "";
String[] files = GetThemedIconFileNames(iconName);
try
{
for (int i = 0; i < files.length; i++)
{
File file = new File(files[i]);
lastFileName = file.getAbsolutePath();
images.add(ImageIO.read(file));
}
}
catch (IOException e)
{
// TODO Auto-generated catch block
System.out.println("Could not load icon '" + iconName + "' for theme '" + mvarCurrentThemeName + "' at '" + lastFileName + "'");
}
return images;
}
}

View File

@ -1,70 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
this.setLayout(new BorderLayout());
JMenu mnuFile = new JMenu();
mnuFile.setText("File");
mnuFile.setMnemonic('F');
JMenuItem mnuFileExit = new JMenuItem();
mnuFileExit.setText("Exit");;
mnuFileExit.setMnemonic('x');
mnuFileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK));
mnuFile.add(mnuFileExit);
CommandBar cbMenuBar = new CommandBar();
cbMenuBar.add(mnuFile);
this.add(cbMenuBar, BorderLayout.NORTH);
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,61 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
int messageType = JOptionPane.PLAIN_MESSAGE;
switch (buttons)
{
case OK:
{
optionType = JOptionPane.OK_OPTION;
break;
}
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
case YesNo:
{
optionType = JOptionPane.YES_NO_OPTION;
break;
}
case YesNoCancel:
{
optionType = JOptionPane.YES_NO_CANCEL_OPTION;
break;
}
}
Icon icon = null;
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
switch (retval)
{
case JOptionPane.OK_OPTION:
{
if (buttons == MessageDialogButtons.YesNo || buttons == MessageDialogButtons.YesNoCancel)
{
return MessageDialogResult.Yes;
}
return MessageDialogResult.OK;
}
case JOptionPane.NO_OPTION:
{
return MessageDialogResult.No;
}
case JOptionPane.CANCEL_OPTION:
{
return MessageDialogResult.Cancel;
}
}
return MessageDialogResult.None;
}
}

View File

@ -1,90 +0,0 @@
package net.alcetech.UserInterface.Controls;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
public class Window extends JFrame implements ActionListener, WindowListener
{
/**
*
*/
private static final long serialVersionUID = 8818390338655566157L;
public Window()
{
this.addWindowListener(this);
this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
this.setLocationByPlatform(true);
}
public void actionPerformed(ActionEvent e)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
OnClosed(EventArgs.Empty);
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
CancelEventArgs ce = new CancelEventArgs();
OnClosing(ce);
if (ce.getCancel()) return;
this.dispose();
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a normal to a minimized state.
*/
public void windowIconified(WindowEvent e)
{
}
/**
* Invoked the first time a window is made visible.
*/
public void windowOpened(WindowEvent e)
{
}
protected void OnClosing(CancelEventArgs e)
{
}
protected void OnClosed(EventArgs e)
{
}
}

View File

@ -1,13 +0,0 @@
package net.alcetech.UserInterface;
public class Graphics
{
private java.awt.Graphics mvarUnderlyingGraphics = null;
public Graphics(java.awt.Graphics underlyingGraphics)
{
mvarUnderlyingGraphics = underlyingGraphics;
}
}

View File

@ -1,7 +0,0 @@
package net.alcetech.UniversalEditor.Core.IO;
public class Reader extends ReaderWriter
{
}

View File

@ -1,7 +0,0 @@
package net.alcetech.UniversalEditor.Core;
public class Document
{
private Accessor mvarInputAccessor = null;
}

View File

@ -1,42 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
if (MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before exiting?", "Close Program", MessageDialogButtons.YesNoCancel) == MessageDialogResult.Cancel)
{
e.cancel();
}
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,22 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Rectangle;
public class Graphics
{
private java.awt.Graphics mvarUnderlyingGraphics = null;
public Graphics(java.awt.Graphics underlyingGraphics)
{
mvarUnderlyingGraphics = underlyingGraphics;
}
public void fillRectangle(Brush brush, Rectangle rect)
{
fillRectangle(rect.x, rect.y, rect.width, rect.height);
}
public void fillRectangle(Brush brush, int x, int y, int width, int height)
{
mvarUnderlyingGraphics.fillRect(x, y, width, height);
}
}

View File

@ -1,11 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

View File

@ -1,42 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
if (MessageDialog.ShowDialog(this, "Are you sure you wish to close the program?", "Close Program", MessageDialogButtons.YesNoCancel) == MessageDialogResult.Cancel)
{
e.cancel();
}
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,25 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.ActionListener;
import javax.swing.*;
import net.alcetech.UserInterface.Controls.Ribbon;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends JFrame implements ActionListener
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
}

View File

@ -1,57 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
CommandBar cbMenuBar = new CommandBar();
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,7 +0,0 @@
package net.alcetech.UniversalEditor.Core.IO;
public enum Endianness
{
BigEndian,
LittleEndian
}

View File

@ -1,11 +0,0 @@
package net.alcetech.UserInterface.Controls;
import javax.swing.JComponent;
public class RibbonTab extends JComponent
{
private String mvarText = "";
public String getText() { return mvarText; }
public void setText(String value) { mvarText = value; }
}

View File

@ -1,13 +0,0 @@
package net.alcetech.UserInterface;
public enum MessageDialogResult
{
None = 0,
OK,
Cancel,
Abort,
Retry,
Ignore,
Yes,
No
}

View File

@ -1,75 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window implements ActionListener
{
private Ribbon ribbon = new Ribbon();
private JMenuItem mnuFileExit = new JMenuItem();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
this.setLayout(new BorderLayout());
JMenu mnuFile = new JMenu();
mnuFile.setText("File");
mnuFile.setMnemonic('F');
mnuFileExit.setText("Exit");;
mnuFileExit.setMnemonic('x');
mnuFileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK));
mnuFile.add(mnuFileExit);
CommandBar cbMenuBar = new CommandBar();
cbMenuBar.add(mnuFile);
this.add(cbMenuBar, BorderLayout.NORTH);
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
if (evt.getSource() == mnuFileExit)
{
Application.Exit();
}
}
}

View File

@ -1,12 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import javax.swing.*;
public class MainWindow extends JFrame
{
public MainWindow()
{
this.setSize(800, 600);;
}
}

View File

@ -1,89 +0,0 @@
package net.alcetech.UserInterface.Controls;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
public class Window extends JFrame implements ActionListener, WindowListener
{
/**
*
*/
private static final long serialVersionUID = 8818390338655566157L;
public Window()
{
this.addWindowListener(this);
this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
}
public void actionPerformed(ActionEvent e)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
CancelEventArgs ce = new CancelEventArgs();
OnClosing(ce);
if (ce.getCancel()) return;
this.dispose();
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a normal to a minimized state.
*/
public void windowIconified(WindowEvent e)
{
}
/**
* Invoked the first time a window is made visible.
*/
public void windowOpened(WindowEvent e)
{
}
protected void OnClosing(CancelEventArgs e)
{
}
protected void OnClosed(EventArgs e)
{
}
}

View File

@ -1,76 +0,0 @@
package net.alcetech.UserInterface.Controls;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
public class Window extends JFrame implements ActionListener, WindowListener
{
/**
*
*/
private static final long serialVersionUID = 8818390338655566157L;
public Window()
{
this.addWindowListener(this);
}
public void actionPerformed(ActionEvent e)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
CancelEventArgs ce = new CancelEventArgs();
OnClosing(ce);
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a normal to a minimized state.
*/
public void windowIconified(WindowEvent e)
{
}
/**
* Invoked the first time a window is made visible.
*/
public void windowOpened(WindowEvent e)
{
}
}

View File

@ -1,9 +0,0 @@
package net.alcetech.UserInterface.Controls;
public class RibbonTab extends JComponent
{
private String mvarText = "";
public String getText() { return mvarText; }
public void setText(String value) { mvarText = value; }
}

View File

@ -1,8 +0,0 @@
package net.alcetech.UserInterface.Controls;
import javax.swing.JMenuBar;
public class CommandBar extends JMenuBar
{
}

View File

@ -1,11 +0,0 @@
package net.alcetech.UserInterface.Controls;
import javax.swing.*;
public class Window extends JFrame implements ActionListener, WindowListener
{
public Window()
{
this.addWindowListener(this);
}
}

View File

@ -1,6 +0,0 @@
package net.alcetech.Core;
public class EventArgs
{
}

View File

@ -1,6 +0,0 @@
package net.alcetech.UserInterface;
public enum MessageDialogButtons
{
}

View File

@ -1,6 +0,0 @@
package net.alcetech.UserInterface;
public final class Brushes
{
public static final Brush Blue = new SolidBrush(new Color(0, 0, 255));
}

View File

@ -1,5 +0,0 @@
package net.alcetech.UserInterface;
public class Brush {
}

View File

@ -1,14 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import javax.swing.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends JFrame
{
public MainWindow()
{
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
}

View File

@ -1,77 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window implements ActionListener
{
private Ribbon ribbon = new Ribbon();
private JMenuItem mnuFileExit = new JMenuItem();
private void InitializeComponent()
{
this.addActionListener(this);
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
this.setLayout(new BorderLayout());
JMenu mnuFile = new JMenu();
mnuFile.setText("File");
mnuFile.setMnemonic('F');
mnuFileExit.setText("Exit");;
mnuFileExit.setMnemonic('x');
mnuFileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK));
mnuFile.add(mnuFileExit);
CommandBar cbMenuBar = new CommandBar();
cbMenuBar.add(mnuFile);
this.add(cbMenuBar, BorderLayout.NORTH);
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
if (evt.getSource() == mnuFileExit)
{
Application.Exit();
}
}
}

View File

@ -1,22 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Rectangle;
public class Graphics
{
private java.awt.Graphics mvarUnderlyingGraphics = null;
public Graphics(java.awt.Graphics underlyingGraphics)
{
mvarUnderlyingGraphics = underlyingGraphics;
}
public void fillRectangle(Rectangle rect)
{
fillRectangle(rect.x, rect.y, rect.width, rect.height);
}
public void fillRectangle(int x, int y, int width, int height)
{
mvarUnderlyingGraphics.fillRect(x, y, width, height);
}
}

View File

@ -1,43 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
int messageType = JOptionPane.PLAIN_MESSAGE;
switch (buttons)
{
case OK:
{
optionType = JOptionPane.OK_OPTION;
break;
}
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
}
Icon icon = null;
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
switch (retval)
{
case JOptionPane.OK_OPTION:
{
return MessageDialogResult.OK;
}
case JOptionPane.CANCEL_OPTION:
{
return MessageDialogResult.Cancel;
}
}
return MessageDialogResult.None;
}
}

View File

@ -1,75 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private JMenuItem mnuFileExit = new JMenuItem();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
this.setLayout(new BorderLayout());
JMenu mnuFile = new JMenu();
mnuFile.setText("File");
mnuFile.setMnemonic('F');
mnuFileExit.setText("Exit");;
mnuFileExit.setMnemonic('x');
mnuFileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK));
mnuFile.add(mnuFileExit);
CommandBar cbMenuBar = new CommandBar();
cbMenuBar.add(mnuFile);
this.add(cbMenuBar, BorderLayout.NORTH);
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
if (evt.getSource() == mnuFileExit)
{
}
}
}

View File

@ -1,58 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
CommandBar cbMenuBar = new CommandBar();
this.add(cbMenuBar, BorderLayout.NORTH);
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,27 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
switch (buttons)
{
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
case OK:
{
optionType = JOptionPane.OK_OPTION;
break;
}
}
Icon icon = null;
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
}
}

View File

@ -1,5 +0,0 @@
package net.alcetech.UniversalEditor;
public class MainWindow {
}

View File

@ -1,56 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
MessageDialog.ShowDialog(this, "If you say so.", "Not canceling")
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,11 +0,0 @@
package net.alcetech.UserInterface;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(JComponent parent, String message, String title, MessageDialogButtons buttons)
{
int retval = JOptionPane.showConfirmDialog(parent, message)
}
}

View File

@ -1,6 +0,0 @@
package net.alcetech.UniversalEditor.Core;
public class Reader
{
}

View File

@ -1,24 +0,0 @@
package net.alcetech.UserInterface.Controls;
import net.alcetech.UserInterface.*;
import javax.swing.JComponent;
public class RibbonTab extends JComponent
{
/**
*
*/
private static final long serialVersionUID = 4019174621392475533L;
private String mvarTitle = "";
public String getTitle() { return mvarTitle; }
public void setTitle(String value) { mvarTitle = value; }
protected void paintComponent(java.awt.Graphics _g)
{
super.paintComponent(g);
Graphics g = new Graphics(_g);
}
}

View File

@ -1,77 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window implements ActionListener
{
private Ribbon ribbon = new Ribbon();
private JMenuItem mnuFileExit = new JMenuItem();
private void InitializeComponent()
{
super.addActionListener(this);
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
this.setLayout(new BorderLayout());
JMenu mnuFile = new JMenu();
mnuFile.setText("File");
mnuFile.setMnemonic('F');
mnuFileExit.setText("Exit");;
mnuFileExit.setMnemonic('x');
mnuFileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_DOWN_MASK));
mnuFile.add(mnuFileExit);
CommandBar cbMenuBar = new CommandBar();
cbMenuBar.add(mnuFile);
this.add(cbMenuBar, BorderLayout.NORTH);
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
if (evt.getSource() == mnuFileExit)
{
Application.Exit();
}
}
}

View File

@ -1,90 +0,0 @@
package net.alcetech.UserInterface.Controls;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
public class Window extends JFrame implements ActionListener, WindowListener
{
/**
*
*/
private static final long serialVersionUID = 8818390338655566157L;
public Window()
{
this.addWindowListener(this);
this.setLocationByPlatform(true);
this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
}
public void actionPerformed(ActionEvent e)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
OnClosed(EventArgs.Empty);
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
CancelEventArgs ce = new CancelEventArgs();
OnClosing(ce);
if (ce.getCancel()) return;
this.dispose();
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a normal to a minimized state.
*/
public void windowIconified(WindowEvent e)
{
}
/**
* Invoked the first time a window is made visible.
*/
public void windowOpened(WindowEvent e)
{
}
protected void OnClosing(CancelEventArgs e)
{
}
protected void OnClosed(EventArgs e)
{
}
}

View File

@ -1,14 +0,0 @@
package net.alcetech.UniversalEditor.Core.IO;
public class Reader
{
private Endianness mvarEndianness = Endianness.BigEndian;
public void setEndianness(Endianness value)
{
mvarEndianness = value;
}
public Endianness getEndianness()
{
return mvarEndianness;
}
}

View File

@ -1,16 +0,0 @@
package net.alcetech.UniversalEditor.Core.IO;
public class Reader
{
private Endianness mvarEndianness = Endianness.BigEndian;
public void setEndianness(Endianness value)
{
mvarEndianness = value;
}
public Endianness getEndianness()
{
return mvarEndianness;
}
}

View File

@ -1,71 +0,0 @@
package net.alcetech.UserInterface.Controls;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
public class Window extends JFrame implements ActionListener, WindowListener
{
public Window()
{
this.addWindowListener(this);
}
public void actionPerformed(ActionEvent e)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
CancelEventArgs ce = new CancelEventArgs();
OnClosing(ce);
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a normal to a minimized state.
*/
public void windowIconified(WindowEvent e)
{
}
/**
* Invoked the first time a window is made visible.
*/
public void windowOpened(WindowEvent e)
{
}
}

View File

@ -1,32 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.UserInterface.Controls.Ribbon;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends JFrame implements ActionListener, WindowListener
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.addWindowListener(this);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,9 +0,0 @@
package net.alcetech.UniversalEditor;
public class Program
{
public static void main(String[] args)
{
System.out.println("Hello world!");
}
}

View File

@ -1,14 +0,0 @@
package net.alcetech.UserInterface.Controls.Ribbon;
import javax.swing.JComponent;
public class RibbonControl extends JComponent
{
/**
*
*/
private static final long serialVersionUID = 9178388103241727516L;
}

View File

@ -1,25 +0,0 @@
package net.alcetech.UserInterface.Controls;
import net.alcetech.UserInterface.*;
import javax.swing.JComponent;
public class RibbonTab extends JComponent
{
/**
*
*/
private static final long serialVersionUID = 4019174621392475533L;
private String mvarTitle = "";
public String getTitle() { return mvarTitle; }
public void setTitle(String value) { mvarTitle = value; }
protected void paintComponent(java.awt.Graphics _g)
{
super.paintComponent(_g);
Graphics g = new Graphics(_g);
}
}

View File

@ -1,31 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.UserInterface.Controls.Ribbon;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends JFrame implements ActionListener, WindowListener
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,56 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
int messageType = JOptionPane.PLAIN_MESSAGE;
switch (buttons)
{
case OK:
{
optionType = JOptionPane.OK_OPTION;
break;
}
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
case YesNo:
{
optionType = JOptionPane.YES_NO_OPTION;
break;
}
}
Icon icon = null;
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
switch (retval)
{
case JOptionPane.OK_OPTION:
{
if (buttons == MessageDialogButtons.YesNo || buttons == MessageDialogButtons.YesNoCancel)
{
return MessageDialogResult.Yes;
}
return MessageDialogResult.OK;
}
case JOptionPane.NO_OPTION:
{
return MessageDialogResult.No;
}
case JOptionPane.CANCEL_OPTION:
{
return MessageDialogResult.Cancel;
}
}
return MessageDialogResult.None;
}
}

View File

@ -1,13 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import javax.swing.*;
public class MainWindow extends JFrame
{
public MainWindow()
{
this.setIconImage();
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
}

View File

@ -1,11 +0,0 @@
package net.alcetech.UserInterface;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(String message, String title, MessageDialogButtons buttons)
{
int retval = JOptionPane.showConfirmDialog(, message)
}
}

View File

@ -1,7 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

View File

@ -1,39 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
int messageType = JOptionPane.PLAIN_MESSAGE;
switch (buttons)
{
case OK:
{
optionType = JOptionPane.OK_OPTION;
break;
}
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
}
Icon icon = null;
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
switch (retval)
{
case JOptionPane.OK_OPTION:
{
return MessageDialogResult.OK;
}
}
return MessageDialogResult.None;
}
}

View File

@ -1,11 +0,0 @@
package net.alcetech.UserInterface;
public enum MessageDialogButtons
{
OK,
OKCancel,
YesNo,
YesNoCancel,
AbortRetryIgnore,
CancelTryAgainContinue
}

View File

@ -1,87 +0,0 @@
package net.alcetech.UserInterface.Controls;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
public class Window extends JFrame implements ActionListener, WindowListener
{
/**
*
*/
private static final long serialVersionUID = 8818390338655566157L;
public Window()
{
this.addWindowListener(this);
this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
}
public void actionPerformed(ActionEvent e)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
CancelEventArgs ce = new CancelEventArgs();
OnClosing(ce);
if (ce.getCancel()) return;
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a normal to a minimized state.
*/
public void windowIconified(WindowEvent e)
{
}
/**
* Invoked the first time a window is made visible.
*/
public void windowOpened(WindowEvent e)
{
}
protected void OnClosing(CancelEventArgs e)
{
}
protected void OnClosed(EventArgs e)
{
}
}

View File

@ -1,11 +0,0 @@
package net.alcetech.UserInterface.Controls;
import javax.swing.JComponent;
public class RibbonTab extends JComponent
{
private String mvarText = "";
public String getText() { return mvarText; }
public void setText(String value) { mvarText = value; }
}

View File

@ -1,72 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title)
{
return ShowDialog(owner, message, title, MessageDialogButtons.OK);
}
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
int messageType = JOptionPane.PLAIN_MESSAGE;
boolean okayOnly = false;
switch (buttons)
{
case OK:
{
okayOnly = true;
break;
}
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
case YesNo:
{
optionType = JOptionPane.YES_NO_OPTION;
break;
}
case YesNoCancel:
{
optionType = JOptionPane.YES_NO_CANCEL_OPTION;
break;
}
}
Icon icon = null;
if (okayOnly)
{
JOptionPane.showMessageDialog(owner, message, title, messageType, icon);
return MessageDialogResult.OK;
}
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
switch (retval)
{
case JOptionPane.OK_OPTION:
{
if (buttons == MessageDialogButtons.YesNo || buttons == MessageDialogButtons.YesNoCancel)
{
return MessageDialogResult.Yes;
}
return MessageDialogResult.OK;
}
case JOptionPane.NO_OPTION:
{
return MessageDialogResult.No;
}
case JOptionPane.CANCEL_OPTION:
{
return MessageDialogResult.Cancel;
}
}
return MessageDialogResult.None;
}
}

View File

@ -1,58 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
CommandBar cbMenuBar = new CommandBar();
this.add(cbMenuBar);
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
MessageDialogResult result = MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel);
switch (result)
{
case Yes:
{
break;
}
case No:
{
break;
}
case Cancel:
{
e.cancel();
break;
}
}
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,26 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Rectangle;
public class Graphics
{
private java.awt.Graphics mvarUnderlyingGraphics = null;
public Graphics(java.awt.Graphics underlyingGraphics)
{
mvarUnderlyingGraphics = underlyingGraphics;
}
public void fillRectangle(Brush brush, Rectangle rect)
{
fillRectangle(brush, rect.x, rect.y, rect.width, rect.height);
}
public void fillRectangle(Brush brush, int x, int y, int width, int height)
{
if (SolidBrush.class.isInstance(brush))
{
SolidBrush sb = (SolidBrush)brush;
}
mvarUnderlyingGraphics.fillRect(x, y, width, height);
}
}

View File

@ -1,22 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Rectangle;
public class Graphics
{
private java.awt.Graphics mvarUnderlyingGraphics = null;
public Graphics(java.awt.Graphics underlyingGraphics)
{
mvarUnderlyingGraphics = underlyingGraphics;
}
public void fillRectangle(Rectangle rect)
{
fillRectangle(rect.x, rect.y, rect.width, rect.height);
}
public void fillRectangle(int x, int y, int width, int height)
{
mvarUnderlyingGraphics.fillRect(x, y, width, height);
}
}

View File

@ -1,11 +0,0 @@
package net.alcetech.UserInterface;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component parent, String message, String title, MessageDialogButtons buttons)
{
int retval = JOptionPane.showConfirmDialog(parent, message)
}
}

View File

@ -1,20 +0,0 @@
package net.alcetech.UserInterface.Controls;
import javax.swing.JComponent;
public class RibbonTab extends JComponent
{
/**
*
*/
private static final long serialVersionUID = 4019174621392475533L;
private String mvarTitle = "";
public String getTitle() { return mvarTitle; }
public void setTitle(String value) { mvarTitle = value; }
protected void paintComponent(Graphics g)
{
super.paintComponent(g);
}
}

View File

@ -1,25 +0,0 @@
package net.alcetech.UserInterface.Controls;
import net.alcetech.UserInterface.*;
import javax.swing.JComponent;
public class RibbonTab extends JComponent
{
/**
*
*/
private static final long serialVersionUID = 4019174621392475533L;
private String mvarTitle = "";
public String getTitle() { return mvarTitle; }
public void setTitle(String value) { mvarTitle = value; }
protected void paintComponent(java.awt.Graphics _g)
{
super.paintComponent(g);
Graphics g = new Graphics(_g);
}
}

View File

@ -1,71 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title)
{
return ShowDialog(owner, message, title, MessageDialogButtons.OK);
}
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
int messageType = JOptionPane.PLAIN_MESSAGE;
boolean okayOnly = false;
switch (buttons)
{
case OK:
{
okayOnly = true;
break;
}
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
case YesNo:
{
optionType = JOptionPane.YES_NO_OPTION;
break;
}
case YesNoCancel:
{
optionType = JOptionPane.YES_NO_CANCEL_OPTION;
break;
}
}
Icon icon = null;
if (okayOnly)
{
JOptionPane.showMessageDialog(owner, message, title, messageType, icon);
}
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
switch (retval)
{
case JOptionPane.OK_OPTION:
{
if (buttons == MessageDialogButtons.YesNo || buttons == MessageDialogButtons.YesNoCancel)
{
return MessageDialogResult.Yes;
}
return MessageDialogResult.OK;
}
case JOptionPane.NO_OPTION:
{
return MessageDialogResult.No;
}
case JOptionPane.CANCEL_OPTION:
{
return MessageDialogResult.Cancel;
}
}
return MessageDialogResult.None;
}
}

View File

@ -1,5 +0,0 @@
package net.alcetech.UserInterface.Controls;
public class RibbonTab {
}

View File

@ -1,13 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int retval = JOptionPane.showConfirmDialog(owner, message)
}
}

View File

@ -1,42 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.*;
import net.alcetech.UserInterface.*;
import net.alcetech.UserInterface.Controls.*;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends Window
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
protected void OnClosing(CancelEventArgs e)
{
if (MessageDialog.ShowDialog(this, "You have unsaved changes. Do you wish to save your changes before closing this window?", "Close Program", MessageDialogButtons.YesNoCancel) == MessageDialogResult.Cancel)
{
e.cancel();
}
}
public void actionPerformed(ActionEvent evt)
{
}
}

View File

@ -1,67 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JOptionPane;
public class MessageDialog
{
public static MessageDialogResult ShowDialog(Component owner, String message, String title)
{
return ShowDialog(owner, message, title, MessageDialogButtons.OK);
}
public static MessageDialogResult ShowDialog(Component owner, String message, String title, MessageDialogButtons buttons)
{
int optionType = 0;
int messageType = JOptionPane.PLAIN_MESSAGE;
boolean okayOnly = false;
switch (buttons)
{
case OK:
{
optionType = JOptionPane.OK_OPTION;
break;
}
case OKCancel:
{
optionType = JOptionPane.OK_CANCEL_OPTION;
break;
}
case YesNo:
{
optionType = JOptionPane.YES_NO_OPTION;
break;
}
case YesNoCancel:
{
optionType = JOptionPane.YES_NO_CANCEL_OPTION;
break;
}
}
Icon icon = null;
int retval = JOptionPane.showConfirmDialog(owner, message, title, optionType, messageType, icon);
switch (retval)
{
case JOptionPane.OK_OPTION:
{
if (buttons == MessageDialogButtons.YesNo || buttons == MessageDialogButtons.YesNoCancel)
{
return MessageDialogResult.Yes;
}
return MessageDialogResult.OK;
}
case JOptionPane.NO_OPTION:
{
return MessageDialogResult.No;
}
case JOptionPane.CANCEL_OPTION:
{
return MessageDialogResult.Cancel;
}
}
return MessageDialogResult.None;
}
}

View File

@ -1,5 +0,0 @@
package net.alcetech.UserInterface.Controls.Ribbon;
public class RibbonControl {
}

View File

@ -1,11 +0,0 @@
package net.alcetech.UserInterface;
public enum MessageDialogButtons
{
OK,
OKCancel,
YesNo,
YesNoCancel,
AbortRetryIgnore,
CancelTryAgainContinue
}

View File

@ -1,10 +0,0 @@
package net.alcetech.UserInterface;
import java.awt.Color;
public class SolidBrush extends Brush
{
private Color mvarColor;
public Color getColor() { return mvarColor; }
public void setColor(Color value) { mvarColor = value; }
}

View File

@ -1,84 +0,0 @@
package net.alcetech.UniversalEditor.Windows;
import java.awt.event.*;
import javax.swing.*;
import net.alcetech.Core.Application;
import net.alcetech.UserInterface.Controls.Ribbon;
import net.alcetech.UserInterface.Theming.ThemeManager;
public class MainWindow extends JFrame implements ActionListener, WindowListener
{
private Ribbon ribbon = new Ribbon();
private void InitializeComponent()
{
this.add(this.ribbon);
this.addWindowListener(this);
this.setIconImages(ThemeManager.GetThemedIconImages("MainIcon"));
this.setSize(800, 600);
this.setTitle("Universal Editor");
}
public MainWindow()
{
InitializeComponent();
}
public void actionPerformed(ActionEvent evt)
{
}
/**
* Invoked when the Window is set to be the active Window.
*/
public void windowActivated(WindowEvent e)
{
}
/**
* Invoked when a window has been closed as the result of calling dispose on the window.
*/
public void windowClosed(WindowEvent e)
{
}
/**
* Invoked when the user attempts to close the window from the window's system menu.
*/
public void windowClosing(WindowEvent e)
{
Application.Exit();
}
/**
* Invoked when a Window is no longer the active Window.
*/
public void windowDeactivated(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a minimized to a normal state.
*/
public void windowDeiconified(WindowEvent e)
{
}
/**
* Invoked when a window is changed from a normal to a minimized state.
*/
public void windowIconified(WindowEvent e)
{
}
/**
* Invoked the first time a window is made visible.
*/
public void windowOpened(WindowEvent e)
{
}
}

Some files were not shown because too many files have changed in this diff Show More