confirm prefs update, fix bg_pixmap sz, plugin layout tweaks
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / preferencesthread.h
index 4cec37ebca162321259848d73064ee3e009ec8a1..98f1400c319737c8247cca448e8849eeb450f1f5 100644 (file)
@@ -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,10 @@ public:
        const char* category_to_text(int category);
        int text_to_category(const char *category);
 
+       const char *busy();
+       void confirm_update(const char *reason, int close);
+       PreferencesConfirmDialog *confirm_dialog;
+
        int current_dialog;
        int thread_running;
        int redraw_indexes;
@@ -175,13 +180,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: