X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpreferencesthread.h;h=5309b22adcc1bc7ee49a60fe90107efe9373d9d8;hp=4cec37ebca162321259848d73064ee3e009ec8a1;hb=refs%2Fheads%2Fmaster;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/preferencesthread.h b/cinelerra-5.1/cinelerra/preferencesthread.h index 4cec37eb..653199b6 100644 --- a/cinelerra-5.1/cinelerra/preferencesthread.h +++ b/cinelerra-5.1/cinelerra/preferencesthread.h @@ -27,6 +27,7 @@ #include "guicast.h" #include "mutex.inc" #include "mwindow.inc" +#include "question.h" #include "preferences.inc" #include "preferencesthread.inc" @@ -59,6 +60,8 @@ public: const char* category_to_text(int category); int text_to_category(const char *category); + const char *busy(); + int current_dialog; int thread_running; int redraw_indexes; @@ -68,6 +71,7 @@ public: int rerender; int close_assets; int reload_plugins; + int reset_caches; PreferencesWindow *window; MWindow *mwindow; // Copy of mwindow preferences @@ -122,15 +126,15 @@ public: int set_current_dialog(int number); int update_framerate(); void update_rates(); + void confirm_update(const char *reason, int close); void show_dialog() { dialog->show_window(0); } MWindow *mwindow; PreferencesThread *thread; ArrayList categories; PreferencesCategory *category; PreferencesButton *category_button[CATEGORIES]; - -private: PreferencesDialog *dialog; + PreferencesConfirmDialog *confirm_dialog; }; class PreferencesButton : public BC_GenericButton @@ -175,13 +179,40 @@ class PreferencesOK : public BC_GenericButton { public: PreferencesOK(MWindow *mwindow, PreferencesThread *thread); + ~PreferencesOK(); int keypress_event(); int handle_event(); int resize_event(int w, int h); MWindow *mwindow; PreferencesThread *thread; + PreferencesConfirmDialog *confirm_dialog; +}; + +class PreferencesConfirmDialog : public BC_DialogThread +{ +public: + PreferencesConfirmDialog(PreferencesThread *thread, + const char *reason, int close); + ~PreferencesConfirmDialog(); + BC_Window *new_gui(); + void handle_done_event(int result); + + PreferencesThread *thread; + PreferencesConfirmWindow *qwindow; + char query[BCTEXTLEN]; + int close; }; +class PreferencesConfirmWindow : public QuestionWindow +{ +public: + PreferencesConfirmWindow(PreferencesConfirmDialog *dialog); + ~PreferencesConfirmWindow(); + + PreferencesConfirmDialog *dialog; +}; + + class PreferencesCancel : public BC_GenericButton { public: