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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/widgets/JfxBrowser.java

    r645 r655  
    407407        public JfxBrowser(Text source, String[] args) {
    408408                // Initial page is either the page stored in the arguments (if there is one stored) or the homepage
    409                 super(source, new WebBrowserPanel((args != null && args.length > 0) ? args[0] : NetworkSettings.homePage), -1, 500, -1, -1, 300, -1);
     409                super(source, new WebBrowserPanel((args != null && args.length > 0) ? args[0] : NetworkSettings.HomePage.get()), -1, 500, -1, -1, 300, -1);
    410410                _browser = (WebBrowserPanel) _swingComponent;
    411411                _browser.owner = this;
     
    434434                                (firstSpace != -1 && firstSpace < firstSQ)) {      // no '/' or '?'             -> search
    435435                                // make it a search
    436                                 actualURL = NetworkSettings.searchEngine + url;
     436                                actualURL = NetworkSettings.SearchEngine.get() + url;
    437437                        } else {
    438438                                // add the missing protocol
Note: See TracChangeset for help on using the changeset viewer.