/[svn]/jsampler/trunk/src/org/jsampler/view/fantasia/ViewConfig.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/fantasia/ViewConfig.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1743 by iliev, Sat May 31 23:04:01 2008 UTC revision 1752 by iliev, Mon Aug 11 22:51:24 2008 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 27  import javax.swing.JDialog; Line 27  import javax.swing.JDialog;
27  import javax.swing.JFrame;  import javax.swing.JFrame;
28  import javax.swing.UIManager;  import javax.swing.UIManager;
29    
30    import org.jsampler.CC;
31  import org.jsampler.JSPrefs;  import org.jsampler.JSPrefs;
32    
33  import org.jsampler.view.InstrumentsDbTableView;  import org.jsampler.view.InstrumentsDbTableView;
34  import org.jsampler.view.InstrumentsDbTreeView;  import org.jsampler.view.InstrumentsDbTreeView;
35    import org.jsampler.view.BasicIconSet;
36  import org.jsampler.view.JSViewConfig;  import org.jsampler.view.JSViewConfig;
37    
38  import org.jvnet.substance.api.SubstanceConstants;  import org.jvnet.substance.api.SubstanceConstants;
# Line 44  import org.jvnet.substance.skin.Substanc Line 46  import org.jvnet.substance.skin.Substanc
46  public class ViewConfig extends JSViewConfig {  public class ViewConfig extends JSViewConfig {
47          private InstrumentsDbTreeView instrumentsDbTreeView = new TreeView();          private InstrumentsDbTreeView instrumentsDbTreeView = new TreeView();
48          private InstrumentsDbTableView instrumentsDbTableView = new TableView();          private InstrumentsDbTableView instrumentsDbTableView = new TableView();
49            private BasicIconSet basicIconSet = new IconSet();
50                    
51          /** Creates a new instance of <code>ViewConfig</code> */          /** Creates a new instance of <code>ViewConfig</code> */
52          public          public
# Line 77  public class ViewConfig extends JSViewCo Line 80  public class ViewConfig extends JSViewCo
80          public InstrumentsDbTableView          public InstrumentsDbTableView
81          getInstrumentsDbTableView() { return instrumentsDbTableView; }          getInstrumentsDbTableView() { return instrumentsDbTableView; }
82                    
83            public BasicIconSet
84            getBasicIconSet() { return basicIconSet; }
85            
86          private class TreeView implements InstrumentsDbTreeView {          private class TreeView implements InstrumentsDbTreeView {
87                  public Icon                  public Icon
88                  getRootIcon() { return Res.iconDb16; }                  getRootIcon() { return Res.iconDb16; }
# Line 105  public class ViewConfig extends JSViewCo Line 111  public class ViewConfig extends JSViewCo
111                  getGigInstrumentIcon() { return Res.iconInstrument16; }                  getGigInstrumentIcon() { return Res.iconInstrument16; }
112          }          }
113                    
114            private class IconSet implements BasicIconSet {
115                    public Icon
116                    getBack16Icon() { return Res.iconBack16; }
117            
118                    public Icon
119                    getUp16Icon() { return Res.iconUp16; }
120            
121                    public Icon
122                    getForward16Icon() { return Res.iconNext16; }
123                    
124                    public Icon
125                    getReload16Icon() { return Res.iconReload16; }
126                    
127                    public Icon
128                    getPreferences16Icon() { return Res.iconPreferences16; }
129            }
130            
131          public boolean          public boolean
132          getInstrumentsDbSupport() { return true; }          getInstrumentsDbSupport() { return true; }
133  }  }

Legend:
Removed from v.1743  
changed lines
  Added in v.1752

  ViewVC Help
Powered by ViewVC