| 1 | #ifndef ADDPASS_HH |
| 2 | #define ADDPASS_HH |
| 3 | |
| 4 | #include <FL/Fl_Button.H> |
| 5 | #include <FL/Fl_Input.H> |
| 6 | #include <FL/Fl_Secret_Input.H> |
| 7 | |
| 8 | #include "dialog.hh" |
| 9 | |
| 10 | #include <string> |
| 11 | |
| 12 | class Addpass : public Dialog { |
| 13 | public: |
| 14 | Fl_Button *btn = nullptr; |
| 15 | std::string file; |
| 16 | std::string inputpass1; |
| 17 | std::string inputpass2; |
| 18 | |
| 19 | static void dialog_cb(Fl_Widget *w, void *); |
| 20 | void add_cb(Fl_Widget *, void *); |
| 21 | bool exec(const std::string &file, const std::string &pass, bool isEdit); |
| 22 | |
| 23 | private: |
| 24 | static void static_ok_cb(Fl_Widget *w, void *data); |
| 25 | static void static_cancel_cb(Fl_Widget *w, void *data); |
| 26 | }; |
| 27 | |
| 28 | #endif |