+/* 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));
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
}