~teemu-heinamaki/ubuntu/maverick/tuxguitar/merge-from-debian

« back to all changes in this revision

Viewing changes to TuxGuitar/src/org/herac/tuxguitar/gui/editors/tab/Tablature.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2009-04-25 19:49:27 UTC
  • mfrom: (1.1.3 upstream) (2.1.7 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090425194927-pblqed0zxp0pmyeq
Tags: 1.1-1
* New Upstream Release (Closes: #489859) (LP: #366476)
* Merged patch : tuxguitar_1.0.dak-1ubuntu1.patch
* debian/README.txt
  - suggests to install tuxguitar-jsa

Show diffs side-by-side

added added

removed removed

Lines of Context:
313
313
        public void reloadViewLayout(){
314
314
                int style =  TuxGuitar.instance().getConfig().getIntConfigValue(TGConfigKeys.LAYOUT_STYLE);
315
315
                int mode = TuxGuitar.instance().getConfig().getIntConfigValue(TGConfigKeys.LAYOUT_MODE);
316
 
                mode = (mode == 0)?ViewLayout.DEFAULT_MODE:mode;
 
316
                this.loadViewLayout(style, mode);
 
317
        }
 
318
        
 
319
        private void loadViewLayout( int style, int mode ){
317
320
                switch(mode){
318
321
                        case ViewLayout.MODE_PAGE:
319
322
                                setViewLayout(new PageViewLayout(this,style));
320
 
                                break;
 
323
                        break;
321
324
                        case ViewLayout.MODE_LINEAR:
322
325
                                setViewLayout(new LinearViewLayout(this,style));
323
 
                                break;
 
326
                        break;
 
327
                        default:
 
328
                                if( mode != ViewLayout.DEFAULT_MODE ){
 
329
                                        this.loadViewLayout( style, ViewLayout.DEFAULT_MODE );
 
330
                                }
 
331
                        break;
324
332
                }
325
333
        }
326
334