Changeset 86

Show
Ignore:
Timestamp:
26/12/07 11:49:03 (1 year ago)
Author:
altglass
Message:

Critical bugfix of PreviewWindow?. Bugfixes of XML parsing, especially in Slider.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README.TXT

    r77 r86  
    1 VLC Skin Editor release 0.6.0a 
     1VLC Skin Editor release 0.6.1b 
    22----------------------------------------------------------- 
    33Changelog: 
    44----------------------------------------------------------- 
     50.6.1b - Critical bufix for the Preview Window  
     6       - Bugfix for slider points parsing and XML parsing 
    570.6.0a - Resources/windows/layouts/items can be edited by 
    68         doubleclicking on them in the hiearchy trees 
  • trunk/src/vlcskineditor/Main.java

    r85 r86  
    4848   
    4949  //The version identification of the current build.    
    50   public final String VERSION = "0.7.0.a"; 
     50  public final String VERSION = "0.6.1.b"; 
    5151  //The directory in which the VLC executable is found 
    5252  String vlc_dir = ""; 
     
    10771077          if(n==0) { 
    10781078            LayoutDeletionEvent lde = new LayoutDeletionEvent(w, l, w.layouts.indexOf(l), s); 
    1079             pvwin.clearLayout(); 
     1079            pvwin.clearLayout();             
    10801080            w.layouts.remove(l); 
    10811081            s.updateWindows(); 
     
    12961296          pvwin.setLayout(s.getWindow(selected_window),s.getWindow(selected_window).getLayout(selected_layout)); 
    12971297          s.updateItems(); 
    1298         } 
    1299         else { 
    1300           selected_window = null; 
    1301           selected_layout = null; 
    1302           pvwin.clearLayout(); 
    1303           pvwin.setVisible(false); 
    1304           s.updateItems(); 
    1305         } 
     1298        }         
    13061299      }       
    13071300    } 
  • trunk/src/vlcskineditor/XML.java

    r17 r86  
    4646    int i = 0; 
    4747    try { 
    48       i = Integer.parseInt(getValue(line,field)); 
     48      i = Integer.parseInt(getValue(line,field).trim()); 
    4949    } 
    5050    catch (Exception e) { 
     
    5656    boolean b = false; 
    5757    try { 
    58       b = Boolean.parseBoolean(getValue(line,field)); 
     58      b = Boolean.parseBoolean(getValue(line,field).trim()); 
    5959    } 
    6060    catch (Exception e) { 
  • trunk/src/vlcskineditor/items/Slider.java

    r83 r86  
    158158      String pnt = pnts[i];       
    159159      String[] coords = pnt.split(",");         
    160       xpos[i] = Integer.parseInt(coords[0].replaceAll("\\(","")); 
    161       ypos[i] = Integer.parseInt(coords[1].replaceAll("\\)","")); 
     160      xpos[i] = Integer.parseInt(coords[0].replaceAll("\\(","").trim()); 
     161      ypos[i] = Integer.parseInt(coords[1].replaceAll("\\)","").trim()); 
    162162    }           
    163163    b = new Bezier(xpos,ypos,Bezier.kCoordsBoth);