Ignore:
Timestamp:
01/07/14 10:59:52 (10 years ago)
Author:
jts21
Message:

Switch to using specialised objects for settings so they make more a bit more sense (now each setting is a single object instead of multiple, and setter functions and default values are less hackish)
Also added tooltips (help strings) to settings, will need to add a way of displaying these (maybe add the idea of a tooltip which is a text item which only appears when hovering over another item?)
Converted all settings over to new format, everything seems to be working fine

Location:
trunk/src/org/expeditee/actions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Misc.java

    r645 r655  
    11601160                if(!FreeItems.textOnlyAttachedToCursor()) {
    11611161                        text = DisplayIO.getCurrentFrame().addText(FrameMouseActions.getX(), FrameMouseActions.getY(),
    1162                                         NetworkSettings.homePage, null);
     1162                                        NetworkSettings.HomePage.get(), null);
    11631163                        text.setParent(DisplayIO.getCurrentFrame());    // set parent of text source for InteractiveWidget.createWidget()
    11641164                        FrameMouseActions.pickup(text);                                 // Attach new text link to cursor
     
    13721372         */
    13731373        public static void resetHomeFrame() {
    1374                 Frame homeFrame = FrameIO.LoadFrame(UserSettings.HomeFrame);
     1374                Frame homeFrame = FrameIO.LoadFrame(UserSettings.HomeFrame.get());
    13751375                homeFrame.removeAllItems(homeFrame.getItems());
    13761376                homeFrame.addText(0, 0, "title", null);
    1377                 FrameUtils.CreateDefaultProfile(UserSettings.UserName, homeFrame);
     1377                FrameUtils.CreateDefaultProfile(UserSettings.UserName.get(), homeFrame);
    13781378        }
    13791379       
     
    13981398                        // If no text with url is passed to action create a new text item
    13991399                        if(!FreeItems.textOnlyAttachedToCursor()) {
    1400                                 url = NetworkSettings.homePage;                                 // use home page specified by settings
     1400                                url = NetworkSettings.HomePage.get();                                   // use home page specified by settings
    14011401                                text = DisplayIO.getCurrentFrame().addText(FrameMouseActions.getX(), FrameMouseActions.getY(),
    14021402                                                "Web Browser Session", null);
  • trunk/src/org/expeditee/actions/Navigation.java

    r570 r655  
    4242         */
    4343        public static void GotoHome() {
    44                 FrameUtils.DisplayFrame(UserSettings.HomeFrame);
     44                FrameUtils.DisplayFrame(UserSettings.HomeFrame.get());
    4545        }
    4646
     
    5454         */
    5555        public static void GotoProfile() {
    56                 FrameUtils.DisplayFrame(UserSettings.ProfileName + '1');
     56                FrameUtils.DisplayFrame(UserSettings.ProfileName.get() + '1');
    5757        }
    5858
  • trunk/src/org/expeditee/actions/Spelling.java

    r570 r655  
    2828                }
    2929                if (path == null) {
    30                         for (String possiblePath : UserSettings.FrameDirs) {
     30                        for (String possiblePath : UserSettings.FrameDirs.get()) {
    3131                                fullPath = FrameIO
    3232                                                .getFrameFullPathName(possiblePath, frameName);
Note: See TracChangeset for help on using the changeset viewer.