KnobGuiChoice::KnobGuiChoice(const KnobGuiPtr& knob, ViewIdx view) : KnobGuiWidgets(knob, view) , _comboBox(0) { KnobChoicePtr k = toKnobChoice(knob->getKnob()); QObject::connect( k.get(), SIGNAL(populated()), this, SLOT(onEntriesPopulated()) ); QObject::connect( k.get(), SIGNAL(entryAppended()), this, SLOT(onEntryAppended()) ); QObject::connect( k.get(), SIGNAL(entriesReset()), this, SLOT(onEntriesReset()) ); _knob = k; }
KnobGuiChoice::KnobGuiChoice(KnobIPtr knob, KnobGuiContainerI *container) : KnobGui(knob, container) , _comboBox(0) { KnobChoicePtr k = toKnobChoice(knob); QObject::connect( k.get(), SIGNAL(populated()), this, SLOT(onEntriesPopulated()) ); QObject::connect( k.get(), SIGNAL(entryAppended(QString,QString)), this, SLOT(onEntryAppended(QString,QString)) ); QObject::connect( k.get(), SIGNAL(entriesReset()), this, SLOT(onEntriesReset()) ); _knob = k; }