Ignore:
Timestamp:
07/24/19 11:23:45 (5 years ago)
Author:
bln4
Message:

Renamed Frame.getItems() to Frame.getSortedItems() to better represent its functionality.

-> org.apollo.ApolloGestureActions
-> org.apollo.ApolloSystem
-> org.expeditee.actions.Actions
-> org.expeditee.actions.Debug
-> org.expeditee.actions.ExploratorySearchActions
-> org.expeditee.actions.JfxBrowserActions
-> org.expeditee.actions.Misc
-> org.expeditee.actions.Navigation
-> org.expeditee.actions.ScriptBase
-> org.expeditee.actions.Simple
-> org.expeditee.agents.ComputeTree
-> org.expeditee.agents.CopyTree
-> org.expeditee.agents.DisplayComet
-> org.expeditee.agents.DisplayTree
-> org.expeditee.agents.DisplayTreeLeaves
-> org.expeditee.agents.GraphFramesetLinks
-> org.expeditee.agents.TreeProcessor
-> org.expeditee.gio.gesture.StandardGestureActions
-> org.expeditee.gui.DisplayController
-> org.expeditee.gui.FrameCreator
-> org.expeditee.gui.FrameIO
-> org.expeditee.io.DefaultTreeWriter
-> org.expeditee.io.JavaWriter
-> org.expeditee.io.PDF2Writer
-> org.expeditee.io.TXTWriter
-> org.expeditee.io.WebParser
-> org.expeditee.io.flowlayout.XGroupItem
-> org.expeditee.items.Dot
-> org.expeditee.items.Item
-> org.expeditee.items.ItemUtils
-> org.expeditee.network.FrameShare
-> org.expeditee.stats.TreeStats


Created ItemsList class to wrap ArrayList<Item>. Frames now use this new class to store its body list (used for display) as well as its primaryBody and surrogateBody.

-> org.expeditee.agents.Format
-> org.expeditee.agents.HFormat
-> org.expeditee.gio.gesture.StandardGestureActions
-> org.expeditee.gui.Frame
-> org.expeditee.gui.FrameUtils


Refactorted Frame.setResort(bool) to Frame.invalidateSorted() to better function how it is intended to with a more accurate name.

-> org.expeditee.agents.Sort


When writing out .exp files and getting attributes to respond to LEFT + RIGHT click, boolean items are by default true. This has always been the case. An ammendment to this is that defaults can now be established.
Also added 'EnterClick' functionality. If cursored over a item with this property and you press enter, it acts as if you have clicked on it instead.

-> org.expeditee.assets.resources-public.framesets.authentication.1.exp to 6.exp
-> org.expeditee.gio.gesture.StandardGestureActions
-> org.expeditee.gio.input.KBMInputEvent
-> org.expeditee.gio.javafx.JavaFXConversions
-> org.expeditee.gio.swing.SwingConversions
-> org.expeditee.gui.AttributeUtils
-> org.expeditee.io.Conversion
-> org.expeditee.io.DefaultFrameWriter
-> org.expeditee.items.Item


Fixed a bug caused by calling Math.abs on Integer.MIN_VALUE returning unexpected result. Due to zero being a thing, you cannot represent Math.abs(Integer.MIN_VALUE) in a Integer object. The solution is to use Integer.MIN_VALUE + 1 instead of Integer.MIN_VALUE.

-> org.expeditee.core.bounds.CombinationBounds
-> org.expeditee.io.flowlayout.DimensionExtent


Recoded the contains function in EllipticalBounds so that intersection tests containing circles work correctly.

-> org.expeditee.core.bounds.EllipticalBounds


Added toString() to PolygonBounds to allow for useful printing during debugging.

-> org.expeditee.core.bounds.PolygonBounds

Implemented Surrogate Mode!

-> org.expeditee.encryption.io.EncryptedExpReader
-> org.expeditee.encryption.io.EncryptedExpWriter
-> org.expeditee.encryption.items.surrogates.EncryptionDetail
-> org.expeditee.encryption.items.surrogates.Label
-> org.expeditee.gui.FrameUtils
-> org.expeditee.gui.ItemsList
-> org.expeditee.items.Item
-> org.expeditee.items.Text


???? Use Integer.MAX_VALUE cast to a float instead of Float.MAX_VALUE. This fixed some bug which I cannot remember.

-> org.expeditee.gio.TextLayoutManager
-> org.expeditee.gio.swing.SwingTextLayoutManager


Improved solution for dealing with the F10 key taking focus away from Expeditee due to it being a assessibility key.

