/[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 1767 by iliev, Mon Sep 8 00:19:27 2008 UTC revision 1786 by iliev, Wed Oct 8 22:38:15 2008 UTC
# Line 23  Line 23 
23  package org.jsampler.view.fantasia;  package org.jsampler.view.fantasia;
24    
25  import javax.swing.Icon;  import javax.swing.Icon;
26  import javax.swing.JDialog;  import javax.swing.ImageIcon;
 import javax.swing.JFrame;  
27  import javax.swing.UIManager;  import javax.swing.UIManager;
28    
29  import org.jsampler.CC;  import org.jsampler.CC;
# Line 71  public class ViewConfig extends JSViewCo Line 70  public class ViewConfig extends JSViewCo
70                  }                  }
71          }          }
72                    
73            @Override
74          public JSPrefs          public JSPrefs
75          preferences() { return FantasiaPrefs.preferences(); }          preferences() { return FantasiaPrefs.preferences(); }
76                    
77          /** Exports the view configuration of the current session. */          /** Exports the view configuration of the current session. */
78            @Override
79          public String          public String
80          exportSessionViewConfig() {          exportSessionViewConfig() {
81                  StringBuffer sb = new StringBuffer();                  StringBuffer sb = new StringBuffer();
# Line 115  public class ViewConfig extends JSViewCo Line 116  public class ViewConfig extends JSViewCo
116                  return sb.toString();                  return sb.toString();
117          }          }
118                    
119            @Override
120          public InstrumentsDbTreeView          public InstrumentsDbTreeView
121          getInstrumentsDbTreeView() { return instrumentsDbTreeView; }          getInstrumentsDbTreeView() { return instrumentsDbTreeView; }
122                    
123            @Override
124          public InstrumentsDbTableView          public InstrumentsDbTableView
125          getInstrumentsDbTableView() { return instrumentsDbTableView; }          getInstrumentsDbTableView() { return instrumentsDbTableView; }
126                    
127            @Override
128          public BasicIconSet          public BasicIconSet
129          getBasicIconSet() { return basicIconSet; }          getBasicIconSet() { return basicIconSet; }
130                    
131          private class TreeView implements InstrumentsDbTreeView {          private class TreeView implements InstrumentsDbTreeView {
132                    @Override
133                  public Icon                  public Icon
134                  getRootIcon() { return Res.iconDb16; }                  getRootIcon() { return Res.iconDb16; }
135                                    
136                    @Override
137                  public Icon                  public Icon
138                  getClosedIcon() { return Res.iconFolder16; }                  getClosedIcon() { return Res.iconFolder16; }
139                    
140                    @Override
141                  public Icon                  public Icon
142                  getOpenIcon() { return Res.iconFolderOpen16; }                  getOpenIcon() { return Res.iconFolderOpen16; }
143                    
144                    @Override
145                  public Icon                  public Icon
146                  getInstrumentIcon() { return Res.iconInstrument16; }                  getInstrumentIcon() { return Res.iconInstrument16; }
147                    
148                    @Override
149                  public Icon                  public Icon
150                  getGigInstrumentIcon() { return Res.iconInstrument16; }                  getGigInstrumentIcon() { return Res.iconInstrument16; }
151          }          }
152                    
153          private static class TableView implements InstrumentsDbTableView {          private static class TableView implements InstrumentsDbTableView {
154                    @Override
155                  public Icon                  public Icon
156                  getFolderIcon() { return Res.iconFolder16; }                  getFolderIcon() { return Res.iconFolder16; }
157                    
158                    @Override
159                  public Icon                  public Icon
160                  getInstrumentIcon() { return Res.iconInstrument16; }                  getInstrumentIcon() { return Res.iconInstrument16; }
161                    
162                    @Override
163                  public Icon                  public Icon
164                  getGigInstrumentIcon() { return Res.iconInstrument16; }                  getGigInstrumentIcon() { return Res.iconInstrument16; }
165          }          }
166                    
167          private class IconSet implements BasicIconSet {          private class IconSet implements BasicIconSet {
168                    @Override
169                    public ImageIcon
170                    getApplicationIcon() { return Res.iconAppIcon; }
171                    
172                    @Override
173                  public Icon                  public Icon
174                  getBack16Icon() { return Res.iconBack16; }                  getBack16Icon() { return Res.iconBack16; }
175                    
176                    @Override
177                  public Icon                  public Icon
178                  getUp16Icon() { return Res.iconUp16; }                  getUp16Icon() { return Res.iconUp16; }
179                    
180                    @Override
181                  public Icon                  public Icon
182                  getForward16Icon() { return Res.iconNext16; }                  getForward16Icon() { return Res.iconNext16; }
183                                    
184                    @Override
185                  public Icon                  public Icon
186                  getReload16Icon() { return Res.iconReload16; }                  getReload16Icon() { return Res.iconReload16; }
187                                    
188                    @Override
189                  public Icon                  public Icon
190                  getPreferences16Icon() { return Res.iconPreferences16; }                  getPreferences16Icon() { return Res.iconPreferences16; }
191                                    
192                    @Override
193                  public Icon                  public Icon
194                  getWarning32Icon() { return Res.iconWarning32; }                  getWarning32Icon() { return Res.iconWarning32; }
195                                    
196                    @Override
197                  public Icon                  public Icon
198                  getQuestion32Icon() { return Res.iconQuestion32; }                  getQuestion32Icon() { return Res.iconQuestion32; }
199          }          }
200                    
201            @Override
202          public boolean          public boolean
203          getInstrumentsDbSupport() { return true; }          getInstrumentsDbSupport() { return true; }
204  }  }

Legend:
Removed from v.1767  
changed lines
  Added in v.1786

  ViewVC Help
Powered by ViewVC