| 1 | #ifndef DELPASS_HH |
| 2 | #define DELPASS_HH |
| 3 | |
| 4 | #include <FL/Fl_Button.H> |
| 5 | #include <string> |
| 6 | |
| 7 | #include "dialog.hh" |
| 8 | |
| 9 | class Delpass : public Dialog { |
| 10 | public: |
| 11 | Fl_Button *btn = nullptr; |
| 12 | std::string file; |
| 13 | |
| 14 | static void dialog_cb(Fl_Widget *w, void *); |
| 15 | void delete_cb(Fl_Widget *, void *data); |
| 16 | static void setFile(std::string &f); |
| 17 | std::string getFile(); |
| 18 | bool exec(const std::string &file, bool force); |
| 19 | |
| 20 | private: |
| 21 | static void static_ok_cb(Fl_Widget *w, void *data); |
| 22 | static void static_cancel_cb(Fl_Widget *w, void *data); |
| 23 | }; |
| 24 | |
| 25 | #endif |