| 1 | #ifndef GENPASS_HH |
| 2 | #define GENPASS_HH |
| 3 | |
| 4 | #include <FL/Fl_Button.H> |
| 5 | #include <FL/Fl_Input.H> |
| 6 | #include <FL/Fl_Secret_Input.H> |
| 7 | #include <FL/Fl_Check_Button.H> |
| 8 | #include <FL/Fl_Button.H> |
| 9 | #include <FL/Fl_Output.H> |
| 10 | |
| 11 | #include <string> |
| 12 | |
| 13 | #include "dialog.hh" |
| 14 | |
| 15 | class Genpass : public Dialog { |
| 16 | public: |
| 17 | Fl_Button *btn = nullptr; |
| 18 | |
| 19 | std::string exec(int count, bool issecure); |
| 20 | static void dialog_cb(Fl_Widget *w, void *); |
| 21 | static void generate_cb(Fl_Widget *, void *data); |
| 22 | |
| 23 | private: |
| 24 | Fl_Input *counter = nullptr; |
| 25 | Fl_Check_Button *securechk = nullptr; |
| 26 | Fl_Button *genbtn = nullptr; |
| 27 | Fl_Output *res = nullptr; |
| 28 | |
| 29 | static void static_ok_cb(Fl_Widget *w, void *data); |
| 30 | static void static_cancel_cb(Fl_Widget *w, void *data); |
| 31 | }; |
| 32 | |
| 33 | #endif |