Changeset 85

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

Better layout for the Global Variables editing dialog.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vlcskineditor/GlobalVariables.java

    r54 r85  
    2424 
    2525import java.awt.Desktop; 
    26 import java.awt.GridLayout; 
    27 import java.awt.FlowLayout; 
     26import java.awt.Dimension; 
    2827import java.awt.event.*; 
    2928import java.util.*; 
     
    218217      frame = new JFrame("Global variables"); 
    219218      frame.setResizable(false); 
    220       frame.setLayout(new BoxLayout(frame.getContentPane(),BoxLayout.Y_AXIS)); 
     219      frame.setLayout(null); 
    221220       
    222       JLabel desc_l = new JLabel("These variables only affect the preview."); 
     221      JLabel desc_l = new JLabel("<html>These variables only affect the preview.<br>They simulate the state of VLC.</html>");      
    223222      Object[] bool_values = { true, false }; 
    224223      JLabel eq_l = new JLabel("equalizer.isEnabled"); 
     
    264263       
    265264      frame.add(desc_l); 
    266       JPanel panel = new JPanel(new GridLayout(0,2,5,5));       
     265      desc_l.setBounds(5, 5, 305, 50); 
     266      JPanel panel = new JPanel(null);       
    267267      panel.add(eq_l); 
     268      eq_l.setBounds(5, 5, 150, 25); 
    268269      panel.add(eq_cb); 
     270      eq_cb.setBounds(160, 5, 150, 25); 
    269271      panel.add(vout_l); 
     272      vout_l.setBounds(5, 35, 150, 25); 
    270273      panel.add(vout_cb); 
     274      vout_cb.setBounds(160, 35, 150, 25); 
    271275      panel.add(audio_l); 
     276      audio_l.setBounds(5, 65, 150, 25); 
    272277      panel.add(audio_cb); 
     278      audio_cb.setBounds(160, 65, 150, 25); 
    273279      panel.add(fullscreen_l); 
     280      fullscreen_l.setBounds(5, 95, 150, 25); 
    274281      panel.add(fullscreen_cb); 
     282      fullscreen_cb.setBounds(160, 95, 150, 25); 
    275283      panel.add(playing_l); 
     284      playing_l.setBounds(5, 125, 150, 25); 
    276285      panel.add(playing_cb); 
     286      playing_cb.setBounds(160, 125, 150, 25); 
    277287      panel.add(stopped_l); 
     288      stopped_l.setBounds(5, 155, 150, 25); 
    278289      panel.add(stopped_cb); 
     290      stopped_cb.setBounds(160, 155, 150, 25); 
    279291      panel.add(paused_l); 
     292      paused_l.setBounds(5, 185, 150, 25); 
    280293      panel.add(paused_cb); 
     294      paused_cb.setBounds(160, 185, 150, 25); 
    281295      panel.add(seekable_l); 
     296      seekable_l.setBounds(5, 215, 150, 25); 
    282297      panel.add(seekable_cb); 
     298      seekable_cb.setBounds(160, 215, 150, 25); 
    283299      panel.add(mute_l); 
     300      mute_l.setBounds(5, 245, 150, 25); 
    284301      panel.add(mute_cb); 
     302      mute_cb.setBounds(160, 245, 150, 25); 
    285303      panel.add(ontop_l); 
     304      ontop_l.setBounds(5, 275, 150, 25); 
    286305      panel.add(ontop_cb); 
     306      ontop_cb.setBounds(160, 275, 150, 25); 
    287307      panel.add(random_l); 
     308      random_l.setBounds(5, 305, 150, 25); 
    288309      panel.add(random_cb); 
     310      random_cb.setBounds(160, 305, 150, 25); 
    289311      panel.add(loop_l); 
     312      loop_l.setBounds(5, 335, 150, 25); 
    290313      panel.add(loop_cb); 
     314      loop_cb.setBounds(160, 335, 150, 25); 
    291315      panel.add(repeat_l); 
     316      repeat_l.setBounds(5, 365, 150, 25); 
    292317      panel.add(repeat_cb); 
     318      repeat_cb.setBounds(160, 365, 150, 25); 
    293319      panel.add(dvd_l); 
     320      dvd_l.setBounds(5, 395, 150, 25); 
    294321      panel.add(dvd_cb); 
     322      dvd_cb.setBounds(160, 395, 150, 25); 
    295323      panel.add(slider_l); 
     324      slider_l.setBounds(5, 425, 150, 30); 
    296325      panel.add(slider_s); 
     326      slider_s.setBounds(160, 425, 150, 30); 
    297327      panel.add(ok_btn); 
     328      ok_btn.setBounds(5, 460, 150, 25); 
    298329      panel.add(help_btn);       
     330      help_btn.setBounds(160, 460, 150, 25);       
    299331      frame.add(panel); 
     332      panel.setBounds(0, 55, 315, 490); 
    300333      frame.pack(); 
    301        
    302       //frame.setSize(frame.getWidth()/2,frame.getHeight()+20); 
     334      frame.setSize(320, 570); 
    303335    } 
    304336    eq_cb.setSelectedItem(equalizer_isEnabled); 
  • trunk/src/vlcskineditor/Main.java

    r84 r85  
    4848   
    4949  //The version identification of the current build.    
    50   public final String VERSION = "0.6.0b"; 
     50  public final String VERSION = "0.7.0.a"; 
    5151  //The directory in which the VLC executable is found 
    5252  String vlc_dir = "";