-> org.expeditee.gio.swing.SwingInputManager


Renamed variable visibleItems in FrameGraphics.paintFrame to itemsToPaintCanditates to better represent functional intent.

-> org.expeditee.gui.FrameGraphics


Improved checking for if personal resources exist before recreating them

-> org.expeditee.gui.FrameIO


Repeated messages to message bay now have a visual feedback instead of just a beep. This visual feedback is in the form of a count of the amount of times it has repeated.

-> org.expeditee.gui.MessageBay


Updated comment on the Vector class to explain what vectors are.

-> org.expeditee.gui.Vector


Added constants to represent all of the property keys in DefaultFrameReader and DefaultFrameWriter.

-> org.expeditee.io.DefaultFrameReader
-> org.expeditee.io.DefaultFrameWriter


Updated the KeyList setting to be more heirarcial with how users will store their Secrets.

-> org.expeditee.settings.identity.secrets.KeyList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/settings/Settings.java

    r1393 r1415  
    2121import java.lang.reflect.Field;
    2222import java.lang.reflect.Method;
     23import java.util.Collection;
    2324import java.util.HashMap;
    2425import java.util.Iterator;
     
    3031import org.expeditee.gui.FrameCreator;
    3132import org.expeditee.gui.MessageBay;
     33import org.expeditee.items.Item;
     34import org.expeditee.items.ItemParentStateChangedEvent;
    3235import org.expeditee.items.Text;
    3336import org.expeditee.items.widgets.Password;
     
    194197                                                }
    195198
    196                                                 if(s == null) continue;
     199                                                if(s == null) {
     200                                                        continue;
     201                                                }
    197202                                               
    198203                                                if(validPages.size() > 1) {
     
    226231        }
    227232               
     233                // Having parsed this page, we must alter all the items on the frame that they are no longer being shown.
     234                // For things such as WidgetCorners, this means that they will be removed from live consideration.
     235                Collection<Item> allItems = child.getAllItems();
     236                for (Item i: allItems) {
     237                        i.onParentStateChanged(new ItemParentStateChangedEvent(child, ItemParentStateChangedEvent.EVENT_TYPE_HIDDEN));
     238                }
     239               
    228240                // if the page was a settings page, check if it has any subpages
    229241                for(Text t : child.getTextItems()) {
     
    275287                        int x = 0, y = 0;
    276288                       
     289                        Frame currentFrame = frames.getCurrentFrame();
    277290                        if (key.toLowerCase().equals("pass")) {
    278291                                // Special case for Password widgets
     
    280293                                Password pw = new Password(passwordWidgetText, null);
    281294                                pw.setPassword("");
    282                                 frames.getCurrentFrame().removeItem(passwordWidgetText);
    283                                 frames.getCurrentFrame().addAllItems(pw.getItems());
     295                                currentFrame.removeItem(passwordWidgetText);
     296                                currentFrame.addAllItems(pw.getItems());
    284297                                x = passwordWidgetText.getX() + passwordWidgetText.getBoundsWidth();
    285298                                y = passwordWidgetText.getY();
     
    291304                                // Construct and add text representation for setting. 
    292305                                // If a setting has no initialised value then it is not included.
    293                                 Text settingRepresentation = setting.generateRepresentation(key, frames.getCurrentFrame().getFramesetName()).copy();
    294                                 if (settingRepresentation.getBounds() == null) {
     306                                String framesetName = currentFrame.getFramesetName();
     307                                Text template = setting.generateRepresentation(key, framesetName);
     308                                if (template == null) {
    295309                                        continue;
    296310                                }
    297                                 settingRepresentation.setID(frames.getCurrentFrame().getNextItemID());
     311                                Text settingRepresentation = template.copy();
     312                                if (settingRepresentation == null || settingRepresentation.getBounds() == null) {
     313                                        continue;
     314                                }
     315                                settingRepresentation.setID(currentFrame.getNextItemID());
    298316                                frames.addItem(settingRepresentation, false);                           
    299317                                x = settingRepresentation.getX() + settingRepresentation.getBoundsWidth();
     
    303321                        x = Math.max(250, x + 20);
    304322                        // Add tooltip for setting
    305                         Text tooltip = frames.getCurrentFrame().addText(x, y, "// " + setting.getTooltip(), null);
     323                        Text tooltip = currentFrame.addText(x, y, "// " + setting.getTooltip(), null);
    306324                        tooltip.rebuild(true);
    307325                        if (tooltip.getY() + tooltip.getBoundsHeight() > frames.getLastY()) {
Note: See TracChangeset for help on using the changeset viewer.