]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Dialogs.C
Swap two printer related help messages.
[lyx.git] / src / frontends / xforms / Dialogs.C
index f7603e384423a7105f91a3801e5615ea9e0b73b5..aa300df61d7dc60758ef741e349c80b9c74d7f77 100644 (file)
@@ -1,5 +1,15 @@
+/* This file is part of
+ * ======================================================
+ *
+ *           LyX, The Document Processor
+ *
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2000 The LyX Team.
+ *
+ * ======================================================
+ */
+
 #include <config.h>
-#include FORMS_H_LOCATION
 
 #include "Dialogs.h"
 #include "FormCitation.h"
 #include "FormTabularCreate.h"
 #include "FormToc.h"
 #include "FormUrl.h"
+//#include "debug.h"
 
 #ifdef __GNUG__
 #pragma implementation
 #endif
 
+using std::endl;
+
 // temporary till ported
 extern void ShowCredits();
 
 
+// Signal enabling all visible popups to be redrawn if so desired.
+// E.g., when the GUI colours have been remapped.
+Signal0<void> Dialogs::redrawGUI;
+
+
 Dialogs::Dialogs(LyXView * lv)
 {
        dialogs_.push_back(new FormCitation(lv, this));
@@ -52,20 +70,12 @@ Dialogs::Dialogs(LyXView * lv)
 
 Dialogs::~Dialogs()
 {
-#if 0
-       // I belive that this is unsafe...
        for (vector<DialogBase *>::iterator iter = dialogs_.begin();
             iter != dialogs_.end();
             ++iter) {
+               //lyxerr << "delete *iter" << endl;
                delete *iter;
        }
-#else
-       // I think this is better...
-       while (!dialogs_.empty()) {
-               delete dialogs_.back();
-               dialogs_.erase(dialogs_.end() - 1);
-       }
-#endif
 }