ClienteTFG/view_loggin.h

44 lines
794 B
C
Raw Normal View History

2020-05-08 12:42:02 +02:00
#ifndef VIEW_LOGGIN_H
#define VIEW_LOGGIN_H
#include <gtkmm/window.h>
#include <gtkmm/button.h>
#include <gtkmm/box.h>
#include <gtkmm/label.h>
#include <gtkmm/entry.h>
2020-05-16 20:52:10 +02:00
#include "session_manager.h"
2020-05-08 12:42:02 +02:00
class view_loggin : public Gtk::Window
{
public:
2020-06-01 23:24:24 +02:00
/**
* @brief view_loggin
* View that permit show a loggig, include a minimal controler
* @param sesi Model that implements the funcionality
*/
2020-05-16 20:52:10 +02:00
view_loggin(session_manager *sesi);
session_manager *sesi;
2020-05-08 12:42:02 +02:00
Gtk::Label user;
Gtk::Entry entry_user;
Gtk::Box box_user;
Gtk::Label pass;
Gtk::Entry entry_pass;
Gtk::Box box_pass;
Gtk::Button button;
Gtk::Box box;
2020-06-01 23:24:24 +02:00
/**
* @brief on_button_clicked
* Function of a button
*/
2020-05-08 12:42:02 +02:00
void on_button_clicked();
bool login;
2020-05-26 18:47:14 +02:00
bool admin;
2020-05-08 12:42:02 +02:00
};
#endif // VIEW_LOGGIN_H