Package de.sciss.app

Examples of de.sciss.app.DynamicPrefChangeManager


    player.setActiveInput( true );
    meterTimer.start();

GUIUtil.setInitialDialogFocus( rp )// necessary to get keyboard shortcuts working

    new DynamicAncestorAdapter( new DynamicPrefChangeManager( classPrefs, new String[] { KEY_CONFIG },
        this )).addTo( getRootPane() );

    pack();
    setLocationRelativeTo( getOwner() );
    setVisible( true );
View Full Code Here


    init();
    updateTitle();
    documentUpdate();

    addDynamicListening( new DynamicPrefChangeManager( app.getUserPrefs(), new String[] {
      PrefsUtil.KEY_VIEWNULLLINIE, PrefsUtil.KEY_VIEWVERTICALRULERS, PrefsUtil.KEY_VIEWMARKERS,
      PrefsUtil.KEY_TIMEUNITS, PrefsUtil.KEY_VERTSCALE, PrefsUtil.KEY_VIEWCHANMETERS },
      this ));

    initBounds()// be sure this is after documentUpdate!
View Full Code Here

       
        this.doc    = doc;
   
    // --- Listener ---
        new DynamicAncestorAdapter( this ).addTo( this );
        new DynamicAncestorAdapter( new DynamicPrefChangeManager(
      AbstractApplication.getApplication().getUserPrefs(), new String[] { PrefsUtil.KEY_TIMEUNITS }, this
    )).addTo( this );
    this.addMouseListener( this );
    this.addMouseMotionListener( this );
View Full Code Here

  {
    super();
    this.prefs  = prefs;
    b      = new JToggleButton( this );
    GraphicsUtil.setToolIcons( b, GraphicsUtil.createToolIcons( GraphicsUtil.ICON_CATCH ));
    new DynamicAncestorAdapter( new DynamicPrefChangeManager( prefs,
      new String[] { PrefsUtil.KEY_CATCH }, this )).addTo( b );
  }
View Full Code Here

    };
   
    // note: we are using the DynamicPrefChangeManager instead of direct
    // registration with oCfgNode because the sucky Preferences class
    // is not using the EventThread
    oCfgDynPrefs = new DynamicPrefChangeManager( null, RoutingConfig.KEYS, oCfgListener, false );
   
    new DynamicPrefChangeManager( audioPrefs, new String[] { PrefsUtil.KEY_OUTPUTCONFIG },
                                  oCfgListener, false ).startListening()// fires change and hence createOutputConfig()

//    osc = new OSCRouterWrapper( superRouter, this );
    osc = new OSCRouterWrapper( OSCRoot.getInstance(), this );
   
View Full Code Here

    smg.add( new MenuRadioItem( rg, "freqspect", ia ));
    ia.setRadioGroup( rg );
    ia.setPreferences( prefs, PrefsUtil.KEY_VERTSCALE );
    final IntPrefsMenuAction freqSpectAction = ia;
//    ia.setEnabled( prefs.node( PrefsUtil.NODE_VIEW ).getBoolean( PrefsUtil.KEY_SONAENABLED, false ));
    new DynamicPrefChangeManager( prefs.node( PrefsUtil.NODE_VIEW ), new String[] {
      PrefsUtil.KEY_SONAENABLED }, new PreferenceChangeListener() {
      public void preferenceChange( PreferenceChangeEvent pce )
      {
        freqSpectAction.setEnabled( prefs.node( PrefsUtil.NODE_VIEW ).getBoolean( PrefsUtil.KEY_SONAENABLED, false ));
      }
View Full Code Here

    new DynamicAncestorAdapter( this ).addTo( this );
        this.addAdjustmentListener( this );

//        new DynamicAncestorAdapter( new DynamicPreferenceChangeManager( Main.prefs.node( PrefsUtil.NODE_SHARED ),
//      new String[] { PrefsUtil.KEY_CATCH }, this )).addTo( this );
        new DynamicAncestorAdapter( new DynamicPrefChangeManager( AbstractApplication.getApplication().getUserPrefs(),
      new String[] { PrefsUtil.KEY_CATCH }, this )).addTo( this );
       
    setFocusable( false );
   
//        HelpGlassPane.setHelp( this, "TimelineScroll" );
View Full Code Here

    init();
    app.addComponent( Main.COMP_TIMELINE, this );
//    updateTitle();
    documentUpdate();

    addDynamicListening( new DynamicPrefChangeManager( app.getUserPrefs(), new String[] {
      PrefsUtil.KEY_VIEWNULLLINIE, PrefsUtil.KEY_VIEWVERTICALRULERS, PrefsUtil.KEY_VIEWMARKERS,
      PrefsUtil.KEY_TIMEUNITS, PrefsUtil.KEY_VERTSCALE /*, PrefsUtil.KEY_VIEWCHANMETERS */},
      this ));

// EEE
View Full Code Here

//    setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE ); // window listener see above!

//        HelpGlassPane.setHelp( getRootPane(), "SurfaceFrame" ); // EEE
    AbstractWindowHandler.setDeepFont( cp );
       
        addDynamicListening( new DynamicPrefChangeManager( app.getUserPrefs().node( PrefsUtil.NODE_SHARED ),
      new String[] { PrefsUtil.KEY_VIEWRULERS }, this ));
   
        init();
    app.addComponent( Main.COMP_SURFACE, this );
  }
View Full Code Here

    doc.timeline.addTimelineListener( this );
    doc.getTransport().addTransportListener( this );
   
    plugInPrefs = AbstractApplication.getApplication().getUserPrefs().node( PrefsUtil.NODE_PLUGINS );
    // fires KEY_SENSEBUFSIZE and thus causes calcSenseBufSize() and createContext() to be invoked
    new DynamicPrefChangeManager( plugInPrefs, new String[] { PrefsUtil.KEY_RTSENSEBUFSIZE },
                      this ).startListening();
 
        this.setDaemon( true );
        this.setPriority( getPriority() + 1 );
    this.start();
View Full Code Here

TOP

Related Classes of de.sciss.app.DynamicPrefChangeManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.