ClienteTFG/controller_remove.cpp

18 lines
461 B
C++
Raw Normal View History

#include "controller_remove.h"
controller_remove::controller_remove(view_remove *vis, session_manager *sesi)
{
this->view=vis;
this->session=sesi;
this->add_controlers();
}
void controller_remove::add_controlers(){
this->view->m_button.signal_clicked().connect(sigc::mem_fun(this,
&controller_remove::on_button_clicked));
}
void controller_remove::on_button_clicked(){
this->session->remove_command(this->view->entry.get_text());
}