AutoCatGnome/gui/AddNumberDialog.h

30 lines
582 B
C++

//
// Created by selim on 17.05.2022.
//
#ifndef AUTOCAT_GNOME_ADDNUMBERDIALOG_H
#define AUTOCAT_GNOME_ADDNUMBERDIALOG_H
#include "../gtkpp/Dialog.h"
#include "../gtkpp/Entry.h"
#include "../gtkpp/Spinner.h"
#include <concurrencpp/concurrencpp.h>
#include <vector>
namespace cc = concurrencpp;
class AddNumberDialog: public gtkpp::Dialog {
private:
gtkpp::Entry _entry;
gtkpp::Spinner _spinner;
public:
explicit AddNumberDialog(gtkpp::Window* parent);
std::string text() const;
cc::result<void> checkNumber();
};
#endif //AUTOCAT_GNOME_ADDNUMBERDIALOG_H