 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.maincontrol;
22 import java.awt.BorderLayout;
23 import java.awt.Container;
25 import java.io.IOException;
26 import java.util.List;
27 import java.util.MissingResourceException;
28 import java.util.ResourceBundle;
29 import java.util.prefs.Preferences;
30 import javax.swing.Action;
31 import javax.swing.ImageIcon;
32 import javax.swing.JFrame;
33 import javax.swing.JMenu;
34 import javax.swing.JMenuBar;
212 import net.
sf.japi.swing.action.ActionBuilder;
213 import net.
sf.japi.swing.action.ActionBuilderFactory;
214 import net.
sf.japi.swing.tod.TipOfTheDayManager;
215 import net.
sf.japi.util.ThrowableHandler;
216 import org.apache.log4j.Category;
217 import org.apache.log4j.Logger;
218 import org.jetbrains.annotations.NotNull;
231 private static final ActionBuilder
ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder(
"net.sf.gridarta");
325 final String spellFile = editorFactory.getSpellFile();
354 final GameObjectAttributesDialogFactory<G, A, R> gameObjectAttributesDialogFactory =
new GameObjectAttributesDialogFactory<>(
projectModel.
getArchetypeTypeSet(),
mainViewFrame, treasureListTree,
projectModel.
getFaceObjectProviders(),
projectModel.
getAnimationObjects(),
projectModel.
getProjectSettings(), editorFactory.getMapFileFilter(), editorFactory.getScriptFileFilter(),
projectModel.
getFaceObjects(),
projectModel.
getGameObjectSpells(),
projectModel.
getNumberSpells(), editorFactory.getUndefinedSpellIndex(),
projectModel.
getTreasureTree(), noFaceSquareIcon, unknownSquareIcon, textAreaDefaults,
projectModel.
getMapManager());
358 final ScriptArchEditor<G, A, R> scriptArchEditor =
new ScriptArchEditor<>(scriptedEventFactory, editorFactory.getScriptExtension(), editorFactory.getScriptName(), scriptArchUtils, editorFactory.getScriptFileFilter(),
projectModel.
getProjectSettings(),
projectModel.
getMapManager(),
projectModel.
getPathManager(),
scriptEditControl);
359 final ScriptArchDataUtils<G, A, R> scriptArchDataUtils = editorFactory.newScriptArchDataUtils(scriptArchUtils, scriptedEventFactory, scriptedEventEditor);
377 final ArchetypeChooserView<G, A, R> archetypeChooserView =
new ArchetypeChooserView<>(editorFactory.isCreateDirectionPane(),
projectModel.
getArchetypeChooserModel(),
projectModel.
getFaceObjectProviders(), displayGameObjectNamesAction, displayArchetypeNamesAction, displayIconsOnlyAction, displayModeGameObjectNames, displayModeArchetypeNames, displayModeIconsOnly);
381 fileControl =
new DefaultFileControl<>(
projectModel.
getProjectSettings(), volatileSettings, mapImageCache,
projectModel.
getMapManager(),
mapViewsManager,
mainViewFrame,
GuiFileFilters.
MAP_FILE_FILTER, editorFactory.getScriptFileFilter(),
newMapDialogFactory,
scriptExtension,
scriptEditControl,
projectModel.
getPathManager());
383 final PickmapChooserControl<G, A, R> pickmapChooserControl =
new PickmapChooserControl<>(pickmapChooserModel, pickmapSettings,
newMapDialogFactory, mapFolderTree,
projectModel.
getMapManager(),
mainViewFrame,
mapViewsManager,
fileControl, pickmapChooserView);
388 final MapActions<G, A, R> mapActions =
new MapActions<>(
mainViewFrame,
projectModel.
getMapManager(), mapViewManager, exitMatcher,
GuiFileFilters.
MAP_FILE_FILTER, selectedSquareModel, editorFactory.isAllowRandomMapParameters(), mapPropertiesDialogFactory, mapViewSettings,
mapViewsManager, enterMap,
projectModel.
getProjectSettings());
397 final ToolPalette<G, A, R> toolPalette =
new ToolPalette<>(mapViewSettings, selectedSquareModel, objectChooser, pickmapSettings, floorMatcher, wallMatcher, monsterMatcher, insertionModeSet);
415 editorActionManager.
createAction(
"prevWindow",
"Map,Window", mapDesktop);
416 editorActionManager.
createAction(
"nextWindow",
"Map,Window", mapDesktop);
417 editorActionManager.
createAction(
"addNewPickmap",
"Pickmap", pickmapChooserControl);
418 editorActionManager.
createAction(
"openPickmapMap",
"Pickmap", pickmapChooserControl);
419 editorActionManager.
createAction(
"deletePickmap",
"Pickmap", pickmapChooserControl);
420 editorActionManager.
createAction(
"savePickmap",
"Pickmap", pickmapChooserControl);
421 editorActionManager.
createAction(
"revertPickmap",
"Pickmap", pickmapChooserControl);
423 editorActionManager.
createAction(
"mapCreateView",
"Map,Window", mapActions);
424 editorActionManager.
createAction(
"mapProperties",
"Map", mapActions);
426 editorActionManager.
createAction(
"shrinkMapSize",
"Map", mapActions);
427 editorActionManager.
createAction(
"enterExit",
"Map Navigation", mapActions);
428 editorActionManager.
createAction(
"nextExit",
"Map Navigation", mapActions);
429 editorActionManager.
createAction(
"prevExit",
"Map Navigation", mapActions);
430 editorActionManager.
createAction(
"deleteUnknownObjects",
"Map Navigation", mapActions);
431 editorActionManager.
createAction(
"enterNorthMap",
"Map Navigation", mapActions);
432 editorActionManager.
createAction(
"enterEastMap",
"Map Navigation", mapActions);
433 editorActionManager.
createAction(
"enterSouthMap",
"Map Navigation", mapActions);
434 editorActionManager.
createAction(
"enterWestMap",
"Map Navigation", mapActions);
435 editorActionManager.
createAction(
"enterNorthEastMap",
"Map Navigation", mapActions);
436 editorActionManager.
createAction(
"enterSouthEastMap",
"Map Navigation", mapActions);
437 editorActionManager.
createAction(
"enterSouthWestMap",
"Map Navigation", mapActions);
438 editorActionManager.
createAction(
"enterNorthWestMap",
"Map Navigation", mapActions);
439 editorActionManager.
createAction(
"enterUpMap",
"Map Navigation", mapActions);
440 editorActionManager.
createAction(
"enterDownMap",
"Map Navigation", mapActions);
441 editorActionManager.
createAction(
"createTileNorth",
"Map/Create Tile", mapActions);
442 editorActionManager.
createAction(
"createTileEast",
"Map/Create Tile", mapActions);
443 editorActionManager.
createAction(
"createTileSouth",
"Map/Create Tile", mapActions);
444 editorActionManager.
createAction(
"createTileWest",
"Map/Create Tile", mapActions);
445 editorActionManager.
createAction(
"createTileNorthEast",
"Map/Create Tile", mapActions);
446 editorActionManager.
createAction(
"createTileSouthEast",
"Map/Create Tile", mapActions);
447 editorActionManager.
createAction(
"createTileSouthWest",
"Map/Create Tile", mapActions);
448 editorActionManager.
createAction(
"createTileNorthWest",
"Map/Create Tile", mapActions);
449 editorActionManager.
createAction(
"createTileUp",
"Map/Create Tile", mapActions);
450 editorActionManager.
createAction(
"createTileDown",
"Map/Create Tile", mapActions);
456 editorActionManager.
createToggleAction(
"tileStretching",
"Map Navigation", mapActions);
462 editorActionManager.
createAction(
"undo",
"Undo", undoControl);
463 editorActionManager.
createAction(
"redo",
"Undo", undoControl);
466 editorActionManager.
createAction(
"createPickmapFolder",
"Pickmap", mapFolderTreeActions);
467 editorActionManager.
createAction(
"deletePickmapFolder",
"Pickmap", mapFolderTreeActions);
468 editorActionManager.
createAction(
"resetView",
"Map", viewActions);
469 editorActionManager.
createAction(
"saveMap",
"Map", mapFileActions);
470 editorActionManager.
createAction(
"saveMapAs",
"Map", mapFileActions);
471 editorActionManager.
createAction(
"createImage",
"Map,Image", mapFileActions);
472 editorActionManager.
createAction(
"reloadMap",
"Map", mapFileActions);
473 editorActionManager.
createAction(
"closeMap",
"Map", mapFileActions);
474 editorActionManager.
createAction(
"clear",
"Copy Buffer", mainActions);
475 editorActionManager.
createAction(
"cut",
"Copy Buffer", mainActions);
476 editorActionManager.
createAction(
"copy",
"Copy Buffer", mainActions);
477 editorActionManager.
createAction(
"paste",
"Copy Buffer", mainActions);
478 editorActionManager.
createAction(
"pasteTiled",
"Copy Buffer", mainActions);
479 editorActionManager.
createAction(
"shiftNorth",
"Map/Shift", mainActions);
480 editorActionManager.
createAction(
"shiftNorthEast",
"Map/Shift", mainActions);
481 editorActionManager.
createAction(
"shiftEast",
"Map/Shift", mainActions);
482 editorActionManager.
createAction(
"shiftSouthEast",
"Map/Shift", mainActions);
483 editorActionManager.
createAction(
"shiftSouth",
"Map/Shift", mainActions);
484 editorActionManager.
createAction(
"shiftSouthWest",
"Map/Shift", mainActions);
485 editorActionManager.
createAction(
"shiftWest",
"Map/Shift", mainActions);
486 editorActionManager.
createAction(
"shiftNorthWest",
"Map/Shift", mainActions);
487 editorActionManager.
createAction(
"find",
"Map", mainActions);
488 editorActionManager.
createAction(
"findNext",
"Map", mainActions);
489 editorActionManager.
createAction(
"findPrev",
"Map", mainActions);
490 editorActionManager.
createAction(
"replace",
"Map", mainActions);
491 editorActionManager.
createAction(
"fillAuto",
"Map/Fill", mainActions);
492 editorActionManager.
createAction(
"fillAbove",
"Map/Fill", mainActions);
493 editorActionManager.
createAction(
"fillBelow",
"Map/Fill", mainActions);
494 editorActionManager.
createAction(
"randFillAuto",
"Map/Fill", mainActions);
495 editorActionManager.
createAction(
"randFillAbove",
"Map/Fill", mainActions);
496 editorActionManager.
createAction(
"randFillBelow",
"Map/Fill", mainActions);
497 editorActionManager.
createAction(
"floodFill",
"Map/Fill", mainActions);
498 editorActionManager.
createAction(
"massChange",
"Map", mainActions);
499 editorActionManager.
createAction(
"selectAll",
"Map/Selection", mainActions);
500 editorActionManager.
createAction(
"invertSelection",
"Map/Selection", mainActions);
501 editorActionManager.
createAction(
"expandEmptySelection",
"Map/Selection", mainActions);
502 editorActionManager.
createAction(
"tileStretchingSet",
"Map,Tile Stretching", mainActions);
503 editorActionManager.
createAction(
"tileStretchingClear",
"Map,Tile Stretching", mainActions);
504 editorActionManager.
createAction(
"tileStretchingIncrease",
"Map,Tile Stretching", mainActions);
505 editorActionManager.
createAction(
"tileStretchingDecrease",
"Map,Tile Stretching", mainActions);
525 editorActionManager.
createAction(
"moveCursorNorth",
"Map Cursor,Map/Selection", mapCursorActions);
526 editorActionManager.
createAction(
"moveCursorEast",
"Map Cursor,Map/Selection", mapCursorActions);
527 editorActionManager.
createAction(
"moveCursorSouth",
"Map Cursor,Map/Selection", mapCursorActions);
528 editorActionManager.
createAction(
"moveCursorWest",
"Map Cursor,Map/Selection", mapCursorActions);
529 editorActionManager.
createAction(
"moveCursorNorthEast",
"Map Cursor,Map/Selection", mapCursorActions);
530 editorActionManager.
createAction(
"moveCursorSouthEast",
"Map Cursor,Map/Selection", mapCursorActions);
531 editorActionManager.
createAction(
"moveCursorSouthWest",
"Map Cursor,Map/Selection", mapCursorActions);
532 editorActionManager.
createAction(
"moveCursorNorthWest",
"Map Cursor,Map/Selection", mapCursorActions);
553 editorActionManager.
createAction(
"exitCopy",
"Exit Connector", exitConnectorController);
554 editorActionManager.
createAction(
"exitPaste",
"Exit Connector", exitConnectorController);
555 editorActionManager.
createAction(
"exitConnect",
"Exit Connector", exitConnectorController);
557 final JMenuBar menuBar =
ACTION_BUILDER.createMenuBar(
true,
"main");
562 final String compassIconName = editorFactory.getCompassIconName();
563 final ImageIcon compassIcon = compassIconName ==
null ? null : resourceIcons.getResourceIcon(compassIconName);
564 mainView.
addTab(
new Tab(
"selectedSquare",
new SelectedSquareView<>(selectedSquareModel, gameObjectAttributesDialogFactory, objectChooser, mapViewManager, mapViewSettings, compassIcon,
projectModel.
getFaceObjectProviders(), unknownSquareIcon, moveSquareUpAction, moveSquareDownAction, moveSquareTopAction, moveSquareBottomAction, moveSquareEnvAction, moveSquareInvAction),
Location.RIGHT,
false, 1,
true));
568 if (windowMenu ==
null) {
569 LOG.warn(
"'main' menu bar does not define 'window' menu.");
574 final JMenu pickmapFoldersMenu =
MenuUtils.
getMenu(menuBar,
"pickmapFolders");
575 if (pickmapFoldersMenu ==
null) {
576 LOG.warn(
"'main' menu bar does not define 'pickmapFolders' menu.");
582 if (viewMenu ==
null) {
583 LOG.warn(
"'main' menu bar does not define 'view' menu.");
588 if (pluginsMenu ==
null) {
589 LOG.warn(
"'main' menu bar does not define 'plugins' menu.");
598 gameObjectAttributesControl.
addTab(textEditorTab);
611 if (recentMenu ==
null) {
612 LOG.warn(
"'main' menu bar does not define 'recent' menu.");
614 recentMapMenuManager.
setMenu(recentMenu);
618 if (bookmarksMenu ==
null) {
619 LOG.warn(
"'main' menu bar does not define 'bookmarks' menu.");
621 bookmarksMapMenuManager.
setMenu(bookmarksMenu);
625 if (analyzeMenu ==
null) {
626 LOG.warn(
"'main' menu bar does not define 'analyze' menu.");
637 if (!pickmapChooserModel.
isEmpty()) {
650 delayedMapModelListenerManager.
start();
660 return ResourceBundle.getBundle(
"build").getString(
"build.number");
661 }
catch (
final MissingResourceException ignored) {
662 return "unknown version";
671 private void openFile(@NotNull
final File file)
throws IOException {
672 final boolean isScriptFile = file.getName().toLowerCase().endsWith(
scriptExtension);
679 }
else if (!file.exists()) {
694 for (
int i =
files.size() - 1; i >= 0; i--) {
695 final File file =
files.get(i);
698 }
catch (
final IOException ex) {
713 public void run(@NotNull
final List<File> args) {
ProjectSettings getProjectSettings()
GameObjectParser< G, A, R > getGameObjectParser()
The action for importing a plugin from a file.
Tracks map views and attaches/detaches MapMouseListener instances.
Encapsulates default settings for a text area.
Factory for creating ScriptedEvent instances.
static final String APP_ICON
Application icon definitions (icon-dir).
void openFile(@NotNull final File file)
Loads a map file.
Maintains the application preferences state.
A View for choosing pickmaps.
Shows an image of the current map and allows the user to save it.
void init(@NotNull final Iterable< NamedGameObjectMatcher > gameObjectMatchers)
Creates the view actions.
final MainView mainView
The MainView instance.
An EditorAction that shows the help dialog.
final JFrame mainViewFrame
The main window's JFrame.
Classes for the script editor used within the editor to create and modify Python and Lua scripts.
Classes implementing the pickmap chooser.
void setPickmapFoldersMenu(@Nullable final JMenu folderMenu)
Sets the pickmap folders menu to manage.
Manager for shortcuts of all Actions in an {} instance.
Common base class for the panel that allows users to edit a GameObject's attributes.
The "Arch" tab in the archetype chooser.
This package contains the other part of the script editor.
An net.sf.gridarta.utils.EditorAction that moves the selected game object in the SelectedSquareModel ...
Loader for pickmaps from a directory.
Base package of all Gridarta classes.
An net.sf.gridarta.utils.EditorAction that moves the selected game object in the SelectedSquareModel ...
An net.sf.gridarta.utils.EditorAction that moves the selected game object in the SelectedSquareModel ...
The controller of the monster view control.
Standard Edition Runtime Environment README Import and export control rules on cryptographic software vary from country to country The Java Cryptography Java provides two different sets of cryptographic policy files
Utility class defining FileFilters.
void setFileControl(@NotNull final FileControl< G, A, R > fileControl)
MapReaderFactory< G, A > getMapReaderFactory()
The "Face" tab in the archetype chooser.
void run(@NotNull final List< File > args)
Starts the editor: makes the main window visible and opens map files.
Tracks key presses and maps them to actions.
void handleThrowable(@NotNull final Throwable t)
static final String SQUARE_NO_FACE
Stores all known MapFiles.
void setMenu(@Nullable final Container viewActionsMenu)
Sets the menu to add the actions to.
void createToggleAction(@NotNull final String name, @NotNull final String category, @NotNull final EditorAction editorAction)
Initializes a new action.
An EditorAction that opens the game object attributes dialog for the currently selected game object.
void openFiles(@NotNull final List< File > files)
Load a list of map files.
Default implementation of VolatileSettings.
The Tab displaying the game object text editor.
Common types for event archetypes.
FaceObjectProviders getFaceObjectProviders()
ArchetypeChooserModel< G, A, R > getArchetypeChooserModel()
Implements the "Game Object Text Editor".
Creates and displays the replace dialog.
Implements the controller for undo/redo actions.
ArchetypeTypeSet getArchetypeTypeSet()
Maintains a set of EditorAction instances and calls their event listener callbacks.
void addMapManager(@NotNull final MapManager< G, A, R > mapManager)
Registers a MapManager to track.
void createActionOptional(@NotNull final String name, @NotNull final String category, @Nullable final EditorAction editorAction)
Initializes a new action.
MapModelFactory< G, A, R > getMapModelFactory()
void setFileControl(@NotNull final FileControl< G, A, R > fileControl)
static final Preferences PREFERENCES
The Preferences.
Interface for classes displaying error messages.
The controller of the locked items view control.
PluginModel< G, A, R > getPluginModel()
Creates images from map instances.
SmoothFaces getSmoothFaces()
An net.sf.gridarta.utils.EditorAction that moves the selected game object in the SelectedSquareModel ...
Interface for classes that match GameObjects.
MainControl is a central class that's used for access on global data structures / collections and glo...
An EditorAction that finishes a selection process when the mouse button is released.
Reflects a game object (object on a map).
Container for settings that affect the rendering of maps.
void addTab(@NotNull final GameObjectAttributesTab< G, A, R > tab)
Adds a tab.
Encapsulates actions and related functions.
Selects valid exit game objects from maps.
A tab in a TabbedPanel component.
static final ActionBuilder ACTION_BUILDER
The ActionBuilder.
GameObjectMatcher getMatcher(@NotNull final String... ids)
Returns a matcher by id; returns.
An ErrorPanel displays errors to the user.
final NewMapDialogFactory< G, A, R > newMapDialogFactory
The NewMapDialogFactory instance for creating new maps or pickmaps.
An EditorAction that grows the current selection by one map square.
The action for saving modified plugins.
boolean isEmpty()
Returns whether no pickmaps exist in the current folder.
Helper class for entering maps.
File getPickmapDir()
Returns the pickmap directory.
Graphical User Interface of Gridarta.
void validate(@NotNull final ArchetypeSet<?, ?, ?> archetypeSet)
Validates an ArchetypeSet instance.
void movePickmapChooserToFront()
An EditorAction that opens the bookmarks manager.
void startup()
Eventually perform an update during startup.
Main window of the level editor.
Caches icon and preview images for map files.
The panel that displays the game objects of the currently selected map square.
Settings that apply to the editor.
GameObjects are the objects based on Archetypes found on maps.
An EditorAction that toggles the current pre-selection in the selection.
void showNewMapDialog()
Shows a dialog for creating a new map.
Dialog to edit events linked to item scripting.
static final String CLOSE_TAB_SMALL_ICON
int getArchetypeCount()
Returns the number of Archetypes available.
An GameObjectMatcher matching certain archetype types.
Convenience class for adding messages to a ErrorView instance using a fixed category name.
static final String DEFAULT_ICON
The default map icon to use if no icon can be created.
The Replace dialog: replaces game objects in a map.
An EditorAction that creates a new bookmark for the current map.
An EditorAction that removes the current pre-selection from the selection.
ArchetypeSet< G, A, R > getArchetypeSet()
An EditorAction that inserts a new game object into the current map.
Classes related to matching {GameObjects}, so called { net.sf.gridarta.model.match....
void handleThrowable(final Throwable t)
This implementation displays the exception in a modal message dialog.
An EditorAction that runs the archetype collection.
Reading and writing of Atrinik maps.
Classes which implement the {} action.
Utility class for validating AnimationObject instances.
Interface for MapArchObjects.
Collection< NamedGameObjectMatcher > getFilters()
Return all known game object matchers that should be used as filters.
An EditorAction that selects the game object above the current game object.
AbstractResources< G, A, R > getResources()
void loadShortcuts()
Restores all shortcuts from the preferences.
The model of the game object attributes dialog.
final ScriptEditControl scriptEditControl
The ScriptEditControl instance.
The model component of the selected square control.
Dialog to create events linked to item scripting.
Default PickmapSettings implementation.
void setTextAreaDefaults(@NotNull final TextAreaDefaults textAreaDefaults)
A DisplayMode showing archetypes as images and archetype name.
An EditorAction that selects the game object below the current game object.
Creates the main GUI of Gridarta.
Manager for GoExitDialog instances.
Default MapViewSettings implementation.
Utility class to create NewMapDialog instances.
PluginView< G, A, R > getView()
static final Category LOG
The logger for printing log messages.
Maintains loaded PickmapState instances.
void createMenuEntries(@NotNull JMenu menu)
Creates and displays the find dialog.
DelegatingMapValidator< G, A, R > getValidators()
An EditorAction that opens the "Create New Map" dialog.
GameObjectFactory< G, A, R > getGameObjectFactory()
Implements the auto-validator for map validation.
Implements actions related to the MainView.
final ProjectModel< G, A, R > projectModel
The ProjectModel to edit.
Common base implementation of CopyBuffer.
The main toolbar of the application.
A Tab that displays the currently selected GameObject.
An EditorAction that adds the current pre-selection to the selection.
static String getString(@NotNull final ActionBuilder actionBuilder, @NotNull final String key, @NotNull final String defaultValue)
Returns the value of a key.
MapArchObjectFactory< A > getMapArchObjectFactory()
Manages actions in the "map" menu.
A Tab that displays map validator results.
This class handles updating the map editor.
static< G extends GameObject< G, A, R > A extends R extends Archetype< G, A, R > ScriptArchUtils loadScriptArchUtils(@NotNull final ErrorView errorView, final EditorFactory< G, A, R > editorFactory, @NotNull final ArchetypeTypeSet archetypeTypeSet)
An EditorAction that edits or creates a map file.
MapManager< G, A, R > getPickmapManager()
void openScriptFile(@NotNull final File file)
Opens a script file.
void setPopupMenu(@NotNull final JPopupMenu popupMenu)
Sets the popup menu to show.
Action createAction(@NotNull final String name, @NotNull final String category, @NotNull final EditorAction editorAction)
Initializes a new action.
An net.sf.gridarta.utils.EditorAction that selects the previous game object in the SelectedSquareMode...
A factory that creates dialogs for editing game object attributes.
An net.sf.gridarta.utils.EditorAction that selects the next game object in the SelectedSquareModel.
Utility class implementing actions that operate on ExitConnectorModels.
Creates images from map instances.
static final String SQUARE_UNKNOWN
GameObjectMatchers getGameObjectMatchers()
Manager for GoMapDialog instances.
static final String DEFAULT_PREVIEW
The default map preview to use if no icon can be created.
An EditorAction that runs the map validator on the current map.
final String scriptExtension
The extensions of event script files.
Factory for creating PluginParameterView instances.
An net.sf.gridarta.utils.EditorAction that moves the selected game object in the SelectedSquareModel ...
Provides support for delayed notification of MapModel changes.
A factory for creating ConfigSources.
An EditorAction that toggles whether map lighting is visible.
GameObjectMatcher getMatcherWarn(@NotNull final ErrorViewCollector errorViewCollector, @NotNull final String... ids)
Returns a matcher by id; prints a warning if the matcher does not exist.
Default ExitConnectorModel implementation.
PathManager getPathManager()
An EditorAction that displays the find archetypes dialog.
That control of the archetype chooser.
void setObjectChooser(@NotNull final ObjectChooser< G, A, R > objectChooser)
ScriptEditControl - Manages events and data flow for the script editor entity.
void start()
Starts execution.
An EditorAction that edits or creates a script file.
The controller of the connection view control.
final UpdaterManager updaterManager
The UpdaterManager instance.
Abstract controller base class for map view controls.
static String getBuildNumberAsString()
Returns the application's build number as a string.
void validate(@NotNull final Iterable< AnimationObject > animationObjects)
Validates a set of AnimationObjects.
The object Chooser implementation.
JPanel getView()
Returns the view for this controller.
Spells< NumberSpell > getNumberSpells()
An EditorAction that deletes the currently selected game object.
Settings that are not retained across editor restarts.
Factory for creating MapRenderer instances.
The "Msg Text" tab in the game object attributes panel.
The JDesktopPane containing all map views.
Base classes for rendering maps.
InsertionMode getTopmostInsertionMode()
The controller of the exit connector.
File getConfigurationDirectory()
Returns the configuration directory which is used to load configuration information like types....
A factory for creating MapView instances.
void addTab(@NotNull final Tab tab)
Adds a tab.
GUIMainControl(@NotNull final ProjectModel< G, A, R > projectModel, @NotNull final EditorSettings editorSettings, @NotNull final ErrorView errorView, @NotNull final ResourceIcons resourceIcons, @NotNull final EditorFactory< G, A, R > editorFactory, @NotNull final ConfigSourceFactory configSourceFactory)
Creates a new instance.
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
Utility class for validating ArchetypeSet instances.
The "Events" tab in the game object attributes panel.
Component getComponent()
Returns the Component that shows all map views.
An EditorAction tha shows the treasurelists dialog.
AbstractMapManager< G, A, R > getMapManager()
An EditorAction that closes all map windows.
final DefaultFileControl< G, A, R > fileControl
The DefaultFileControl instance.
The tab containing the game object text editor.
An EditorAction that displays the browse archetypes dialog.
Utility class for ActionBuilder related functions.
void load()
Loads all pickmap files from a directory and its sub-directories.
An EditorAction that openes the "go location" dialog.
Default FileControl implementation.
Creates ImageIcon instances from resources.
final MapViewsManager< G, A, R > mapViewsManager
The MapViewsManager instance.
Abstract base class for classes implementing display modes of the archetype chooser.
File getMapsDirectory()
Returns the default maps directory.
An EditorAction that shows the "tip of the day" dialog.
A DisplayMode showing archetypes as images only.
MapView< G, A, R > openMapFileWithView(@NotNull final MapFile mapFile, @Nullable final Point viewPosition)
Loads a map file and creates a map view.
void reportLoadError(@Nullable final File file, @NotNull final String message)
Stores information needed by the exit connector.
Manages the pickmap panel and most pickmap-related code in general.
A Filter that aggregates named filters.
A DisplayMode showing archetypes as images and in-game game object name.
Encapsulates functionality related to actions for pickmap folder selection.
Displays the contents of the currently selected map square.
Stores all existing MapViews.
void setMenu(@Nullable final JMenu menuScripts)
Set the menu to add script commands to.
PluginParameters newPluginParameters(@NotNull final Object rendererFactory)
Creates a new PluginParameters instance for this project model.
Manages edit type actions in "view" menu.
void newScript()
Open a new empty script document.
An EditorAction that runs the map export on the current map.
Factory for creating map property dialog instances.
The CFTreasureListTree class fully manages treasurelists.
Implements the main status bar of the application.
An EditorAction that saves all modified maps.
An EditorAction that reloads all images from disk.
FaceObjects getFaceObjects()
net.sf.gridarta.model.scripts.ScriptArchData related functions.
Container for settings that affect pickmaps.
TreasureTree getTreasureTree()
An net.sf.gridarta.utils.EditorAction that moves the selected game object in the SelectedSquareModel ...
static final FileFilter MAP_FILE_FILTER
Swing FileFilter for map files.
Implements views of links between GameObjects or groups or.
An EditorAction that toggles a selection process.
An EditorAction that shrinks the current selection by one map square.
AnimationObjects getAnimationObjects()
The view of the archetype chooser.
UI parts of the implementation of an Undo / Redo in Gridarta.
Implements actions for the "file" menu attached to maps.
Spells< GameObjectSpell< G, A, R > > getGameObjectSpells()
Interface used as preferences location.