#ifndef CONTROLERRORLIST_H
#define CONTROLERRORLIST_H
-
+#include "errorlist.h"
#include "Dialog.h"
#include <vector>
class ControlErrorList : public Dialog::Controller {
public:
- /// A class to hold an error item
- struct ErrorItem {
- std::string error;
- std::string description;
- int par_id;
- int pos_start;
- int pos_end;
- ErrorItem(string const &, string const &, int, int, int);
- };
///
ControlErrorList(Dialog & parent);
///
virtual bool isBufferDependent() const { return true; }
///
- virtual bool initialiseParams(const string & params);
+ virtual bool initialiseParams(string const & data);
///
- virtual void ControlErrorList::clearParams();
+ virtual void clearParams();
///
- virtual void ControlErrorList::dispatchParams() {}
+ virtual void dispatchParams() {}
- /// get the current item
- int currentItem() const;
/// goto this error in the parent bv
void goTo(int item);
/// return the parent document name
- string const & docName();
- /// rescan the log file and rebuild the error list
- void fillErrors();
- /// clear everything
- void clearErrors();
+ string const & name();
///
- std::vector<ErrorItem> const & ErrorList() const;
+ ErrorList const & errorList() const;
private:
///
- std::vector<ErrorItem> ErrorList_;
- ///
- string logfilename_;
+ ErrorList errorlist_;
///
- int current_;
+ string name_;
};
#endif // CONTROLERRORLIST_H