driver rename

This commit is contained in:
devfix 2019-05-16 09:36:20 +02:00
parent 7a1efabe49
commit 281a00ddc0
35 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,32 @@
#ifndef VIEW_PROMT_H
#define VIEW_PROMT_H
#include <vector>
#include <string>
#include "view.h"
class ViewPromt : public View
{
public:
virtual void draw(void) override;
virtual void setMessage(std::string message);
virtual void setConfirm(std::string name, call_t call);
virtual void setCancel(std::string name, bool cancelable);
virtual std::string getInput(void);
virtual call_t keypress(int& key) override;
protected:
size_t selection = 1;
std::string input;
std::string message = "Input";
std::string label_confirm = "[ OK ]";
std::string sep = " ";
std::string label_cancel = "[ Cancel ]";
call_t call_confirm = nullptr;
bool cancelable = true;
int button_offset_x = 0, button_offset_y = 0;
constexpr static int text_offset_x = 2;
constexpr static int text_offset_y = 2;
};
#endif // VIEW_PROMT_H