Exemplo n.º 1
0
void ChewingEditor::setupAdd()
{
    connect(
        ui_.get()->actionAddPhrase, SIGNAL(triggered()),
        ui_.get()->userphraseView, SLOT(showAddUserphraseDialog())
    );

    connect(
        model_, SIGNAL(addNewPhraseCompleted(const Userphrase&)),
        ui_.get()->notification, SLOT(notifyAddNewPhraseCompleted(const Userphrase&))
    );
}
Exemplo n.º 2
0
void UserphraseView::setupAddUserphraseDialog()
{
    connect(
        menu_->getActionAddPhrase(), SIGNAL(triggered()),
        this, SLOT(showAddUserphraseDialog())
    );

    connect(
        menu_->getActionModifyPhrase(), SIGNAL(triggered()),
        this, SLOT(showModifyUserphraseDialog())
    );

    connect(
        UserphraseDialog_, SIGNAL(finished(int)),
        this, SLOT(addPhrase(int))
    );
}