Abdelrazak Younes wrote:
Abdelrazak Younes wrote:
Abdelrazak Younes wrote:
TODO 2: The ErrorList mechanism is used wrongly in a number of place, most notably in "Converter.C". Instead of replacing the ErrorList in the "Buffer" class, the "Converter" class should maintain its own list instead and connect directly to the LyXView::showErrorList() slot.

Something like the attached for example.

Abdel.

Index: errorlist.h
===================================================================
--- errorlist.h (revision 14447)
+++ errorlist.h (working copy)
@@ -48,4 +48,14 @@
        using std::vector<ErrorItem>::const_iterator;
 };
 
+class ErrorLists: public std::map<std::string, ErrorList>
+{
+public:
+       ErrorLists() : std::string, ErrorList> () {}
+
+       /// This signal should be emitted when the ErrorList
+       /// associated with the string needs to be displayed.
+       boost::signal<void(std::string)> errors;
+}
+
 #endif

Reply via email to