checks for file modifications

This commit is contained in:
bancika
2011-01-15 14:04:33 +00:00
parent d16ee1d890
commit 52df431beb
8 changed files with 248 additions and 52 deletions
@@ -26,6 +26,12 @@ public enum EventType {
* or loaded with undo/redo operations.
*/
PROJECT_LOADED,
/**
* Called when either current file name or modified flag are changed. The
* first parameter is the current file name, the second one is a boolean
* modified flag.
*/
FILE_STATUS_CHANGED,
/**
* Called when selection rectangle is changed. Object of type
* {@link Rectangle} is the only parameter and it contains the new selection
@@ -73,6 +73,18 @@ public interface IPlugInPort {
* @param freshStart
*/
void loadProject(Project project, boolean freshStart);
void createNewProject();
void loadProjectFromFile(String fileName);
void saveProjectToFile(String fileName);
String getCurrentFileName();
boolean isProjectModified();
boolean allowFileAction();
/**
* Returns all available {@link ComponentType}s classified by category.