Changeset 37341


Ignore:
Timestamp:
2023-02-22T22:17:16+13:00 (14 months ago)
Author:
davidb
Message:

Next phase of webswing gli development: better colour for text on disabled tab text; busy cursor shown when first loading in; expanded to previewURL and downloadURL for better future-proofing

Location:
main/trunk/gli
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/classes/xml/configWebswing.xml

    r37336 r37341  
    6969    <Argument name="coloring.collection_selection_background">128, 180, 216</Argument>
    7070    <Argument name="coloring.collection_selection_foreground">0, 0, 0</Argument>
    71     <Argument name="coloring.collection_tree_background">215, 237, 205</Argument>   <!-- pale green, used to be 223 250 224-->
     71    <Argument name="coloring.collection_tree_background">215, 237, 205</Argument>   <!-- pale green, used to be 223, 250, 224-->
    7272    <Argument name="coloring.collection_tree_foreground">0, 0, 0</Argument>
    73     <Argument name="coloring.collection_noneditable_background">212, 212, 212</Argument> <!-- used to be 192, 192, 292 -->
     73    <Argument name="coloring.collection_noneditable_background">212, 212, 212</Argument> <!-- used to be 192, 192, 192 -->
    7474    <Argument name="coloring.collection_noneditable_foreground">0, 0, 0</Argument>
    7575    <Argument name="coloring.disabled">206, 206, 206</Argument>
  • main/trunk/gli/src/org/greenstone/gatherer/Configuration.java

    r37310 r37341  
    945945    UIManager.put("Panel.background", new ColorUIResource(getColor("coloring.collection_heading_background", false)));
    946946    UIManager.put("Label.background", new ColorUIResource(getColor("coloring.collection_heading_background", false)));
    947     UIManager.put("TabbedPane.background", new ColorUIResource(getColor("coloring.collection_heading_background", false)));
     947
     948    //
     949    // Commenting out the following, as did not give the desired result in WebSwing GLI
     950    // => Was causing the disabled text to tabs (e.g., when a collection is closed) to be bright green text
     951    //    If comment this out has, in turn, an undesirable effect on Desktop GLI, then wrap up in an if-statement
     952    //
     953    //UIManager.put("TabbedPane.background", new ColorUIResource(getColor("coloring.collection_heading_background", false)));
    948954    UIManager.put("SplitPane.background", new ColorUIResource(getColor("coloring.collection_heading_background", false)));
    949955    UIManager.put("CheckBox.background", new ColorUIResource(getColor("coloring.collection_heading_background", false)));
  • main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r37337 r37341  
    3737import javax.swing.text.*;
    3838
     39import org.webswing.toolkit.api.WebswingUtil;
    3940
    4041import org.greenstone.gatherer.Configuration;
     
    9293    static private Dimension size = new Dimension(800, 540);
    9394    static public RemoteGreenstoneServer remoteGreenstoneServer = null;
    94     static public WebswingAuthenticator webswingAuthenticator = null;
     95    static public WebswingAuthenticator webswingAuthenticator = null;
    9596   
    9697
     
    130131    static public boolean isGsdlRemote = false;
    131132    static public boolean isLocalLibrary = false;
    132     static public boolean isWebswing = false;
    133 
    134     // for storing the original proxy settings on GLI startup   
    135     private static Properties startup_proxy_settings = new Properties();
     133    static public boolean isWebswing = false;
     134
     135    // for storing the original proxy settings on GLI startup   
     136    private static Properties startup_proxy_settings = new Properties();
    136137   
    137138    /* TODO: If we're using local GLI, collections are built locally. If we're using client-GLI
     
    175176        System.err.println("Version: " + PROGRAM_VERSION + "\n");
    176177
     178        if (go.webswing) {
     179            WebswingUtil.getWebswingApi().sendActionEvent("setCursor", "wait", null);
     180        }
     181       
    177182        JarTools.initialise(this);
    178183
    179         //GetOpt go = new GetOpt(args);
    180184
    181185        // Remember the GSDLOS value
     
    828832        else {
    829833            g_man.setVisible(true);
     834        }
     835       
     836        if (isWebswing) {
     837            WebswingUtil.getWebswingApi().sendActionEvent("setCursor", "default", null);
    830838        }
    831839
  • main/trunk/gli/src/org/greenstone/gatherer/GathererProg.java

    r37330 r37341  
    6161    }
    6262
     63
    6364    GetOpt go = new GetOpt(args);
    6465           
     
    7374        // which is engineered through webswing.config to be the GLI home directory     
    7475       
    75         gli_user_directory_path = System.getProperty("user.dir") + File.separator + "webswing-users" + File.separator;
    76        
    77         //gli_user_directory_path = go.gsdl3_src_path + File.separator;
    78        
    79         // or GSDL3SRCHOME ???
    80         //gli_user_directory_path = System.getProperty("user.dir") + File.separator;
    81         //gli_user_directory_path = System.getenv("GSDL3SRCHOME") + File.separator;
     76        gli_user_directory_path = System.getProperty("user.dir") + File.separator + "webswing-users" + File.separator;     
    8277
    8378        File gli_user_directory = new File(gli_user_directory_path);
  • main/trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r37329 r37341  
    401401            String library_collect_file_url = library_collect_url + "/" + local_filename;
    402402           
    403             WebswingUtil.getWebswingApi().sendActionEvent("previewURL", library_collect_file_url, null);
     403            WebswingUtil.getWebswingApi().sendActionEvent("downloadURL", library_collect_file_url, null);
    404404            }
    405405            else {
Note: See TracChangeset for help on using the changeset viewer.