33 lines
694 B
C++
33 lines
694 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"
|
|
#include "../gtkpp/Application.h"
|
|
|
|
class LoginWindow: public gtkpp::Window {
|
|
private:
|
|
gtkpp::Entry _loginEntry;
|
|
gtkpp::Entry _passwordEntry;
|
|
gtkpp::Button _loginButton;
|
|
gtkpp::Spinner _spinner;
|
|
|
|
public:
|
|
explicit LoginWindow(std::shared_ptr<gtkpp::Application> app);
|
|
|
|
void loginClicked();
|
|
void validateFields();
|
|
void enableControls(bool enable);
|
|
};
|
|
|
|
|
|
#endif //AUTOCAT_GNOME_LOGINWINDOW_H
|