39 lines
836 B
C++
39 lines
836 B
C++
//
|
|
// Created by selim on 03.01.2022.
|
|
//
|
|
|
|
#ifndef AUTOCAT_GNOME_LOGINWINDOW_H
|
|
#define AUTOCAT_GNOME_LOGINWINDOW_H
|
|
|
|
#include <memory>
|
|
#include "../gtkpp/Window.h"
|
|
#include "../gtkpp/Box.h"
|
|
#include "../gtkpp/Entry.h"
|
|
#include "../gtkpp/Button.h"
|
|
#include "../gtkpp/Spinner.h"
|
|
|
|
class LoginWindow: public gtkpp::Window {
|
|
private:
|
|
// Gtk::Entry _emailField;
|
|
// Gtk::Entry _passwordField;
|
|
// Gtk::Button _loginButton;
|
|
// Gtk::Spinner _spinner;
|
|
// std::unique_ptr<Gtk::MessageDialog> _dialog;
|
|
|
|
gtkpp::Entry _loginEntry;
|
|
gtkpp::Entry _passwordEntry;
|
|
gtkpp::Button _loginButton;
|
|
gtkpp::Spinner _spinner;
|
|
|
|
public:
|
|
LoginWindow();
|
|
|
|
void loginClicked();
|
|
void validateFields();
|
|
void showError(const std::string& message);
|
|
void enableControls(bool enable);
|
|
};
|
|
|
|
|
|
#endif //AUTOCAT_GNOME_LOGINWINDOW_H
|