|
gpforge
An advanced bitmap font editor
|
The unsaved changes dialog. More...
Go to the source code of this file.
Enumerations | |
| enum | gpf_save_answer { GPF_SAVE_SAVE = 1 , GPF_SAVE_DISCARD , GPF_SAVE_CANCEL } |
| What to do about unsaved changes. More... | |
Functions | |
| enum gpf_save_answer | gpf_dialog_save (const char *title) |
| Asks what to do about unsaved changes. | |
The unsaved changes dialog.
"Discard them?" was the wrong question: the answer to unsaved work is usually to save it, so the dialog offers that first and keeps cancel as the way out.
Definition in file dialog_save.h.
| enum gpf_save_answer |
What to do about unsaved changes.
None of them is zero: the answer is the dialog's return value, and zero is "still running" to gp_dialog_run().
| Enumerator | |
|---|---|
| GPF_SAVE_SAVE | Save the font, then go on. |
| GPF_SAVE_DISCARD | Throw the changes away and go on. |
| GPF_SAVE_CANCEL | Do not go on. |
Definition at line 22 of file dialog_save.h.
| enum gpf_save_answer gpf_dialog_save | ( | const char * | title | ) |
Asks what to do about unsaved changes.
| title | The dialog title, which says what asked. |
Definition at line 80 of file dialog_save.c.
References GPF_SAVE_CANCEL, GPF_SAVE_DISCARD, and GPF_SAVE_SAVE.