Logo Search packages:      
Sourcecode: ecawave version File versions  Download package

void QEChainOperatorInput::init_layout ( void   )  [private]

Creates and initializes widget layout

Definition at line 60 of file qechainoperatorinput.cpp.

References QEInput::changed().

                                           {
  QBoxLayout* top = new QVBoxLayout(this);
  maptab_rep = new QTabWidget(this, "maptab");

  const ECA_OBJECT_MAP& cop_map = ECA_OBJECT_FACTORY::chain_operator_map();
  const ECA_OBJECT_MAP& preset_map = ECA_OBJECT_FACTORY::preset_map();
  const ECA_OBJECT_MAP& ladspa_map = ECA_OBJECT_FACTORY::ladspa_plugin_map();

  omap_inputs.push_back(new QEObjectMap(&cop_map, this));
  maptab_rep->addTab(omap_inputs.back(), "&Chain operators");
  QObject::connect(omap_inputs.back(), SIGNAL(changed()), this, SLOT(operator_change_event()));

  omap_inputs.push_back(new QEObjectMap(&preset_map, this));
  maptab_rep->addTab(omap_inputs.back(), "&Effect presets");
  QObject::connect(omap_inputs.back(), SIGNAL(changed()), this, SLOT(operator_change_event()));

  omap_inputs.push_back(new QEObjectMap(&ladspa_map, this));
  maptab_rep->addTab(omap_inputs.back(), "&Ladspa plugins");
  QObject::connect(omap_inputs.back(), SIGNAL(changed()), this, SLOT(operator_change_event()));

  top->addWidget(maptab_rep, 2);
  QObject::connect(maptab_rep, SIGNAL(selected(const QString&)), 
               this, SLOT(operator_change_event()));

  chainop_repp = 0;
  const CHAIN_OPERATOR* temp_cop = dynamic_cast<const CHAIN_OPERATOR*>(omap_inputs[0]->result());
  if (temp_cop != 0) {
    chainop_repp = dynamic_cast<CHAIN_OPERATOR*>(temp_cop->new_expr());
    std::cerr << "(qechainoperator) new_expr\n";
  }

  if (chainop_repp == 0) {
    default_chainop_repp = new QEEmptyChainOperator();
    chainop_repp = default_chainop_repp;
  }

  opconf_repp = new QEOperatorConfiguration(chainop_repp, this, "qeopconf");
  QObject::connect(opconf_repp,
               SIGNAL(parameters_changed()), 
               this, 
               SLOT(parameter_change_event()));
  top->addWidget(opconf_repp, 1);
}


Generated by  Doxygen 1.6.0   Back to index