ClienteTFG/container_window.cpp

24 lines
863 B
C++
Raw Normal View History

2020-05-13 00:56:26 +02:00
#include "container_window.h"
2020-05-16 20:52:10 +02:00
container_window::container_window(conexion *con, Glib::RefPtr< Gtk::Application > app):
sesion(new session_manager(con)),loggin(sesion.get())
2020-05-13 00:56:26 +02:00
{
this->app=app;
this->app->run(loggin);
if(this->loggin.login){
this->cont_info=new controller_info(&info, sesion.get());
2020-06-03 18:59:39 +02:00
this->cont_inst=new controller_install(&install, sesion.get(), this->cont_info);
2020-05-13 00:56:26 +02:00
this->app.reset();
this->app=Gtk::Application::create( "org.gtkmm.examples.base");
this->add(this->book);
this->book.append_page(install,"build");
this->book.append_page(this->info,"info");
2020-05-26 18:47:14 +02:00
if(this->loggin.admin){
this->con_uinfo=new controller_user_info(&uinfo, sesion.get(), this);
this->book.append_page(this->uinfo,"users");
}
2020-05-13 00:56:26 +02:00
this->show_all_children();
this->app->run(*this);
}
}