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

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

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

revision 1284 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 1285 by iliev, Fri Aug 10 19:55:03 2007 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-2006 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 22  Line 22 
22    
23  package org.jsampler.view.fantasia;  package org.jsampler.view.fantasia;
24    
25    import java.awt.Font;
26  import javax.swing.ImageIcon;  import javax.swing.ImageIcon;
27    
28    import org.jsampler.CC;
29    import org.jsampler.HF;
30    
31    
32  /**  /**
33   * This class contains all pixmap resources needed by <b>Fantasia</b> view.   * This class contains all pixmap resources needed by <b>Fantasia</b> view.
# Line 34  public class Res { Line 38  public class Res {
38          /** Forbits the instantiation of this class. */          /** Forbits the instantiation of this class. */
39          private Res() { }          private Res() { }
40                    
41          protected final static ImageIcon iconPowerOn          protected final static ImageIcon gfxFantasiaLogo
42                  = new ImageIcon(Res.class.getResource("res/power_on.png"));                  = new ImageIcon(Res.class.getResource("res/gfx/fantasia_logo.png"));
43            
44            protected final static ImageIcon gfxPowerOn
45                    = new ImageIcon(Res.class.getResource("res/gfx/power_on.png"));
46                    
47          protected final static ImageIcon iconPowerOff          protected final static ImageIcon gfxPowerOff
48                  = new ImageIcon(Res.class.getResource("res/power_off.png"));                  = new ImageIcon(Res.class.getResource("res/gfx/power_off.png"));
49    
50          protected final static ImageIcon iconMuteOn          protected final static ImageIcon gfxMuteOn
51                  = new ImageIcon(Res.class.getResource("res/btn_mute_on.png"));                  = new ImageIcon(Res.class.getResource("res/gfx/btn_mute_on.png"));
52            
53            protected final static ImageIcon gfxMuteOff
54                    = new ImageIcon(Res.class.getResource("res/gfx/btn_mute_off.png"));
55            
56            protected final static ImageIcon gfxMuteSoloDisabled
57                    = new ImageIcon(Res.class.getResource("res/gfx/btn_mute_solo_disabled.png"));
58            
59            protected final static ImageIcon gfxMutedBySolo
60                    = new ImageIcon(Res.class.getResource("res/gfx/btn_mute_off.png"));
61            
62            protected final static ImageIcon gfxSoloOn
63                    = new ImageIcon(Res.class.getResource("res/gfx/btn_solo_on.png"));
64            
65            protected final static ImageIcon gfxSoloOff
66                    = new ImageIcon(Res.class.getResource("res/gfx/btn_mute_off.png"));
67            
68            protected final static ImageIcon gfxMuteTitle
69                    = new ImageIcon(Res.class.getResource("res/gfx/title_mute.png"));
70            
71            protected final static ImageIcon gfxSoloTitle
72                    = new ImageIcon(Res.class.getResource("res/gfx/title_solo.png"));
73            
74            protected final static ImageIcon gfxVolumeTitle
75                    = new ImageIcon(Res.class.getResource("res/gfx/title_volume.png"));
76            
77            protected final static ImageIcon gfxVolumeDial
78                    = new ImageIcon(Res.class.getResource("res/gfx/knob_volume.png"));
79            
80            protected final static ImageIcon gfxOptionsTitle
81                    = new ImageIcon(Res.class.getResource("res/gfx/title_options.png"));
82            
83            protected final static ImageIcon gfxOptionsOn
84                    = new ImageIcon(Res.class.getResource("res/gfx/btn_hide_channel_options.png"));
85            
86            protected final static ImageIcon gfxOptionsOnRO
87                    = new ImageIcon(Res.class.getResource("res/gfx/btn_hide_channel_options_ro.png"));
88            
89            protected final static ImageIcon gfxOptionsOff
90                    = new ImageIcon(Res.class.getResource("res/gfx/btn_show_channel_options.png"));
91            
92            protected final static ImageIcon gfxOptionsOffRO
93                    = new ImageIcon(Res.class.getResource("res/gfx/btn_show_channel_options_ro.png"));
94            
95            protected final static ImageIcon gfxMidiInputTitle
96                    = new ImageIcon(Res.class.getResource("res/gfx/title_midi_input.png"));
97            
98            protected final static ImageIcon gfxEngineTitle
99                    = new ImageIcon(Res.class.getResource("res/gfx/title_engine.png"));
100            
101            protected final static ImageIcon gfxAudioOutputTitle
102                    = new ImageIcon(Res.class.getResource("res/gfx/title_audio_output.png"));
103            
104            protected final static ImageIcon gfxInstrumentMapTitle
105                    = new ImageIcon(Res.class.getResource("res/gfx/title_midi_instrument_map.png"));
106            
107            protected final static ImageIcon gfxChannel
108                    = new ImageIcon(Res.class.getResource("res/gfx/channel.png"));
109            
110            protected final static ImageIcon gfxChannelScreen
111                    = new ImageIcon(Res.class.getResource("res/gfx/channel.screen.png"));
112            
113            protected final static ImageIcon gfxHLine
114                    = new ImageIcon(Res.class.getResource("res/gfx/line_hor.png"));
115            
116            protected final static ImageIcon gfxVLine
117                    = new ImageIcon(Res.class.getResource("res/gfx/line_vert.png"));
118            
119            protected final static ImageIcon gfxChannelOptions
120                    = new ImageIcon(Res.class.getResource("res/gfx/channel.options.png"));
121            
122            protected final static ImageIcon gfxCreateChannel
123                    = new ImageIcon(Res.class.getResource("res/gfx/create_channel.png"));
124            
125            protected final static ImageIcon gfxTextField
126                    = new ImageIcon(Res.class.getResource("res/gfx/tf_bg.png"));
127            
128            protected final static ImageIcon gfxCbLabelBg
129                    = new ImageIcon(Res.class.getResource("res/gfx/cb_label_bg.png"));
130            
131            protected final static ImageIcon gfxCbArrow
132                    = new ImageIcon(Res.class.getResource("res/gfx/cb_arrow.png"));
133            
134            protected final static ImageIcon gfxCbArrowDisabled
135                    = new ImageIcon(Res.class.getResource("res/gfx/cb_arrow_disabled.png"));
136            
137            protected final static ImageIcon gfxCbArrowRO
138                    = new ImageIcon(Res.class.getResource("res/gfx/cb_arrow_ro.png"));
139            
140            protected final static ImageIcon gfxPowerOn18
141                    = new ImageIcon(Res.class.getResource("res/gfx/power_on18.png"));
142            
143            protected final static ImageIcon gfxPowerOff18
144                    = new ImageIcon(Res.class.getResource("res/gfx/power_off18.png"));
145            
146            protected final static ImageIcon gfxDeviceBg
147                    = new ImageIcon(Res.class.getResource("res/gfx/device_bg.png"));
148            
149            protected final static ImageIcon gfxRoundBg14
150                    = new ImageIcon(Res.class.getResource("res/gfx/round_bg14.png"));
151            protected final static ImageIcon gfxRoundBg7
152                    = new ImageIcon(Res.class.getResource("res/gfx/round_bg7.png"));
153            protected final static ImageIcon gfxMenuBarBg
154                    = new ImageIcon(Res.class.getResource("res/gfx/menubar_bg.png"));
155            
156            protected final static ImageIcon gfxToolBarBg
157                    = new ImageIcon(Res.class.getResource("res/gfx/toolbar_bg.png"));
158            
159            
160            protected final static ImageIcon gfxChannelsBg
161                    = new ImageIcon(Res.class.getResource("res/gfx/channels_bg.png"));
162            
163            protected final static ImageIcon gfxToolbar
164                    = new ImageIcon(Res.class.getResource("res/gfx/toolbar.png"));
165            
166            protected final static ImageIcon gfxBorder
167                    = new ImageIcon(Res.class.getResource("res/gfx/border.png"));
168            
169            protected final static ImageIcon gfxBtnCr
170                    = new ImageIcon(Res.class.getResource("res/gfx/btn_cr.png"));
171            
172            protected final static ImageIcon gfxBtnCrRO
173                    = new ImageIcon(Res.class.getResource("res/gfx/btn_cr_ro.png"));
174            
175            
176            protected final static ImageIcon iconAppIcon
177                    = new ImageIcon(Res.class.getResource("res/icons/app_icon.png"));
178            
179            protected final static ImageIcon iconEngine12
180                    = new ImageIcon(Res.class.getResource("res/icons/engine12.png"));
181            
182            protected final static ImageIcon iconVolume14
183                    = new ImageIcon(Res.class.getResource("res/icons/volume14.png"));
184            
185            protected final static ImageIcon iconNew16
186                    = new ImageIcon(Res.class.getResource("res/icons/new16.png"));
187            
188            protected final static ImageIcon iconEdit16
189                    = new ImageIcon(Res.class.getResource("res/icons/edit16.png"));
190            
191            protected final static ImageIcon iconDelete16
192                    = new ImageIcon(Res.class.getResource("res/icons/delete16.png"));
193            
194            protected final static ImageIcon iconBack16
195                    = new ImageIcon(Res.class.getResource("res/icons/back16.png"));
196            
197            protected final static ImageIcon iconNext16
198                    = new ImageIcon(Res.class.getResource("res/icons/next16.png"));
199            
200            protected final static ImageIcon iconBrowse16
201                    = new ImageIcon(Res.class.getResource("res/icons/folder_open16.png"));
202            
203            protected final static ImageIcon iconDb16
204                    = new ImageIcon(Res.class.getResource("res/icons/collection16.png"));
205            
206            protected final static ImageIcon iconFolder16
207                    = new ImageIcon(Res.class.getResource("res/icons/folder16.png"));
208            
209            protected final static ImageIcon iconFolderOpen16
210                    = new ImageIcon(Res.class.getResource("res/icons/folder_open16.png"));
211            
212            protected final static ImageIcon iconInstrument16
213                    = new ImageIcon(Res.class.getResource("res/icons/instr16.png"));
214            
215            protected final static ImageIcon iconVolume22
216                    = new ImageIcon(Res.class.getResource("res/icons/volume22.png"));
217            
218            protected final static ImageIcon iconFind22
219                    = new ImageIcon(Res.class.getResource("res/icons/Find22.png"));
220                    
221          protected final static ImageIcon iconMuteOff          protected final static ImageIcon iconGoUp22
222                  = new ImageIcon(Res.class.getResource("res/btn_mute_off.png"));                  = new ImageIcon(Res.class.getResource("res/icons/GoUp22.png"));
223                    
224          protected final static ImageIcon iconMuteSoloDisabled          protected final static ImageIcon iconGoBack22
225                  = new ImageIcon(Res.class.getResource("res/btn_mute_solo_disabled.png"));                  = new ImageIcon(Res.class.getResource("res/icons/GoBack22.png"));
226                    
227          protected final static ImageIcon iconMutedBySolo          protected final static ImageIcon iconGoForward22
228                  = new ImageIcon(Res.class.getResource("res/btn_mute_off.png"));                  = new ImageIcon(Res.class.getResource("res/icons/GoForward22.png"));
229                    
230          protected final static ImageIcon iconSoloOn          protected final static ImageIcon iconFolderOpen22
231                  = new ImageIcon(Res.class.getResource("res/btn_solo_on.png"));                  = new ImageIcon(Res.class.getResource("res/icons/folder_open22.png"));
232                    
233          protected final static ImageIcon iconSoloOff          protected final static ImageIcon iconPreferences22
234                  = new ImageIcon(Res.class.getResource("res/btn_mute_off.png"));                  = new ImageIcon(Res.class.getResource("res/icons/Preferences22.png"));
235                    
236          protected final static ImageIcon iconMuteTitle          protected final static ImageIcon iconReload22
237                  = new ImageIcon(Res.class.getResource("res/title_mute.png"));                  = new ImageIcon(Res.class.getResource("res/icons/reload22.png"));
238                    
239          protected final static ImageIcon iconSoloTitle          protected final static ImageIcon iconSamplerInfo32
240                  = new ImageIcon(Res.class.getResource("res/title_solo.png"));                  = new ImageIcon(Res.class.getResource("res/icons/sampler_info32.png"));
241                    
242          protected final static ImageIcon iconVolumeTitle          protected final static ImageIcon iconOpen32
243                  = new ImageIcon(Res.class.getResource("res/title_volume.png"));                  = new ImageIcon(Res.class.getResource("res/icons/open32.png"));
244                    
245          protected final static ImageIcon iconVolumeDial          protected final static ImageIcon iconSave32
246                  = new ImageIcon(Res.class.getResource("res/knob_volume.png"));                  = new ImageIcon(Res.class.getResource("res/icons/save32.png"));
247                    
248          protected final static ImageIcon iconOptionsTitle          protected final static ImageIcon iconReload32
249                  = new ImageIcon(Res.class.getResource("res/title_options.png"));                  = new ImageIcon(Res.class.getResource("res/icons/reload32.png"));
250                    
251          protected final static ImageIcon iconOptionsOn          protected final static ImageIcon iconReset32
252                  = new ImageIcon(Res.class.getResource("res/btn_hide_channel_options.png"));                  = new ImageIcon(Res.class.getResource("res/icons/purge32.png"));
253                    
254          protected final static ImageIcon iconOptionsOnRO          protected final static ImageIcon iconPreferences32
255                  = new ImageIcon(Res.class.getResource("res/btn_hide_channel_options_ro.png"));                  = new ImageIcon(Res.class.getResource("res/icons/preferences32.png"));
256                    
257          protected final static ImageIcon iconOptionsOff          protected final static ImageIcon iconLSConsole32
258                  = new ImageIcon(Res.class.getResource("res/btn_show_channel_options.png"));                  = new ImageIcon(Res.class.getResource("res/icons/ls_console32.png"));
259                    
260          protected final static ImageIcon iconOptionsOffRO          protected final static ImageIcon iconLSConsole
261                  = new ImageIcon(Res.class.getResource("res/btn_show_channel_options_ro.png"));                  = new ImageIcon(Res.class.getResource("res/icons/ls_console.png"));
262                    
263          protected final static ImageIcon iconMidiInputTitle          protected final static ImageIcon iconDb32
264                  = new ImageIcon(Res.class.getResource("res/title_midi_input.png"));                  = new ImageIcon(Res.class.getResource("res/icons/db32.png"));
265                    
266          protected final static ImageIcon iconEngineTitle          protected final static ImageIcon iconLinuxSamplerLogo
267                  = new ImageIcon(Res.class.getResource("res/title_engine.png"));                  = new ImageIcon(Res.class.getResource("res/icons/LinuxSampler-logo.png"));
268                    
269          protected final static ImageIcon iconAudioOutputTitle          protected static Font fontScreen = null;
270                  = new ImageIcon(Res.class.getResource("res/title_audio_output.png"));                  
271                    
272            static {
273                    try {
274                            fontScreen = Font.createFont (
275                                    Font.TRUETYPE_FONT,
276                                    Res.class.getResourceAsStream("res/fonts/LiberationSans-Bold.ttf")
277                            );
278                            fontScreen = fontScreen.deriveFont(10.0f);
279                    } catch(Exception e) {
280                            CC.getLogger().warning(HF.getErrorMessage(e));
281                    }
282            }
283  }  }

Legend:
Removed from v.1284  
changed lines
  Added in v.1285

  ViewVC Help
Powered by ViewVC